/* OnePost UI2 — mock layout + real console features */
:root {
  --blue: #0047AB;
  --blue-dark: #003585;
  --blue-soft: #E8F0FA;
  --text: #1A1A1A;
  --muted: #667085;
  --line: #E6E8EC;
  --bg: #F6F7F9;
  --ok: #0B7A3B;
  --warn: #9A6B00;
  --accent: #0047AB;
  --accent-hover: #003585;
  --fail: #8b1e1e;
  --wait: #9A6B00;
  --busy: #0047AB;
  --card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
.hidden, .hide { display: none !important; }

/* Login */
body.logged-out { background: #EEF1F6; }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #EEF1F6;
  padding: 24px 12px;
  position: relative;
  isolation: isolate;
}
.login-hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(0, 71, 171, 0.18), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(0, 71, 171, 0.10), transparent 55%),
    linear-gradient(180deg, #E8EEF8 0%, #EEF1F6 45%, #F4F6FA 100%);
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(0, 71, 171, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 171, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 71, 171, 0.14) 1.1px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 10%, transparent 85%);
}
.login-stage {
  width: min(980px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 28px 40px;
  align-items: center;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.login-pitch {
  padding: 8px 8px 8px 4px;
  color: #1F2937;
}
.login-pitch-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0047AB;
  text-transform: none;
}
.login-pitch-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
}
.login-pitch-body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #4B5563;
  max-width: 36em;
}
.login-pitch-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.login-pitch-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 71, 171, 0.10);
  font-size: 13px;
  color: #334155;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.login-pitch-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  transform: translateY(-50%);
  background: #0047AB;
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.12);
}
.login .card,
.login-card {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
@media (max-width: 860px) {
  .login-stage {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .login-card { justify-self: center; max-width: 420px; }
  .login-pitch { text-align: left; padding: 0 4px 4px; }
}
.brand { text-align: center; margin-bottom: 22px; }
.login-logo {
  display: block;
  margin: 0 auto 10px;
  max-height: 72px;
  width: auto;
  height: auto;
}
.brand h1, .login-card h1 { font-size: 22px; font-weight: 800; }
.brand p, .login-lead {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}
.btn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  margin-top: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  padding: 0 12px;
}
.btn.kakao, .sns-login-btn.kakao { background: #FEE500; border-color: #FEE500; color: #000; }
.btn.naver, .sns-login-btn.naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.btn.fb, .btn.primary, .sns-login-btn.facebook {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.btn.ghost, button.secondary, .btn.secondary {
  background: #fff; color: var(--text); border: 1px solid var(--line);
}
.btn:disabled, button:disabled { opacity: .45; cursor: not-allowed; }
.soon {
  font-size: 11px; color: #fff; background: #222;
  border-radius: 99px; padding: 1px 7px; margin-left: 6px;
}
.sns-login-btn[aria-disabled="true"] {
  pointer-events: none; cursor: default; opacity: .6;
}
.google-login-btn { background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.google-logo { flex-shrink: 0; display: block; }
.login-internal { margin-top: 14px; }
.login-internal summary {
  cursor: pointer; font-size: 12px; color: var(--muted); user-select: none;
}
.login-internal[open] summary { margin-bottom: 10px; }
.login-fallback .field { display: block; margin-bottom: 10px; }
.login-fallback .lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.login-fallback input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
.login-fallback button[type="submit"] { width: 100%; margin-top: 4px; height: 40px; border-radius: 10px; }
.foot, .login .foot {
  margin-top: 20px; text-align: center; color: var(--muted);
  font-size: 12px; line-height: 1.8;
}
.foot a { color: var(--blue); text-decoration: none; }
.login-card .msg { margin-top: 10px; font-size: 13px; }

/* App shell */
.app, .app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 280px;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
}
.side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: auto;
}
.side .logo {
  display: flex; gap: 10px; align-items: center; padding: 6px 8px 16px;
}
.side .logo img {
  width: 36px; height: 36px; border-radius: 9px; display: block; object-fit: cover;
}
.side .logo span { display: block; color: var(--muted); font-size: 12px; }
select.shop {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; margin-bottom: 10px; background: #fff;
}
.client-add-form {
  display: flex; gap: 6px; margin-bottom: 8px;
}
.client-add-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px;
}
.client-add-form button {
  flex-shrink: 0; height: 36px; padding: 0 10px; border-radius: 8px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue); cursor: pointer;
  font-size: 13px;
}
.client-mini-actions { display: flex; gap: 8px; margin-bottom: 10px; }

.ghost-mini {
  background: none; border: 0; color: var(--muted); font-size: 12px;
  padding: 0; cursor: pointer;
}
.ghost-mini:hover { color: var(--text); text-decoration: underline; }
#client-sidebar-msg { font-size: 12px; margin-bottom: 8px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: #344054; text-decoration: none; font-size: 14px;
}
.nav a.on, .nav a.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.grow { flex: 1; }
.who { font-size: 12px; color: var(--muted); padding: 12px 8px 4px; word-break: break-all; }
.logout-btn {
  font: inherit; font-size: 12px; color: var(--muted);
  background: none; border: 0; padding: 4px 8px 8px; cursor: pointer; text-align: left;
}
.logout-btn:hover { color: var(--text); text-decoration: underline; }
.main { padding: 24px 28px 48px; min-width: 0; }
h2 { font-size: 22px; margin-bottom: 4px; font-weight: 800; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.tile-name { font-weight: 700; margin-bottom: 8px; }
.st.ok { color: var(--ok); font-size: 13px; }
.st.off, .st.wait { color: var(--muted); font-size: 13px; }
.st.wait { color: var(--warn); }
.tile-actions { display: flex; gap: 8px; margin-top: 12px; }
.tile-actions .btn { width: auto; height: 36px; margin-top: 0; padding: 0 12px; font-size: 13px; flex: 1; }

.post {
  display: grid;
  grid-template-columns: 340px 1fr 280px;
  gap: 14px;
  align-items: start;
}
.box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.compose-left { min-width: 0; }
.compose-heading { font-size: 15px; margin-bottom: 10px; font-weight: 700; }
.drop { height: 150px; }
.compose-stage .dropzone {
  min-height: 150px; padding: 22px 16px;
  border: 1.5px dashed #C5D0E0; border-radius: 12px; background: #FAFBFD;
}
.chs label.compose-channel-pick {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 8px 0; border-bottom: 1px solid #F0F2F5; font-size: 13px;
  width: 100%;
}
.compose-channel-picks { margin: 0; padding: 0; border: 0; background: transparent; border-radius: 0; }
.compose-channel-picks-list { display: block; }
.compose-channel-picks-head { margin-bottom: 6px; }
.compose-actions { margin-top: 10px; }
.compose-actions button, .compose-actions .btn {
  width: auto; height: 40px; padding: 0 16px; margin-top: 0; border-radius: 10px;
}
#compose-publish-all-btn {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.preview {
  background: #111; color: #fff; border-radius: 16px; padding: 12px 12px 16px; min-height: 520px;
}
.phone {
  width: 260px; margin: 0 auto; background: #1B1B1B; border-radius: 24px;
  padding: 10px 10px 16px; border: 1px solid #333;
}
.phone .top { text-align: center; font-size: 12px; color: #BBB; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs .chrome-tab, .tabs a {
  border: 0; background: #2A2A2A; color: #DDD; border-radius: 99px;
  padding: 4px 8px; font-size: 11px; cursor: pointer; text-decoration: none;
  height: auto; line-height: 1.4; flex: 0 0 auto; max-width: none;
}
.tabs .chrome-tab.on, .tabs .chrome-tab.active {
  background: var(--blue); color: #fff;
  box-shadow: none;
}
.screen {
  background: #000; border-radius: 12px; overflow: hidden; min-height: 360px;
}
.screen img, .screen video { width: 100%; display: block; background: #222; min-height: 0; }
.sns-preview-empty {
  color: #888; text-align: center; padding: 80px 16px; font-size: 13px;
  background: transparent; border: 0; margin: 0;
}
.links {
  margin-top: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.stat b, .admin-stat-val { display: block; font-size: 22px; margin-top: 6px; font-weight: 800; color: var(--text); }
.plan {
  max-width: 520px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 24px;
}
.plan em { font-style: normal; font-size: 32px; font-weight: 800; display: block; margin: 6px 0 0; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.field { margin-bottom: 14px; display: block; }
.field .lbl, label.field span.lbl {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.msg { margin-top: 12px; font-size: 14px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--fail); }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { background: #FAFBFD; color: var(--muted); font-weight: 600; font-size: 13px; }

.insight-empty { color: var(--muted); }
#agency-frame {
  width: 100%; height: min(78vh, 920px); border: 0; background: #fff; border-radius: 12px;
}

.channel-advanced {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
}
.compose-schedule-field { margin-top: 12px; }
.compose-schedule-field .lbl { font-weight: 700; color: var(--text); }
.compose-schedule-field input[type="datetime-local"] {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 10px; background: #fff;
}
.channel-advanced summary {
  cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text);
  user-select: none; display: block; padding: 10px 12px; border-radius: 10px;
  background: var(--blue-soft, #E8F0FA); border: 1px solid var(--blue, #0047AB);
}
.channel-advanced[open] summary { margin-bottom: 12px; }

.youtube-connect, .instagram-connect, .facebook-connect, .threads-connect {
  border-radius: 12px; margin-top: 14px;
}
.private-post-check, .ai-generated-check {
  max-width: none; margin-top: 10px;
}
.private-post-line { color: var(--text); font-weight: 600; }

#billing-pay-btn { width: auto; padding: 0 20px; margin-top: 12px; height: 44px; border-radius: 10px; }
.sidebar-billing-link[hidden] { display: none !important; }
#admin-nav-link[hidden], #admin-sidebar-link[hidden] { display: none !important; }

.ad-rail {
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  min-width: 0;
  margin: 0;
  padding: 24px 20px 24px 18px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.legal-footer {
  margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.legal-footer a { color: var(--blue); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

.badge {
  display: inline-block; font-size: 12px; padding: 2px 6px;
  border: 1px solid var(--line); white-space: nowrap; border-radius: 6px;
}
.badge.sim, .badge.done { color: var(--ok); border-color: #b7dcc4; }
.badge.wait { color: var(--wait); border-color: #ead9b0; }
.badge.busy { color: var(--busy); border-color: #c5d4e8; }
.badge.fail { color: var(--fail); border-color: #e3bcbc; }
.badge.sched { color: #6b5b95; border-color: #d4cce8; }
.task-list { display: flex; flex-wrap: wrap; gap: 6px; }
.files { font-size: 12px; color: var(--muted); }
.caption { white-space: pre-wrap; font-size: 13px; max-height: 8em; overflow: auto; }
.empty { color: var(--muted); padding: 24px 0; }
.naver-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.yt-link { font-size: 12px; margin-left: 2px; color: var(--blue); }

@media (max-width: 1100px) {
  .post { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .phone { width: min(260px, 100%); }
}
@media (max-width: 800px) {
  .app, .app-shell { grid-template-columns: 1fr; }
  .side { position: relative; max-height: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ad-rail {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stats, .admin-stats { grid-template-columns: repeat(2, 1fr); }
}


/* forms, tables, badges */
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.char-count {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.4;
}
.char-count .char-over,
.char-count.char-over {
  color: var(--fail);
  font-weight: 600;
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.channels label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: #fafafa;
  font-size: 14px;
}
.channels .kind {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}






.msg { margin-top: 12px; font-size: 14px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--fail); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge.sim { color: var(--ok); border-color: #b7dcc4; }
.badge.wait { color: var(--wait); border-color: #ead9b0; }
.badge.busy { color: var(--busy); border-color: #c5d4e8; }
.badge.done { color: var(--ok); border-color: #b7dcc4; }
.badge.fail { color: var(--fail); border-color: #e3bcbc; }
.badge.sched { color: #6b5b95; border-color: #d4cce8; }

.task-list { display: flex; flex-wrap: wrap; gap: 6px; }
.files { font-size: 12px; color: var(--muted); }
.caption { white-space: pre-wrap; font-size: 13px; max-height: 8em; overflow: auto; }
.empty { color: var(--muted); padding: 24px 0; }

.naver-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.naver-item:last-child { border-bottom: 0; }
.naver-item h3 { margin: 0 0 8px; font-size: 15px; }
.meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.hidden { display: none !important; }
/* compose internals */
.compose-panel {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}
.compose-heading { margin-bottom: 12px; }
.compose-panel textarea { min-height: 100px; }
.caption-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.caption-field-head .lbl { margin-bottom: 0; }
.caption-field-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.caption-style-hint {
  margin: 0;
}
#compose-caption-btn {
  height: 30px;
  padding: 4px 12px;
  font-size: 13px;
  flex-shrink: 0;
}

.caption-chat {
  margin-top: 8px;
}
.caption-chat-log {
  max-height: 120px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 6px;
}
.caption-chat-log:empty {
  display: none;
}
.caption-chat-bubble {
  max-width: 92%;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.caption-chat-bubble.user {
  align-self: flex-end;
  background: #f3f4f6;
  color: var(--text);
}
.caption-chat-bubble.assistant {
  align-self: flex-start;
  background: transparent;
  color: var(--muted);
  padding-left: 2px;
}
.caption-chat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.caption-chat-row input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 4px 8px;
  font-size: 13px;
}
#caption-chat-send {
  height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  flex-shrink: 0;
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.caption-chat-status {
  margin: 4px 0 0;
}
.caption-chat-status.err {
  color: var(--fail);
}
.compose-stage .dropzone {
  min-height: 140px;
  padding: 22px 20px;
}

.drop-wrap { margin-bottom: 14px; }

.drop-row {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.drop-row .dropzone {
  flex: 1 1 280px;
  min-width: 0;
}
.private-post-check,
.ai-generated-check {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 220px;
  cursor: pointer;
  user-select: none;
}
.private-post-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  white-space: nowrap;
}
.private-post-line input {
  margin: 0;
  flex-shrink: 0;
}
.private-post-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 400;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 28px 20px;
  border: 2px dashed #c5c8ce;
  background: #f7f8fa;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover {
  border-color: #9aa0a6;
  background: #f1f3f4;
}
.dropzone.dragover {
  border-color: #202124;
  background: #e8eef8;
}
.dropzone.has-files {
  min-height: 120px;
  padding: 20px;
}
.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.dropzone-copy {
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.dropzone-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #202124;
}
.dropzone-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.file-preview {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.file-preview:empty { display: none; }
.file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}
.file-chip img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: #ececec;
  flex-shrink: 0;
}
.file-kind {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #202124;
  padding: 2px 6px;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.file-remove {
  flex-shrink: 0;
  padding: 0 6px;
  height: 24px;
  line-height: 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.file-chip[draggable="true"] {
  cursor: grab;
}
.file-chip.dragging {
  cursor: grabbing;
}
.file-chip-num {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #202124;
}

.compose-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.compose-actions button {
  height: 38px;
  padding: 8px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.compose-actions #compose-apply-btn {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.compose-note { margin: 0 0 4px; }

.compose-channel-picks {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
.compose-channel-picks-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.compose-channel-picks-head .hint { margin: 0; }
.compose-channel-picks-head button {
  height: 32px;
  padding: 4px 12px;
  flex-shrink: 0;
}
.compose-channel-picks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.compose-channel-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.compose-channel-pick input { margin: 0; }
/* connect panels */
.youtube-connect,
.instagram-connect,
.facebook-connect,
.threads-connect,
.tiktok-connect {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f7f7f5;
}
.youtube-mode-bar {
  margin: 0 0 10px;
}
.youtube-subtabs {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f5;
}
.youtube-subtab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 0;
  background: transparent;
}
.youtube-subtab:hover {
  color: var(--fg);
  background: #efefed;
}
.youtube-subtab.on,
.youtube-subtab.active {
  color: var(--fg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.youtube-community-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f7f7f5;
}
.youtube-community-hint .hint {
  margin: 0;
}
.youtube-community-hint a {
  color: #355c8c;
}

.youtube-connect-row,
.instagram-connect-row,
.facebook-connect-row,
.threads-connect-row,
.tiktok-connect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.youtube-privacy-hint,
.instagram-publish-hint,
.facebook-publish-hint,
.threads-publish-hint,
.tiktok-publish-hint {
  margin: 0;
}
.youtube-connect .btn,
.instagram-connect .btn,
.facebook-connect .btn,
.threads-connect .btn,
.tiktok-connect .btn {
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  padding: 6px 12px;
}
.youtube-connect-status,
.instagram-connect-status,
.facebook-connect-status,
.threads-connect-status,
.tiktok-connect-status {
  font-size: 13px;
  color: var(--muted);
}
.youtube-connect-status.connected,
.instagram-connect-status.connected,
.facebook-connect-status.connected,
.threads-connect-status.connected,
.tiktok-connect-status.connected {
  color: var(--ok);
}
.connect-client-hint {
  font-size: 12px;
  color: var(--muted);
}

.channel-flags {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f7f7f5;
  max-width: 360px;
}
.channel-flags-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}
.channel-flags .channel-flag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  user-select: none;
}
.channel-flags .channel-flag + .channel-flag {
  margin-top: 8px;
}

.yt-link {
  font-size: 12px;
  margin-left: 2px;
  color: #355c8c;
}

/* sns preview skins */
.preview-mock {
  overflow: hidden;
  background: #fff;
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.preview-header-text { min-width: 0; }
.preview-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-sub {
  font-size: 11px;
  color: var(--muted);
}
.preview-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #888;
}
.preview-caption {
  padding: 0 12px 12px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}
.preview-caption strong { margin-right: 4px; }
.preview-media {
  position: relative;
  background: #111;
}
.preview-media img,
.preview-media video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: #111;
}
.preview-carousel-count {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

/* Instagram: phone-ish vertical */
.sns-preview-card.skin-instagram .preview-mock {
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid #dbdbdb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.sns-preview-card.skin-instagram .preview-avatar {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7);
}
.sns-preview-card.skin-instagram .preview-media {
  aspect-ratio: 4 / 5;
  background: #000;
}
.sns-preview-card.skin-instagram .preview-media img,
.sns-preview-card.skin-instagram .preview-media video {
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.sns-preview-card.skin-instagram .preview-caption {
  padding: 10px 12px 14px;
  font-size: 12px;
}

/* YouTube: landscape player */
.sns-preview-card.skin-youtube .preview-mock {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}
.sns-preview-card.skin-youtube .preview-media {
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
}
.sns-preview-card.skin-youtube .preview-media img,
.sns-preview-card.skin-youtube .preview-media video {
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.sns-preview-card.skin-youtube .preview-yt-meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px 12px;
}
.sns-preview-card.skin-youtube .preview-avatar { background: #cc0000; }
.sns-preview-card.skin-youtube .preview-yt-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.sns-preview-card.skin-youtube .preview-yt-channel {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Facebook: feed post */
.sns-preview-card.skin-facebook .preview-mock {
  border: 1px solid #dddfe2;
  border-radius: 8px;
  background: #fff;
}
.sns-preview-card.skin-facebook .preview-avatar { background: #1877f2; }
.sns-preview-card.skin-facebook .preview-name { color: #050505; }
.sns-preview-card.skin-facebook .preview-caption {
  padding: 0 12px 10px;
  font-size: 14px;
}
.sns-preview-card.skin-facebook .preview-media img,
.sns-preview-card.skin-facebook .preview-media video {
  max-height: 280px;
  object-fit: cover;
}

/* TikTok: tall phone, media fills, caption overlay */
.sns-preview-card.skin-tiktok .preview-mock {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 20px;
  background: #000;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.sns-preview-card.skin-tiktok .preview-tt-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  min-height: 380px;
}
.sns-preview-card.skin-tiktok .preview-media,
.sns-preview-card.skin-tiktok .preview-tt-blank {
  position: absolute;
  inset: 0;
  background: #111;
}
.sns-preview-card.skin-tiktok .preview-media img,
.sns-preview-card.skin-tiktok .preview-media video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.sns-preview-card.skin-tiktok .preview-tt-overlay {
  position: absolute;
  left: 0;
  right: 48px;
  bottom: 0;
  padding: 36px 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  z-index: 1;
  pointer-events: none;
}
.sns-preview-card.skin-tiktok .preview-name {
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.sns-preview-card.skin-tiktok .preview-caption {
  padding: 0;
  color: #fff;
  font-size: 12px;
  max-height: 4.6em;
  overflow: hidden;
}
.sns-preview-card.skin-tiktok .preview-carousel-count {
  z-index: 2;
}

/* Threads: text-forward, small media */
.sns-preview-card.skin-threads .preview-mock {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fafafa;
  padding-bottom: 6px;
}
.sns-preview-card.skin-threads .preview-avatar { background: #1e1e1e; }
.sns-preview-card.skin-threads .preview-caption {
  font-size: 14px;
  padding: 0 12px 10px;
}
.sns-preview-card.skin-threads .preview-media-small {
  margin: 0 12px 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #ececec;
}
.sns-preview-card.skin-threads .preview-media-small img,
.sns-preview-card.skin-threads .preview-media-small video {
  max-height: 140px;
  object-fit: cover;
}

/* X / Twitter: compact tweet */
.sns-preview-card.skin-x .preview-mock {
  border: 1px solid #eff3f4;
  border-radius: 12px;
  background: #fff;
}
.sns-preview-card.skin-x .preview-avatar { background: #0f1419; }
.sns-preview-card.skin-x .preview-caption {
  padding: 0 12px 10px;
  font-size: 14px;
}
.sns-preview-card.skin-x .preview-media {
  margin: 0 12px 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eff3f4;
  background: #f7f9f9;
}
.sns-preview-card.skin-x .preview-media img,
.sns-preview-card.skin-x .preview-media video {
  max-height: 200px;
}

.sns-preview-card.skin-blogger .preview-mock {
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  background: #fffaf5;
}
.sns-preview-card.skin-blogger .preview-avatar { background: #FF5722; }
.sns-preview-card.skin-blogger .preview-name { color: #E65100; }
.sns-preview-card.skin-blogger .preview-yt-title {
  padding: 4px 12px 2px;
  font-size: 16px;
  font-weight: 700;
}
.sns-preview-card.skin-blogger .preview-caption {
  padding: 0 12px 10px;
  font-size: 14px;
}
.sns-preview-card.skin-blogger .preview-media img,
.sns-preview-card.skin-blogger .preview-media video {
  max-height: 220px;
}

/* billing */
.billing-lead {
  font-size: 15px;
  margin: 0 0 8px;
}
.billing-plan {
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 14px 16px;
  margin: 16px 0;
}
.billing-plan-name {
  font-size: 14px;
  font-weight: 600;
}
.billing-plan-price {
  font-size: 22px;
  margin: 6px 0 8px;
}
.billing-plan-status {
  font-size: 13px;
  color: var(--muted);
}
.billing-widget {
  margin: 12px 0;
}
#billing-pay-btn {
  margin-top: 8px;
}
#billing-test-hint {
  margin-top: 12px;
}
/* ads */
.ad-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.ad-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ad-card-body {
  font-size: 13px;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.5;
}

.ad-card-points {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  color: #333;
}
.ad-card-points li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}
.ad-card-points li:first-child { border-top: 0; padding-top: 0; }

.ad-card-fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}

.ad-card-cta {
  display: block;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.ad-card-cta:hover {
  opacity: 0.92;
}

.ad-card + .ad-card {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ad-card-compact .ad-card-title {
  font-size: 14px;
  margin-bottom: 4px;
}
.ad-card-compact .ad-card-body {
  margin: 0;
  color: var(--muted);
}
/* upload links, footer, admin */
.upload-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.compose-stage > .upload-links {
  margin-top: 8px;
}
#view-publish > .upload-links {
  margin-top: 24px;
}
.upload-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.upload-links-head h3 {
  margin: 0;
  font-size: 15px;
}
.upload-links-copy-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 4px 12px;
  font-size: 13px;
}
.upload-links-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.upload-links-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.upload-links-list li:last-child {
  border-bottom: 0;
}
.upload-links-ch {
  flex: 0 0 72px;
  font-weight: 600;
}
.upload-links-val {
  min-width: 0;
  word-break: break-all;
}
.upload-links-val a {
  color: #355c8c;
}
.upload-links-val.busy {
  color: var(--busy);
}
.upload-links-val.fail {
  color: var(--fail);
}
.upload-links-val.none {
  color: var(--muted);
}
.upload-links-copy-msg {
  margin-top: 8px;
}

.legal-footer {
  margin-top: 14px;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.login-card .legal-footer {
  text-align: center;
  border-top: 1px solid #eee;
}
.legal-footer a {
  color: #5f6368;
  text-decoration: none;
}
.legal-footer a:hover { text-decoration: underline; }
.chrome-page > .legal-footer {
  margin: 24px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

#admin-nav-link[hidden],
#admin-sidebar-link[hidden] {
  display: none !important;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
}
.admin-stat {
  border: 1px solid var(--line);
  background: #f7f8fc;
  padding: 14px 16px;
}
.admin-stat-lbl {
  font-size: 12px;
  color: var(--muted);
}
.admin-stat-val {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.2;
}
.admin-table-title {
  font-size: 14px;
  margin: 20px 0 8px;
}
#view-admin table {
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}


/* layout overrides on kept rules */
.compose-panel textarea { min-height: 90px; }
.compose-stage { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
#compose-caption-btn { width: auto; height: 30px; margin-top: 0; padding: 4px 12px; border-radius: 8px; }
#caption-chat-send {
  width: auto; height: 30px; margin-top: 0; padding: 4px 10px;
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
}
.dropzone { border-radius: 12px; }
.sns-preview { position: static; }
.sns-preview-card.skin-instagram .preview-mock,
.sns-preview-card.skin-tiktok .preview-mock { max-width: none; margin: 0; }
.preview-mock { background: #fff; color: var(--text); }
.screen .sns-preview-card { min-height: 0; }
.billing-widget { margin: 12px 0; }
.admin-stat-lbl { font-size: 12px; color: var(--muted); }
#view-admin table, #jobs-table table { border-radius: 12px; overflow: hidden; }
.ad-card-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; padding: 8px 14px; height: 40px; margin-top: 8px;
  background: var(--blue); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.upload-links { border-radius: 12px; }
.channel-caption-store { display: none !important; }


/* unstyled native buttons in the real forms */
button {
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}
button.secondary,
.btn.ghost,
.btn.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.ghost-mini,
.logout-btn,
.file-remove,
.client-name,
.client-rename,
.client-delete {
  background: none !important;
  border: 0 !important;
  color: var(--muted);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.file-remove {
  padding: 0 6px !important;
  height: 24px;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--muted) !important;
  border-radius: 6px;
}
.login .btn { width: 100%; }
.main .btn,
.side .btn { width: auto; }
#compose-check-all-btn { width: auto; height: 32px; padding: 4px 12px; margin-top: 0; }
#compose-apply-btn { width: auto; }
.youtube-connect .btn,
.instagram-connect .btn,
.facebook-connect .btn,
.threads-connect .btn {
  width: auto;
  height: 36px;
  margin-top: 0;
  font-size: 13px;
}


/* Company footer — 에테르 legal identity for Meta / public pages */
body.logged-out {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.login {
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 40px 16px 0;
  background: transparent;
}
.login .login-stage {
  margin-bottom: 40px;
}
.login .login-card {
  margin: 0;
}
.login .site-company {
  margin-top: auto;
}
.site-company {
  width: 100%;
  background: #0B0B12;
  border-top: 1px solid #1A1A22;
  color: #A1A1AA;
  font-size: 13px;
  line-height: 1.7;
  padding: 36px 24px 28px;
  margin-top: 0;
}
.site-company-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) 1fr 1fr;
  gap: 28px 40px;
  align-items: start;
}
.site-company-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #0B0B12;
  display: block;
  margin-bottom: 12px;
  box-shadow: none;
}
.site-company-name {
  font-size: 15px;
  color: #F4F4F5;
  font-weight: 800;
  margin: 0 0 8px;
}
.site-company-legal {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.site-company-legal li { margin: 0 0 2px; }
.site-company-legal a { color: #93C5FD; }
.site-company-legal a:hover { color: #BFDBFE; text-decoration: underline; }
.site-company-copy {
  margin: 10px 0 0;
  font-size: 12px;
  color: #71717A;
}
.site-company-col h3 {
  font-size: 13px;
  color: #F4F4F5;
  margin: 4px 0 10px;
  font-weight: 700;
}
.site-company-col a {
  display: block;
  color: #A1A1AA;
  text-decoration: none;
  margin: 0 0 6px;
}
.site-company-col a:hover { color: #93C5FD; text-decoration: underline; }
.app-shell .site-company {
  grid-column: 1 / -1;
}
@media (max-width: 800px) {
  .site-company-inner { grid-template-columns: 1fr; gap: 24px; }
}


/* admin publish stats */
.admin-pub-stats {
  grid-template-columns: repeat(3, 1fr);
}
.admin-stat-accent {
  border-color: #c5d4ef;
  background: linear-gradient(180deg, #f3f7fc 0%, #eef3fa 100%);
}
.admin-stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.admin-pub-hint {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}
.admin-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 180px;
  padding: 16px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fc;
  margin-bottom: 16px;
}
.admin-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.admin-bar-track {
  width: 100%;
  max-width: 42px;
  height: 120px;
  border-radius: 8px 8px 4px 4px;
  background: #e2e8f2;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.admin-bar-fill {
  width: 100%;
  background: #0047AB;
  border-radius: 8px 8px 0 0;
  min-height: 2px;
  transition: height 0.25s ease;
}
.admin-bar-val {
  font-size: 12px;
  font-weight: 700;
  color: #0047AB;
}
.admin-bar-lbl {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.admin-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-mini-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.admin-mini-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.admin-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 90px;
}
.admin-mini-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.admin-mini-track {
  width: 100%;
  max-width: 18px;
  height: 56px;
  border-radius: 5px 5px 2px 2px;
  background: #e8eef8;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.admin-mini-fill {
  width: 100%;
  background: #0047AB;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.admin-mini-val {
  font-size: 10px;
  font-weight: 700;
  color: #0047AB;
}
.admin-mini-lbl {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  word-break: keep-all;
}
@media (max-width: 720px) {
  .admin-pub-stats { grid-template-columns: 1fr; }
  .admin-mini-row { grid-template-columns: 1fr; }
}


/* Free vs paid plan hints */
.billing-usage {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 14px;
}
#compose-quota-hint {
  margin: 6px 0 0;
  color: #475569;
}
.compose-channel-pick.plan-locked,
label.plan-locked {
  opacity: 0.72;
}
.compose-channel-pick.plan-locked .ch-hint,
.plan-lock-hint {
  color: #B45309;
}
