/* DoChin Social — on top of the shared dochin style.css: teal accent, queue rows, channel cards, calendar. */
:root { --accent: #1f6f63; --accent-hover: #185a50; --accent-soft: #e4f2ef; --side: #14262b; --side-2: #0d1a1e; }
.nav a.active, .side-bottom a.active { box-shadow: inset 3px 0 0 #4fbfa8; }
.bad { color: var(--bad); }
.warn-text { color: var(--warn); }
.alert a, .note a { color: inherit; text-decoration: underline; }

/* service marks */
.svc { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font: 700 10px/1 Inter, sans-serif; color: #fff; vertical-align: -4px; flex: none; text-transform: uppercase; }
.svc-facebook { background: #1877f2; }
.svc-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.svc-tiktok { background: #111; box-shadow: inset -2px 0 0 #25f4ee, inset 2px 0 0 #fe2c55; }

/* statuses */
.badge.st-held { background: var(--line-soft); color: var(--ink-3); }
.badge.st-queued { background: var(--blue-soft); color: var(--blue); }
.badge.st-pushed { background: var(--accent-soft); color: var(--accent); }
.badge.st-sent { background: var(--good-soft); color: var(--good); }
.badge.st-error { background: #fbeceb; color: var(--bad); }

/* channel cards */
.chan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-bottom: 16px; }
.chan-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow); }
.chan-card:hover { text-decoration: none; border-color: #c9d6d3; }
.chan-card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.chan-card.off { opacity: .6; }
.chan-top { display: flex; align-items: center; gap: 10px; }
.chan-top img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.chan-top > div { flex: 1; min-width: 0; }
.chan-top b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-top span { display: block; }
.chan-nums { display: flex; gap: 16px; flex-wrap: wrap; }
.chan-nums span { font-size: 11.5px; color: var(--ink-3); display: flex; flex-direction: column; }
.chan-nums b { font-size: 18px; line-height: 22px; color: var(--ink); font-weight: 650; }
.chan-nums .bad b { color: var(--bad); }

/* tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 5px 10px; border-radius: 6px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.tabs a:hover { background: var(--line-soft); text-decoration: none; }
.tabs a.active { background: var(--accent-soft); color: var(--accent); }

/* post rows */
.plist { list-style: none; margin: 0; padding: 0; }
.prow { display: grid; grid-template-columns: 150px auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.prow:first-child { border-top: 0; }
.prow.is-sent { opacity: .75; }
.pwhen b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.pmedia { display: flex; gap: 4px; align-items: center; }
.pthumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); background: #eef1f0; display: inline-grid; place-items: center; font-size: 14px; color: var(--ink-3); }
.pthumb.video { background: #1d2a2d; color: #fff; }
.pmedia .more { font-size: 11px; color: var(--ink-3); }
.ptext { color: var(--ink); min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ptext:hover { text-decoration: none; }
.ptext:hover .pbody { color: var(--accent); }
.pchan { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.pbody { font-size: 13.5px; line-height: 19px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.perr { font-size: 12px; color: var(--bad); }
.pside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.moves { display: flex; gap: 2px; }
.iconbtn { width: 26px; height: 24px; border: 1px solid var(--line); background: var(--card); border-radius: 5px; cursor: pointer; color: var(--ink-2); font-size: 13px; line-height: 1; }
.iconbtn:hover { background: var(--line-soft); }
.plist .empty { padding: 18px 0; color: var(--ink-3); }

/* calendar */
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px 6px; margin-bottom: 10px; }
.cal-day h3 { margin: 2px 0 6px; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); }
.cal-day.today { border-color: var(--accent); }
.cal-day.today h3 { color: var(--accent); }
.cal-day.past { opacity: .7; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.cal-list li:first-child { border-top: 0; }
.cal-time { font-weight: 650; font-variant-numeric: tabular-nums; width: 42px; }
.cal-media .pthumb { width: 30px; height: 30px; }
.cal-text { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.btn.on { border-color: var(--accent); color: var(--accent); }

/* post form */
.chan-pick, .when { border: 0; padding: 0; margin: 0 0 14px; }
.chan-pick legend, .when legend, .media-field .lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: block; }
.form label.chk, .form label.radio { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.form label.chk input, .form label.radio input[type=radio] { width: auto; height: auto; margin: 0; }
.chan-pick { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.chan-pick legend { width: 100%; }
.when input[type=datetime-local] { width: auto; height: 32px; margin-left: 6px; }
.counter { display: block; margin-top: 4px; }
.counter.over { color: var(--bad); font-weight: 600; }
.media-field { margin-bottom: 14px; }
.media-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.mp-item { position: relative; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #e9eeed; padding: 0; }
.mp-item img, .mp-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .media-pick .mp-item:not(.mp-lib) { width: 160px; height: 160px; }
.mp-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: rgba(13, 26, 30, .7); }
.mp-actions button { flex: 1; background: none; border: 0; color: #fff; height: 26px; cursor: pointer; font-size: 14px; }
.mp-actions button:hover { background: rgba(255, 255, 255, .15); }
.small-grid .mp-item { width: 84px; height: 84px; cursor: pointer; }
.mp-lib:hover { outline: 2px solid var(--accent); }
.mp-lib.added { opacity: .35; }
.library summary { cursor: pointer; font-size: 13px; color: var(--blue); margin: 4px 0; }
.upload { margin: 0 0 6px !important; }
details.fold summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }

/* channels / settings / events */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.kv { list-style: none; padding: 0; margin: 0 0 12px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.kv li:first-child { border-top: 0; }
.kv span { color: var(--ink-3); }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.events li:first-child { border-top: 0; }
.events .lv-error { color: var(--bad); }
.events .lv-warn { color: var(--warn); }
.btn-danger { background: var(--card); color: var(--bad); border-color: #e7c4c1; }
.btn-danger:hover { background: #fbeceb; }
h1 .badge { vertical-align: 4px; margin-left: 6px; }

@media (max-width: 760px) {
  .prow { grid-template-columns: 1fr auto; }
  .pmedia { display: none; }
  .pwhen { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .card .media-pick .mp-item:not(.mp-lib) { width: 120px; height: 120px; }
}
