:root {
  --bg: #f6f7f9; --surface: #ffffff; --text: #1b2430; --muted: #5b6675; --line: #e2e6ec;
  --brand: #1a6b5a; --brand-ink: #ffffff; --brand-soft: #e3f2ee;
  --warn: #8a5a00; --warn-soft: #fff4dc; --bad: #a32323; --bad-soft: #fde8e8; --ok: #17643f; --ok-soft: #e0f5e9; --info: #2a55c7; --info-soft: #e3ecff; --att: #b5530c; --att-soft: #ffe9d6;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,30,40,.06), 0 8px 24px rgba(20,30,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161c; --surface: #1a212a; --text: #eaeff5; --muted: #9aa6b5; --line: #2a3441;
    --brand: #4fc3a1; --brand-ink: #06231b; --brand-soft: #16332c;
    --warn: #f0c25b; --warn-soft: #33290f; --bad: #ff8f8f; --bad-soft: #3a1b1b; --ok: #6fdb9f; --ok-soft: #12301f; --info: #8fb0ff; --info-soft: #1c2a4d; --att: #ffab6b; --att-soft: #3d2512;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #11161c; --surface: #1a212a; --text: #eaeff5; --muted: #9aa6b5; --line: #2a3441;
  --brand: #4fc3a1; --brand-ink: #06231b; --brand-soft: #16332c;
  --warn: #f0c25b; --warn-soft: #33290f; --bad: #ff8f8f; --bad-soft: #3a1b1b; --ok: #6fdb9f; --ok-soft: #12301f; --info: #8fb0ff; --info-soft: #1c2a4d; --att: #ffab6b; --att-soft: #3d2512;
  --shadow: none;
}
.profile-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.profile-head form { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 14px; padding: 7px 8px 7px 18px; border: 2px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 1.05rem; cursor: pointer; }
.switch.disabled { opacity: .6; cursor: default; }
.switch-knob { position: relative; width: 56px; height: 32px; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: left .15s; }
.switch.on .switch-knob { background: #3f6af5; }
.switch.on .switch-knob::after { left: 27px; }
nav { display: flex; align-items: center; }
details.menu { position: relative; margin-left: 16px; }
details.menu summary { cursor: pointer; font-size: .95rem; color: var(--brand); list-style: none; text-decoration: underline; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 34px; z-index: 50; width: 280px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.menu-panel .theme-pick { margin-top: 10px; }
.menu-who { margin: 0 0 8px; overflow-wrap: anywhere; }
.menu-links { list-style: none; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.menu-links a { display: block; margin: 0; padding: 8px 4px; color: var(--text); text-decoration: none; border-radius: 8px; }
.menu-links a:hover { background: var(--brand-soft); }
.plan { border: 2px solid var(--brand); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; background: var(--brand-soft); }
.plan .price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.plan ul { margin: 12px 0 0; padding-left: 20px; }
.plan li { margin: 4px 0; }
a.tile { color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--brand); }
.trows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trow { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px 12px; padding: 4px 14px 4px 6px; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow > details { min-width: 0; }
.trow summary { display: flex; align-items: center; gap: 12px; padding: 12px 6px; cursor: pointer; list-style: none; }
.trow summary::-webkit-details-marker { display: none; }
.trow summary::after { content: "›"; margin-left: 4px; color: var(--muted); font-size: 1.3rem; transition: transform .15s; }
.trow details[open] > summary::after { transform: rotate(90deg); }
.dchip { display: grid; justify-items: center; min-width: 54px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; line-height: 1.15; }
.dchip small { font-size: .66rem; letter-spacing: .06em; color: var(--muted); }
.dchip b { font-size: 1.15rem; }
.thumb { flex: 0 0 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttext { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ttext strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ttime { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.tactions { display: flex; gap: 8px; align-items: center; padding-top: 18px; }
.tactions form { margin: 0; }
.gpost { margin: 2px 8px 16px 78px; max-width: 940px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gpost.textonly { max-width: 640px; }
.gpost.pair { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; }
.gpost.pair .gpost-head { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.gpost.pair .gpost-img { grid-column: 1; grid-row: 2; }
.gpost.pair .gpost-text { grid-column: 2; grid-row: 2; align-self: start; padding: 16px 18px; }
@media (max-width: 720px) { .gpost { margin-left: 12px; } .gpost.pair { display: block; } }
.gpost-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.gpost-head > div { flex: 1; display: grid; }
.gpost-head small { color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--info); font-weight: 700; }
.gpost-img { display: block; width: 100%; height: auto; }
.gpost-note { margin: 0; padding: 10px 14px; background: var(--bg); color: var(--muted); font-size: .88rem; }
.gpost-text { margin: 0; padding: 12px 14px 14px; white-space: pre-line; }
.gpost-reason { margin: 0; padding: 12px 14px 4px; }
.gpost details { padding: 0 14px 12px; }
.card.empty { text-align: center; padding: 36px 20px; border-style: dashed; box-shadow: none; }
@media (max-width: 640px) { .trow { grid-template-columns: 1fr; } .tactions { padding: 0 6px 12px; } .ttime { display: none; } }
.cta-form { margin: 16px -20px -20px; }
.cta-bar { display: grid; justify-items: center; gap: 2px; width: 100%; border: 0; cursor: pointer; padding: 16px 20px; font: inherit;
  background: #3f6af5; color: #fff; border-radius: 0 0 var(--radius) var(--radius); font-size: 1.02rem; }
.cta-bar:hover { filter: brightness(1.08); }
.cta-bar strong { font-size: 1.15rem; }
.badge.lockb { display: inline-flex; align-items: center; gap: 6px; background: var(--info-soft); color: var(--info); }
.locked-wrap { position: relative; border-radius: 12px; overflow: hidden; margin: 12px 0; background: var(--line); }
.locked-wrap img { display: block; width: 100%; height: auto; }
.locked-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 36px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(8, 14, 28, .92) 35%, rgba(8, 14, 28, 0)); }
.locked-overlay span { font-size: .92rem; opacity: .92; max-width: 46ch; }
.locked-cta { display: grid; justify-items: center; gap: 8px; margin: 14px 0 4px; text-align: center; }
.locked-cta p { margin: 0; }
details.picker { position: relative; display: inline-block; margin: 0 0 20px; }
details.picker summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
details.picker summary::-webkit-details-marker { display: none; }
details.picker .count { background: var(--line); border-radius: 999px; padding: 1px 9px; font-size: .8rem; }
ul.picker-list { position: absolute; z-index: 30; left: 0; top: 52px; min-width: 280px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
ul.picker-list a { display: block; margin: 0; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
ul.picker-list a:hover, ul.picker-list a[aria-current] { background: var(--brand-soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tile strong { font-size: 1.9rem; line-height: 1.1; }
.tile.warn { border-color: var(--att); background: var(--att-soft); }
ul.attn-list { list-style: none; margin: 8px 0 0; padding: 0; }
li.attn { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
li.attn:first-child { border-top: 0; }
li.attn.bad > div strong { color: var(--bad); }
li.attn.warn > div strong { color: var(--att); }
details.errs { margin-top: 6px; }
details.errs summary { cursor: pointer; list-style: none; display: inline-block; }
details.errs summary::-webkit-details-marker { display: none; }
ul.errlist { list-style: none; margin: 8px 0 4px; padding: 10px 12px; width: min(340px, 70vw); background: var(--bad-soft); border-radius: 10px; font-size: .88rem; }
ul.errlist li { margin: 0 0 8px; }
.tech { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; overflow-wrap: anywhere; }
nav.tabs { display: flex; gap: 8px; margin: 12px 0 20px; }
nav.tabs .tab { margin: 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--surface); }
nav.tabs .tab.on { border-color: #3f6af5; color: #3f6af5; font-weight: 600; }
.bill-plan { font-size: 1.5rem; margin: 0 0 16px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts-grid div { display: grid; gap: 2px; }
.facts-grid strong { font-size: 1.15rem; }
table.invoices td.actions { text-align: right; }
table.invoices td.actions form { margin: 0; display: inline; }
table.invoices { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
table.invoices th, table.invoices td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
.switch-help { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; }
.stars { display: inline-flex; gap: 2px; font-size: 1.5rem; line-height: 1; }
.star { color: var(--line); }
.star.full { color: #f5b301; }
.star.half { background: linear-gradient(90deg, #f5b301 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
h1.profile-title { margin: 0 0 6px; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.profiles { display: grid; gap: 16px; margin: 16px 0; }
.profile-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.profile-card h2 a { color: var(--text); text-decoration: none; }
.theme-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.settings h3 { font-size: 1rem; margin: 18px 0 8px; }
.settings h3:first-of-type { margin-top: 4px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; letter-spacing: -.01em; color: var(--text); text-decoration: none; font-size: 1.1rem; }
nav a { margin-left: 16px; font-size: .95rem; }
main { padding: 32px 0 56px; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero { padding: 24px 0 8px; }
.btn { display: inline-block; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 24px; font: inherit;
  font-weight: 600; text-decoration: none; background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 28px 0; }
.step { font-size: .8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.badge.active { background: var(--ok-soft); color: var(--ok); }
.badge.pending, .badge.paused { background: var(--warn-soft); color: var(--warn); }
.badge.auth_error { background: var(--bad-soft); color: var(--bad); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); font-size: .92rem; }
.post { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; }
.post img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--line); }
.post .noimg { width: 96px; height: 72px; border-radius: 10px; background: var(--brand-soft); }
.post p { margin: 0 0 4px; white-space: pre-line; }
.list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.list button { width: 100%; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font: inherit; cursor: pointer; }
.list button:hover { border-color: var(--brand); }
.list strong { display: block; }
.choice { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.choice:has(input:checked:not(:disabled)) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); }
.choice strong { display: block; }
.profile-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.profile-link:hover { border-color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px;
  text-decoration: none; font-size: .92rem; }
.chip.on { border-color: var(--brand); background: var(--brand-soft); }
.chip b { margin-left: 4px; color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.admin { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .93rem; }
table.admin th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.admin td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin tr:last-child td { border-bottom: 0; }
table.admin a { text-decoration: none; }
/* Administração em tela cheia, no estilo de um gerenciador de anúncios: ocupa a largura toda, a tabela preenche a altura
   que sobra e rola por dentro (a barra horizontal fica sempre na base da tela), com cabeçalho e 1ª coluna fixos. */
body.wide .wrap { max-width: none; padding: 0 24px; }
body.fullscreen { height: 100vh; display: flex; flex-direction: column; }
body.fullscreen main { flex: 1; min-height: 0; overflow: auto; padding: 18px 0 14px; }
body.fullscreen main > .wrap { height: 100%; display: flex; flex-direction: column; min-height: 0; }
body.fullscreen .tablewrap { flex: 1; min-height: 260px; overflow: auto; }
body.fullscreen footer.bottom { display: none; }
body.fullscreen h1 { font-size: 1.6rem; margin-bottom: 6px; }
body.fullscreen .filters { margin: 12px 0; }
table.admin { min-width: 980px; }
table.admin thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
table.admin th:first-child, table.admin td:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface);
  min-width: 240px; max-width: 380px; box-shadow: 1px 0 0 var(--line); }
table.admin thead th:first-child { z-index: 4; }
table.admin td { white-space: nowrap; }
table.admin td:first-child, table.admin td ul.errlist { white-space: normal; }
form.inline { display: inline; margin: 0; }
.stack { display: grid; gap: 10px; margin: 12px 0; }
textarea.input { font: inherit; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); resize: vertical; line-height: 1.5; }
.notice.flash { margin: 0 0 16px; }
.draft .post > .stack { margin: 0; }
.mt12 { margin-top: 12px; }
.mt20 { margin-top: 20px; }
.post.noborder { border-top: 0; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, .86); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default; background: #222; min-width: 120px; min-height: 120px; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  font-size: 2rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .18); cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
a.zoom { display: block; line-height: 0; border-radius: 10px; cursor: zoom-in; }
a.zoom:hover img { filter: brightness(1.08); outline: 2px solid var(--brand); }
.card.draft { margin-top: 16px; }
.draft-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.draft-head .when { text-align: right; }
.draft .post p { white-space: pre-line; }
.draft .post { grid-template-columns: 1fr; }
.draft .post img { width: 100%; height: auto; }
.draft .post .noimg { display: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.duo > .card { margin: 0; }
.draft-top { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.draft-top > div { flex: 1 1 0; min-width: 0; }
.draft-top h2 { margin-top: 0; }
a.draft-photo { flex: 0 0 min(46%, 320px); line-height: 0; }
a.draft-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; background: var(--line); }
.draft-text { white-space: pre-line; margin: 0 0 14px; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } .draft-top { flex-direction: column; } a.draft-photo { flex-basis: auto; width: 100%; } }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; }
.cal-nav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
table.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; text-align: center; }
table.cal th { color: var(--muted); font-weight: 600; font-size: .85rem; }
table.cal td { padding: 10px 0; border-radius: 10px; border: 1px solid transparent; }
table.cal td.other { opacity: .35; }
table.cal td.today { border-color: var(--muted); }
.k-done { background: var(--brand); color: #fff; font-weight: 700; }
.k-next { background: var(--brand-soft); border-color: var(--brand) !important; font-weight: 700; }
.k-later { border: 1px dashed var(--brand) !important; }
.k-skipped { text-decoration: line-through; background: var(--line); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 12px 0 0; font-size: .88rem; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; }
.dot.k-later { border: 1px dashed var(--brand); }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.facts { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.notice {border-radius: 12px; padding: 14px 16px; background: var(--brand-soft); }
details.danger { margin-top: 28px; }
details summary { cursor: pointer; color: var(--muted); }
input[type=text] { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: min(100%, 260px); }
footer.bottom { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); font-size: .9rem; }
footer.bottom a { margin-right: 16px; }
.legal h2 { margin-top: 24px; }
.legal li { margin-bottom: 6px; }
@media (max-width: 520px) { .post { grid-template-columns: 72px 1fr; } .post img, .post .noimg { width: 72px; height: 54px; }
  .draft .post { grid-template-columns: 1fr; } .draft .post img { width: 100%; height: auto; } }

/* Cartão da próxima postagem: o mesmo cartão muda conforme a situação */
.badge.scheduled { background: var(--ok-soft); color: var(--ok); }
.badge.draftb { background: var(--info-soft); color: var(--info); }
.badge.attention { background: var(--att-soft); color: var(--att); }
.badge.done { background: var(--line); color: var(--text); }
.post-card { padding: 20px; }
.pc-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pc-head > div { flex: 1; min-width: 0; }
.pc-head h2 { margin: 0; font-size: 1.15rem; }
.pc-head p { margin: 2px 0 0; font-size: .92rem; }
.pc-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--muted); }
a.pc-photo { display: block; line-height: 0; margin-bottom: 12px; }
a.pc-photo img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--line); }
.pc-source { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.post-card .draft-text { font-size: 1.05rem; margin: 0 0 4px; }
.pc-caption { font-size: .82rem; color: var(--muted); margin: 0 0 16px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pc-actions form { margin: 0; }
.btn.primary { background: #3f6af5; border-color: #3f6af5; color: #fff; }
.pc-note { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); margin: 0; }
details.more { position: relative; }
details.more summary { list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; z-index: 40; right: 0; top: 46px; min-width: 220px; padding: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.pc-error { background: var(--att-soft); color: var(--text); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.pc-mini { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
/* Texto da postagem como no Google: cortado, com "… mais" que abre o resto (sem JavaScript) */
.gt-toggle { position: absolute; opacity: 0; pointer-events: none; }
.gtext { font-size: 1.08rem; line-height: 1.5; margin: 0 0 6px; white-space: pre-line; }
.gt-full { display: none; }
.gt-toggle:checked ~ .gtext .gt-short { display: none; }
.gt-toggle:checked ~ .gtext .gt-full { display: inline; }
.gt-more { color: var(--brand); text-decoration: underline; cursor: pointer; white-space: nowrap; }

input[type=text].wide { width: 100%; }
input[type=number] { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 6em; }
select { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

ul.checks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
ul.checks li { padding-left: 26px; position: relative; }
ul.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
main section.card + section, main section.grid + section { margin-top: 20px; }

.trend { font-size: .85rem; font-weight: 600; }
.trend.up { color: var(--ok, #1a7f4b); }
.trend.down { color: var(--bad, #b3261e); }
