:root {
    --green-950: #052f21;
    --green-900: #073a29;
    --green-800: #0a4b35;
    --green-700: #116047;
    --lime: #a8dc47;
    --lime-light: #d9f690;
    --cream: #f5f8eb;
    --ink: #10231b;
    --muted: #64726c;
    --line: #dfe7e2;
    --paper: #ffffff;
    --bg: #f5f7f3;
    --red: #ba3535;
    --amber: #9b6a16;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 91% 7%, rgba(168, 220, 71, .11), transparent 27rem),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.topbar {
    min-height: 78px;
    padding: 10px max(22px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgba(5, 47, 33, .09);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}

.product-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-wordmark { width: 176px; height: auto; }
.brand-divider { width: 1px; height: 34px; background: #d9e4dc; }
.brand-automation-mark { width: 47px; height: 40px; object-fit: contain; }
.product-brand strong {
    max-width: 112px;
    color: var(--green-950);
    font-size: 12px;
    line-height: 1.18;
    letter-spacing: -.02em;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #52635a;
    font-size: 13px;
    font-weight: 600;
}
nav a { text-decoration: none; transition: color .16s ease; }
nav a:hover { color: var(--green-700); }
.refresh-form { margin: 0; display: flex; }
.nav-refresh {
    padding: 8px 11px;
    color: var(--green-800);
    border: 1px solid #cfe0d5;
    border-radius: 9px;
    background: #f6faf5;
    font-size: 12px;
}
.nav-refresh:hover { color: var(--green-950); background: #edf7e7; }
.mobile-refresh, .mobile-refresh-form { display: none; }

.container { width: min(1180px, calc(100% - 32px)); margin: 30px auto 84px; }
.hero {
    min-height: 250px;
    padding: 39px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 235px auto;
    align-items: center;
    gap: 34px;
    overflow: hidden;
    position: relative;
    border: 1px solid #2c6b49;
    border-radius: 25px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(168, 220, 71, .28), transparent 17rem),
        linear-gradient(125deg, #052f21 0%, #0a4b35 67%, #146445 100%);
    box-shadow: 0 22px 55px rgba(5, 47, 33, .18);
}
.hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -140px;
    width: 350px;
    height: 260px;
    border: 2px solid rgba(217, 246, 144, .22);
    border-radius: 50%;
    transform: rotate(-11deg);
}
.hero-copy, .hero-mark, .hero form { position: relative; z-index: 1; }
.hero-copy p:last-child {
    max-width: 670px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .77);
    font-size: 15px;
    line-height: 1.65;
}
.hero-mark {
    width: 225px;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .22));
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; }
h2 { color: var(--green-950); font-size: 27px; }
h3 { margin: 10px 0 8px; color: var(--green-950); font-size: 19px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.small, small { color: var(--muted); font-size: 11px; }
.eyebrow {
    margin: 0 0 9px;
    color: #6c9d38;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero .eyebrow { color: #b9ea66; }

.stats {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.stats article {
    min-height: 126px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #d9e6d2;
    border-top: 4px solid var(--lime);
    border-radius: 16px;
    color: var(--green-950);
    background: #fff;
    box-shadow: 0 12px 30px rgba(5, 47, 33, .06);
}
.stats article small {
    color: #76a13e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.stats strong { margin-top: 5px; font-size: 34px; line-height: 1; letter-spacing: -.055em; }
.stats span { margin-top: 7px; color: #6c7971; font-size: 12px; }

.panel {
    margin: 20px 0;
    padding: 28px;
    border: 1px solid #d3e3ca;
    border-top: 4px solid #95d542;
    border-radius: 19px;
    background: var(--paper);
    box-shadow: 0 16px 38px rgba(16, 49, 31, .07);
}
.section-title {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #294638;
    font-size: 12px;
    font-weight: 600;
}
input, textarea, select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cedbd2;
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: white;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    border-color: #82bd38;
    box-shadow: 0 0 0 4px rgba(168, 220, 71, .18);
}
.selected-publication {
    color: var(--green-800);
    border-color: #a9cf7e;
    background: #f3faed;
    font-weight: 700;
}
button {
    padding: 10px 14px;
    border: 1px solid #cbd9d0;
    border-radius: 10px;
    color: #244437;
    background: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
button:hover { transform: translateY(-1px); background: #f4f8f2; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary {
    color: var(--green-950);
    border-color: #94cf35;
    background: linear-gradient(135deg, var(--lime-light), var(--lime));
    box-shadow: 0 9px 22px rgba(126, 186, 38, .2);
}
button.primary:hover { background: linear-gradient(135deg, #e5fca8, #9fd23f); }
button.danger { color: var(--red); border-color: #eac8c8; background: #fff6f5; }
button.full { width: 100%; margin-top: 20px; padding: 13px; }
.text-danger { color: var(--red); }

.post-form {
    padding: 21px;
    border: 1px solid #d8e6d1;
    border-radius: 15px;
    background: linear-gradient(145deg, #fbfef9, #f2f8ed);
}
.content-picker {
    margin-bottom: 16px;
    padding: 17px 19px;
    border: 1px solid #cfe2bf;
    border-radius: 14px;
    background: #f4faee;
}
.post-form button { margin-top: 16px; }
.cards { margin-top: 18px; display: grid; gap: 12px; }
.post-card {
    padding: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #dce7d8;
    border-radius: 15px;
    background: #fff;
}
.post-card.inactive { opacity: .65; background: #f7f8f6; }
.post-card p { margin: 4px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.status {
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef2ef;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.status.on, .status.completed { color: #27633f; background: #e9f7df; }
.status.off, .status.ignored { color: var(--muted); background: #eef2f0; }
.status.queued, .status.processing { color: var(--amber); background: #fff5d6; }
.status.error { color: var(--red); background: #fff0f0; }
.table-wrap { overflow-x: auto; }
.comment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.comment-summary div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf7;
}
.comment-summary strong { font-size: 24px; color: var(--ink); }
.comment-summary span { color: var(--muted); font-size: 13px; }
.comment-summary .completed { background: #eff9e9; }
.comment-summary .queued { background: #fff8e5; }
.comment-summary .error { background: #fff2f2; }
.comment-history td { vertical-align: top; }
.comment-author, .comment-text, .comment-reply, .comment-post, .delivery-flags {
  display: block;
}
.comment-author { margin-bottom: 5px; color: var(--ink); }
.comment-text, .comment-reply { line-height: 1.45; }
.comment-reply { margin-top: 6px; color: var(--muted); }
.comment-post { max-width: 180px; font-weight: 700; }
.delivery-flags { margin-top: 7px; }
.delivery-flags i {
  display: inline-block;
  margin: 3px 5px 0 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.delivery-flags i.sent { color: #27633f; background: #e9f7df; }

@media (max-width: 760px) {
  .comment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-history { overflow: visible; }
  .comment-history table, .comment-history tbody, .comment-history tr, .comment-history td {
    display: block;
    width: 100%;
  }
  .comment-history thead { display: none; }
  .comment-history tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }
  .comment-history td {
    padding: 9px 0;
    border: 0;
  }
  .comment-history td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .comment-post { max-width: none; }
}
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
    color: #758179;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
}
th, td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: #f8fbf6; }
details { max-width: 240px; margin-top: 7px; color: var(--red); }
summary { cursor: pointer; font-size: 11px; font-weight: 600; }
.panel > details { width: 100%; max-width: none; color: inherit; }
#diagnostics table { min-width: 760px; }
#diagnostics th:first-child { width: 170px; }
#diagnostics th:nth-child(2) { width: 230px; }
.technical {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid #dce7d8;
    border-radius: 13px;
    background: #f6f9f4;
    font-size: 12px;
}
code { color: var(--green-700); word-break: break-all; }
.alert {
    margin: 14px 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}
.alert.success { color: #075b41; border-color: #9fe3cb; background: #effbf6; }
.alert.error { color: #9b1c1c; border-color: #ffc9c9; background: #fff4f4; }
.alert.warning { color: #6b4c00; border-color: #f2d184; background: #fff9e9; }
.empty { padding: 22px; color: var(--muted); text-align: center; }

.setup-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(168, 220, 71, .25), transparent 24rem),
        linear-gradient(145deg, #f9fbf6, #eef4ea);
}
.setup-card, .login-card {
    width: min(760px, 100%);
    padding: clamp(27px, 5vw, 45px);
    border: 1px solid #d6e4cf;
    border-top: 5px solid var(--lime);
    border-radius: 23px;
    background: white;
    box-shadow: 0 28px 75px rgba(5, 47, 33, .14);
}
.login-card { width: min(470px, 100%); }
.login-card .product-brand, .setup-card .product-brand { margin-bottom: 30px; }
.login-card .brand-wordmark, .setup-card .brand-wordmark { width: 180px; }
.login-card h1, .setup-card h1 { margin-bottom: 9px; }
.login-card form { margin-top: 24px; }
.login-hint { margin: 12px 0 0; text-align: center; }
.setup-card h2 { margin: 30px 0 15px; font-size: 18px; }

@media (max-width: 900px) {
    .product-brand strong, .topbar .brand-divider, .topbar .brand-automation-mark { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr) 170px; }
    .hero form { grid-column: 1 / -1; justify-self: start; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 74px; }
    .topbar {
        min-height: 70px;
        padding: 10px 14px;
        align-items: center;
        gap: 12px;
    }
    .topbar .brand-wordmark { width: 145px; }
    .app-nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .app-nav > a { display: none; }
    .app-nav > a:last-child { display: inline; font-size: 11px; }
    .nav-refresh { display: none; }
    .mobile-refresh-form {
        position: fixed;
        z-index: 20;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        display: block;
        margin: 0;
    }
    .mobile-refresh {
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--green-950);
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--lime-light), var(--lime));
        box-shadow: 0 12px 30px rgba(75, 123, 38, .28);
    }
    .container { width: min(100% - 24px, 1180px); margin-top: 18px; }
    .hero {
        min-height: 0;
        padding: 28px 22px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 20px;
    }
    .hero h1 { font-size: 39px; }
    .hero-mark { width: 190px; justify-self: center; }
    .hero form { width: 100%; }
    .hero form button { width: 100%; }
    .grid.two { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats article { min-height: 108px; padding: 16px; }
    .stats article:last-child { grid-column: 1 / -1; }
    .section-title, .post-card { align-items: stretch; flex-direction: column; }
    .section-title form button { width: 100%; }
    .actions { justify-content: flex-start; }
    .panel { padding: 19px; border-radius: 17px; }
    .product-brand { flex-wrap: wrap; }
    .login-card .brand-wordmark, .setup-card .brand-wordmark { width: 160px; }
    .login-card .brand-automation-mark, .setup-card .brand-automation-mark { width: 42px; }
}

/* Profesjonalny układ aplikacji v38 */
.app-nav > a { padding: 9px 11px; border-radius: 10px; }
.app-nav > a.active { color: var(--green-950); background: #eef7e9; }

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.dashboard-links a {
    min-height: 148px;
    padding: 27px;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 19px;
    border: 1px solid #d8e6d2;
    border-radius: 17px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 12px 28px rgba(5, 47, 33, .05);
    transition: transform .16s ease, border-color .16s ease;
}
.dashboard-links a:hover { transform: translateY(-2px); border-color: #9dcf62; }
.dashboard-links a > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--green-800);
    background: #edf8e6;
}
.dashboard-links a > span svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dashboard-links div { min-width: 0; display: grid; gap: 5px; }
.dashboard-links b { color: var(--green-950); font-size: 18px; line-height: 1.25; }
.dashboard-links small { font-size: 12px; line-height: 1.45; }
.dashboard-links i { color: #7fa73f; font-size: 34px; font-style: normal; font-weight: 300; }

.picker-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.picker-heading > div { display: grid; gap: 3px; }
.picker-heading > span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #587449;
    background: #e7f3dd;
    font-size: 10px;
    font-weight: 700;
}
.facebook-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.facebook-content-item {
    min-width: 0;
    display: grid;
    align-content: start;
}
.facebook-content-item .facebook-content-card { width: 100%; }
.facebook-preview-open {
    width: calc(100% - 16px);
    margin: 7px 8px 0;
    padding: 7px 8px;
    color: var(--green-800);
    border-color: #d5e2d7;
    font-size: 11px;
    background: #fff;
}
.facebook-preview-modal {
    padding: 18px;
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 100;
    inset: 0;
    background: rgba(3, 24, 17, .72);
    backdrop-filter: blur(5px);
}
.facebook-preview-modal[hidden] { display: none; }
.facebook-preview-dialog {
    width: min(540px, 100%);
    max-height: calc(100vh - 36px);
    padding: 14px;
    display: grid;
    grid-template-rows: auto minmax(320px, 1fr) auto;
    gap: 10px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}
.facebook-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.facebook-preview-header button {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
}
.facebook-preview-dialog iframe {
    width: 100%;
    height: min(680px, calc(100vh - 170px));
    border: 0;
    border-radius: 12px;
    background: #f2f4f2;
}
.facebook-preview-dialog > a { text-align: center; }
body.preview-open { overflow: hidden; }
.facebook-content-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 105px 1fr;
    position: relative;
    border: 2px solid transparent;
    border-radius: 13px;
    text-align: left;
    background: #fff;
    box-shadow: 0 7px 19px rgba(5, 47, 33, .06);
}
.facebook-content-card:hover { transform: translateY(-2px); border-color: #badc91; }
.facebook-content-card.selected { border-color: #69a927; box-shadow: 0 0 0 4px rgba(168, 220, 71, .2); }
.facebook-thumb { overflow: hidden; display: grid; place-items: center; position: relative; color: #fff; background: #edf2ed; }
.facebook-thumb img { width: 100%; height: 100%; object-fit: contain; }
.facebook-thumb i { font: 800 54px/1 Arial, sans-serif; }
.facebook-thumb em {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    position: absolute;
    color: white;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: rgba(5, 47, 33, .78);
    font-size: 14px;
    font-style: normal;
}
.facebook-card-copy { min-width: 0; padding: 11px; display: grid; gap: 5px; }
.facebook-card-copy b { overflow: hidden; font-size: 11px; line-height: 1.35; }
.picker-check {
    width: 25px;
    height: 25px;
    display: none;
    place-items: center;
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    border-radius: 50%;
    background: #5f9f22;
}
.facebook-content-card.selected .picker-check { display: grid; }

.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-card {
    min-width: 0;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    border-radius: 17px;
}
.post-preview { min-height: 178px; overflow: hidden; display: grid; place-items: center; position: relative; color: #fff; border-radius: 16px 0 0 0; background: linear-gradient(145deg, #1767d9, #0b4e9f); }
.post-preview img { width: 100%; height: 100%; object-fit: cover; }
.post-preview > span { font: 800 58px/1 Arial, sans-serif; }
.post-preview > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    position: absolute;
    color: #fff;
    border-radius: 50%;
    background: rgba(5, 47, 33, .78);
    font-size: 13px;
    font-style: normal;
}
.post-card-main { min-width: 0; padding: 18px; }
.post-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-caption { min-height: 38px; color: #607068; font-size: 11px; line-height: 1.5; }
.post-meta { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.post-meta span { min-width: 0; padding: 9px; display: grid; gap: 2px; border-radius: 10px; background: #f5f8f3; }
.post-meta b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.post-card-actions {
    padding: 12px 16px;
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e4ece2;
    border-radius: 0 0 16px 16px;
    background: #fbfcfa;
}
.button-link {
    padding: 10px 13px;
    border: 1px solid #cbd9d0;
    border-radius: 10px;
    color: #244437;
    text-decoration: none;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
}
.post-more { max-width: none; margin: 0 0 0 auto; position: relative; color: inherit; }
.post-more > summary { padding: 10px 13px; list-style: none; border: 1px solid #cbd9d0; border-radius: 10px; background: #fff; }
.post-more > summary::-webkit-details-marker { display: none; }
.post-more > div {
    width: 280px;
    padding: 12px;
    display: grid;
    gap: 8px;
    position: absolute;
    z-index: 6;
    right: 0;
    top: calc(100% + 7px);
    border: 1px solid #d8e3da;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(5, 47, 33, .16);
}
.post-more form { display: grid; gap: 7px; }
.post-more button { width: 100%; }
.mobile-tabs { display: none; }
.mobile-view-header { display: none; }

@media (max-width: 900px) {
    .dashboard-links { grid-template-columns: 1fr; }
    .dashboard-links a { min-height: 124px; }
    .facebook-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { padding-bottom: 0; }
    .content-picker { padding: 14px; }
    .picker-heading { align-items: flex-start; }
    .facebook-picker-grid { grid-template-columns: 1fr; gap: 9px; }
    .facebook-content-card {
        min-height: 112px;
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: 1fr;
        align-items: stretch;
    }
    .facebook-preview-open { min-height: 38px; font-size: 12px; }
    .facebook-preview-modal { padding: 8px; }
    .facebook-preview-dialog {
        max-height: calc(100vh - 16px);
        padding: 10px;
        border-radius: 14px;
    }
    .facebook-thumb { min-height: 108px; }
    .facebook-card-copy { align-content: center; padding: 12px 13px; }
    .facebook-card-copy b { font-size: 13px; line-height: 1.4; }
    .post-card { grid-template-columns: 112px minmax(0, 1fr); flex-direction: initial; }
    .post-preview { min-height: 160px; }
    .post-meta { grid-template-columns: 1fr; }
    .post-card-actions { align-items: stretch; }
    .post-card-actions form, .post-card-actions button, .button-link { flex: 1; text-align: center; }
    .post-more { margin-left: 0; }
    .post-more > div { position: fixed; right: 12px; bottom: 76px; top: auto; width: calc(100vw - 24px); }
    .mobile-tabs {
        min-height: 48px;
        padding: 5px 7px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: sticky;
        z-index: 9;
        top: 70px;
        border-top: 0;
        border-bottom: 1px solid #dce7df;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(15px);
    }
    .mobile-tabs a { padding: 7px 2px; border-radius: 8px; text-align: center; text-decoration: none; color: #64736b; font-size: 10px; font-weight: 600; }
    .mobile-tabs a.active { color: var(--green-950); background: #edf7e8; }
    .mobile-refresh-form { display: none; }
    .mobile-view-header {
        margin-bottom: 12px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1px solid #d9e5dc;
        border-radius: 12px;
        background: #fff;
    }
    .mobile-view-header a {
        color: var(--green-800);
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }
    .mobile-view-header strong { color: var(--muted); font-size: 12px; }
    .dashboard-links a {
        min-height: 112px;
        padding: 18px;
        grid-template-columns: 56px 1fr auto;
        gap: 14px;
    }
    .dashboard-links a > span { width: 56px; height: 56px; border-radius: 15px; }
    .dashboard-links a > span svg { width: 28px; height: 28px; }
    .dashboard-links b { font-size: 16px; }
    .dashboard-links small { font-size: 12px; }
}
