:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e4e7ec;
    --surface: #fff;
    --canvas: #f6f7f9;
    --green: #13a538;
    --blue: #1877f2;
}
* {
    box-sizing: border-box;
}
html,
body {
    min-height: 100%;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
.app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}
.app-sidebar {
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background: #fff;
}
.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px;
    font-size: 19px;
    font-weight: 800;
}
.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #111827;
    color: #fff;
}
.sidebar-nav {
    margin-top: 42px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 8px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
}
.sidebar-nav a.is-active {
    background: #f0fdf4;
    color: #138a32;
}
.sidebar-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.sidebar-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.side-icon {
    color: var(--primary);
}
.app-main {
    min-width: 0;
}
.topbar {
    display: flex;
    height: 72px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}
.add-account-button,
.workspace-select {
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.add-account-button {
    background: #111827;
    color: #fff;
}
.workspace-select span {
    margin-left: 10px;
}
.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 23px;
}
.platform-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 88px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.platform-button {
    display: flex;
    min-width: 150px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}
.platform-button b {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 6px;
    background: #101828;
    color: #fff;
    font-size: 18px;
}
.platform-button.is-active {
    border-color: #15a63b;
    background: #15a63b;
    color: #fff;
}
.platform-button.facebook.is-active b {
    background: #fff;
    color: #1877f2;
}
.platform-button.twitter.is-active b {
    background: #fff;
    color: #111;
}
.app-alert {
    margin: 20px 32px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
}
.app-alert-success {
    border: 1px solid #a6f4c5;
    background: #ecfdf3;
    color: #027a48;
}
.app-alert-error {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}
.page-content {
    max-width: 1220px;
    margin: 0 auto;
    padding: 32px;
}
.content-tabs {
    display: flex;
    gap: 0;
    overflow: auto;
    border-bottom: 1px solid #d0d5dd;
}
.content-tabs a {
    flex: 0 0 auto;
    padding: 13px 17px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.content-tabs a:hover {
    color: #101828;
}
.content-tabs a.is-active {
    border-bottom-color: #16a34a;
    color: #15803d;
}
.wire-panel {
    min-height: 560px;
    padding: 30px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}

/* Connected accounts */
.connect-content {
    max-width: 980px;
}
.connect-page-header {
    margin-bottom: 26px;
}
.connect-page-header h1 {
    margin: 0 0 8px;
    font-size: 31px;
    letter-spacing: -0.03em;
}
.connect-page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}
.connection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.connection-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.connection-card:hover {
    border-color: #98a2b3;
    box-shadow: 0 5px 15px rgba(16, 24, 40, 0.06);
}
.connection-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 8px;
    background: #f2f4f7;
    color: #344054;
    font-size: 17px;
    font-weight: 800;
}
.connection-icon.facebook {
    background: #eaf2ff;
    color: #1877f2;
}
.connection-icon.twitter {
    background: #edf0f2;
    color: #111;
}
.connection-icon.instagram {
    background: #fff1f3;
    color: #c01048;
}
.connection-icon.linkedin {
    background: #eff8ff;
    color: #026aa2;
}
.connection-icon.pinterest {
    background: #fff1f3;
    color: #c01048;
}
.connection-icon.line {
    background: #ecfdf3;
    color: #039855;
}
.connection-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.connection-copy strong {
    font-size: 15px;
}
.connection-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}
.connection-action {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Posts */
.feed-panel {
    padding: 18px 28px;
}
.social-post {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 42px;
    gap: 22px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.social-post:last-child {
    border-bottom: 0;
}
.post-image {
    position: relative;
    width: 130px;
    height: 120px;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #f8fafc;
}
.post-image img,
.post-image iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.post-image.is-empty::before,
.post-image.is-empty::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 155px;
    height: 1px;
    background: #98a2b3;
    content: "";
}
.post-image.is-empty::before {
    transform: translate(-50%, -50%) rotate(43deg);
}
.post-image.is-empty::after {
    transform: translate(-50%, -50%) rotate(-43deg);
}
.post-copy h2 {
    margin: 0 0 8px;
    font-size: 18px;
}
.post-copy p {
    max-width: 720px;
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
}
.post-actions {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    color: #475467;
    font-size: 23px;
}
.post-actions.buttons {
    gap: 8px;
}
.post-actions.buttons span {
    padding: 6px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}
.mood {
    color: #667085;
    font-size: 28px;
    text-align: center;
}

/* Analytics */
.analytics-panel {
    padding: 28px;
}
.analytics-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.analytics-heading h1 {
    margin: 0;
    font-size: 23px;
}
.analytics-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.period-select {
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.metric-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 25px;
}
.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
    gap: 16px;
}
.analytics-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.analytics-card h2 {
    margin: 0 0 18px;
    font-size: 15px;
}
.activity-bars {
    display: flex;
    height: 220px;
    align-items: flex-end;
    gap: 6px;
    padding: 15px 4px 25px;
    border-bottom: 1px solid #d0d5dd;
}
.activity-column {
    display: flex;
    height: 100%;
    min-width: 8px;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}
.bar-published,
.bar-failed {
    display: block;
    width: 42%;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
}
.bar-published {
    background: #16a34a;
}
.bar-failed {
    background: #98a2b3;
}
.platform-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 13px;
    color: #475467;
    font-size: 12px;
}
.platform-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaecf0;
}
.platform-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
}

/* Campaign composer */
.page-content {
    transition: opacity 140ms ease;
}

.page-content.is-workspace-loading {
    opacity: 0.48;
    pointer-events: none;
}

.content-engine {
    display: flex;
    min-height: 330px;
    align-items: flex-start;
    gap: 20px;
    padding: 42px;
}

.content-engine > div {
    max-width: 720px;
}

.content-engine-kicker {
    color: #1677ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-engine h1 {
    margin: 7px 0 10px;
    font-size: 28px;
}

.content-engine p {
    margin: 0 0 22px;
    color: #667085;
    line-height: 1.65;
}

.campaign-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
    gap: 28px;
    padding: 30px;
}
.form-errors {
    grid-column: 1/-1;
    padding: 12px 15px;
    border: 1px solid #fecdca;
    border-radius: 7px;
    background: #fef3f2;
    color: #b42318;
    font-size: 13px;
}
.form-errors ul {
    margin: 6px 0 0 18px;
}
.campaign-form input[type="text"],
.campaign-form input[type="datetime-local"],
.campaign-form textarea,
.campaign-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    outline: 0;
}
.campaign-form input[type="text"]:focus,
.campaign-form input[type="datetime-local"]:focus,
.campaign-form textarea:focus,
.campaign-form select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.campaign-form textarea {
    height: 190px;
    margin-top: 15px;
    resize: vertical;
}
.youtube-options,
.instagram-options {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}
.youtube-options label,
.instagram-options label {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}
.youtube-options small,
.instagram-options small {
    color: #667085;
    font-size: 12px;
}
.account-selector {
    margin-bottom: 15px;
}
.account-selector > span {
    display: block;
    margin-bottom: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}
.account-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.account-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    font-size: 12px;
}
.account-option input {
    width: auto;
}
.no-account {
    padding: 10px 12px;
    border: 1px dashed #d0d5dd;
    border-radius: 7px;
    color: #667085;
    font-size: 12px;
}
.no-account a {
    color: #15803d;
    font-weight: 700;
}
.media-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.media-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.media-add {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.image-placeholder {
    display: grid;
    width: 58px;
    height: 52px;
    place-items: center;
    border: 1px dashed #98a2b3;
    border-radius: 6px;
    color: #667085;
    font-size: 12px;
}
.media-help,
.media-selection {
    margin: 7px 0 0;
    color: #667085;
    font-size: 12px;
}
.media-selection {
    overflow-wrap: anywhere;
}
.media-client-error {
    margin-top: 10px;
}
.publish-options {
    display: flex;
    gap: 25px;
    margin: 23px 0;
}
.publish-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}
.publish-options input {
    width: auto;
    accent-color: #16a34a;
}
.schedule-fields {
    display: grid;
    gap: 7px;
    margin: -8px 0 20px;
    padding: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #f9fafb;
}
.schedule-fields[hidden] {
    display: none;
}
.schedule-fields label {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}
.schedule-fields small {
    color: #667085;
    font-size: 11px;
}
.campaign-submit {
    padding: 10px 15px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.mini-calendar,
.full-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.mini-calendar {
    border: 1px solid #d0d5dd;
}
.mini-calendar caption,
.full-calendar caption {
    padding: 10px;
    border: 1px solid #d0d5dd;
    border-bottom: 0;
    background: #f9fafb;
    font-size: 14px;
}
.mini-calendar th,
.mini-calendar td {
    height: 31px;
    text-align: center;
    font-size: 11px;
}
.mini-calendar th {
    color: #667085;
}
.mini-calendar td.is-outside {
    color: #d0d5dd;
}
.today-dot {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
}
.calendar-arrow {
    position: relative;
}
.view-campaigns {
    display: block;
    margin-top: 18px;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Calendar */
.calendar-panel {
    padding: 26px;
}
.full-calendar {
    border: 1px solid #d0d5dd;
}
.month-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.month-caption b {
    font-weight: 700;
}
.month-caption a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
}
.full-calendar th {
    height: 36px;
    border: 1px solid var(--line);
    background: #f9fafb;
    color: #667085;
    font-size: 11px;
}
.full-calendar td {
    height: 95px;
    padding: 7px;
    border: 1px solid var(--line);
    vertical-align: top;
    font-size: 12px;
}
.full-calendar td.is-outside {
    background: #fafafa;
    color: #c4c8d0;
}
.full-calendar td.is-today time {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
}
.calendar-event {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    padding: 5px 6px;
    border-left: 3px solid #16a34a;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calendar-panel > .view-campaigns {
    width: 210px;
    margin: 20px auto 0;
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }
    .app-sidebar {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .topbar {
        justify-content: space-between;
    }
    .page-content {
        padding: 20px;
    }
    .analytics-grid,
    .campaign-panel {
        grid-template-columns: 1fr;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 620px) {
    .topbar {
        padding: 0 15px;
    }
    .workspace-select {
        display: none;
    }
    .platform-switcher {
        justify-content: flex-start;
        overflow: auto;
        padding-inline: 15px;
    }
    .platform-button {
        min-width: 125px;
    }
    .connection-grid {
        grid-template-columns: 1fr;
    }
    .social-post {
        grid-template-columns: 85px 1fr;
    }
    .post-image {
        width: 85px;
        height: 85px;
    }
    .mood {
        display: none;
    }
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-content {
        overflow-x: auto;
    }
    .content-tabs,
    .wire-panel {
        min-width: 690px;
    }
}

.chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    color: #667085;
    font-size: 11px;
}
.chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-published {
    background: #16a34a;
}
.legend-failed {
    background: #98a2b3;
}
.analytics-empty {
    color: #667085;
    font-size: 13px;
}
.metric-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.back-link {
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
}
.activity-table-wrap {
    overflow: auto;
}
.activity-table {
    width: 100%;
    border-collapse: collapse;
}
.activity-table th,
.activity-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eaecf0;
    color: #475467;
    font-size: 12px;
    text-align: left;
}
.activity-table th {
    background: #f9fafb;
    color: #344054;
    font-weight: 700;
}
@media (max-width: 1050px) {
    .metric-grid-five {
        grid-template-columns: repeat(3, 1fr);
    }
}

.platform-button small {
    display: grid;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    place-items: center;
    border-radius: 999px;
    /* background: rgba(17, 24, 39, 0.08); */
    font-size: 10px;
}
.platform-button.is-active small {
    background: rgba(255, 255, 255, 0.22);
}
.no-connected-platforms {
    padding: 11px 14px;
    border: 1px dashed #d0d5dd;
    border-radius: 8px;
    color: #667085;
    font-size: 13px;
}
.no-connected-platforms:hover {
    border-color: #16a34a;
    color: #15803d;
}

.app-alert-warning {
    border: 1px solid #fedf89;
    background: #fffaeb;
    color: #b54708;
}
.social-connection-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.social-connection-warning a {
    flex: 0 0 auto;
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}
.youtube-content-types,
.content-format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}
.youtube-content-types legend,
.content-format-options legend {
    width: 100%;
    margin-bottom: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}
.youtube-content-types label,
.content-format-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}
.youtube-content-types input,
.content-format-options input,
.instagram-feed-option input {
    width: auto;
    accent-color: #16a34a;
}
.content-format-options label {
    flex-wrap: wrap;
}
.content-format-options label small {
    flex-basis: 100%;
    padding-left: 19px;
    font-weight: 500;
}
.instagram-feed-option {
    display: grid;
    gap: 3px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 7px;
    background: #f9fafb;
}
.instagram-feed-option label {
    display: flex;
    align-items: center;
    gap: 7px;
}
.instagram-feed-option small {
    padding-left: 21px;
}
.thumbnail-field {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f9fafb;
}
.thumbnail-field > label {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}
.thumbnail-field > label small,
.thumbnail-field > small {
    color: #667085;
    font-size: 11px;
    font-weight: 400;
}
.thumbnail-field input[type="file"] {
    font-size: 12px;
}
.thumbnail-field .form-errors {
    margin-top: 2px;
}

/* OAuth provider list and permission disclosure */
.connect-content {
    max-width: 1180px;
}
.oauth-connect-layout {
    display: grid;
    grid-template-columns: 295px 54px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.provider-login-list {
    display: grid;
    gap: 10px;
}
.provider-login {
    position: relative;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    min-height: 49px;
    align-items: center;
    gap: 10px;
    padding: 4px 13px 4px 6px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.provider-login:hover,
.provider-login.is-selected {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.2);
}
.provider-login.is-selected::after {
    position: absolute;
    inset: -3px;
    border: 2px solid #101828;
    border-radius: 10px;
    content: "";
    pointer-events: none;
}
.provider-login-mark {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}
.provider-login > span:nth-child(2) {
    font-size: 14px;
    font-weight: 700;
}
.provider-login small {
    font-size: 9px;
    opacity: 0.82;
}
.provider-login-twitter {
    background: #45a8df;
}
.provider-login-facebook {
    background: #3765af;
}
.provider-login-google {
    background: #db3a36;
}
.provider-login-amazon {
    background: #171717;
}
.provider-login-linkedin {
    background: #147eae;
}
.provider-login-instagram {
    background: linear-gradient(100deg, #5545a9, #d53373, #f3a431);
}
.provider-login-pinterest {
    background: #d92734;
}
.provider-login-reddit {
    background: #ef4b23;
}
.provider-login-line {
    background: #48c834;
}
.provider-login-whatsapp {
    background: linear-gradient(100deg, #25d366, #128c7e);
}
.provider-login-tumblr {
    background: #35465c;
}
.connect-direction {
    padding-top: 190px;
    color: #101828;
    font-size: 70px;
    line-height: 1;
    text-align: center;
}
.authorization-card {
    min-height: 545px;
    padding: 30px 34px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
}
.authorization-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.authorization-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: #1877f2;
    font-size: 18px;
    font-weight: 800;
}
.authorization-provider div {
    display: flex;
    flex-direction: column;
}
.authorization-provider small {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}
.authorization-provider strong {
    margin-top: 4px;
    font-size: 14px;
}
.authorization-card h2 {
    max-width: 590px;
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}
.authorization-copy {
    margin: 9px 0 25px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}
.permission-section {
    margin-top: 22px;
}
.permission-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
}
.permission-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.permission-section li {
    position: relative;
    padding-left: 23px;
    color: #475467;
    font-size: 13px;
    line-height: 1.4;
}
.permission-section li::before {
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 900;
}
.permission-section-can h3 {
    color: #15803d;
}
.permission-section-can li::before {
    color: #16a34a;
    content: "✓";
}
.permission-section-cannot h3 {
    color: #475467;
}
.permission-section-cannot li::before {
    color: #98a2b3;
    content: "–";
}
.authorization-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}
.authorize-button,
.cancel-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}
.authorize-button {
    background: #111827;
    color: #fff;
}
.authorize-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.cancel-button {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #475467;
}
.authorization-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .oauth-connect-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .connect-direction {
        display: none;
    }
}
@media (max-width: 650px) {
    .oauth-connect-layout {
        grid-template-columns: 1fr;
    }
    .authorization-card {
        min-height: 0;
    }
    .provider-login:hover,
    .provider-login.is-selected {
        transform: none;
    }
}

.oauth-connect-layout {
    display: block;
    max-width: 420px;
}
.authorization-modal {
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 12px;
    background: transparent;
}
.authorization-modal::backdrop {
    background: rgba(16, 24, 40, 0.58);
    backdrop-filter: blur(2px);
}
.authorization-modal .authorization-card {
    position: relative;
    min-height: 0;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}
.authorization-close {
    position: absolute;
    top: 17px;
    right: 18px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    font-size: 23px;
    line-height: 1;
}
.authorization-close:hover {
    background: #e4e7ec;
    color: #101828;
}
.cancel-button {
    cursor: pointer;
}
.provider-login-list {
    width: 100%;
}
@media (max-width: 650px) {
    .oauth-connect-layout {
        max-width: none;
    }
    .authorization-modal .authorization-card {
        padding: 26px 22px;
    }
    .authorization-card h2 {
        padding-right: 32px;
    }
}

/* Global add-account modal */
.add-account-button {
    cursor: pointer;
}
.account-connect-modal {
    width: min(1040px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.25);
}
.account-connect-modal::backdrop {
    background: rgba(16, 24, 40, 0.62);
    backdrop-filter: blur(3px);
}
.account-connect-shell {
    display: flex;
    max-height: calc(100vh - 32px);
    flex-direction: column;
}
.account-connect-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    border-bottom: 1px solid #e4e7ec;
    background: #fff;
}
.account-connect-header span {
    color: #16a34a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.account-connect-header h2 {
    margin: 5px 0 0;
    font-size: 22px;
}
.account-connect-header p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 12px;
}
.account-connect-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.account-connect-close:hover {
    background: #e4e7ec;
    color: #101828;
}
.account-connect-body {
    display: grid;
    min-height: 0;
    grid-template-columns: 330px minmax(0, 1fr);
}
.modal-provider-list {
    display: grid;
    min-height: 0;
    align-content: start;
    gap: 9px;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e4e7ec;
    background: #f8fafc;
}
.modal-provider-list .provider-login {
    width: 100%;
}
.modal-provider-list .provider-login:hover,
.modal-provider-list .provider-login.is-selected {
    transform: none;
}
.modal-authorization-details {
    min-width: 0;
    padding: 28px 32px;
    overflow-y: auto;
    background: #fff;
}
.modal-authorization-details h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}
.modal-authorization-details .authorization-copy {
    margin-bottom: 20px;
}
.permission-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.permission-columns .permission-section {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fafafa;
}
.permission-columns .permission-section-can {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.permission-columns .permission-section h4 {
    margin: 0 0 11px;
    font-size: 13px;
}
.connect-welcome-panel {
    max-width: 720px;
    margin: 50px auto;
    padding: 52px 45px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}
.connect-welcome-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 30px;
}
.connect-welcome-eyebrow {
    margin: 0 0 8px !important;
    color: #16a34a !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 0.14em;
}
.connect-welcome-panel h1 {
    margin: 0;
    font-size: 30px;
}
.connect-welcome-panel > p {
    max-width: 540px;
    margin: 11px auto 24px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}
.connect-welcome-panel > .add-account-button {
    border: 0;
}
.empty-connections-panel {
    width: 100%;
    margin: 0 auto;
    padding: 52px clamp(24px, 7vw, 180px);
    border: 1px solid #dce8df;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}
.empty-connections-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 50%;
    background: #eaf8ef;
    color: #079447;
    font-size: 36px;
    font-weight: 300;
}
.empty-connections-eyebrow {
    margin: 0 0 14px;
    color: #079447;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
.empty-connections-panel h1 {
    margin: 0;
    color: #102a25;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 500;
}
.empty-connections-intro {
    margin: 14px auto 34px;
    color: #667b77;
    font-size: 15px;
}
.empty-connections-warning {
    max-width: 760px;
    margin: -12px auto 24px;
    text-align: left;
}
.empty-connections-grid {
    display: grid;
    max-width: 1160px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.empty-connection-card {
    display: flex;
    min-width: 0;
    min-height: 80px;
    align-items: center;
    gap: 15px;
    padding: 15px 17px;
    border: 1px solid #d7e4dc;
    border-radius: 11px;
    background: #fff;
    color: #102a25;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.empty-connection-card:hover,
.empty-connection-card:focus-visible {
    border-color: #72c994;
    outline: 0;
    box-shadow: 0 8px 20px rgba(7, 148, 71, .1);
    transform: translateY(-1px);
}
.empty-connection-logo {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e9e6;
    border-radius: 50%;
    background: #fff;
}
.empty-connection-logo img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}
.empty-connection-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.empty-connection-copy strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.empty-connection-copy small {
    color: #72857f;
    font-size: 12px;
}
.empty-connections-action {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 32px;
    padding: 12px 25px;
    border: 0;
    border-radius: 8px;
    background: #0b9b4b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(11, 155, 75, .18);
}
.empty-connections-action:hover,
.empty-connections-action:focus-visible {
    background: #087f3e;
}
.empty-connections-action span {
    font-size: 20px;
    line-height: 1;
}
.connected-summary {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eaecf0;
}
.connected-summary > strong {
    display: block;
    margin-bottom: 12px;
    color: #475467;
    font-size: 12px;
}
.connected-summary > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}
.connected-summary a,
.connected-summary span {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}
.connected-summary a:hover {
    background: #e8f7ec;
    color: #15803d;
}
@media (max-width: 760px) {
    .account-connect-modal {
        width: calc(100% - 18px);
        max-height: calc(100vh - 18px);
    }
    .account-connect-shell {
        max-height: calc(100vh - 18px);
    }
    .account-connect-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .modal-provider-list {
        max-height: 250px;
        border-right: 0;
        border-bottom: 1px solid #e4e7ec;
    }
    .modal-authorization-details {
        overflow: visible;
    }
    .permission-columns {
        grid-template-columns: 1fr;
    }
    .connect-welcome-panel {
        margin: 20px auto;
        padding: 38px 22px;
    }
    .empty-connections-panel {
        padding: 38px 18px;
    }
    .empty-connections-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .empty-connections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feed-empty {
    padding: 64px 24px;
    text-align: center;
}
.feed-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
}
.feed-empty p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.campaign-content-field {
    display: grid;
    gap: 6px;
}
.campaign-content-field textarea {
    width: 100%;
}
.content-counter {
    margin: 0;
    color: #667085;
    font-size: 12px;
    text-align: right;
}
.content-counter.is-over-limit {
    color: #dc2626;
    font-weight: 700;
}

/* Selected provider direction */
.account-connect-body {
    position: relative;
    grid-template-columns: 330px 64px minmax(0, 1fr);
}
.provider-selection-arrow {
    position: absolute;
    z-index: 2;
    left: 330px;
    width: 64px;
    color: #101828;
    font-family: Arial, sans-serif;
    font-size: 58px;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
    transition: top 0.2s ease;
}
.modal-authorization-details {
    grid-column: 3;
}
@media (max-width: 760px) {
    .account-connect-body {
        grid-template-columns: 1fr;
    }
    .provider-selection-arrow {
        display: none;
    }
    .modal-authorization-details {
        grid-column: 1;
    }
}

/* Refined social campaign workspace */
:root {
    --primary: #159447;
    --primary-dark: #0f7637;
    --primary-soft: #edf9f1;
    --navy: #102a21;
    --canvas: #f4f8f6;
    --line: #dce7e1;
}
body {
    background: var(--canvas);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
}
.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 26px 14px;
    border: 0;
    background: linear-gradient(180deg, #102d23, #0a2019);
    color: #fff;
}
.app-brand {
    gap: 12px;
    padding: 0 13px;
    color: #fff;
    font-size: 20px;
}
.app-brand > span:last-child {
    display: flex;
    flex-direction: column;
}
.app-brand strong {
    line-height: 1;
}
.app-brand small {
    margin-top: 5px;
    color: #83c99f;
    font-size: 8px;
    letter-spacing: 0.18em;
}
.brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 50% 50% 50% 12px;
    background: linear-gradient(145deg, #31c36b, #0b7f39);
    font-size: 21px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}
.sidebar-nav {
    margin-top: 48px;
}
.sidebar-nav a {
    padding: 14px 15px;
    border: 1px solid transparent;
    color: #cbe1d4;
    font-size: 14px;
}
.sidebar-nav a.is-active {
    border-color: rgba(102, 221, 146, 0.2);
    background: linear-gradient(90deg, #159447, #117a3c);
    color: #fff;
    box-shadow: 0 8px 20px rgba(4, 86, 39, 0.32);
}
.sidebar-icon {
    font-size: 20px;
}
.sidebar-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding: 16px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
}
.sidebar-help > span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border: 1px solid #bcd7c7;
    border-radius: 50%;
    font-weight: 800;
}
.sidebar-help div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sidebar-help strong {
    font-size: 12px;
}
.sidebar-help small {
    color: #a9c3b5;
    font-size: 10px;
    line-height: 1.4;
}
.topbar {
    height: 72px;
    justify-content: space-between;
    padding: 0 28px;
    border-color: var(--line);
    box-shadow: 0 1px 7px rgba(16, 42, 33, 0.035);
}
.topbar-search {
    display: flex;
    width: min(515px, 48vw);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #e2ebe6;
    border-radius: 8px;
    background: #f6faf8;
    color: #789087;
}
.topbar-search input {
    width: 100%;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #34483f;
    font-size: 13px;
}
.topbar-search input::placeholder {
    color: #80958b;
}
.topbar-search button {
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    opacity: 0;
}
.notification-button {
    position: relative;
    border: 0;
    background: transparent;
    color: #31483e;
    cursor: pointer;
    font-size: 18px;
}
.notification-button i {
    position: absolute;
    top: 1px;
    right: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #ef4444;
}
.workspace-select {
    border-color: #dbe6e0;
    color: #1d342a;
}
.profile-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.platform-switcher {
    min-height: 88px;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 16px 28px;
    border-color: var(--line);
    background: #fbfdfc;
}
.platform-switcher-list {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 11px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.platform-button {
    min-width: 172px;
    flex: 1 0 172px;
    padding: 10px 12px;
    border-color: #dce7e1;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(16, 42, 33, 0.035);
}
.platform-button > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}
.platform-button > span strong {
    color: #1b3328;
    font-size: 13px;
}
.platform-button > span small {
    overflow: hidden;
    color: #73867d;
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.platform-button b {
    width: 34px;
    height: 34px;
    background: #253f34;
}
.platform-button.is-active {
    border-color: #4ab976;
    background: #f2fbf5;
    color: inherit;
    box-shadow: 0 0 0 1px rgba(21, 148, 71, 0.08);
}
.platform-button.is-active > span strong {
    color: var(--primary-dark);
}
.platform-button.facebook.is-active b,
.platform-button.twitter.is-active b {
    background: var(--primary);
    color: #fff;
}
.platform-add-button {
    display: flex;
    min-height: 56px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px dashed #70bd8d;
    border-radius: 9px;
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}
.platform-add-button b {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    font-size: 18px;
}
.page-content {
    max-width: 1440px;
    padding: 18px 28px 38px;
}
.content-tabs {
    justify-content: space-around;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(16, 42, 33, 0.035);
}
.content-tabs a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 12px;
    border-bottom-width: 3px;
    color: #50675c;
    font-size: 12px;
}
.content-tabs a span {
    font-size: 16px;
}
.content-tabs a.is-active {
    border-bottom-color: var(--primary);
    color: var(--primary-dark);
}

.composer-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 3px 0px;
    /* border-bottom: 1px solid #e4e7ec; */
}

.composer-heading h1 {
    margin: 0;

    color: #101828;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.composer-heading p {
    margin: 5px 0 0;

    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}
.composer-platform-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}
.composer-platform-mark.twitter {
    background: #111;
}
.composer-platform-mark.instagram {
    background: linear-gradient(140deg, #8545d7, #d92f78, #f59b39);
}
.composer-platform-mark.linkedin {
    background: #0a66c2;
}
.composer-platform-mark.google {
    background: #e11d24;
}
.campaign-panel {
    display: grid;
    grid-template-columns: minmax(560px, 1.75fr) minmax(330px, 0.95fr);
    gap: 14px;
    padding: 0;
    margin-top: 15px;
    background: transparent;
}
.campaign-panel > .form-errors {
    grid-column: 1/-1;
}
.composer-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 53, 38, 0.04);
}
.campaign-form {
    padding: 25px 28px;
}
.field-label {
    display: block;
    margin: 0 0 8px;
    color: #20392e;
    font-size: 13px;
    font-weight: 750;
}
.field-label small {
    color: #71857b;
    font-weight: 500;
}
.field-help {
    display: block;
    margin: -2px 0 10px;
    color: #667085;
    font-size: 0.78rem;
}
.field-label em {
    color: #dc2626;
    font-style: normal;
}
.description-label {
    margin-top: 18px;
}
.campaign-form input[type="text"],
.campaign-form input[type="datetime-local"],
.campaign-form textarea,
.campaign-form select {
    border-color: #cfded6;
    border-radius: 6px;
}
.campaign-form input[type="text"] {
    height: 42px;
}
.campaign-form textarea {
    height: 112px;
    margin: 0;
    padding-bottom: 43px;
    border-radius: 6px 6px 0 0;
    line-height: 1.5;
}
.campaign-form input:focus,
.campaign-form textarea:focus,
.campaign-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.1);
}
.campaign-content-field {
    position: relative;
    gap: 0;
}
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 38px;
    padding: 3px 8px;
    border: 1px solid #cfded6;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #fbfdfc;
}
.editor-toolbar button {
    display: grid;
    width: 31px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #274438;
    cursor: pointer;
    font-size: 15px;
}
.editor-toolbar button:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.content-counter {
    position: absolute;
    right: 9px;
    bottom: 11px;
    font-size: 10px;
}
.account-selector {
    margin-bottom: 19px;
    padding: 11px 12px;
    border: 1px solid #e1eae5;
    border-radius: 7px;
    background: #f8fbf9;
}
.account-selector > span {
    margin-bottom: 7px;
}
.account-option {
    border-color: #bfdbc9;
    background: #fff;
    color: #274438;
}
.account-option input {
    accent-color: var(--primary);
}
.media-label {
    margin-top: 20px;
}
.media-row {
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 0;
}
.media-input {
    position: fixed;
    left: -10000px;
}
.media-add {
    display: flex;
    width: 132px;
    height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #8cbca0;
    border-radius: 7px;
    background: #fbfefc;
    color: var(--primary-dark);
    cursor: pointer;
}
.media-add b {
    font-size: 28px;
    font-weight: 400;
    line-height: 0.8;
}
.media-add span {
    font-size: 11px;
    font-weight: 700;
}
.media-add-more {
    width: 105px;
}
.media-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.media-preview-item {
    position: relative;
    width: 132px;
    height: 96px;
    overflow: hidden;
    border: 1px solid #d6e3dc;
    border-radius: 7px;
    background: #eef4f1;
}
.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1b3328;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}
.media-help {
    color: #71857b;
}
.media-selection {
    display: none;
}
.posting-options-title {
    margin: 24px 0 9px;
    font-size: 13px;
}
.publish-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
.publish-options > label {
    min-height: 57px;
    gap: 10px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #d6e3dc;
    border-radius: 7px;
    cursor: pointer;
}
.publish-options > label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px rgba(21, 148, 71, 0.05);
}
.publish-options input {
    position: absolute;
    opacity: 0;
}
.option-radio {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #9bb0a5;
    border-radius: 50%;
    background: #fff;
}
.publish-options input:checked + .option-radio {
    border: 5px solid var(--primary);
}
.publish-options label > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.publish-options strong {
    color: #20392e;
    font-size: 12px;
}
.publish-options small {
    color: #71857b;
    font-size: 10px;
}
.schedule-fields {
    margin: 0 0 18px;
    border-color: #cfe1d6;
    background: #f8fbf9;
}
.composer-actions {
    display: flex;
    gap: 10px;
}
.campaign-submit,
.draft-button {
    min-height: 43px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.campaign-submit {
    flex: 1;
    border: 0;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 13px rgba(21, 148, 71, 0.22);
}
.campaign-submit:hover {
    background: var(--primary-dark);
}
.draft-button {
    border: 1px solid #bfcfc7;
    background: #fff;
    color: #294439;
}
.campaign-submit:disabled,
.draft-button:disabled {
    cursor: wait;
    opacity: 0.65;
}
.campaign-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}
.schedule-card,
.post-preview-card {
    padding: 20px;
}
.schedule-card h2,
.post-preview-card > h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    color: #183026;
    font-size: 15px;
}
.mini-calendar {
    overflow: hidden;
    border-color: #d4e1da;
    border-radius: 7px;
}
.mini-calendar caption {
    padding: 8px 9px;
    border-color: #d4e1da;
    background: #fbfdfc;
}
.mini-calendar caption span {
    font-size: 13px;
    font-weight: 750;
}
.mini-calendar caption button {
    border: 0;
    background: transparent;
    color: #294439;
    cursor: pointer;
}
.mini-calendar th {
    height: 27px;
    color: #5e7369;
    font-size: 9px;
}
.mini-calendar td {
    height: 29px;
    color: #243d32;
    font-size: 10px;
}
.today-dot {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
}
.view-campaigns {
    margin-top: 10px;
    border-color: #cbdcd3;
    color: var(--primary-dark);
}
.post-preview-card > h2 .composer-platform-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 11px;
}
.social-preview {
    overflow: hidden;
    border: 1px solid #d7e3dd;
    border-radius: 7px;
    background: #fff;
}
.preview-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
}
.preview-profile > img,
.preview-profile > span {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 50%;
    object-fit: cover;
}
.preview-profile > span {
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}
.preview-profile > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}
.preview-profile strong {
    overflow: hidden;
    color: #1c3429;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-profile small {
    color: #789087;
    font-size: 9px;
}
.preview-profile > b {
    align-self: flex-start;
    color: #536a5f;
    letter-spacing: 2px;
}
.preview-title {
    display: block;
    padding: 0 12px;
    color: #1a3328;
    font-size: 12px;
}
.social-preview > p {
    margin: 5px 0 11px;
    padding: 0 12px;
    color: #334d41;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.preview-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    max-height: 320px;
    overflow: hidden;
    background: #edf3f0;
}
.preview-media img,
.preview-media video {
    width: 100%;
    height: 150px;
    background: #152c22;
    object-fit: cover;
}
.preview-media > :only-child {
    grid-column: 1/-1;
    width: 100%;
    height: auto;
    max-height: 320px;
}
.preview-media-empty {
    display: flex;
    height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #759087;
}
.preview-media-empty span {
    font-size: 28px;
}
.preview-media-empty small {
    font-size: 10px;
}
.preview-engagement {
    display: flex;
    justify-content: space-around;
    padding: 11px;
    border-top: 1px solid #e2ebe6;
    color: #4d655a;
    font-size: 10px;
}
.thumbnail-field {
    border-color: #d9e6df;
    background: #f8fbf9;
}
[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .platform-switcher-list {
        overflow-x: auto;
    }
    .platform-button {
        min-width: 165px;
    }
    .campaign-panel {
        grid-template-columns: minmax(500px, 1.45fr) minmax(300px, 0.8fr);
    }
    .campaign-form {
        padding: 22px;
    }
    .schedule-card,
    .post-preview-card {
        padding: 16px;
    }
}
@media (max-width: 900px) {
    .app-sidebar {
        position: static;
        height: auto;
    }
    .topbar-search {
        width: min(460px, 60vw);
    }
    .campaign-panel {
        grid-template-columns: 1fr;
    }
    .campaign-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-content {
        padding: 16px;
    }
    .content-tabs {
        justify-content: flex-start;
    }
    .content-tabs a {
        flex: 0 0 auto;
    }
    .composer-heading {
        margin-top: 14px;
    }
}
@media (max-width: 620px) {
    .topbar-search {
        width: 100%;
    }
    .topbar-actions {
        display: none;
    }
    .page-content {
        overflow: visible;
        padding: 12px;
    }
    .content-tabs,
    .campaign-panel {
        min-width: 0;
    }
    .content-tabs {
        overflow-x: auto;
    }
    .campaign-form {
        padding: 18px 15px;
    }
    .campaign-sidebar {
        grid-template-columns: 1fr;
    }
    .publish-options {
        grid-template-columns: 1fr;
    }
    .composer-actions {
        flex-direction: column;
    }
    .composer-heading h1 {
        font-size: 20px;
    }
    .composer-heading p {
        font-size: 11px;
    }
    .composer-platform-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .media-add,
    .media-preview-item {
        width: 105px;
        height: 82px;
    }
}

/* Locally hosted social brand logos */
.platform-button b {
    background: #fff;
}
.platform-button.is-active b,
.platform-button.facebook.is-active b,
.platform-button.twitter.is-active b {
    background: #fff;
}
.platform-button b img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.composer-platform-mark.has-logo {
    overflow: hidden;
    border: 1px solid #dce7e1;
    background: #fff;
}
.composer-platform-mark.has-logo img {
    display: block;
    width: 76%;
    height: 76%;
    object-fit: contain;
}
.post-preview-card > h2 .composer-platform-mark.has-logo img {
    width: 70%;
    height: 70%;
}
.provider-login-mark,
.authorization-mark {
    background: #fff;
}
.provider-login-mark img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}
.authorization-mark img {
    display: block;
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* Provider-aware posts and engagement manager */
.posts-manager {
    margin-top: 16px;
    padding: 20px;
}
.posts-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 0 18px;
}
.posts-manager-title {
    display: flex;
    min-width: 240px;
    align-items: center;
    gap: 12px;
}
.posts-manager-title .composer-platform-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
}
.posts-manager-title h1 {
    margin: 0;
    color: #173126;
    font-size: 21px;
}
.posts-manager-title p {
    margin: 4px 0 0;
    color: #71857b;
    font-size: 11px;
}
.posts-search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}
.posts-date-range,
.posts-search-box {
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #d3e0da;
    border-radius: 6px;
    background: #fff;
    color: #61766b;
}
.posts-date-range input,
.posts-search-box input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #2e493d;
    font-size: 11px;
}
.posts-date-range input {
    width: 105px;
}
.posts-search-box {
    width: 190px;
}
.posts-search-box input {
    width: 100%;
}
.filter-submit,
.post-list-options button {
    min-height: 39px;
    padding: 8px 12px;
    border: 1px solid #bfd3c7;
    border-radius: 6px;
    background: #fff;
    color: #1c693c;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
}
.create-post-button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    box-shadow: 0 4px 12px rgba(21, 148, 71, 0.18);
}
.sync-account-posts-button {
    white-space: nowrap;
}
.sync-account-posts-button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.65;
}
.account-post-sync-note {
    margin: -5px 0 15px;
    color: #667b70;
    font-size: 11px;
}
.post-status-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 0 15px;
    border-bottom: 1px solid #e1e9e5;
}
.post-status-tabs > a {
    padding: 9px 13px;
    border: 1px solid #d5e1db;
    border-radius: 6px;
    color: #3d5549;
    font-size: 11px;
    font-weight: 700;
}
.post-status-tabs > a span {
    color: #74877e;
}
.post-status-tabs > a.is-active {
    border-color: #9fd0b2;
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.post-list-options {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.post-list-options select {
    min-height: 36px;
    padding: 7px 30px 7px 10px;
    border: 1px solid #d5e1db;
    border-radius: 6px;
    background: #fff;
    color: #344d41;
    font-size: 11px;
}
.engagement-notice,
.engagement-reconnect {
    margin-top: 13px;
    padding: 10px 12px;
    border: 1px solid #f0ce78;
    border-radius: 6px;
    background: #fffaeb;
    color: #815b0d;
    font-size: 11px;
    line-height: 1.45;
}
.managed-post-list {
    display: grid;
    gap: 9px;
    padding-top: 14px;
}
.managed-post {
    overflow: hidden;
    border: 1px solid #dce6e1;
    border-radius: 8px;
    background: #fff;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.managed-post:hover {
    border-color: #b8d4c4;
    box-shadow: 0 4px 14px rgba(16, 42, 33, 0.05);
}
.managed-post-summary {
    display: grid;
    grid-template-columns: 145px minmax(250px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
}
.managed-post[data-post-preview] .managed-post-summary {
    cursor: pointer;
}
.managed-post[data-post-preview] .managed-post-summary:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: -2px;
}
.managed-post-preview-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: min(90vh, 820px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(16, 42, 33, 0.28);
}
.managed-post-preview-dialog::backdrop {
    background: rgba(8, 25, 18, 0.56);
    backdrop-filter: blur(2px);
}
.managed-post-preview-card {
    position: relative;
}
.managed-post-preview-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #dbe5df;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #385247;
    cursor: pointer;
    font-size: 24px;
}
.managed-post-preview-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 62px 16px 20px;
    border-bottom: 1px solid #e4ece8;
}
.managed-post-preview-header > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}
.managed-post-preview-header strong {
    overflow: hidden;
    color: #173126;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.managed-post-preview-header small {
    color: #71847a;
    font-size: 10px;
}
.managed-post-preview-media {
    display: grid;
    max-height: 480px;
    min-height: 220px;
    place-items: center;
    overflow: hidden;
    background: #eef3f0;
}
.managed-post-preview-media img,
.managed-post-preview-media video,
.managed-post-preview-media iframe {
    display: block;
    width: 100%;
    max-height: 480px;
    border: 0;
    object-fit: contain;
}
.managed-post-preview-media iframe {
    min-height: 420px;
}
.managed-post-preview-copy {
    padding: 20px;
}
.managed-post-preview-copy h2 {
    margin: 0 0 9px;
    color: #173126;
    font-size: 18px;
}
.managed-post-preview-copy p {
    margin: 0;
    color: #40584c;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}
.managed-post-preview-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 13px 20px;
    border-top: 1px solid #e4ece8;
    background: #f9fbfa;
    color: #40584c;
    font-size: 11px;
}
.managed-post-media {
    position: relative;
    width: 145px;
    height: 92px;
    overflow: hidden;
    border: 1px solid #d9e3de;
    border-radius: 6px;
    background: #edf3f0;
}
.managed-post-media img,
.managed-post-media video,
.managed-post-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.managed-post-media.is-empty::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8ca096;
    content: "No media";
    font-size: 10px;
}
.managed-post-copy {
    min-width: 0;
}
.managed-post-copy h2 {
    overflow: hidden;
    margin: 0 0 5px;
    color: #173126;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.managed-post-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #4d6258;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.managed-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
    color: #778b81;
    font-size: 9px;
}
.post-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf1ef;
    color: #52665c;
    font-size: 10px;
    font-weight: 750;
}
.post-status.status-published {
    background: #e7f8ed;
    color: #14813d;
}
.post-status.status-scheduled {
    background: #eef6ff;
    color: #2563a9;
}
.post-status.status-failed {
    background: #fff0f0;
    color: #c53030;
}
.post-status.status-draft,
.post-status.status-pending {
    background: #f2f4f3;
    color: #5e7167;
}
.engagement-metrics {
    display: flex;
    min-width: 165px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #40584c;
    font-size: 11px;
}
.engagement-metrics span {
    white-space: nowrap;
}
.managed-post-links {
    display: grid;
    justify-items: end;
    gap: 7px;
    font-size: 10px;
    font-weight: 750;
}
.managed-post-links a {
    color: var(--primary-dark);
    white-space: nowrap;
}
.engagement-reconnect {
    margin: 0 10px 10px;
}
.engagement-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-top: 1px solid #e6ede9;
    background: #fbfdfc;
}
.engagement-toolbar form {
    display: inline;
}
.engagement-toolbar button {
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #385247;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}
.engagement-toolbar button:hover {
    border-color: #c5dacf;
    background: #fff;
    color: var(--primary-dark);
}
.engagement-toolbar .sync-engagement-form {
    margin-left: auto;
}
.inline-comment-composer {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e4ece8;
    background: #f8fbf9;
}
.inline-comment-composer[hidden] {
    display: none;
}
.inline-comment-composer textarea {
    min-height: 58px;
    flex: 1;
    padding: 9px;
    border: 1px solid #cbdcd3;
    border-radius: 6px;
    outline: 0;
    resize: vertical;
    font-size: 11px;
}
.inline-comment-composer textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.08);
}
.inline-comment-composer button,
.comment-reply-form button {
    align-self: flex-end;
    padding: 8px 12px;
    border: 0;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}
.engagement-panel {
    padding: 12px 14px;
    border-top: 1px solid #e2ebe6;
    background: #f9fbfa;
}
.engagement-panel[hidden] {
    display: none;
}
.engagement-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}
.engagement-panel h3 {
    margin: 0;
    font-size: 12px;
}
.engagement-panel > header span {
    color: #768b81;
    font-size: 9px;
}
.engagement-comment {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #e3ebe7;
}
.engagement-comment:last-child {
    border: 0;
}
.engagement-comment > img,
.comment-avatar {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background: #dff3e7;
    color: var(--primary-dark);
    object-fit: cover;
    font-size: 11px;
    font-weight: 800;
}
.engagement-comment strong {
    color: #263f34;
    font-size: 10px;
}
.engagement-comment strong small {
    margin-left: 4px;
    color: #758a80;
    font-weight: 500;
}
.engagement-comment p {
    margin: 4px 0;
    color: #42594e;
    font-size: 10px;
    line-height: 1.45;
}
.engagement-comment div > small {
    color: #81938a;
    font-size: 8px;
}
.comment-reply-form {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}
.comment-reply-form input[type="text"] {
    min-height: 32px;
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d2e0d9;
    border-radius: 5px;
    font-size: 9px;
}
.comment-reply-form button {
    align-self: stretch;
}
.nested-reply {
    margin: 8px 0 0 12px;
    padding: 7px 9px;
    border-left: 2px solid #abd0b9;
    background: #fff;
}
.nested-reply p {
    margin-bottom: 0;
}
.engagement-empty,
.engagement-warning {
    margin: 7px 0;
    color: #71857b;
    font-size: 10px;
}
.engagement-warning {
    padding: 7px 10px;
    border-radius: 5px;
    background: #fffaeb;
    color: #8a6113;
}
.posts-pagination {
    margin-top: 16px;
}
.posts-pagination nav > div:first-child {
    display: none;
}
.posts-pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #65796f;
    font-size: 10px;
}
.posts-pagination nav span[aria-current="page"] > span,
.posts-pagination nav a {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid #d7e3dd;
    color: #3f584c;
}
.posts-pagination nav span[aria-current="page"] > span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.posts-pagination svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 1200px) {
    .posts-manager-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .posts-search-form {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .managed-post-summary {
        grid-template-columns: 125px minmax(230px, 1fr) auto auto;
    }
    .managed-post-media {
        width: 125px;
    }
    .managed-post-links {
        grid-column: 2/-1;
        display: flex;
        justify-content: flex-end;
    }
    .engagement-metrics {
        min-width: 145px;
    }
}
@media (max-width: 760px) {
    .posts-manager {
        padding: 14px;
    }
    .posts-date-range,
    .posts-search-box {
        width: 100%;
    }
    .posts-search-box input {
        width: 100%;
    }
    .post-list-options {
        width: 100%;
        margin-left: 0;
    }
    .post-list-options select {
        flex: 1;
    }
    .managed-post-summary {
        position: relative;
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px;
    }
    .managed-post-media {
        width: 90px;
        height: 78px;
    }
    .post-status {
        position: absolute;
        top: 6px;
        right: 6px;
    }
    .engagement-metrics {
        grid-column: 1/-1;
        justify-content: flex-start;
        padding-left: 2px;
    }
    .managed-post-links {
        grid-column: 1/-1;
        justify-content: flex-start;
    }
    .engagement-toolbar {
        overflow-x: auto;
    }
    .inline-comment-composer {
        flex-direction: column;
    }
    .inline-comment-composer button {
        align-self: stretch;
    }
}

.engagement-reconnect a {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #8a6113;
    color: #fff;
    font-weight: 750;
}

/* Provider analytics dashboard */
.provider-analytics {
    margin-top: 18px;
}
.provider-analytics-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 4px 0 18px;
}
.provider-analytics-title,
.provider-analytics-actions,
.analytics-period-form label {
    display: flex;
    align-items: center;
}
.provider-analytics-title {
    min-width: 0;
    gap: 14px;
}
.provider-analytics-logo {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--provider-color) 20%, #dce5ee);
    border-radius: 50%;
    background: #fff;
    color: var(--provider-color);
    font-size: 23px;
    font-weight: 800;
    box-shadow: 0 6px 18px
        color-mix(in srgb, var(--provider-color) 12%, transparent);
}
.provider-analytics-logo img,
.summary-provider-mark img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}
.provider-analytics-title h1 {
    margin: 0;
    color: #10213f;
    font-size: 26px;
    letter-spacing: -0.4px;
}
.provider-analytics-title p {
    margin: 4px 0 0;
    color: #687a9a;
    font-size: 12px;
}
.provider-analytics-actions {
    flex: 0 0 auto;
    gap: 10px;
}
.analytics-period-form label {
    min-height: 42px;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #d7e0ed;
    border-radius: 7px;
    background: #fff;
    color: #17284a;
}
.analytics-period-form select {
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}
.analytics-create-post {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--provider-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 14px
        color-mix(in srgb, var(--provider-color) 22%, transparent);
}
.analytics-create-post span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 15px;
}
.analytics-data-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--provider-color) 18%, #dce5ed);
    border-radius: 7px;
    background: var(--provider-soft);
    color: #4c5f7c;
    font-size: 10px;
}
.analytics-data-notice > span {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--provider-color);
    color: #fff;
    font-weight: 800;
}
.analytics-scope-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--provider-color) 22%, #dce5ed);
    border-radius: 8px;
    background: var(--provider-soft);
    color: #526580;
}
.analytics-scope-banner > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    background: var(--provider-color);
    color: #fff;
    font-size: 13px;
}
.analytics-scope-banner strong {
    color: #172a49;
    font-size: 11px;
}
.analytics-scope-banner p {
    margin: 3px 0 0;
    font-size: 10px;
    line-height: 1.45;
}
.analytics-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.92fr);
    gap: 12px;
}
.analytics-overview-card,
.analytics-summary-card,
.analytics-performance-card,
.analytics-list-card {
    border: 1px solid #e0e7f0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 45, 78, 0.025);
}
.analytics-overview-card,
.analytics-performance-card,
.analytics-list-card {
    padding: 16px;
}
.analytics-section-heading,
.analytics-summary-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.analytics-section-heading {
    margin-bottom: 11px;
}
.analytics-section-heading h2,
.analytics-summary-card h2 {
    margin: 0;
    color: #132444;
    font-size: 15px;
    letter-spacing: -0.2px;
}
.analytics-section-heading p,
.analytics-summary-card p {
    margin: 3px 0 0;
    color: #7182a0;
    font-size: 10px;
}
.analytics-section-heading.compact {
    margin-bottom: 9px;
}
.analytics-live-key {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #61728e;
    font-size: 9px;
    white-space: nowrap;
}
.analytics-live-key i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--provider-color);
}
.provider-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.provider-metric-card {
    position: relative;
    display: flex;
    min-height: 105px;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
    padding: 13px;
    border: 1px solid #e2e8f1;
    border-radius: 7px;
    background: linear-gradient(145deg, #fff 65%, var(--provider-soft));
}
.provider-metric-card > div {
    min-width: 0;
}
.provider-metric-card div > span {
    display: block;
    overflow: hidden;
    color: #536480;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.provider-metric-card strong {
    display: block;
    margin-top: 10px;
    color: #11213d;
    font-size: 20px;
    letter-spacing: -0.3px;
}
.provider-metric-icon {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--provider-soft);
    color: var(--provider-color);
}
.provider-metric-icon::before {
    font-size: 14px;
    font-weight: 800;
}
.metric-publish .provider-metric-icon::before {
    content: "\2713";
}
.metric-views .provider-metric-icon::before {
    content: "\25C9";
}
.metric-likes .provider-metric-icon::before {
    content: "\2665";
}
.metric-comments .provider-metric-icon::before {
    content: "\2026";
}
.metric-shares .provider-metric-icon::before {
    content: "\2197";
}
.metric-reposts .provider-metric-icon::before {
    content: "\21C4";
}
.metric-engagement .provider-metric-icon::before {
    content: "\2605";
}
.metric-delivery .provider-metric-icon::before {
    content: "\2192";
}
.metric-success .provider-metric-icon::before {
    content: "%";
}
.metric-accent {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 38px;
    height: 13px;
    border-bottom: 2px solid var(--provider-color);
    border-radius: 50%;
    opacity: 0.45;
    transform: rotate(-5deg);
}
.analytics-side-column {
    display: grid;
    gap: 12px;
}
.analytics-summary-card {
    padding: 15px;
    background: linear-gradient(135deg, #fff 55%, var(--provider-soft));
}
.summary-provider-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    background: #fff;
}
.summary-stat-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}
.summary-stat-pair > div {
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--provider-color) 15%, #e5eaf1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.76);
}
.summary-stat-pair span,
.analytics-summary-card footer span {
    display: block;
    color: #71819c;
    font-size: 9px;
}
.summary-stat-pair strong {
    display: block;
    margin-top: 4px;
    color: #152644;
    font-size: 18px;
}
.analytics-summary-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid rgba(205, 216, 230, 0.8);
}
.analytics-summary-card footer strong {
    color: #3e506d;
    font-size: 9px;
}
.performance-total {
    color: #122442;
    font-size: 22px;
    font-weight: 800;
}
.performance-total-label {
    display: block;
    margin-top: 1px;
    color: #72829c;
    font-size: 9px;
}
.line-chart {
    margin-top: 10px;
}
.line-chart svg {
    display: block;
    width: 100%;
    height: 142px;
    overflow: visible;
}
.line-chart line {
    stroke: #e6ebf2;
    stroke-width: 1;
}
.line-chart polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
}
.line-chart .chart-views {
    stroke: var(--provider-color);
}
.line-chart .chart-engagements {
    stroke: #18b67e;
}
.line-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #7a8aa2;
    font-size: 8px;
}
.provider-chart-legend {
    justify-content: center;
    margin-top: 9px;
    color: #61718c;
    font-size: 9px;
}
.provider-chart-legend .legend-views,
.provider-chart-legend .legend-engagements {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.provider-chart-legend .legend-views {
    background: var(--provider-color);
}
.provider-chart-legend .legend-engagements {
    background: #18b67e;
}
.analytics-lower-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.35fr);
    gap: 12px;
    margin-top: 12px;
}
.all-posts-analytics-card {
    grid-column: 1 / -1;
}
.analytics-post-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--provider-soft);
    color: var(--provider-color);
    font-size: 9px;
    font-weight: 800;
}
.all-posts-analytics-card .top-posts-table {
    min-width: 860px;
}
.analytics-account-list {
    display: grid;
    gap: 7px;
}
.analytics-account-list > a {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid #e3e9f1;
    border-radius: 7px;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.analytics-account-list > a:hover {
    border-color: color-mix(in srgb, var(--provider-color) 35%, #dce3ec);
    background: var(--provider-soft);
}
.analytics-account-avatar {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--provider-color);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.analytics-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.analytics-account-list a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.analytics-account-list a > span:nth-child(2) strong {
    overflow: hidden;
    color: #21324e;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.analytics-account-list small {
    color: #7888a0;
    font-size: 8px;
}
.account-published-count {
    display: grid;
    justify-items: end;
    gap: 2px;
}
.account-published-count strong {
    color: #263852;
    font-size: 12px;
}
.analytics-account-list a > b {
    color: var(--provider-color);
    font-size: 19px;
}
.analytics-empty-state {
    display: grid;
    min-height: 104px;
    place-content: center;
    gap: 5px;
    border: 1px dashed #ccd6e2;
    border-radius: 7px;
    color: #6c7d96;
    font-size: 10px;
    text-align: center;
}
.analytics-empty-state strong {
    color: #2c3d58;
    font-size: 11px;
}
.top-posts-table-wrap {
    overflow-x: auto;
}
.top-posts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}
.top-posts-table th {
    padding: 7px;
    border-bottom: 1px solid #e4e9f0;
    background: #f8fafc;
    color: #708098;
    font-size: 8px;
    text-align: left;
}
.top-posts-table td {
    padding: 8px 7px;
    border-bottom: 1px solid #e8edf3;
    color: #34465f;
}
.top-posts-table tr:last-child td {
    border-bottom: 0;
}
.top-posts-table td:first-child {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 8px;
}
.top-post-thumbnail {
    display: grid;
    width: 43px;
    height: 29px;
    flex: 0 0 43px;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: var(--provider-soft);
    color: var(--provider-color);
}
.top-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-posts-table td:first-child > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.top-posts-table td:first-child strong {
    overflow: hidden;
    max-width: 210px;
    color: #273951;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-posts-table td:first-child small {
    color: #8190a6;
    font-size: 8px;
}
.post-type-pill {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--provider-soft);
    color: var(--provider-color);
    font-size: 8px;
    font-weight: 750;
}
.top-posts-table td:last-child a {
    color: var(--provider-color);
    font-size: 14px;
    font-weight: 800;
}
.top-posts-empty {
    height: 90px;
    color: #7c8ca2 !important;
    text-align: center;
}

@media (max-width: 1120px) {
    .analytics-dashboard-grid,
    .analytics-lower-grid {
        grid-template-columns: 1fr;
    }
    .analytics-side-column {
        grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    }
}
@media (max-width: 760px) {
    .provider-analytics-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .provider-analytics-actions,
    .analytics-period-form,
    .analytics-period-form label {
        width: 100%;
    }
    .analytics-period-form select {
        flex: 1;
    }
    .analytics-create-post {
        flex: 0 0 auto;
    }
    .provider-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .analytics-side-column {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 470px) {
    .provider-analytics-title h1 {
        font-size: 21px;
    }
    .provider-analytics-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .provider-metric-grid {
        grid-template-columns: 1fr;
    }
    .provider-metric-card {
        min-height: 82px;
    }
}

/* Multi-provider content calendar */
.social-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 3.45fr) minmax(235px, 0.95fr);
    gap: 12px;
    margin-top: 16px;
}
.social-calendar-main,
.calendar-side-card {
    border: 1px solid #dfe7f1;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 47, 83, 0.025);
}
.social-calendar-main {
    min-width: 0;
    overflow: hidden;
}
.social-calendar-heading {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f1;
}
.social-calendar-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}
.calendar-title-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 8px;
    background: #e9f3ff;
    color: #1677ff;
    font-size: 27px;
}
.social-calendar-title h1 {
    margin: 0;
    color: #122343;
    font-size: 20px;
    letter-spacing: -0.25px;
}
.social-calendar-title p {
    margin: 5px 0 0;
    color: #7283a1;
    font-size: 11px;
}
.calendar-create-post {
    display: inline-flex;
    min-height: 39px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 6px;
    background: #086bf2;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(8, 107, 242, 0.18);
}
.calendar-create-post span {
    font-size: 15px;
    transform: rotate(-25deg);
}
.calendar-toolbar {
    display: flex;
    min-height: 61px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 13px;
}
.calendar-month-navigation,
.calendar-view-controls {
    display: flex;
    align-items: center;
}
.calendar-month-navigation {
    gap: 8px;
}
.calendar-month-navigation > a,
.calendar-view-controls > a {
    display: grid;
    min-width: 36px;
    height: 34px;
    place-items: center;
    border: 1px solid #d6e0ec;
    border-radius: 6px;
    background: #fff;
    color: #263a5b;
    font-size: 18px;
    font-weight: 700;
}
.calendar-month-navigation h2 {
    margin: 0 0 0 10px;
    color: #132543;
    font-size: 18px;
    letter-spacing: -0.2px;
}
.calendar-view-controls {
    overflow: hidden;
    border: 1px solid #d5dfeb;
    border-radius: 6px;
}
.calendar-view-controls > span {
    display: grid;
    min-width: 60px;
    height: 34px;
    place-items: center;
    border-right: 1px solid #dce4ee;
    color: #405270;
    font-size: 10px;
    cursor: default;
}
.calendar-view-controls > span.is-active {
    background: #086bf2;
    color: #fff;
    font-weight: 800;
}
.calendar-view-controls > a {
    min-width: 58px;
    height: 34px;
    border: 0;
    border-radius: 0;
    font-size: 10px;
}
.calendar-table-wrap {
    margin: 0 12px 14px;
    overflow-x: auto;
    border: 1px solid #dce5ef;
    border-radius: 7px;
}
.provider-calendar {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
}
.provider-calendar th {
    height: 34px;
    border-right: 1px solid #dfe7f0;
    background: #f4f7fb;
    color: #263a5b;
    font-size: 10px;
    font-weight: 750;
}
.provider-calendar th:last-child {
    border-right: 0;
}
.provider-calendar td {
    height: 105px;
    padding: 6px;
    border-top: 1px solid #dfe7f0;
    border-right: 1px solid #dfe7f0;
    background: #fff;
    color: #203553;
    font-size: 10px;
    vertical-align: top;
}
.provider-calendar td:last-child {
    border-right: 0;
}
.provider-calendar td.is-outside {
    background: #fbfcfe;
    color: #bbc6d5;
}
.provider-calendar td > time {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
}
.provider-calendar td.is-today > time {
    background: #086bf2;
    color: #fff;
}
.calendar-day-events {
    display: grid;
    gap: 3px;
    margin-top: 3px;
}
.provider-calendar-event {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 10px;
    align-items: start;
    gap: 5px;
    min-width: 0;
    padding: 5px;
    border-left: 2px solid var(--event-color);
    border-radius: 5px;
    background: var(--event-soft);
    color: #183252;
}
.provider-calendar-event.status-failed {
    border-left-color: #ef4444;
    background: #fff0f0;
}
.provider-calendar-event.status-draft {
    border-left-color: #8290a8;
    background: #f2f4f7;
}
.provider-calendar-event.status-published {
    box-shadow: inset 0 0 0 1px rgba(20, 174, 93, 0.08);
}
.calendar-event-logo {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    color: var(--event-color);
    font-size: 8px;
    font-weight: 800;
}
.calendar-event-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.provider-calendar-event > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.provider-calendar-event strong {
    color: #28405f;
    font-size: 8px;
}
.provider-calendar-event small {
    overflow: hidden;
    color: #1b3150;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.provider-calendar-event > b {
    color: var(--event-color);
    font-size: 12px;
    line-height: 1;
}
.calendar-more-events {
    color: #60738f;
    font-size: 8px;
    font-weight: 700;
}
.social-calendar-sidebar {
    display: grid;
    align-content: start;
    gap: 10px;
}
.calendar-side-card {
    padding: 14px;
}
.calendar-side-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.calendar-side-card h2 {
    margin: 0;
    color: #172947;
    font-size: 13px;
}
.calendar-side-card header > a {
    color: #086bf2;
    font-size: 9px;
    font-weight: 700;
}
.calendar-filter-card form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.calendar-filter-card label {
    display: grid;
    gap: 4px;
}
.calendar-filter-card label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.calendar-filter-card select {
    width: 100%;
    min-height: 35px;
    padding: 7px 30px 7px 10px;
    border: 1px solid #d5dfeb;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: #40516d;
    font-size: 10px;
}
.calendar-filter-card select:focus {
    border-color: #086bf2;
    box-shadow: 0 0 0 3px rgba(8, 107, 242, 0.08);
}
.calendar-filter-card button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: #086bf2;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}
.calendar-status-card ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding: 0;
    color: #61738f;
    font-size: 10px;
    list-style: none;
}
.calendar-status-card li {
    display: flex;
    align-items: center;
    gap: 9px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot.scheduled {
    background: #2f80ed;
}
.status-dot.published {
    background: #17b05b;
}
.status-dot.draft {
    background: #8290a8;
}
.status-dot.failed {
    background: #ef4444;
}
.upcoming-post-list {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}
.upcoming-post-list > a {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.upcoming-post-thumb {
    display: grid;
    width: 39px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    background: var(--event-soft);
}
.upcoming-post-thumb img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}
.upcoming-post-list > a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.upcoming-post-list small {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: #8290a7;
    font-size: 7px;
    white-space: nowrap;
}
.upcoming-post-list small img {
    width: 13px;
    height: 13px;
    object-fit: contain;
}
.upcoming-post-list strong {
    overflow: hidden;
    color: #233750;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upcoming-post-list b {
    color: #536782;
}
.calendar-upcoming-empty {
    display: grid;
    min-height: 85px;
    place-content: center;
    gap: 4px;
    color: #7b8ba2;
    font-size: 9px;
    text-align: center;
}
.calendar-upcoming-empty strong {
    color: #30435d;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .social-calendar-layout {
        grid-template-columns: 1fr;
    }
    .social-calendar-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .social-calendar-heading,
    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .calendar-create-post {
        align-self: stretch;
        justify-content: center;
    }
    .calendar-toolbar {
        padding: 12px;
    }
    .calendar-view-controls {
        width: 100%;
        overflow-x: auto;
    }
    .calendar-view-controls > span,
    .calendar-view-controls > a {
        flex: 1;
    }
    .social-calendar-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Workspace-wide search */
.global-search-page {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.global-search-heading,
.search-result-section {
    border: 1px solid #dee7f0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(21, 45, 77, 0.025);
}
.global-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}
.global-search-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.global-search-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 9px;
    background: #eaf3ff;
    color: #096cf2;
    font-size: 19px;
}
.global-search-heading h1 {
    margin: 0;
    color: #142744;
    font-size: 20px;
}
.global-search-heading p {
    margin: 4px 0 0;
    color: #71829c;
    font-size: 10px;
}
.global-search-heading > a {
    padding: 8px 11px;
    border: 1px solid #d3deea;
    border-radius: 6px;
    color: #40536f;
    font-size: 9px;
    font-weight: 700;
}
.search-result-section {
    padding: 15px;
}
.search-result-section > header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}
.search-result-section > header h2 {
    margin: 0;
    color: #1a2d49;
    font-size: 13px;
}
.search-result-section > header span {
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #edf2f7;
    color: #64758e;
    font-size: 8px;
}
.search-destination-grid,
.search-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.search-destination-grid > a,
.search-account-grid > a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e1e8f0;
    border-radius: 7px;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.search-destination-grid > a:hover,
.search-account-grid > a:hover {
    border-color: #9ac2f7;
    background: #f7fbff;
}
.search-destination-grid > a > span:first-child,
.search-account-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #edf5ff;
    color: #096cf2;
    font-size: 17px;
    font-weight: 800;
}
.search-account-avatar {
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dfe6ee;
}
.search-account-avatar img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}
.search-destination-grid a > div,
.search-account-grid a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.search-destination-grid strong,
.search-account-grid strong {
    overflow: hidden;
    color: #263a57;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-destination-grid small,
.search-account-grid small {
    overflow: hidden;
    color: #7889a1;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-destination-grid b,
.search-account-grid b {
    color: #096cf2;
    font-size: 17px;
}
.search-post-list {
    display: grid;
    gap: 7px;
}
.search-post-list article {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid #e1e8f0;
    border-radius: 7px;
}
.search-post-media {
    display: grid;
    width: 90px;
    height: 60px;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #edf2f7;
    color: #60738e;
    font-size: 19px;
}
.search-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-post-media.is-empty::before {
    color: #8b9aaf;
    content: "No media";
    font-size: 8px;
}
.search-post-copy {
    min-width: 0;
}
.search-provider-icons {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}
.search-provider-icons img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}
.search-post-copy h3 {
    margin: 0;
    color: #203450;
    font-size: 11px;
}
.search-post-copy p {
    overflow: hidden;
    margin: 4px 0;
    color: #5e7089;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-post-copy > small {
    color: #8190a5;
    font-size: 8px;
}
.search-open-result {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #096cf2;
    font-size: 9px;
    font-weight: 750;
}
.search-open-result span {
    font-size: 16px;
}
.global-search-empty {
    display: grid;
    min-height: 125px;
    place-content: center;
    justify-items: center;
    gap: 5px;
    color: #7688a0;
    text-align: center;
}
.global-search-empty > span {
    font-size: 22px;
}
.global-search-empty strong {
    color: #30425d;
    font-size: 11px;
}
.global-search-empty p {
    margin: 0;
    font-size: 9px;
}
.global-search-empty-all {
    border: 1px dashed #cad6e3;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 720px) {
    .search-destination-grid,
    .search-account-grid {
        grid-template-columns: 1fr;
    }
    .global-search-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .search-post-list article {
        grid-template-columns: 68px minmax(0, 1fr);
    }
    .search-post-media {
        width: 68px;
        height: 58px;
    }
    .search-open-result {
        grid-column: 2;
    }
}
/* Container adjustment to align the icon nicely with text */
a span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 8px; /* Spaces the icon from the text */
}

.bi-send ::after {
    color: var(--primary);
}

/* OAuth account and destination selection */
.selection-shell {
    min-height: 70vh;
    padding: 60px 20px;
    background:
        radial-gradient(circle at top right, rgba(19, 165, 56, 0.08), transparent 34%),
        #f6f8fb;
}
.selection-layout {
    display: grid;
    max-width: 940px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 20px;
    align-items: start;
}
.selection-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}
.selection-layout .selection-card {
    width: 100%;
    max-width: none;
}
.selection-kicker {
    color: #148b32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.selection-card h1,
.selection-card h2 {
    margin: 8px 0;
    color: #172033;
    font-weight: 800;
}
.selection-card h1 {
    font-size: clamp(24px, 3vw, 30px);
}
.selection-card h2 {
    font-size: 23px;
}
.selection-card > p {
    margin: 0 0 24px;
    color: #667085;
    line-height: 1.55;
}
.selection-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}
.selection-options label,
.selection-action-options form {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}
.selection-options label {
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.selection-options label:hover,
.selection-options label:has(input:checked) {
    border-color: #59b86f;
    background: #f1fbf3;
    box-shadow: 0 0 0 3px rgba(19, 165, 56, 0.08);
}
.selection-options input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--green);
}
.selection-options label > span,
.selection-option-copy,
.selection-option-copy > span:last-child {
    display: flex;
    min-width: 0;
}
.selection-options label > span,
.selection-option-copy > span:last-child {
    flex-direction: column;
}
.selection-options strong {
    color: #27364e;
}
.selection-options small {
    margin-top: 4px;
    color: #667085;
}
.selection-card button {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #138f34;
    border-radius: 9px;
    background: #15963a;
    color: #fff;
    font-weight: 800;
    transition: background 0.15s, transform 0.15s;
}
.selection-card button:hover {
    background: #107b2e;
    transform: translateY(-1px);
}
.selection-card button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}
.selection-action-options form {
    justify-content: space-between;
}
.selection-option-copy {
    align-items: center;
    gap: 12px;
}
.selection-provider-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}
.selection-provider-mark.facebook {
    background: #1877f2;
}
.selection-card .selection-inline-button {
    width: auto;
    flex: 0 0 auto;
    padding: 9px 16px;
}
.selection-alert {
    margin: 0 0 18px;
}
.selection-connected-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #a6f4c5;
    border-radius: 9px;
    background: #ecfdf3;
    color: #166534;
    font-size: 13px;
    line-height: 1.5;
}
.selection-empty-state {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #667085;
}
.selection-empty-state strong {
    color: #344054;
}
.selection-field {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}
.selection-field span small {
    color: #98a2b3;
    font-weight: 500;
}
.selection-field input,
.selection-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    outline: none;
}
.selection-field textarea {
    min-height: 96px;
    resize: vertical;
}
.selection-field input:focus,
.selection-field textarea:focus {
    border-color: #59b86f;
    box-shadow: 0 0 0 3px rgba(19, 165, 56, 0.1);
}

@media (max-width: 820px) {
    .selection-shell {
        padding: 30px 14px;
    }
    .selection-layout {
        grid-template-columns: 1fr;
    }
    .selection-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .selection-action-options form {
        align-items: stretch;
        flex-direction: column;
    }
    .selection-card .selection-inline-button {
        width: 100%;
    }
}

/* Read-only provider identities */
.read-only-profile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 30px;
}
.read-only-profile-avatar {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #1877f2;
    box-shadow: 0 0 0 1px #d9e2ec, 0 10px 24px rgba(16, 24, 40, 0.12);
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}
.read-only-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.read-only-profile-kicker {
    color: #1877f2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.read-only-profile-copy h1 {
    margin: 5px 0 7px;
    color: #172033;
    font-size: 24px;
}
.read-only-profile-copy > p {
    max-width: 700px;
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}
.read-only-profile-copy dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 17px 0 0;
}
.read-only-profile-copy dl > div {
    display: flex;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 10px;
}
.read-only-profile-copy dt {
    color: #667085;
    font-weight: 600;
}
.read-only-profile-copy dd {
    margin: 0;
    color: #344054;
    font-weight: 800;
}
.read-only-profile-action {
    padding: 11px 15px;
    border: 1px solid #15963a;
    border-radius: 8px;
    background: #15963a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.read-only-profile-action:hover {
    background: #107b2e;
    color: #fff;
}

@media (max-width: 760px) {
    .read-only-profile-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 22px;
    }
    .read-only-profile-action {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .read-only-profile-card {
        justify-items: center;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .read-only-profile-copy dl {
        justify-content: center;
    }
    .read-only-profile-action {
        grid-column: auto;
        width: 100%;
    }
}

/* Compact social post feed and native-style conversations */
.social-management-content .managed-post-list {
    gap: 8px;
}
.social-management-content .managed-post {
    border-color: #dbe5ef;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}
.social-management-content .managed-post:hover {
    border-color: #b9cce2;
    box-shadow: 0 5px 16px rgba(31, 58, 91, 0.07);
}
.social-management-content .managed-post-summary {
    grid-template-columns: 136px minmax(260px, 1fr) minmax(245px, auto);
    gap: 16px;
    min-height: 112px;
    padding: 10px 13px;
}
.social-management-content .managed-post-media {
    width: 136px;
    height: 92px;
    border-color: #d8e2ed;
    border-radius: 8px;
    background: #f0f4f8;
}
.social-management-content .managed-post-copy h2 {
    margin-bottom: 5px;
    color: #14213d;
    font-size: 13px;
    font-weight: 800;
}
.social-management-content .managed-post-copy > p {
    color: #415775;
    font-size: 11px;
    line-height: 1.45;
}
.social-management-content .managed-post-meta {
    color: #6f82a0;
    font-size: 9px;
}
.managed-post-performance {
    display: grid;
    min-width: 245px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 13px;
}
.managed-post-performance .post-status {
    position: static;
    padding: 5px 11px;
}
.managed-post-performance .engagement-metrics {
    min-width: 0;
    justify-content: flex-start;
    gap: 17px;
    color: #243b5a;
}
.managed-post-performance .engagement-metrics span,
.engagement-comment-metric,
.engagement-like-metric {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 11px;
    white-space: nowrap;
}
.managed-post-performance .engagement-metrics i {
    color: #27466f;
    font-size: 17px;
    font-style: normal;
    line-height: 1;
}
.engagement-comment-metric {
    cursor: pointer;
    border-radius: 6px;
}
.engagement-like-metric {
    cursor: pointer;
    border-radius: 6px;
}
.engagement-comment-metric:hover,
.engagement-comment-metric:focus-visible,
.engagement-like-metric:hover,
.engagement-like-metric:focus-visible,
.engagement-like-metric.is-liked {
    color: #0b6cf2;
    outline: none;
}
.engagement-comment-metric:hover i,
.engagement-comment-metric:focus-visible i,
.engagement-like-metric:hover i,
.engagement-like-metric:focus-visible i,
.engagement-like-metric.is-liked i {
    color: #0b6cf2;
}
.engagement-like-metric[aria-busy="true"] {
    cursor: wait;
    opacity: 0.55;
}
.post-action-feedback {
    margin: 0;
    padding: 7px 13px;
    border-top: 1px solid #dce9f8;
    background: #eef6ff;
    color: #245d9f;
    font-size: 9px;
}
.post-action-feedback.is-error {
    border-color: #f6d2d2;
    background: #fff1f1;
    color: #a52d2d;
}
.social-management-content .engagement-toolbar {
    min-height: 34px;
    padding: 5px 10px;
    border-top-color: #edf1f5;
    background: #fbfcfe;
}

.comments-dialog {
    width: min(680px, calc(100vw - 28px));
    max-height: min(86vh, 820px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 85px rgba(8, 25, 50, 0.3);
}
.comments-dialog::backdrop {
    background: rgba(10, 24, 43, 0.58);
    backdrop-filter: blur(2px);
}
.comments-dialog-card {
    display: flex;
    max-height: min(86vh, 820px);
    flex-direction: column;
}
.comments-dialog-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e5ebf2;
}
.comments-dialog-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comments-dialog-header > div > span:last-child {
    display: grid;
    gap: 2px;
}
.comments-dialog-header h2 {
    margin: 0;
    color: #17243b;
    font-size: 17px;
}
.comments-dialog-header small {
    color: #718198;
    font-size: 10px;
}
.comments-dialog-header form button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 50%;
    background: #f7f9fc;
    color: #455a75;
    cursor: pointer;
    font-size: 22px;
}
.comments-dialog-platform {
    width: 38px;
    height: 38px;
}
.comments-post-context {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    border-bottom: 1px solid #e9eef4;
    background: #f8fafc;
}
.comments-post-context > img,
.comments-post-placeholder {
    display: grid;
    width: 62px;
    height: 46px;
    place-items: center;
    border-radius: 7px;
    background: #e8eef6;
    color: #59708e;
    object-fit: cover;
    font-weight: 800;
}
.comments-post-context strong {
    display: block;
    overflow: hidden;
    color: #1d2d46;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.comments-post-context p {
    overflow: hidden;
    margin: 3px 0 0;
    color: #657792;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-comment-composer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-bottom: 1px solid #e9eef4;
}
.social-comment-avatar,
.social-comment-avatar img {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #e6f4eb;
    color: #147a37;
    object-fit: cover;
    font-size: 11px;
    font-weight: 800;
}
.social-comment-composer input[name="message"] {
    width: 100%;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d8e1eb;
    border-radius: 999px;
    background: #f4f6f9;
    outline: 0;
    color: #283d59;
    font-size: 11px;
}
.social-comment-composer input[name="message"]:focus {
    border-color: #8eb8ee;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.09);
}
.social-comment-composer button,
.comments-dialog .comment-reply-form button {
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: #1677e8;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}
.social-comment-list {
    flex: 1 1 auto;
    min-height: 180px;
    padding: 8px 18px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.comments-dialog .engagement-comment {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 0;
    border: 0;
}
.comments-dialog .engagement-comment > img,
.comments-dialog .comment-avatar {
    width: 36px;
    height: 36px;
    background: #e8eef7;
    color: #315578;
    font-size: 11px;
}
.social-comment-thread {
    min-width: 0;
}
.social-comment-bubble {
    display: inline-block;
    max-width: min(100%, 520px);
    padding: 9px 12px;
    border-radius: 4px 14px 14px 14px;
    background: #f0f3f7;
}
.social-comment-bubble strong {
    display: block;
    color: #1f334f;
    font-size: 10px;
}
.social-comment-bubble strong small {
    color: #73839a;
}
.social-comment-bubble p {
    margin: 3px 0 0;
    color: #314966;
    font-size: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.social-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 0;
    color: #7c8da3;
    font-size: 8px;
    font-weight: 650;
}
.social-comment-meta button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #526984;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
}
.comments-dialog .comment-reply-form {
    margin: 8px 0 2px;
}
.comments-dialog .comment-reply-form[hidden] {
    display: none;
}
.comments-dialog .comment-reply-form input[type="text"] {
    border-radius: 999px;
    background: #f7f9fb;
}
.comments-dialog .nested-reply {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 8px;
    margin: 10px 0 0 15px;
    padding: 0;
    border: 0;
    background: transparent;
}
.comments-dialog .nested-reply > img,
.comments-dialog .nested-reply > .comment-avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
}
.comments-dialog .nested-reply .social-comment-bubble {
    padding: 7px 10px;
    border-radius: 4px 12px 12px 12px;
}
.comments-dialog .nested-reply small {
    display: block;
    padding: 3px 8px 0;
    color: #8492a5;
    font-size: 8px;
}
.comments-empty-state {
    display: grid;
    min-height: 210px;
    place-content: center;
    justify-items: center;
    gap: 5px;
    color: #708198;
    text-align: center;
}
.comments-empty-state > span {
    font-size: 28px;
}
.comments-empty-state strong {
    color: #344861;
    font-size: 12px;
}
.comments-empty-state p {
    max-width: 330px;
    margin: 0;
    font-size: 9px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .social-management-content .managed-post-summary {
        grid-template-columns: 118px minmax(0, 1fr);
    }
    .social-management-content .managed-post-media {
        width: 118px;
    }
    .managed-post-performance {
        grid-column: 2;
        min-width: 0;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }
}

@media (max-width: 560px) {
    .social-management-content .managed-post-summary {
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: start;
    }
    .social-management-content .managed-post-media {
        width: 92px;
        height: 78px;
        aspect-ratio: auto;
    }
    .managed-post-performance {
        grid-column: 1 / -1;
    }
    .managed-post-performance .engagement-metrics {
        flex-wrap: wrap;
    }
    .comments-dialog {
        width: calc(100vw - 14px);
        max-height: calc(100vh - 14px);
        border-radius: 13px;
    }
    .comments-dialog-card {
        max-height: calc(100vh - 14px);
    }
    .social-comment-composer {
        grid-template-columns: 30px minmax(0, 1fr);
    }
    .social-comment-composer button {
        grid-column: 2;
        justify-self: end;
    }
}

/* Keep the Unified Posts dashboard content inside the TityProperty shell. */
.social-management-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.social-platform-strip {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.account-switcher {
    min-height: 76px;
    margin-top: -10px;
    padding-block: 12px;
    background: #fff;
}

.account-switcher-label {
    display: flex;
    min-width: 150px;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 3px;
}

.account-switcher-label strong {
    color: #1b3328;
    font-size: 13px;
}

.account-switcher-label small {
    color: #73867d;
    font-size: 10px;
}

.account-switcher .account-button {
    min-width: 190px;
    flex-basis: 190px;
}

.account-switcher-option {
    position: relative;
    display: flex;
    min-width: 230px;
    flex: 1 0 230px;
    align-items: stretch;
}

.account-switcher-option .account-button {
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 48px;
    border-radius: 9px;
}

.account-options-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 8px;
    display: grid;
    width: 30px;
    height: 34px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #52665c;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.account-options-button:hover,
.account-options-button:focus-visible {
    background: rgba(20, 129, 61, 0.1);
    color: var(--primary-dark);
}

.account-disconnect-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(16, 42, 33, 0.24);
}

.account-disconnect-dialog::backdrop {
    background: rgba(10, 28, 21, 0.48);
}

.account-disconnect-card {
    position: relative;
    padding: 26px;
    text-align: center;
}

.account-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #667b70;
    cursor: pointer;
    font-size: 24px;
}

.account-dialog-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 13px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f0;
    font-size: 20px;
}

.account-disconnect-card h2 {
    margin: 0 0 8px;
    color: #173126;
    font-size: 19px;
}

.account-disconnect-card p {
    margin: 0;
    color: #60736a;
    font-size: 12px;
    line-height: 1.55;
}

.account-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.account-dialog-actions button {
    min-height: 40px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.account-dialog-cancel {
    border: 1px solid #d6e1db;
    background: #fff;
    color: #385247;
}

.account-disconnect-button {
    border: 1px solid #c53030;
    background: #c53030;
    color: #fff;
}

.account-switcher .account-avatar {
    overflow: hidden;
    border-radius: 50%;
}

.account-switcher .account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pending-social-connection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.pending-social-connection a {
    flex: 0 0 auto;
    color: #7a4c00;
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .social-platform-strip {
        padding-inline: 14px;
    }

    .pending-social-connection {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-switcher {
        align-items: stretch;
        flex-direction: column;
    }

    .account-switcher-label {
        min-width: 0;
    }
}

/* Responsive hardening for the social workspace inside authenticated shells. */
.social-management-content {
    min-width: 0;
    container-type: inline-size;
}

.social-management-content .platform-switcher-list,
.social-management-content .content-tabs,
.social-management-content .posts-manager,
.social-management-content .managed-post-copy {
    min-width: 0;
}

.social-management-content .posts-manager-header {
    flex-wrap: wrap;
}

.social-management-content .posts-manager-title {
    flex: 1 1 280px;
}

.social-management-content .posts-search-form {
    flex: 1 1 760px;
    flex-wrap: wrap;
}

.social-management-content .post-list-options {
    flex-wrap: wrap;
}

@container (max-width: 1180px) {
    .social-management-content .posts-manager-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .social-management-content .posts-manager-title,
    .social-management-content .posts-search-form {
        width: 100%;
        flex: 0 0 auto;
    }

    .social-management-content .posts-search-form {
        justify-content: flex-start;
    }

    .social-management-content .managed-post-summary {
        grid-template-columns: 125px minmax(230px, 1fr) auto auto;
    }

    .social-management-content .managed-post-media {
        width: 125px;
    }

    .social-management-content .managed-post-links {
        grid-column: 2 / -1;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* Viewport fallback for browsers without container-query support. */
@media (max-width: 1200px) {
    .social-management-content .posts-manager-title,
    .social-management-content .posts-search-form {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: auto;
    }
}

@media (max-width: 991.98px) {
    .social-management-content .social-platform-strip {
        margin-bottom: 14px;
    }
}

@media (max-width: 760px) {
    .social-management-content .social-platform-strip {
        gap: 8px;
        padding: 10px;
    }

    .social-management-content .platform-switcher-list {
        gap: 8px;
        scroll-snap-type: x proximity;
    }

    .social-management-content .platform-button {
        min-width: 150px;
        flex-basis: 150px;
        scroll-snap-align: start;
    }

    .social-management-content .platform-add-button {
        width: 48px;
        min-height: 56px;
        justify-content: center;
        padding: 8px;
    }

    .social-management-content .platform-add-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .social-management-content .content-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .social-management-content .content-tabs a {
        min-height: 48px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .social-management-content .posts-manager-title {
        min-width: 0;
    }

    .social-management-content .posts-search-form > .filter-submit,
    .social-management-content .posts-search-form > .create-post-button {
        min-height: 44px;
        flex: 1 1 auto;
    }

    .social-management-content .posts-date-range,
    .social-management-content .posts-search-box {
        min-height: 44px;
    }

    .social-management-content .post-status-tabs > a,
    .social-management-content .post-list-options select,
    .social-management-content .post-list-options button {
        min-height: 44px;
    }

    .social-management-content .post-list-options select {
        min-width: 0;
    }

    .social-management-content .managed-post-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .social-management-content .platform-button {
        min-width: 138px;
        flex-basis: 138px;
    }

    .social-management-content .platform-button b {
        width: 31px;
        height: 31px;
    }

    .social-management-content .content-tabs a {
        padding-inline: 13px;
    }

    .social-management-content .posts-manager {
        padding: 12px;
    }

    .social-management-content .posts-manager-header {
        gap: 14px;
    }

    .social-management-content .posts-manager-title h1 {
        font-size: 19px;
    }

    .social-management-content .posts-manager-title p {
        line-height: 1.45;
    }

    .social-management-content .posts-date-range {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .social-management-content .posts-date-range input {
        width: 100%;
        max-width: 100%;
    }

    .social-management-content .posts-search-form > .filter-submit,
    .social-management-content .posts-search-form > .create-post-button {
        flex-basis: calc(50% - 5px);
    }

    .social-management-content .sync-account-posts-button {
        flex-basis: 100% !important;
    }

    .social-management-content .post-status-tabs {
        gap: 6px;
    }

    .social-management-content .post-status-tabs > a {
        flex: 1 1 calc(33.333% - 6px);
        padding-inline: 8px;
        text-align: center;
    }

    .social-management-content .post-list-options {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .social-management-content .post-list-options button {
        grid-column: 1 / -1;
    }

    .social-management-content .managed-post-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .social-management-content .managed-post-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .social-management-content .managed-post-copy,
    .social-management-content .engagement-metrics,
    .social-management-content .managed-post-links {
        grid-column: 1;
    }

    .social-management-content .managed-post-copy h2 {
        padding-right: 64px;
        white-space: normal;
    }

    .social-management-content .engagement-metrics {
        min-width: 0;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .social-management-content .managed-post-links {
        justify-content: flex-start;
    }

    .social-management-content .comment-reply-form {
        flex-direction: column;
    }

    .social-management-content .comment-reply-form button {
        min-height: 40px;
    }
}

/* Keep the compact feed layout authoritative after shell responsive rules. */
@container (max-width: 1180px) {
    .social-management-content .managed-post-summary {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .social-management-content .managed-post-media {
        width: 118px;
    }

    .social-management-content .managed-post-performance {
        grid-column: 2;
        min-width: 0;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }
}

@media (max-width: 480px) {
    .social-management-content .managed-post-performance {
        grid-column: 1;
        grid-template-columns: auto minmax(0, 1fr);
    }
}

/* Action-led post rows, in-app insights, and scheduled-post editing. */
.social-management-content .managed-post-summary {
    grid-template-columns: 136px minmax(260px, 1fr) minmax(220px, auto) auto;
}
.managed-post-performance {
    min-width: 220px;
}
.managed-post-performance .engagement-metrics b {
    font: inherit;
}
.managed-post-actions {
    display: flex;
    min-width: 142px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.managed-post-actions form {
    margin: 0;
}
.managed-post-actions button {
    min-height: 38px;
    border: 1px solid #d6e2f0;
    border-radius: 8px;
    background: #fff;
    color: #0b6cf2;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.managed-post-actions button:hover,
.managed-post-actions button:focus-visible {
    border-color: #8eb8ee;
    background: #f2f7ff;
    outline: none;
    transform: translateY(-1px);
}
.managed-post-actions .post-action-icon {
    display: grid;
    width: 38px;
    flex: 0 0 38px;
    padding: 0;
    place-items: center;
    font-size: 15px;
}
.managed-post-actions .post-action-primary {
    display: inline-flex;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.managed-post-actions .post-action-edit {
    min-width: 102px;
}
.managed-post-actions .post-action-danger {
    border-color: #f3c2c2;
    color: #b42318;
}
.managed-post-actions .post-action-danger:hover,
.managed-post-actions .post-action-danger:focus-visible {
    border-color: #e78f8f;
    background: #fff1f1;
}
.social-management-content .engagement-toolbar[hidden] {
    display: none !important;
}

.post-insights-dialog,
.schedule-edit-dialog {
    width: min(650px, calc(100vw - 28px));
    max-height: min(88vh, 780px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 85px rgba(8, 25, 50, 0.3);
}
.post-insights-dialog::backdrop,
.schedule-edit-dialog::backdrop {
    background: rgba(10, 24, 43, 0.58);
    backdrop-filter: blur(2px);
}
.post-insights-header,
.schedule-edit-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid #e5ebf2;
}
.post-insights-header > div,
.schedule-edit-card > header > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}
.post-insights-header > div > span:last-child,
.schedule-edit-card > header > div > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.post-insights-header h2,
.schedule-edit-card h2 {
    margin: 0;
    color: #17243b;
    font-size: 17px;
}
.post-insights-header h2 em {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b6cf2;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle;
}
.post-insights-header small,
.schedule-edit-card header small {
    overflow: hidden;
    max-width: 420px;
    color: #718198;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-insights-header form button,
.schedule-edit-card [data-close-dialog] {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 50%;
    background: #f7f9fc;
    color: #455a75;
    cursor: pointer;
    font-size: 22px;
}
.post-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 22px 19px;
}
.post-insights-scope {
    margin: 0;
    padding: 10px 19px;
    border-bottom: 1px solid #e5ebf2;
    background: #f8fafc;
    color: #64748b;
    font-size: 9px;
    line-height: 1.5;
}
.post-insights-grid article {
    display: grid;
    min-height: 112px;
    place-content: center;
    justify-items: center;
    gap: 4px;
    border: 1px solid #e0e8f2;
    border-radius: 12px;
    background: #f8faff;
    text-align: center;
}
.post-insights-grid article > span {
    color: #0b6cf2;
    font-size: 21px;
}
.post-insights-grid strong {
    color: #17243b;
    font-size: 21px;
}
.post-insights-grid small {
    color: #718198;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.post-insights-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 19px;
    border-top: 1px solid #e5ebf2;
    background: #f8fafc;
    color: #718198;
    font-size: 10px;
}
.post-insights-footer button {
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    background: #0b6cf2;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}
.dialog-feedback {
    margin: 0;
    padding: 8px 18px;
    border-bottom: 1px solid #dce9f8;
    background: #eef6ff;
    color: #245d9f;
    font-size: 9px;
}
.dialog-feedback.is-error {
    border-color: #f6d2d2;
    background: #fff1f1;
    color: #a52d2d;
}

.schedule-edit-card {
    max-height: min(88vh, 780px);
    overflow-y: auto;
}
.schedule-edit-fields {
    display: grid;
    gap: 15px;
    padding: 20px;
}
.schedule-edit-fields label {
    display: grid;
    gap: 7px;
    color: #2b3f5a;
    font-size: 10px;
    font-weight: 800;
}
.schedule-edit-fields label > small {
    color: #8390a3;
    font-size: 9px;
    font-weight: 500;
}
.schedule-edit-fields input,
.schedule-edit-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #fff;
    color: #243b5a;
    font: inherit;
    font-weight: 500;
    outline: none;
}
.schedule-edit-fields textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}
.schedule-edit-fields input:focus,
.schedule-edit-fields textarea:focus {
    border-color: #82afe8;
    box-shadow: 0 0 0 3px rgba(11, 108, 242, 0.09);
}
.schedule-edit-card > footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 20px;
    border-top: 1px solid #e5ebf2;
    background: #f8fafc;
}
.schedule-edit-card > footer button {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}
.schedule-cancel {
    border: 1px solid #d4dfeb;
    background: #fff;
    color: #526984;
}
.schedule-save {
    border: 1px solid #0b6cf2;
    background: #0b6cf2;
    color: #fff;
}

@container (max-width: 1180px) {
    .social-management-content .managed-post-summary {
        grid-template-columns: 118px minmax(0, 1fr) auto;
    }
    .social-management-content .managed-post-performance {
        grid-column: 2;
    }
    .social-management-content .managed-post-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 680px) {
    .social-management-content .managed-post-summary {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .social-management-content .managed-post-performance,
    .social-management-content .managed-post-actions {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .social-management-content .managed-post-actions {
        min-width: 0;
        justify-content: flex-start;
    }
    .post-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
