@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap");

:root {
    --ink: #151826;
    --muted: #6f7384;
    --line: #e7e8ee;
    --canvas: #f6f6f8;
    --panel: #ffffff;
    --sidebar: #161823;
    --sidebar-muted: #9498aa;
    --violet: #6f5bd3;
    --violet-dark: #5845bd;
    --violet-soft: #efecff;
    --orange: #ef8d55;
    --green: #2d9b73;
    --red: #d34d5c;
    --blue: #3778d4;
    --shadow: 0 10px 35px rgba(31, 35, 52, .06);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.svg-sprite {
    position: absolute;
    pointer-events: none;
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.brand-mark {
    display: inline-flex;
    align-items: end;
    gap: 3px;
    height: 24px;
}

.brand-mark span {
    display: block;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, #8d79ef, #6c57d0);
}

.brand-mark span:nth-child(1) {
    height: 12px;
}

.brand-mark span:nth-child(2) {
    height: 21px;
}

.brand-mark span:nth-child(3) {
    height: 16px;
    background: linear-gradient(180deg, #f2a173, #e77f49);
}


/* =========================================================
   APP LAYOUT
   ========================================================= */

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: 252px;
    flex-direction: column;
    padding: 30px 20px 20px;
    background: var(--sidebar);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 13px 32px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.main-nav {
    display: grid;
    gap: 7px;
}

.nav-link {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--sidebar-muted);
    font-weight: 650;
    cursor: pointer;
    transition: .18s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,.055);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(
        100deg,
        rgba(111,91,211,.26),
        rgba(111,91,211,.1)
    );
    color: #fff;
    box-shadow: inset 3px 0 #8b78ee;
}

.nav-link.active .icon {
    color: #9a88f3;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 12px;
}


/* =========================================================
   SIDEBAR PLATFORM STATUS
   ========================================================= */

.sidebar-platform-status-list {
    display: grid;
    gap: 9px;
    width: 100%;
}


/*
 * EACH PLATFORM BOX
 */
.sidebar-platform-box {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 11px;

    padding: 8px 10px;

    border-radius: 12px;

    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.sidebar-platform-box:hover {
    transform: translateY(-1px);
}


/*
 * CONNECTED
 *
 * Support both class names so this works with
 * either version of the sidebar PHP.
 */
.sidebar-platform-box.connected,
.sidebar-platform-box.is-connected {
    background: #00ff7f !important;

    border: 1px solid #00e673 !important;

    color: #063923 !important;

    opacity: 1 !important;

    filter: none !important;

    box-shadow:
        0 7px 18px rgba(
            0,
            255,
            127,
            .20
        ) !important;
}


/*
 * NOT CONNECTED
 */
.sidebar-platform-box.disconnected,
.sidebar-platform-box.is-disconnected {
    background: #292c35 !important;

    border: 1px solid #3b3f4b !important;

    color: #858a98 !important;

    opacity: .65 !important;

    filter: grayscale(1) !important;

    box-shadow: none !important;
}


/*
 * PLATFORM LOGO
 */
.sidebar-platform-logo {
    display: grid;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    place-items: center;

    border-radius: 9px;

    background: rgba(
        255,
        255,
        255,
        .07
    );

    color: inherit;

    font-size: 21px;
    font-weight: 800;
}


.sidebar-platform-logo .icon {
    width: 21px;
    height: 21px;
}


/*
 * CONNECTED LOGO
 */
.sidebar-platform-box.connected .sidebar-platform-logo,
.sidebar-platform-box.is-connected .sidebar-platform-logo {
    background: rgba(
        0,
        0,
        0,
        .12
    ) !important;

    color: #063923 !important;
}


/*
 * TEXT
 */
.sidebar-platform-copy {
    display: grid;

    min-width: 0;

    margin-right: auto;
}


.sidebar-platform-copy strong {
    color: inherit !important;

    font-size: 12px;

    font-weight: 800;
}


.sidebar-platform-copy small {
    color: inherit !important;

    font-size: 10px;

    font-weight: 650;

    opacity: .78;
}


/*
 * STATUS CIRCLE
 */
.sidebar-platform-indicator {
    display: grid;

    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    place-items: center;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 900;
}


/*
 * GREEN CHECK
 */
.sidebar-platform-box.connected .sidebar-platform-indicator,
.sidebar-platform-box.is-connected .sidebar-platform-indicator {
    background: #063923 !important;

    color: #00ff7f !important;
}


/*
 * GREY X
 */
.sidebar-platform-box.disconnected .sidebar-platform-indicator,
.sidebar-platform-box.is-disconnected .sidebar-platform-indicator {
    background: #3a3e49 !important;

    color: #a2a6b0 !important;
}

.workspace-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.workspace-card > div:last-child {
    display: grid;
    min-width: 0;
}

.workspace-card strong {
    overflow: hidden;
    color: #f5f5f7;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-card span {
    color: var(--sidebar-muted);
    font-size: 11px;
}

.avatar {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #7661d8, #5542b7);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.avatar.small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 11px;
}

.logout-link {
    min-height: 42px;
}

.main-area {
    min-height: 100vh;
    margin-left: 252px;
}

.page-wrap {
    width: min(1280px, calc(100% - 72px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.mobile-header {
    display: none;
}

.sidebar-backdrop {
    display: none;
}


/* =========================================================
   PAGE HEADINGS
   ========================================================= */

.page-heading {
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 4px 0 4px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -1.25px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.heading-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.eyebrow {
    color: var(--violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.back-link {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.back-link:hover {
    color: var(--violet);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.button .icon {
    width: 18px;
    height: 18px;
}

.button-primary {
    background: var(--violet);
    color: white;
    box-shadow: 0 8px 18px rgba(111,91,211,.22);
}

.button-primary:hover {
    background: var(--violet-dark);
}

.button-soft {
    background: var(--violet-soft);
    color: var(--violet-dark);
}

.button-soft:hover {
    background: #e6e1ff;
}

.button-ghost {
    border-color: var(--line);
    background: #fff;
    color: #505364;
}

.button-ghost:hover {
    border-color: #cbc8dc;
    background: #fafafd;
}

.button-facebook {
    background: #1877f2;
    color: white;
    box-shadow: 0 8px 18px rgba(24,119,242,.2);
}

.button-facebook:hover {
    background: #1169db;
}

.button-danger-outline {
    border-color: #efcbd0;
    background: #fff;
    color: var(--red);
}

.button-small {
    min-height: 35px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
}

.button-wide {
    width: 100%;
    min-height: 49px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--violet);
    font-size: 13px;
    font-weight: 750;
}

.text-link .icon {
    width: 15px;
}

.icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: #606373;
    cursor: pointer;
    transition: .16s ease;
}

.icon-button:hover {
    border-color: #cfcadb;
    color: var(--violet);
    background: #faf9ff;
}

.icon-button.danger:hover {
    border-color: #efcbd0;
    color: var(--red);
    background: #fff7f8;
}


/* =========================================================
   PANELS
   ========================================================= */

.panel {
    border: 1px solid rgba(225,226,233,.9);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 27px 20px;
}

.panel-heading h2,
.section-heading h2 {
    margin: 0 0 2px;
    font-size: 18px;
    letter-spacing: -.35px;
}

.panel-heading p,
.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 46px 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(28,30,43,.05);
}

.alert-success {
    border-color: #bfe5d6;
    background: #effaf5;
    color: #217a5a;
}

.alert-error {
    border-color: #efc3ca;
    background: #fff2f4;
    color: #a93443;
}

.alert-info {
    border-color: #cddbef;
    background: #f2f7fd;
    color: #38669f;
}

.alert-close {
    position: absolute;
    right: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    opacity: .65;
}

.alert-close .icon {
    width: 16px;
}


/* =========================================================
   CONNECTION BANNER
   ========================================================= */

.connection-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 15px 18px;
    border: 1px solid #ded7fa;
    border-radius: 14px;
    background: linear-gradient(100deg, #f8f6ff, #fff);
    box-shadow: 0 7px 24px rgba(72,58,142,.05);
}

.connection-banner > .icon {
    margin-left: auto;
    color: var(--violet);
}

.connection-banner > span:nth-child(2) {
    display: grid;
}

.connection-banner strong {
    font-size: 14px;
}

.connection-banner small {
    color: var(--muted);
}

.connection-banner.connected {
    border-color: #cce8dc;
    background: linear-gradient(100deg, #f2fbf7, #fff);
}

.connection-banner.connected > a {
    margin-left: auto;
    color: var(--green);
    font-weight: 750;
}

.connection-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    background: var(--violet-soft);
    color: var(--violet);
}

.connected .connection-icon {
    background: #ddf5e9;
    color: var(--green);
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 17px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 114px;
    padding: 21px;
    border: 1px solid #e5e6ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-card > div {
    display: grid;
}

.stat-card strong {
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -.7px;
}

.stat-card div span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.stat-icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
}

.stat-icon.violet,
.round-icon.violet {
    background: var(--violet-soft);
    color: var(--violet);
}

.stat-icon.orange {
    background: #fff0e7;
    color: var(--orange);
}

.stat-icon.green {
    background: #e5f7ef;
    color: var(--green);
}

.stat-icon.blue {
    background: #e8f2ff;
    color: var(--blue);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr);
    gap: 20px;
}

.activity-list {
    border-top: 1px solid var(--line);
}

.activity-row {
    display: flex;
    min-height: 75px;
    align-items: center;
    gap: 13px;
    padding: 12px 26px;
    border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
    border-bottom: 0;
}

a.activity-row {
    transition: background .15s ease;
}

a.activity-row:hover {
    background: #fafafe;
}

.activity-copy {
    display: grid;
    min-width: 0;
    margin-right: auto;
}

.activity-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy small {
    color: var(--muted);
    font-size: 11px;
}

.date-tile {
    display: grid;
    width: 45px;
    height: 48px;
    flex: 0 0 auto;
    place-content: center;
    border-radius: 10px;
    background: #f4f2fc;
    color: var(--violet);
    text-align: center;
    line-height: 1;
}

.date-tile b {
    font-size: 18px;
}

.date-tile small {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .8px;
}

.round-icon {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
}

.round-icon.success {
    background: #e6f6ef;
    color: var(--green);
}

.round-icon .icon {
    width: 17px;
}

.mode-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border-radius: 20px;
    padding: 5px 9px;
    background: #f0eff4;
    color: #696b79;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.status-pill.pending,
.status-pill.scheduled {
    background: #fff0e4;
    color: #b65e2d;
}

.status-pill.failed {
    background: #fff0f2;
    color: #bc3d4d;
}

.status-pill.publishing {
    background: #e9f2ff;
    color: #2e68ad;
}

.status-pill.draft {
    background: #f0eff4;
    color: #666978;
}

.compact-empty {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
}

.compact-empty > span {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
}

.compact-empty > div {
    margin-right: auto;
}

.compact-empty strong {
    display: block;
    font-size: 14px;
}

.compact-empty p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 12px;
}

.compact-empty.vertical {
    flex-direction: column;
    text-align: center;
}

.compact-empty.vertical > div {
    margin: 0;
}


/* =========================================================
   POSTS
   ========================================================= */

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.search-box {
    display: flex;
    width: min(390px,100%);
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    color: #9496a3;
}

.search-box input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.search-box .icon {
    width: 17px;
}

.result-count {
    color: var(--muted);
    font-size: 12px;
}

.result-count strong {
    color: var(--ink);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
}

.post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e4ea;
    border-radius: 17px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(31,35,52,.1);
}

.post-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #ececf1;
}

.post-media img,
.post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media.no-media {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f0edff, #faf9ff);
}

.post-placeholder {
    display: grid;
    width: 59px;
    height: 59px;
    place-items: center;
    border-radius: 17px;
    background: white;
    color: #8f80df;
    box-shadow: 0 9px 30px rgba(99,81,188,.14);
}

.post-placeholder .icon {
    width: 28px;
    height: 28px;
}

.target-chip,
.video-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 20px;
    background: rgba(22,24,35,.77);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
    backdrop-filter: blur(8px);
}

.target-chip {
    left: 12px;
}

.video-badge {
    right: 12px;
}

.video-badge .icon {
    width: 13px;
}

.post-card-body {
    padding: 18px;
}

.post-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.post-card-top > div:first-child {
    min-width: 0;
    margin-right: auto;
}

.post-card h2 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    letter-spacing: -.25px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-text {
    color: var(--muted);
    font-size: 10px;
}

.menu-wrap {
    position: relative;
}

.context-menu {
    position: absolute;
    z-index: 10;
    top: 41px;
    right: 0;
    display: none;
    width: 142px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    box-shadow: 0 15px 35px rgba(30,32,45,.15);
}

.context-menu.open {
    display: block;
}

.context-menu a,
.context-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    background: white;
    color: #4f5261;
    font-size: 12px;
    cursor: pointer;
}

.context-menu a:hover,
.context-menu button:hover {
    background: #f7f6fb;
}

.context-menu .icon {
    width: 15px;
}

.post-headline {
    display: block;
    margin-top: 15px;
    font-size: 13px;
}

.post-excerpt {
    display: -webkit-box;
    min-height: 42px;
    margin: 5px 0 17px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-card-footer {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.schedule-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a45a30;
    font-size: 10px;
    font-weight: 700;
}

.schedule-note .icon {
    width: 14px;
}

.no-filter-results {
    padding: 45px;
    color: var(--muted);
    text-align: center;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    display: grid;
    min-height: 430px;
    place-items: center;
    place-content: center;
    padding: 50px 25px;
    text-align: center;
}

.empty-state h2 {
    margin: 22px 0 5px;
    font-size: 21px;
}

.empty-state p {
    max-width: 470px;
    margin: 0 0 22px;
    color: var(--muted);
}

.empty-illustration {
    position: relative;
    display: grid;
    width: 106px;
    height: 92px;
    place-items: center;
    border-radius: 25px;
    background: linear-gradient(145deg, #eeeaff, #faf9ff);
    color: var(--violet);
    transform: rotate(-2deg);
}

.empty-illustration span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 28px rgba(86,69,170,.13);
}

.empty-illustration span .icon {
    width: 27px;
    height: 27px;
}

.empty-illustration i {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffd7bf;
}

.empty-illustration i:nth-child(2) {
    top: -9px;
    right: -12px;
}

.empty-illustration i:nth-child(3) {
    bottom: -7px;
    left: -14px;
    width: 17px;
    height: 17px;
    background: #d7cffb;
}


/* =========================================================
   EDITOR / FORMS
   ========================================================= */

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(315px,.8fr);
    align-items: start;
    gap: 22px;
}

.form-panel {
    padding: 28px;
}

.preview-panel {
    position: sticky;
    top: 25px;
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
}

.step-number {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 12px;
    font-weight: 850;
}

.settings-section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--violet);
}

.settings-section-icon.orange {
    background: #fff0e7;
    color: var(--orange);
}

.settings-section-icon.green {
    background: #e5f7ef;
    color: var(--green);
}

.section-divider {
    height: 1px;
    margin: 30px 0;
    background: var(--line);
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.field label,
.group-picker > .label-row label {
    color: #343744;
    font-size: 12px;
    font-weight: 750;
}

.field label em,
.group-picker label em {
    margin-left: 5px;
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.field input,
.field textarea,
.field select,
select {
    width: 100%;
    border: 1px solid #dfe0e7;
    border-radius: 10px;
    outline: 0;
    background: white;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input,
.field select,
select {
    height: 44px;
    padding: 0 12px;
}

.field textarea {
    min-height: 110px;
    padding: 11px 12px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
select:focus {
    border-color: #9a89e3;
    box-shadow: 0 0 0 3px rgba(111,91,211,.11);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #aaaeba;
}

.field small {
    color: var(--muted);
    font-size: 10px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.label-row > span {
    color: var(--muted);
    font-size: 10px;
}

.label-row > a {
    color: var(--violet);
    font-size: 11px;
    font-weight: 750;
}

.field-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.media-source-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
    gap: 14px;
    align-items: stretch;
}

.upload-zone {
    display: grid;
    min-height: 145px;
    place-items: center;
    place-content: center;
    padding: 22px;
    border: 1.5px dashed #cfcbdc;
    border-radius: 14px;
    background: #fafafe;
    text-align: center;
    cursor: pointer;
    transition: .16s ease;
}

.upload-zone:hover,
.upload-zone.dragging {
    border-color: var(--violet);
    background: #f8f6ff;
}

.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.upload-zone strong {
    margin-top: 8px;
    font-size: 13px;
}

.upload-zone small {
    color: var(--muted);
    font-size: 9px;
}

.upload-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--violet);
}

.media-bin-choice {
    display: grid;
    min-height: 145px;
    place-items: center;
    place-content: center;
    width: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: .16s ease;
}

.media-bin-choice:hover {
    border-color: var(--violet);
    background: #f8f6ff;
    box-shadow: 0 8px 24px rgba(43, 32, 74, .06);
}

.media-bin-choice.has-selection {
    border-color: var(--violet);
    background: var(--violet-soft);
}

.media-bin-choice-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--violet);
}

.media-bin-choice strong {
    margin-top: 8px;
    font-size: 13px;
}

.media-bin-choice small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.media-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 24px;
    background: rgba(19, 21, 31, .72);
    backdrop-filter: blur(8px);
}

.media-picker-modal[hidden] {
    display: none;
}

.media-picker-shell {
    display: grid;
    width: min(1180px, 100%);
    height: min(820px, calc(100vh - 48px));
    margin: 0 auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dedfe8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(8, 10, 20, .28);
}

.media-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.media-picker-header h2 {
    margin: 2px 0 0;
    font-size: 22px;
    letter-spacing: -.45px;
}

.media-picker-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.media-picker-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #555968;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.media-picker-close:hover {
    border-color: var(--violet);
    color: var(--violet);
    background: #f8f6ff;
}

.media-picker-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: #fafafe;
}

.media-picker-toolbar input {
    width: min(420px, 100%);
    min-height: 40px;
}

.media-picker-filters {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.media-picker-filters button {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.media-picker-filters button.active {
    background: var(--violet-soft);
    color: var(--violet);
}

.media-picker-body {
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.media-picker-card {
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
}

.media-picker-card:hover {
    border-color: var(--violet);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(43, 32, 74, .08);
}

.media-picker-card.is-selected {
    border-color: var(--violet);
    box-shadow: 0 0 0 2px rgba(111, 76, 255, .12);
}

.media-picker-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f4;
}

.media-picker-thumb img,
.media-picker-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.media-picker-type {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(20, 22, 32, .78);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.media-picker-card-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 11px 12px 12px;
}

.media-picker-card-copy strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-picker-card-copy small {
    color: var(--muted);
    font-size: 9px;
}

.media-picker-message {
    display: grid;
    min-height: 220px;
    place-items: center;
    place-content: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
}

.media-picker-message strong {
    font-size: 15px;
}

.media-picker-message span {
    color: var(--muted);
    font-size: 11px;
}

body.media-picker-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .media-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .media-source-layout {
        grid-template-columns: 1fr;
    }

    .upload-zone,
    .media-bin-choice {
        min-height: 135px;
    }

    .media-picker-modal {
        padding: 10px;
    }

    .media-picker-shell {
        height: calc(100vh - 20px);
    }

    .media-picker-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .media-picker-toolbar input {
        width: 100%;
    }

    .media-picker-filters {
        width: 100%;
    }

    .media-picker-filters button {
        flex: 1 1 0;
    }

    .media-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .media-picker-grid {
        grid-template-columns: 1fr;
    }
}

.media-preview {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.media-preview-asset {
    position: relative;
    flex: 0 0 auto;
}

.media-preview img,
.media-preview video {
    display: block;
    width: 92px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.media-preview-details {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.media-preview strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-preview-details small {
    color: var(--muted);
    font-size: 9px;
}

.media-preview-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25, 20, 42, .18);
}

.media-preview-remove:hover {
    transform: scale(1.06);
}

.media-upload-progress-wrap {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafafe;
}

.media-upload-progress-wrap[hidden] {
    display: none;
}

.media-upload-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
}

.media-upload-progress-copy strong {
    color: var(--text);
}

.media-upload-progress-copy span {
    color: var(--muted);
    font-weight: 750;
}

.media-upload-progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
}

.media-upload-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e9e7ef;
}

.media-upload-progress::-webkit-progress-value {
    border-radius: 999px;
    background: var(--violet);
}

.media-upload-progress::-moz-progress-bar {
    border-radius: 999px;
    background: var(--violet);
}

.check-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.danger-check {
    color: var(--red);
}

.choice-grid {
    display: grid;
    gap: 10px;
}

.three-choice {
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.choice-card {
    position: relative;
    display: grid;
    min-height: 104px;
    place-items: center;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: #656877;
    cursor: pointer;
    text-align: center;
    transition: .15s ease;
}

.choice-card:hover {
    border-color: #bbb4df;
}

.choice-card.selected {
    border-color: var(--violet);
    background: #faf9ff;
    color: var(--violet);
    box-shadow: inset 0 0 0 1px var(--violet);
}

.choice-card input {
    position: absolute;
    opacity: 0;
}

.choice-card .icon {
    width: 24px;
    height: 24px;
}

.choice-card strong {
    color: var(--ink);
    font-size: 11px;
}

.choice-card small {
    color: var(--muted);
    font-size: 9px;
}

.group-picker {
    margin-top: 17px;
    padding: 17px;
    border: 1px solid #e2def7;
    border-radius: 13px;
    background: #faf9ff;
}

.group-picker .label-row {
    margin-bottom: 10px;
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 245px;
    overflow: auto;
}

.check-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    cursor: pointer;
}

.check-card input {
    accent-color: var(--violet);
}

.check-card span {
    display: grid;
    min-width: 0;
}

.check-card strong,
.check-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.check-card strong {
    font-size: 11px;
}

.check-card small {
    color: var(--muted);
    font-size: 9px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
}


/* =========================================================
   SOCIAL PREVIEW
   ========================================================= */

.social-preview {
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid #e3e4e9;
    border-radius: 13px;
    background: white;
    box-shadow: 0 10px 28px rgba(36,39,55,.07);
}

.social-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px;
}

.social-head > div:nth-child(2) {
    display: grid;
    margin-right: auto;
}

.social-head strong {
    font-size: 11px;
}

.social-head small {
    color: var(--muted);
    font-size: 9px;
}

.social-head b {
    color: #9295a1;
    letter-spacing: 2px;
}

.social-copy {
    padding: 0 14px 13px;
}

.social-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.social-copy p {
    max-height: 90px;
    margin: 0;
    overflow: hidden;
    color: #555865;
    font-size: 10px;
    white-space: pre-line;
}

.social-media-placeholder {
    position: relative;

    display: grid;

    width: 100%;
    min-height: 220px;

    overflow: hidden;

    place-items: center;
    place-content: center;

    gap: 8px;

    background:
        linear-gradient(
            145deg,
            #eeebfc,
            #f8f7fc
        );

    color: #9183d4;
}


.social-media-placeholder .icon {
    width: 34px;
    height: 34px;
}


.social-media-placeholder span {
    font-size: 9px;
}


.social-media-placeholder > img,
.social-media-placeholder > video,
.live-media-object {
    display: block;

    width: 100% !important;
    height: 220px !important;

    max-width: none !important;

    margin: 0;

    object-fit: cover !important;
    object-position: center !important;

    background: #eef0f5;
}


.social-media-placeholder > video,
.live-media-object:is(video) {
    background: #101116;
}

/*
 * Keep this class for the post preview.
 * Social account connection cards use .social-channel-actions instead.
 */
.social-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid var(--line);
    color: #747785;
    font-size: 9px;
    font-weight: 700;
}

.preview-tip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #f5f3fd;
    color: var(--violet);
}

.preview-tip .icon {
    width: 16px;
}

.preview-tip p {
    margin: 0;
    color: #626474;
    font-size: 10px;
}

.preview-tip strong {
    color: #3e4050;
}


/* =========================================================
   NOTES / SCHEDULES
   ========================================================= */

.inline-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d7dff0;
    border-radius: 11px;
    background: #f5f8fd;
    color: #49678f;
    font-size: 12px;
}

.inline-note .icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.inline-note.warning {
    border-color: #efd9bd;
    background: #fff8ef;
    color: #9c632c;
}

.inline-note.prominent {
    margin: -8px 0 23px;
}

.inline-note a {
    text-decoration: underline;
    font-weight: 750;
}

.schedule-list {
    display: grid;
    gap: 13px;
}

.schedule-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    overflow: hidden;
    border: 1px solid #e2e3e9;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
}

.schedule-card.failed {
    border-color: #edcbd0;
}

.schedule-date {
    display: grid;
    min-height: 176px;
    place-items: center;
    place-content: center;
    padding: 18px;
    border-right: 1px solid #ebeaf0;
    background: linear-gradient(150deg, #f1eefc, #faf9fe);
    color: var(--violet);
    text-align: center;
    line-height: 1;
}

.schedule-date span {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.schedule-date strong {
    margin: 5px 0;
    font-size: 38px;
    letter-spacing: -2px;
}

.schedule-date small {
    color: #77708f;
    font-size: 12px;
    font-weight: 750;
}

.schedule-date.past {
    background: #f4f4f6;
    color: #777986;
}

.schedule-main {
    min-width: 0;
    padding: 19px 21px 16px;
}

.schedule-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.schedule-title-row h2 {
    margin: 7px 0 0;
    font-size: 17px;
}

.schedule-headline {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.chip-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.target-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #757887;
    font-size: 10px;
    font-weight: 700;
}

.target-inline .icon {
    width: 13px;
}

.schedule-actions {
    display: flex;
    gap: 6px;
}

.schedule-actions form {
    display: inline-flex;
}

.schedule-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 19px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.schedule-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #646775;
    font-size: 11px;
    font-weight: 650;
}

.schedule-time .icon {
    width: 15px;
}

.error-strip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff0f2;
    color: #a63b49;
    font-size: 10px;
}

.error-strip .icon {
    width: 15px;
}

.narrow-form {
    width: min(790px,100%);
    padding: 30px;
}

.date-field {
    width: min(420px,100%);
}


/* =========================================================
   FACEBOOK
   ========================================================= */

.facebook-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(360px,.78fr);
    align-items: start;
    gap: 20px;
}

.setup-banner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
    padding: 24px;
}

.setup-banner h2 {
    margin: 3px 0 5px;
}

.setup-banner p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.setup-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #fff0e7;
    color: var(--orange);
}

.copy-field {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 690px;
    padding: 9px 10px 9px 13px;
    border-radius: 9px;
    background: #20222c;
    color: #f3f3f6;
}

.copy-field code {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-field button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #bdb2fa;
    font-size: 10px;
    cursor: pointer;
}

.copy-field .icon {
    width: 14px;
}

code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f1f0f5;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .9em;
}

.copy-field code,
.code-instruction code {
    padding: 0;
    background: transparent;
}

.muted {
    color: var(--muted);
    font-size: 11px !important;
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 20px;
    background: #f1f1f4;
    color: #777986;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.connection-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a3a5ad;
}

.connection-status.online {
    background: #e6f6ef;
    color: var(--green);
}

.connection-status.online i {
    background: var(--green);
}

.facebook-empty {
    display: grid;
    min-height: 360px;
    place-items: center;
    place-content: center;
    padding: 35px;
    text-align: center;
}

.facebook-empty h3 {
    margin: 15px 0 4px;
}

.facebook-empty p {
    max-width: 430px;
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 12px;
}

.facebook-empty small {
    margin-top: 12px;
    color: var(--muted);
    font-size: 9px;
}

.facebook-mark {
    display: grid;
    width: 61px;
    height: 61px;
    place-items: center;
    border-radius: 18px;
    background: #e8f2ff;
    color: #1877f2;
}

.facebook-mark .icon {
    width: 33px;
    height: 33px;
}

.account-row {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 27px 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.account-row > div:last-child {
    display: grid;
}

.account-row strong {
    font-size: 13px;
}

.account-row span {
    color: var(--muted);
    font-size: 10px;
}

.facebook-avatar {
    border-radius: 50%;
    background: #1877f2;
}

.facebook-grid .inline-note {
    margin: 0 27px 18px;
}

.page-selector {
    padding: 0 27px 25px;
}

.page-selector > label {
    display: block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 750;
}

.page-options {
    display: grid;
    gap: 8px;
    margin-bottom: 13px;
}

.page-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
}

.page-option.selected {
    border-color: var(--violet);
    background: #faf9ff;
}

.page-option input {
    position: absolute;
    opacity: 0;
}

.page-option > span:nth-of-type(2) {
    display: grid;
    margin-right: auto;
}

.page-option strong {
    font-size: 12px;
}

.page-option small {
    color: var(--muted);
    font-size: 9px;
}

.page-avatar {
    background: #e7e2ff;
    color: var(--violet);
}

.option-check {
    display: none;
    width: 18px;
    color: var(--violet);
}

.page-option.selected .option-check {
    display: block;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 27px 25px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.danger-zone strong {
    font-size: 12px;
}

.danger-zone p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.count-bubble {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    padding: 0 8px;
    border-radius: 20px;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 11px;
    font-weight: 800;
}

.group-add-form {
    padding: 0 27px 23px;
    border-bottom: 1px solid var(--line);
}

.group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.group-upload-form {
    padding: 0 27px 17px;
    border-bottom: 1px solid var(--line);
}

.group-upload-form label,
.group-upload-form input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.group-upload-form small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 700px) {
    .group-upload-form {
        padding-right: 18px;
        padding-left: 18px;
    }
}

.group-list {
    max-height: 375px;
    overflow: auto;
}

.group-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 25px;
    border-bottom: 1px solid var(--line);
}

.group-row > div {
    display: grid;
    min-width: 0;
    margin-right: auto;
}

.group-row strong,
.group-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-row strong {
    font-size: 12px;
}

.group-row small {
    color: var(--muted);
    font-size: 9px;
}

.group-row form {
    display: inline-flex;
}

.group-empty {
    min-height: 190px;
}

.import-box {
    padding: 17px 27px 23px;
}

.import-box summary {
    color: var(--violet);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.import-box form {
    padding-top: 15px;
}


/* =========================================================
   MULTI-CHANNEL POST EDITOR
   Consolidated AdFlow stylesheet
   ========================================================= */

.platform-choice-grid {
    margin-bottom: 14px;
}

.platform-choice {
    min-height: 116px;
}

.platform-choice-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 850;
}

.platform-choice-icon .icon {
    width: 20px;
    height: 20px;
}

.platform-choice-icon.facebook {
    background: #e8f2ff;
    color: #1877f2;
}

.platform-choice-icon.instagram {
    background: #fff0f8;
    color: #d62976;
}

.platform-choice-icon.tiktok {
    background: #f1f1f4;
    color: #161823;
}

.platform-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f6f4ff;
    color: #626474;
    font-size: 10px;
    line-height: 1.55;
}

.platform-help .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--violet);
}

.facebook-post-options {
    margin-top: 18px;
    padding: 17px;
    border: 1px solid #e2def7;
    border-radius: 13px;
    background: #faf9ff;
}

.facebook-options-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.facebook-options-heading strong {
    display: block;
    font-size: 12px;
}

.facebook-options-heading small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.facebook-group-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.facebook-group-toggle input {
    margin-top: 3px;
    accent-color: var(--violet);
}

.facebook-group-toggle span {
    display: grid;
}

.facebook-group-toggle strong {
    font-size: 11px;
}

.facebook-group-toggle small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.facebook-post-options .group-picker {
    margin-top: 12px;
}

.multi-preview-panel {
    overflow: hidden;
}

.preview-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 14px;
    padding: 4px;
    border-radius: 11px;
    background: #f1f0f5;
}

.preview-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #797c8a;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.preview-tab .icon {
    width: 14px;
    height: 14px;
}

.preview-tab.active {
    background: white;
    color: var(--ink);
    box-shadow: 0 3px 12px rgba(30, 32, 45, .08);
}

.platform-preview {
    margin-top: 14px;
}


/* Instagram preview */

.instagram-preview {
    overflow: hidden;
    border: 1px solid #e3e4e9;
    border-radius: 13px;
    background: white;
    box-shadow: 0 10px 28px rgba(36,39,55,.07);
}

.instagram-head {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
}

.instagram-head strong {
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instagram-head b {
    color: #747785;
    font-size: 12px;
    letter-spacing: 1px;
}

.instagram-avatar {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 2px solid #d83f8d;
    border-radius: 50%;
    background: #f4efff;
    color: var(--violet);
    font-size: 9px;
    font-weight: 850;
}

.instagram-media {
    display: grid;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    place-items: center;
    background: #f2efff;
}

.instagram-media img,
.instagram-media video,
.instagram-media .live-media-object {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-placeholder {
    display: grid;
    place-items: center;
    place-content: center;
    gap: 7px;
    color: #9b8ce1;
    font-size: 9px;
}

.instagram-placeholder .icon {
    width: 31px;
    height: 31px;
}

.instagram-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 11px 5px;
    font-size: 17px;
    line-height: 1;
}

.instagram-actions > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.instagram-copy {
    padding: 5px 11px 12px;
}

.instagram-copy > strong {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
}

.instagram-copy p {
    margin: 0 0 5px;
    color: #343640;
    font-size: 9px;
    line-height: 1.45;
}

.instagram-copy p b {
    margin-right: 4px;
}

.instagram-copy p span {
    white-space: pre-line;
}

.instagram-copy small {
    color: #989aa6;
    font-size: 8px;
}


/* TikTok preview */

.tiktok-preview {
    display: flex;
    justify-content: center;
}

.tiktok-frame {
    position: relative;
    width: min(245px, 100%);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 16px;
    background: #11131a;
    box-shadow: 0 12px 32px rgba(20, 21, 29, .2);
}

.tiktok-live-media {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #1b1d27, #090a0f);
}

.tiktok-live-media img,
.tiktok-live-media video,
.tiktok-live-media .live-media-object {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiktok-placeholder {
    display: grid;
    place-items: center;
    place-content: center;
    gap: 8px;
    color: rgba(255,255,255,.72);
    font-size: 9px;
    text-align: center;
}

.tiktok-placeholder .icon {
    width: 34px;
    height: 34px;
}

.tiktok-side-actions {
    position: absolute;
    z-index: 2;
    right: 9px;
    bottom: 75px;
    display: grid;
    justify-items: center;
    gap: 11px;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.tiktok-side-actions > span {
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 19px;
}

.tiktok-side-actions small {
    font-size: 7px;
    font-weight: 700;
}

.tiktok-profile-dot {
    width: 31px;
    height: 31px;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--violet);
    font-size: 10px !important;
    font-weight: 850;
}

.tiktok-caption {
    position: absolute;
    z-index: 2;
    right: 48px;
    bottom: 12px;
    left: 11px;
    color: white;
    text-shadow: 0 2px 7px rgba(0,0,0,.48);
}

.tiktok-caption strong {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
}

.tiktok-caption p {
    display: -webkit-box;
    max-height: 53px;
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.45;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tiktok-caption small {
    font-size: 8px;
}


/* Keep video/image previews contained in every platform */

[data-live-media] .live-media-object {
    display: block;
    max-width: 100%;
}


/* Responsive post editor */

@media (max-width: 620px) {
    .platform-choice {
        min-height: 82px;
    }

    .preview-tabs {
        grid-template-columns: 1fr;
    }

    .preview-tab {
        min-height: 38px;
    }

    .tiktok-frame {
        width: min(280px, 100%);
    }
}







/* =========================================================
   SOCIAL CHANNEL CONNECTION CARDS
   ========================================================= */

.social-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin-bottom: 26px;
}

.social-channel-card {
    display: flex;
    min-width: 0;
    min-height: 390px;
    flex-direction: column;
    padding: 25px;
}

.social-channel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 21px;
}

.social-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.social-brand > div {
    min-width: 0;
}

.social-brand h2 {
    margin: 0 0 2px;
    font-size: 18px;
    letter-spacing: -.35px;
}

.social-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.social-logo {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    font-size: 23px;
    font-weight: 850;
}

.social-logo .icon {
    width: 25px;
    height: 25px;
}

.social-logo.facebook {
    background: #e8f2ff;
    color: #1877f2;
}

.social-logo.instagram {
    background: linear-gradient(
        145deg,
        #fff0f8,
        #f7efff
    );
    color: #d62976;
}

.social-logo.tiktok {
    background: #f1f1f4;
    color: #161823;
}

.social-description {
    min-height: 42px;
    margin-bottom: 19px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.social-permissions {
    margin-bottom: 22px;
}

.social-permissions > span {
    display: block;
    margin-bottom: 10px;
    color: #9699a8;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.social-permission {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 9px 0;
    color: #5f6270;
    font-size: 11px;
}

.social-permission i {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
}

.social-channel-actions {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.social-channel-actions > .button,
.social-channel-actions > form > .button {
    width: 100%;
}

.social-channel-actions form {
    width: 100%;
}

.button-instagram {
    border-color: transparent;
    background: linear-gradient(
        100deg,
        #833ab4,
        #c13584 40%,
        #e1306c 70%,
        #f77737
    );
    color: white;
    box-shadow: 0 8px 18px rgba(193,53,132,.18);
}

.button-instagram:hover {
    background: linear-gradient(
        100deg,
        #762fa4,
        #ae2f77 40%,
        #cc275e 70%,
        #e96a2c
    );
}

.button-tiktok {
    border-color: #161823;
    background: #161823;
    color: white;
    box-shadow: 0 8px 18px rgba(22,24,35,.15);
}

.button-tiktok:hover {
    background: #292b34;
}

.connected-social-account {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafafe;
}

.connected-social-account small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
}

.connected-social-account strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-section {
    margin-top: 30px;
}

.social-section-heading {
    margin-bottom: 15px;
}

.social-section-heading h2 {
    margin: 3px 0 3px;
    font-size: 21px;
    letter-spacing: -.45px;
}

.social-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.admin-setup-note {
    margin-bottom: 20px;
}


/* =========================================================
   SETTINGS
   ========================================================= */

.settings-grid {
    display: flex;
    width: 100%;
    max-width: 940px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-bottom: 32px;
}

.settings-grid > .panel {
    width: 100%;
    padding: 28px;
}

.stack-form {
    margin-top: 24px;
}

.system-panel {
    width: 100%;
}

.code-instruction {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #20222c;
    color: white;
}

.code-instruction > span {
    color: #9d9fac;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.code-instruction code {
    min-width: 0;
    overflow: auto;
    color: #e4e0ff;
    white-space: nowrap;
}

.code-instruction button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #c7bcff;
    font-size: 10px;
    cursor: pointer;
}

.code-instruction button .icon {
    width: 14px;
}


/* =========================================================
   LOGIN / GUEST
   ========================================================= */

.guest-body {
    background: #fff;
}

.guest-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(430px, .82fr) minmax(520px, 1.18fr);
}

.guest-panel {
    display: flex;
    width: min(470px, calc(100% - 64px));
    justify-self: center;
    flex-direction: column;
    justify-content: center;
    padding: 55px 0;
}

.guest-brand {
    position: absolute;
    top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 850;
}

.auth-copy {
    margin-bottom: 27px;
}

.auth-copy h1 {
    margin: 6px 0 7px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.auth-copy p {
    max-width: 410px;
    margin: 0;
    color: var(--muted);
}

.auth-form .field {
    margin-bottom: 17px;
}

.auth-footnote {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
}

.auth-switch-border {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.auth-switch p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 60px;
}

.password-wrap button {
    position: absolute;
    top: 7px;
    right: 7px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: #f1f0f5;
    color: #656878;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.guest-art {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1b1c29, #242233);
}

.guest-art::before {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            rgba(255,255,255,.055) 1px,
            transparent 1px
        );
    background-size: 24px 24px;
    content: "";
}

.art-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.orb-one {
    top: -130px;
    right: -90px;
    width: 390px;
    height: 390px;
    background: rgba(111,91,211,.38);
}

.orb-two {
    bottom: -170px;
    left: -120px;
    width: 430px;
    height: 430px;
    background: rgba(239,141,85,.17);
}

.mock-window {
    position: relative;
    z-index: 1;
    width: min(570px,72%);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 35px 90px rgba(0,0,0,.35);
    transform: rotate(-2deg);
}

.mock-top {
    display: flex;
    gap: 5px;
    padding: 14px;
    background: #f2f1f5;
}

.mock-top i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1ced9;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    padding: 24px 24px 15px;
}

.mock-grid span {
    height: 82px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ece8ff, #f7f5ff);
}

.mock-grid span:nth-child(2) {
    background: linear-gradient(145deg, #ffeadf, #fff7f2);
}

.mock-grid span:nth-child(3) {
    background: linear-gradient(145deg, #e3f5ec, #f2fbf7);
}

.mock-lines {
    display: grid;
    gap: 9px;
    padding: 10px 24px 29px;
}

.mock-lines b {
    height: 11px;
    border-radius: 8px;
    background: #ececf0;
}

.mock-lines b:nth-child(2) {
    width: 80%;
}

.mock-lines b:nth-child(3) {
    width: 58%;
}

.guest-quote {
    position: absolute;
    z-index: 2;
    right: 9%;
    bottom: 9%;
    color: rgba(255,255,255,.8);
    font-size: 19px;
    line-height: 1.35;
}

.guest-quote strong {
    color: white;
    font-size: 25px;
}


/* =========================================================
   ERROR PAGE
   ========================================================= */

.empty-page {
    display: grid;
    min-height: 65vh;
    place-items: center;
    place-content: center;
    text-align: center;
}

.error-code {
    color: var(--violet);
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 1;
    opacity: .18;
}

.empty-page h1 {
    margin: -4px 0 5px;
}

.empty-page p {
    max-width: 500px;
    margin: 0 0 20px;
    color: var(--muted);
}

.debug-details {
    width: min(760px,90vw);
    margin-bottom: 20px;
    text-align: left;
}

.debug-details pre {
    max-height: 260px;
    overflow: auto;
    padding: 14px;
    border-radius: 10px;
    background: #1e2029;
    color: #eee;
    font-size: 10px;
    white-space: pre-wrap;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 11px;
    background: #20222c;
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(0,0,0,.22);
    animation: toast-in .22s ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}


/* =========================================================
   RESPONSIVE - 1100PX
   ========================================================= */

@media (max-width: 1100px) {

    .stat-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .post-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .social-channel-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .dashboard-grid,
    .facebook-grid {
        grid-template-columns: 1fr;
    }

    .editor-grid {
        grid-template-columns: minmax(0,1fr) 310px;
    }

    .guest-shell {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   RESPONSIVE - 850PX
   ========================================================= */

@media (max-width: 850px) {

    .sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 35;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(11,12,18,.52);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .main-area {
        margin-left: 0;
    }

    .mobile-header {
        position: sticky;
        z-index: 25;
        top: 0;
        display: flex;
        height: 64px;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(255,255,255,.93);
        backdrop-filter: blur(12px);
    }

    .mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        font-weight: 850;
    }

    .mobile-brand .brand-mark {
        transform: scale(.82);
    }

    .page-wrap {
        width: min(100% - 36px, 760px);
        padding: 30px 0 50px;
    }

    .social-channel-grid {
        grid-template-columns: 1fr;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
    }

    .guest-shell {
        grid-template-columns: 1fr;
    }

    .guest-panel {
        min-height: 100vh;
    }

    .guest-art {
        display: none;
    }
}


/* =========================================================
   RESPONSIVE - 620PX
   ========================================================= */

@media (max-width: 620px) {

    .page-wrap {
        width: min(100% - 26px, 560px);
        padding-top: 24px;
    }

    .heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .heading-actions > .button {
        width: 100%;
    }

    .page-heading h1 {
        font-size: 29px;
    }

    .stat-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .social-channel-grid {
        grid-template-columns: 1fr;
    }

    .social-channel-card {
        min-height: auto;
        padding: 20px 18px;
    }

    .social-channel-top {
        align-items: flex-start;
    }

    .social-logo {
        width: 43px;
        height: 43px;
    }

    .social-logo .icon {
        width: 22px;
        height: 22px;
    }

    .social-brand h2 {
        font-size: 17px;
    }

    .social-description {
        min-height: 0;
    }

    .stat-card {
        min-height: 96px;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .panel-heading {
        padding: 21px 19px 17px;
    }

    .activity-row {
        padding: 12px 18px;
    }

    .activity-row .status-pill {
        display: none;
    }

    .post-media {
        height: 220px;
    }

    .toolbar-row {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .result-count {
        align-self: flex-end;
    }

    .form-panel,
    .preview-panel,
    .narrow-form,
    .settings-grid > .panel {
        padding: 20px 17px;
    }

    .three-choice {
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 77px;
        grid-template-columns: auto 1fr;
        justify-items: start;
        place-content: center;
        padding: 13px 20px;
        text-align: left;
    }

    .choice-card small {
        grid-column: 2;
    }

    .check-grid,
    .field-pair {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }

    .schedule-card {
        grid-template-columns: 72px 1fr;
    }

    .schedule-date {
        min-height: 100%;
        padding: 10px;
    }

    .schedule-date strong {
        font-size: 29px;
    }

    .schedule-main {
        padding: 16px 14px;
    }

    .schedule-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-bottom .button-row {
        justify-content: flex-start;
    }

    .schedule-bottom .button-row .button {
        flex: 1 1 auto;
    }

    .schedule-title-row {
        gap: 8px;
    }

    .setup-banner {
        flex-direction: column;
    }

    .copy-field {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-field button {
        margin: 0;
    }

    .account-row,
    .facebook-grid .inline-note,
    .danger-zone {
        margin-right: 18px;
        margin-left: 18px;
    }

    .page-selector,
    .group-add-form {
        padding-right: 18px;
        padding-left: 18px;
    }

    .group-row {
        padding-right: 17px;
        padding-left: 17px;
    }

    .system-panel {
        grid-column: auto;
    }

    .code-instruction {
        align-items: stretch;
        flex-direction: column;
    }

    .code-instruction button {
        margin: 0;
    }

    .guest-panel {
        width: min(100% - 38px, 470px);
        padding: 95px 0 45px;
    }

    .guest-brand {
        top: 25px;
    }

    .auth-copy h1 {
        font-size: 30px;
    }
}


/* =========================================================
   ADFLOW - COMPACT POSTS + FILTERS + FULL-SCREEN CALENDAR
   ========================================================= */

.field-label-with-note {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field-label-with-note > span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.field-label-with-note small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
}

.compact-section-heading {
    align-items: center;
}

.compact-section-heading > div:nth-child(2) {
    flex: 1 1 auto;
}

.select-all-platforms {
    margin-left: auto;
}


/* Smaller platform cards */

.compact-platform-grid {
    gap: 8px;
}

.compact-platform-grid .platform-choice {
    min-height: 76px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-content: center;
    column-gap: 9px;
    row-gap: 1px;
    padding: 11px 13px;
    text-align: left;
}

.compact-platform-grid .platform-choice-icon {
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
}

.compact-platform-grid .platform-choice strong {
    align-self: end;
}

.compact-platform-grid .platform-choice small {
    grid-column: 2;
    align-self: start;
}

.facebook-post-options {
    margin-top: 12px;
    padding: 13px;
}


/* =========================================================
   POST / SCHEDULE FILTER TOOLBAR
   ========================================================= */

.content-filter-bar {
    display: grid;
    grid-template-columns:
        minmax(230px, 1fr)
        minmax(145px, 180px)
        minmax(135px, 170px)
        auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
}

.schedule-filter-bar {
    grid-template-columns:
        minmax(230px, 1fr)
        minmax(145px, 180px)
        minmax(135px, 170px)
        minmax(140px, 175px)
        auto;
}

.content-filter-bar select {
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: #4c4f5e;
    font-size: 11px;
}

.compact-search {
    width: 100%;
}

.content-filter-bar .result-count {
    justify-self: end;
    white-space: nowrap;
}


/* =========================================================
   COMPACT POST LIBRARY
   ========================================================= */

.compact-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.compact-post-card {
    border-radius: 14px;
}

.compact-post-card .post-media {
    height: 122px;
}

.compact-post-card .post-card-body {
    padding: 12px 13px 11px;
}

.compact-post-card .post-card-top {
    gap: 6px;
}

.compact-post-card h2 {
    font-size: 13px;
}

.compact-post-card .meta-text {
    font-size: 8px;
}

.compact-post-card .post-excerpt {
    min-height: 31px;
    margin: 7px 0 9px;
    font-size: 10px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

.compact-post-card .post-card-footer {
    min-height: 31px;
    padding-top: 9px;
}

.compact-post-card .schedule-note {
    font-size: 8px;
}

.compact-post-card .button-small {
    min-height: 29px;
    padding: 0 9px;
    font-size: 9px;
}

.compact-menu-button {
    width: 30px;
    height: 30px;
}

.compact-post-card .post-placeholder {
    width: 45px;
    height: 45px;
}

.platform-chip-row {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.platform-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 20px;
    background: rgba(24, 25, 34, .76);
    color: white;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .2px;
    backdrop-filter: blur(8px);
}

.platform-mini-chip.facebook {
    background: rgba(24, 119, 242, .88);
}

.platform-mini-chip.instagram {
    background: rgba(193, 53, 132, .88);
}

.platform-mini-chip.tiktok {
    background: rgba(22, 24, 35, .9);
}


/* Scheduled-post chips appear on white backgrounds too */

.schedule-card .platform-mini-chip {
    border-color: var(--line);
    background: #f2f1f7;
    color: #575a69;
    backdrop-filter: none;
}

.schedule-card .platform-mini-chip.facebook {
    border-color: #d8e7fb;
    background: #edf5ff;
    color: #1877f2;
}

.schedule-card .platform-mini-chip.instagram {
    border-color: #f3d6e4;
    background: #fff1f7;
    color: #c13584;
}

.schedule-card .platform-mini-chip.tiktok {
    border-color: #dedee3;
    background: #f1f1f4;
    color: #161823;
}

.compact-schedule-list {
    gap: 9px;
}

.compact-schedule-list .schedule-card {
    grid-template-columns: 82px 1fr;
}

.compact-schedule-list .schedule-date {
    min-height: 144px;
}

.compact-schedule-list .schedule-main {
    padding: 15px 17px 12px;
}

.compact-schedule-list .schedule-title-row h2 {
    margin-top: 5px;
    font-size: 15px;
}

.compact-schedule-list .schedule-headline {
    display: -webkit-box;
    max-width: 780px;
    overflow: hidden;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.compact-schedule-list .schedule-bottom {
    margin-top: 12px;
    padding-top: 10px;
}


/* =========================================================
   SCHEDULE PICKER CARD
   ========================================================= */

.schedule-picker-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    padding: 14px 15px;
    border: 1px solid #dcd9ec;
    border-radius: 13px;
    background:
        linear-gradient(
            100deg,
            #faf9ff,
            #ffffff
        );
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.schedule-picker-card:hover {
    border-color: #a99ce7;
    box-shadow: 0 8px 24px rgba(86, 69, 170, .08);
    transform: translateY(-1px);
}

.schedule-picker-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--violet-soft);
    color: var(--violet);
}

.schedule-picker-icon .icon {
    width: 21px;
    height: 21px;
}

.schedule-picker-copy {
    display: grid;
    min-width: 0;
    margin-right: auto;
}

.schedule-picker-copy small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.schedule-picker-copy strong {
    margin: 2px 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-picker-copy > span {
    color: var(--muted);
    font-size: 9px;
}

.schedule-picker-action {
    color: var(--violet);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   FULL SCREEN OUTLOOK-STYLE CALENDAR
   ========================================================= */

body.calendar-modal-open {
    overflow: hidden;
}

.schedule-calendar-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: #f7f7f9;
}

.schedule-calendar-window {
    display: grid;
    width: 100vw;
    height: 100vh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fff;
}

.schedule-calendar-header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.schedule-calendar-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.schedule-calendar-heading h2 {
    margin: 2px 0 0;
    font-size: 22px;
    letter-spacing: -.55px;
}

.calendar-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: #5f6270;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.calendar-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.calendar-nav-buttons {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.calendar-nav-buttons button {
    width: 36px;
    height: 34px;
    border: 0;
    border-right: 1px solid var(--line);
    background: white;
    color: #5a5d6b;
    font-size: 21px;
    cursor: pointer;
}

.calendar-nav-buttons button:last-child {
    border-right: 0;
}

.calendar-nav-buttons button:hover {
    background: #f6f5fb;
}

.calendar-view-switcher {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: #f0eff4;
}

.calendar-view-switcher button {
    min-height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #717482;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.calendar-view-switcher button.active {
    background: white;
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(35, 37, 50, .08);
}

.schedule-calendar-body {
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.schedule-calendar-footer {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 20px;
    padding: 12px 22px;
    border-top: 1px solid var(--line);
    background: white;
    box-shadow: 0 -8px 22px rgba(31, 35, 52, .035);
}

.calendar-selected-summary {
    display: flex;
    min-width: 290px;
    align-items: center;
    gap: 10px;
}

.calendar-selected-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: var(--violet-soft);
    color: var(--violet);
}

.calendar-selected-summary > div {
    display: grid;
}

.calendar-selected-summary small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-selected-summary strong {
    font-size: 11px;
}

.calendar-time-control {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #555866;
    font-size: 10px;
    font-weight: 750;
}

.calendar-time-control input {
    width: 116px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    background: white;
}

.calendar-time-control input:focus {
    border-color: #9a89e3;
    box-shadow: 0 0 0 3px rgba(111, 91, 211, .1);
}

.calendar-footer-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}


/* Month */

.outlook-month-view {
    display: grid;
    height: 100%;
    grid-template-rows: 36px minmax(0, 1fr);
}

.calendar-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: #fafafd;
}

.calendar-weekday-row > div {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-right: 1px solid var(--line);
    color: #767987;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-weekday-row > div:last-child {
    border-right: 0;
}

.calendar-month-grid {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(78px, 1fr));
}

.calendar-month-day {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 4px;
    padding: 7px 8px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: white;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.calendar-month-day:nth-child(7n) {
    border-right: 0;
}

.calendar-month-day:hover {
    background: #faf9ff;
}

.calendar-month-day.outside {
    background: #fafafa;
    color: #b0b2bb;
}

.calendar-month-day.selected {
    box-shadow: inset 0 0 0 2px var(--violet);
    background: #fbfaff;
}

.calendar-day-number {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

.calendar-month-day.today .calendar-day-number {
    background: var(--violet);
    color: white;
}

.calendar-day-events {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.calendar-event-chip {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    border: 1px solid #dfdaf7;
    border-radius: 7px;
    background: #f5f2ff;
    color: #545766;
    font-size: 8px;
}

.calendar-event-chip.compact {
    padding: 3px 5px;
    gap: 4px;
    border-radius: 5px;
    font-size: 7px;
}

.calendar-event-time {
    color: var(--violet);
    font-weight: 850;
}

.calendar-event-name {
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-platforms {
    color: #9295a3;
    font-size: 7px;
}

.calendar-more-events {
    color: var(--violet);
    font-size: 7px;
    font-weight: 800;
}


/* Week */

.outlook-week-view {
    display: grid;
    height: 100%;
    grid-template-rows: 52px minmax(0, 1fr);
}

.calendar-week-header {
    display: grid;
    grid-template-columns: 64px repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: #fafafd;
}

.calendar-time-gutter {
    border-right: 1px solid var(--line);
}

.calendar-week-day-head {
    display: grid;
    place-content: center;
    border-right: 1px solid var(--line);
    text-align: center;
}

.calendar-week-day-head span {
    color: #858895;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-week-day-head strong {
    margin-top: 1px;
    font-size: 15px;
}

.calendar-week-day-head.selected strong {
    color: var(--violet);
}

.calendar-week-scroll {
    overflow: auto;
}

.calendar-week-hour-row {
    display: grid;
    min-height: 54px;
    grid-template-columns: 64px repeat(7, minmax(0, 1fr));
}

.calendar-hour-label {
    padding: 5px 8px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid #f0f0f3;
    color: #8b8e9b;
    font-size: 8px;
    text-align: right;
}

.calendar-week-slot {
    min-width: 0;
    padding: 3px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid #f0f0f3;
    background: white;
    cursor: pointer;
    text-align: left;
}

.calendar-week-slot:hover,
.calendar-week-slot.selected {
    background: #f8f6ff;
}

.calendar-week-slot.selected {
    box-shadow: inset 0 0 0 1px var(--violet);
}


/* Day */

.outlook-day-view,
.calendar-day-scroll {
    height: 100%;
}

.calendar-day-scroll {
    overflow: auto;
}

.calendar-day-hour-row {
    display: grid;
    min-height: 62px;
    grid-template-columns: 72px minmax(0, 1fr);
}

.calendar-day-slot {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 5px;
    border: 0;
    border-bottom: 1px solid #f0f0f3;
    background: white;
    cursor: pointer;
    text-align: left;
}

.calendar-day-slot:hover,
.calendar-day-slot.selected {
    background: #f8f6ff;
}

.calendar-day-slot.selected {
    box-shadow: inset 0 0 0 1px var(--violet);
}


/* =========================================================
   RESPONSIVE UPGRADES
   ========================================================= */

@media (max-width: 1250px) {
    .compact-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-filter-bar,
    .schedule-filter-bar {
        grid-template-columns: 1fr 160px 150px;
    }

    .schedule-filter-bar select[data-smart-select="platform"] {
        grid-column: 2;
    }

    .content-filter-bar .result-count {
        justify-self: start;
    }
}

@media (max-width: 850px) {
    .compact-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-filter-bar,
    .schedule-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .content-filter-bar .search-box {
        grid-column: 1 / -1;
    }

    .schedule-calendar-header {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-header-actions {
        flex-wrap: wrap;
    }

    .schedule-calendar-footer {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .calendar-selected-summary {
        min-width: 0;
        flex: 1 1 100%;
    }

    .calendar-footer-actions {
        margin-left: auto;
    }
}

@media (max-width: 620px) {
    .field-label-with-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .compact-section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .select-all-platforms {
        margin-left: 43px;
    }

    .compact-platform-grid {
        grid-template-columns: 1fr;
    }

    .compact-post-grid {
        grid-template-columns: 1fr;
    }

    .compact-post-card .post-media {
        height: 150px;
    }

    .content-filter-bar,
    .schedule-filter-bar {
        grid-template-columns: 1fr;
    }

    .content-filter-bar .search-box,
    .schedule-filter-bar select[data-smart-select="platform"] {
        grid-column: auto;
    }

    .schedule-picker-action {
        display: none;
    }

    .schedule-calendar-header {
        padding: 10px 12px;
    }

    .calendar-view-switcher {
        width: 100%;
    }

    .calendar-view-switcher button {
        flex: 1 1 0;
    }

    .schedule-calendar-footer {
        padding: 10px 12px;
    }

    .calendar-time-control {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-footer-actions {
        width: 100%;
    }

    .calendar-footer-actions .button {
        flex: 1 1 0;
    }

    .calendar-month-grid {
        grid-template-rows: repeat(6, minmax(62px, 1fr));
    }

    .calendar-event-platforms {
        display: none;
    }

    .calendar-event-chip.compact {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .calendar-week-header {
        grid-template-columns: 46px repeat(7, minmax(72px, 1fr));
        min-width: 560px;
    }

    .calendar-week-hour-row {
        grid-template-columns: 46px repeat(7, minmax(72px, 1fr));
        min-width: 560px;
    }

    .outlook-week-view {
        overflow-x: auto;
    }
}
/* =========================================================
   FINAL CREATE + SCHEDULE UPGRADE
   ========================================================= */

.field-label-with-note > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

.field-label-with-note small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}


/* =========================================================
   PUBLISH + CALENDAR SIDE BY SIDE
   ========================================================= */

.publish-schedule-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        285px;
    align-items: start;
    gap: 14px;
}

.publish-compact-block,
.schedule-compact-block {
    min-width: 0;
}

.compact-section-heading {
    align-items: center;
    margin-bottom: 10px;
}

.publish-mini-heading,
.schedule-mini-heading {
    position: relative;
}

.publish-mini-heading .step-number,
.schedule-mini-heading .step-number {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 10px;
}

.publish-mini-heading h2,
.schedule-mini-heading h2 {
    font-size: 15px;
}

.publish-mini-heading p,
.schedule-mini-heading p {
    font-size: 10px;
}

.select-all-platforms {
    margin-left: auto;
    min-height: 29px;
    padding: 0 9px;
    font-size: 9px;
}


/* =========================================================
   SMALL PLATFORM CARDS
   ========================================================= */

.ultra-compact-platform-grid {
    gap: 6px;
}

.ultra-compact-platform-grid.platform-choice-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.ultra-compact-platform-grid .platform-choice {
    min-height: 58px;
    grid-template-columns:
        27px
        minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    padding: 8px 9px;
    border-radius: 10px;
    column-gap: 7px;
}

.ultra-compact-platform-grid .platform-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ultra-compact-platform-grid .platform-choice-icon {
    width: 27px;
    height: 27px;
    margin: 0;
    border-radius: 8px;
    font-size: 15px;
}

.ultra-compact-platform-grid .platform-choice-icon .icon {
    width: 16px;
    height: 16px;
}

.ultra-compact-platform-grid .platform-choice strong {
    align-self: center;
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
}


/* =========================================================
   FACEBOOK OPTIONS
   ========================================================= */

.compact-facebook-options {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
}

.compact-facebook-options .facebook-group-toggle {
    padding: 8px;
}

.compact-facebook-options .facebook-group-toggle strong {
    font-size: 10px;
}

.compact-facebook-options .facebook-group-toggle small {
    font-size: 8px;
}


/* =========================================================
   SMALL CALENDAR BUTTON
   ========================================================= */

.schedule-compact-block {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #faf9ff;
}

.compact-schedule-picker {
    display: grid;
    width: 100%;
    min-height: 104px;
    grid-template-columns:
        38px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ded9f5;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
}

.compact-schedule-picker:hover {
    border-color: #bdb4ec;
    box-shadow:
        0 8px 22px
        rgba(73, 60, 142, .08);
    transform: translateY(-1px);
}

.compact-schedule-picker .schedule-picker-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: var(--violet-soft);
    color: var(--violet);
}

.compact-schedule-picker .schedule-picker-copy {
    display: grid;
    min-width: 0;
}

.compact-schedule-picker .schedule-picker-copy small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.compact-schedule-picker .schedule-picker-copy strong {
    overflow: hidden;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-schedule-picker .schedule-picker-copy > span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.compact-schedule-picker .schedule-picker-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 3px;
    padding-top: 7px;
    border-top: 1px solid var(--line);
    color: var(--violet);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   FILTER TOOLBAR
   ========================================================= */

.smart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
}

.smart-toolbar .search-box {
    min-width: 260px;
    flex: 1 1 320px;
}

.smart-toolbar select {
    min-width: 135px;
    min-height: 42px;
    padding:
        0
        34px
        0
        12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.smart-toolbar .result-count {
    margin-left: auto;
    white-space: nowrap;
}


/* =========================================================
   SMALL POST CARDS
   ========================================================= */

.post-grid.compact-post-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                185px,
                215px
            )
        );
    justify-content: start;
    gap: 10px;
}

.compact-post-card {
    overflow: visible;
    border-radius: 11px;
}

.compact-post-card .post-media {
    height: 88px;
    min-height: 88px;
    border-radius:
        10px
        10px
        0
        0;
}

.compact-post-card .post-media img,
.compact-post-card .post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-post-card .post-card-body {
    padding: 9px 10px;
}

.compact-post-card .post-card-top {
    align-items: flex-start;
    gap: 6px;
}

.compact-post-card .post-card-top h2 {
    margin: 0;
    font-size: 11px;
    line-height: 1.25;
}

.compact-post-card .meta-text {
    font-size: 7px;
}

.compact-menu-button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
}

.compact-post-heading {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-post-card .post-excerpt {
    display: -webkit-box;
    min-height: 25px;
    margin: 4px 0 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compact-post-card .post-card-footer {
    min-height: 27px;
    gap: 5px;
    padding-top: 6px;
}

.compact-post-card .schedule-note,
.compact-post-card .status-pill {
    font-size: 7px;
}

.compact-post-card .button-small {
    min-height: 25px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 8px;
}

.compact-post-card .button-small .icon {
    width: 12px;
    height: 12px;
}


/* =========================================================
   PLATFORM CHIPS
   ========================================================= */

.platform-chip-row {
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    pointer-events: none;
}

.platform-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 2px 6px;
    border:
        1px solid
        rgba(255, 255, 255, .42);
    border-radius: 999px;
    background:
        rgba(24, 26, 38, .72);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(7px);
}

.chip-row .platform-mini-chip {
    border-color: var(--line);
    background: #f6f5fb;
    color: #55596b;
    backdrop-filter: none;
}

.platform-mini-chip.facebook {
    background: #1877f2;
    color: #fff;
}

.platform-mini-chip.instagram {
    background: #f5edf8;
    color: #9d3f87;
}

.platform-mini-chip.tiktok {
    background: #191b25;
    color: #fff;
}


/* =========================================================
   SMALL SCHEDULE CARDS
   ========================================================= */

.compact-schedule-list {
    display: grid;
    gap: 10px;
}

.compact-schedule-card {
    min-height: 112px;
}

.compact-schedule-card .schedule-date {
    width: 76px;
    min-width: 76px;
}

.compact-schedule-card .schedule-date strong {
    font-size: 24px;
}

.compact-schedule-card .schedule-main {
    padding: 14px 16px;
}

.compact-schedule-card .schedule-title-row h2 {
    margin-top: 5px;
    font-size: 15px;
}

.schedule-post-heading {
    display: block;
    margin: 4px 0 1px;
    font-size: 11px;
}

.compact-schedule-card .schedule-headline {
    display: -webkit-box;
    max-width: 720px;
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   FULL SCREEN OUTLOOK STYLE CALENDAR
   ========================================================= */

body.calendar-open {
    overflow: hidden;
}

.calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 18px;
    background:
        rgba(19, 21, 31, .72);
    backdrop-filter: blur(8px);
}

.calendar-modal-shell {
    display: grid;
    width: min(
        1500px,
        100%
    );
    height:
        calc(
            100vh - 36px
        );
    margin: 0 auto;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;
    overflow: hidden;
    border:
        1px solid
        #dedfe8;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0
        30px
        90px
        rgba(8, 10, 20, .28);
}

.calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom:
        1px solid
        var(--line);
}

.calendar-modal-header h2 {
    margin: 2px 0 0;
    font-size: 22px;
    letter-spacing: -.55px;
}

.calendar-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.calendar-view-switch {
    display: inline-flex;
    padding: 3px;
    border:
        1px solid
        var(--line);
    border-radius: 10px;
    background: #f8f8fb;
}

.calendar-view-switch button {
    min-height: 31px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.calendar-view-switch button.active {
    background: #fff;
    color: var(--violet);
    box-shadow:
        0
        3px
        10px
        rgba(36, 39, 56, .08);
}

.calendar-modal-body {
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.calendar-modal-footer {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 13px 18px;
    border-top:
        1px solid
        var(--line);
    background: #fff;
}

.calendar-selected-summary {
    display: grid;
    min-width: 230px;
}

.calendar-selected-summary small,
.calendar-time-field label {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .55px;
    text-transform: uppercase;
}

.calendar-selected-summary strong {
    font-size: 12px;
}

.calendar-time-field {
    display: grid;
}

.calendar-time-field input {
    width: 130px;
    min-height: 40px;
    padding: 0 10px;
    border:
        1px solid
        var(--line);
    border-radius: 9px;
    background: #fff;
}

.calendar-footer-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}


/* =========================================================
   MONTH VIEW
   ========================================================= */

.calendar-month-view {
    min-width: 840px;
    height: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns:
        repeat(
            7,
            minmax(0, 1fr)
        );
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom:
        1px solid
        var(--line);
    background: #fafafd;
}

.calendar-weekdays span {
    padding: 9px 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-month-grid {
    display: grid;
    min-height:
        calc(
            100% - 35px
        );
    grid-template-columns:
        repeat(
            7,
            minmax(0, 1fr)
        );
    grid-template-rows:
        repeat(
            6,
            minmax(105px, 1fr)
        );
}

.calendar-day-cell {
    position: relative;
    min-height: 105px;
    padding: 7px;
    border-right:
        1px solid
        var(--line);
    border-bottom:
        1px solid
        var(--line);
    background: #fff;
}

.calendar-day-cell:nth-child(7n) {
    border-right: 0;
}

.calendar-day-cell.outside {
    background: #fafafd;
    color: #b2b4be;
}

.calendar-day-cell.today {
    background: #fcfbff;
}

.calendar-day-cell.selected {
    box-shadow:
        inset
        0
        0
        0
        2px
        rgba(111, 91, 211, .35);
}

.calendar-day-number {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.calendar-day-cell.today .calendar-day-number {
    background: var(--violet);
    color: #fff;
}

.calendar-day-events {
    display: grid;
    gap: 3px;
    margin-top: 4px;
}

.calendar-day-events > small {
    color: var(--muted);
    font-size: 8px;
}


/* =========================================================
   CALENDAR EVENTS
   ========================================================= */

.calendar-event {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 7px;
    border: 0;
    border-left:
        3px solid
        var(--violet);
    border-radius: 6px;
    background:
        var(--violet-soft);
    color: #4f3ea5;
    text-align: left;
    cursor: pointer;
}

.calendar-event strong {
    flex: 0 0 auto;
    font-size: 8px;
}

.calendar-event span {
    overflow: hidden;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event.compact {
    padding: 4px 5px;
}


/* =========================================================
   WEEK VIEW
   ========================================================= */

.calendar-week-view {
    min-width: 1000px;
}

.calendar-week-header {
    display: grid;
    position: sticky;
    top: 0;
    z-index: 6;
    grid-template-columns:
        70px
        repeat(
            7,
            minmax(
                120px,
                1fr
            )
        );
    border-bottom:
        1px solid
        var(--line);
    background: #fff;
}

.calendar-time-spacer {
    border-right:
        1px solid
        var(--line);
}

.calendar-week-day-head {
    display: grid;
    min-height: 58px;
    place-items: center;
    border: 0;
    border-right:
        1px solid
        var(--line);
    background: #fff;
    cursor: pointer;
}

.calendar-week-day-head small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-week-day-head strong {
    font-size: 17px;
}

.calendar-week-day-head.selected {
    background: #faf9ff;
    color: var(--violet);
}

.calendar-week-hours {
    display: grid;
    grid-template-columns:
        70px
        repeat(
            7,
            minmax(
                120px,
                1fr
            )
        );
}

.calendar-hour-label {
    display: flex;
    min-height: 54px;
    align-items: flex-start;
    justify-content: flex-end;
    padding:
        7px
        9px
        0
        0;
    border-right:
        1px solid
        var(--line);
    border-bottom:
        1px solid
        var(--line);
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
}

.calendar-hour-slot,
.calendar-day-hour-slot {
    position: relative;
    min-height: 54px;
    padding: 3px;
    border-right:
        1px solid
        var(--line);
    border-bottom:
        1px solid
        var(--line);
    cursor: pointer;
}

.calendar-hour-slot:hover,
.calendar-day-hour-slot:hover {
    background: #faf9ff;
}


/* =========================================================
   DAY VIEW
   ========================================================= */

.calendar-day-view {
    min-width: 720px;
}

.calendar-day-hour-row {
    display: grid;
    grid-template-columns:
        80px
        minmax(
            0,
            1fr
        );
}

.calendar-day-hour-row .calendar-hour-label {
    min-height: 62px;
}

.calendar-day-hour-slot {
    min-height: 62px;
    border-right: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .publish-schedule-layout {
        grid-template-columns:
            1fr;
    }

    .schedule-compact-block {
        padding: 10px;
    }

    .calendar-modal-footer {
        flex-wrap: wrap;
    }

    .calendar-footer-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

}


@media (max-width: 720px) {

    .smart-toolbar {
        align-items: stretch;
    }

    .smart-toolbar .search-box,
    .smart-toolbar select {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .smart-toolbar .result-count {
        margin-left: 0;
    }

    .ultra-compact-platform-grid.platform-choice-grid {
        grid-template-columns:
            1fr;
    }

    .post-grid.compact-post-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
        gap: 8px;
    }

    .calendar-modal {
        padding: 0;
    }

    .calendar-modal-shell {
        width: 100%;
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .calendar-modal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-modal-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .calendar-selected-summary,
    .calendar-time-field input {
        width: 100%;
    }

    .calendar-footer-actions {
        display: grid;
        grid-template-columns:
            1fr
            1fr;
    }

}


@media (max-width: 480px) {

    .post-grid.compact-post-grid {
        grid-template-columns:
            1fr
            1fr;
    }

    .compact-post-card .post-media {
        height: 76px;
        min-height: 76px;
    }

}










/* =========================================================
   COMPACT USER-FRIENDLY FILTER BAR
   Posts + Scheduled Posts
   ========================================================= */

.smart-toolbar {
    display: flex !important;
    width: fit-content !important;
    max-width: 100% !important;

    flex-wrap: wrap !important;
    align-items: center !important;

    gap: 6px !important;

    margin: 0 0 16px !important;
    padding: 6px !important;

    border: 1px solid #e3e4eb !important;
    border-radius: 12px !important;

    background: #ffffff !important;

    box-shadow:
        0 4px 14px
        rgba(30, 32, 45, .04) !important;
}


/* =========================================================
   SEARCH
   ========================================================= */

.smart-toolbar .search-box {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;

    flex: 0 0 220px !important;

    min-height: 36px !important;

    border: 1px solid #e3e4eb !important;
    border-radius: 8px !important;

    background: #fafafe !important;
}


.smart-toolbar .search-box:focus-within {
    border-color: #8b72e8 !important;

    background: #ffffff !important;

    box-shadow:
        0 0 0 3px
        rgba(111, 91, 211, .09) !important;
}


.smart-toolbar .search-box input {
    width: 100% !important;

    min-height: 34px !important;

    padding:
        0
        8px
        0
        4px !important;

    border: 0 !important;

    background: transparent !important;

    font-size: 11px !important;

    outline: none !important;
}


.smart-toolbar .search-box .icon {
    width: 14px !important;
    height: 14px !important;

    color: #9698a5 !important;
}


/* =========================================================
   SELECT FILTERS
   ========================================================= */

.smart-toolbar select {
    width: auto !important;

    min-width: 112px !important;
    max-width: 145px !important;

    min-height: 36px !important;

    padding:
        0
        28px
        0
        10px !important;

    border: 1px solid #e3e4eb !important;
    border-radius: 8px !important;

    background-color: #fafafe !important;

    color: #464957 !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease !important;
}


.smart-toolbar select:hover {
    border-color: #c8c2e8 !important;

    background: #ffffff !important;
}


.smart-toolbar select:focus {
    border-color: #8b72e8 !important;

    background: #ffffff !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px
        rgba(111, 91, 211, .09) !important;
}


/* =========================================================
   RESULT COUNT
   ========================================================= */

.smart-toolbar .result-count {
    display: inline-flex !important;

    min-height: 36px !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 3px !important;

    margin: 0 !important;

    padding:
        0
        10px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: #f3f0ff !important;

    color: #7767bd !important;

    font-size: 9px !important;
    font-weight: 750 !important;

    white-space: nowrap !important;
}


.smart-toolbar .result-count strong {
    color: #5d49bd !important;

    font-size: 10px !important;
    font-weight: 850 !important;
}


/* =========================================================
   SMALL HOVER FEEL
   ========================================================= */

.smart-toolbar .search-box,
.smart-toolbar select,
.smart-toolbar .result-count {
    transition:
        .15s ease !important;
}


/* =========================================================
   EMPTY MESSAGE
   ========================================================= */

.no-filter-results {
    margin-top: 14px !important;

    padding: 18px !important;

    border: 1px dashed #d9d8e4 !important;
    border-radius: 10px !important;

    background: #fafafe !important;

    color: #777a87 !important;

    font-size: 11px !important;

    text-align: center !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .smart-toolbar {
        width: 100% !important;
    }


    .smart-toolbar .search-box {
        width: 200px !important;
        min-width: 200px !important;

        flex: 0 1 200px !important;
    }


    .smart-toolbar select {
        min-width: 105px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .smart-toolbar {
        display: grid !important;

        width: 100% !important;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;

        gap: 6px !important;
    }


    .smart-toolbar .search-box {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        grid-column: 1 / -1 !important;

        flex: none !important;
    }


    .smart-toolbar select {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }


    .smart-toolbar .result-count {
        width: max-content !important;

        min-width: 60px !important;
    }

}


.post-schedule-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.post-schedule-actions .button {
    white-space: nowrap;
}

.compact-post-card .post-schedule-actions {
    gap: 4px;
}

.compact-post-card
.post-schedule-actions
.button {
    min-height: 24px;
    padding: 0 6px;
    font-size: 7px;
}


/* =========================================================
   SCHEDULED POST MEDIA THUMBNAIL
   ========================================================= */

.schedule-card-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.schedule-content {
    flex: 1 1 auto;
    min-width: 0;
}


/* Bigger preview */

.schedule-media-thumb {
    position: relative;

    flex: 0 0 130px;

    width: 130px;
    height: 100px;

    margin-left: auto;

    overflow: hidden;

    border: 1px solid #e3e4eb;
    border-radius: 10px;

    background: #f2f2f7;
}

.schedule-media-thumb img,
.schedule-media-thumb video {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: 130px !important;
    max-height: 100px !important;

    object-fit: cover !important;

    border-radius: 9px;
}


/* Video preview */

.schedule-video-thumb {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.schedule-video-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    display: grid;

    width: 30px;
    height: 30px;

    place-items: center;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(15, 16, 25, .72);

    color: #fff;

    font-size: 10px;

    pointer-events: none;
}


/* Actions remain beside preview */

.schedule-actions {
    display: flex;

    flex: 0 0 auto;

    align-items: center;

    gap: 6px;
}


/* Mobile */

@media (max-width: 800px) {

    .schedule-media-thumb {
        flex-basis: 95px;

        width: 95px;
        height: 75px;
    }

    .schedule-media-thumb img,
    .schedule-media-thumb video {
        max-width: 95px !important;
        max-height: 75px !important;
    }
}

/* =========================================================
   SCHEDULED POST
   ========================================================= */

.schedule-card {
    position: relative;

    overflow: hidden;
}


.schedule-card .schedule-main {
    position: relative;

    min-width: 0;
    min-height: 155px;

    padding-right: 100px;
}


.schedule-card.has-media .schedule-main {
    padding-right: 295px !important;
}


.schedule-card-row {
    display: flex;

    width: 100%;

    min-width: 0;

    align-items: flex-start;

    gap: 14px;
}


.schedule-content {
    flex: 1 1 auto;

    min-width: 0;
}


/* =========================================================
   MEDIA RAIL
   ========================================================= */

.schedule-card.has-media
.schedule-media-thumb {
    position: absolute;

    top: 0;
    right: 90px;
    bottom: 0;

    width: 185px;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    border: 0;
    border-left:
        1px solid #e5e5ec;

    border-radius: 0;

    background: #101116;
}


.schedule-card.has-media
.schedule-media-thumb > img,
.schedule-card.has-media
.schedule-media-thumb video {
    display: block;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 0 !important;

    background: #101116;
}


.schedule-video-thumb {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #101116;
}


.schedule-video-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 2;

    display: grid;

    width: 38px;
    height: 38px;

    place-items: center;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 50%;

    background:
        rgba(
            10,
            11,
            18,
            .78
        );

    color: #fff;

    font-size: 12px;

    box-shadow:
        0 5px 18px
        rgba(
            0,
            0,
            0,
            .28
        );

    pointer-events: none;
}


/* =========================================================
   EDIT / DELETE AREA
   ========================================================= */

.schedule-card .schedule-actions {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    display: flex;

    align-items: flex-start;
    justify-content: flex-end;

    gap: 7px;
}


.schedule-card
.schedule-actions .icon-button {
    box-shadow:
        0 2px 8px
        rgba(
            30,
            32,
            45,
            .06
        );
}


/* =========================================================
   DELETE SCHEDULE MODAL
   ========================================================= */

body.schedule-modal-open {
    overflow: hidden;
}


.schedule-delete-modal {
    position: fixed;

    z-index: 1000;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 22px;
}


.schedule-delete-modal[hidden] {
    display: none !important;
}


/*
 * The website CSP only permits JavaScript
 * loaded from app.js. These confirmation
 * dialogs therefore use CSS :target instead
 * of inline JavaScript.
 */
.schedule-delete-modal.app-target-modal {
    display: none;
}


.schedule-delete-modal.app-target-modal:target {
    display: grid;
}


body:has(
    .schedule-delete-modal.app-target-modal:target
) {
    overflow: hidden;
}


.context-menu
a.post-delete-link {
    color: var(--red);
}


.context-menu
a.post-delete-link:hover {
    background: #fff7f8;

    color: var(--red);
}


.schedule-delete-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(
            18,
            20,
            31,
            .55
        );

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


.schedule-delete-dialog {
    position: relative;

    z-index: 1;

    width:
        min(
            470px,
            100%
        );

    overflow: hidden;

    padding: 28px;

    border:
        1px solid
        rgba(
            225,
            226,
            233,
            .95
        );

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 28px 80px
        rgba(
            20,
            22,
            35,
            .22
        );

    animation:
        scheduleDeleteModalIn
        .18s ease-out;
}


@keyframes scheduleDeleteModalIn {
    from {
        opacity: 0;

        transform:
            translateY(8px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.schedule-delete-icon {
    display: grid;

    width: 48px;
    height: 48px;

    margin-bottom: 17px;

    place-items: center;

    border-radius: 14px;

    background: #fff0f2;

    color: var(--red);
}


.schedule-delete-icon .icon {
    width: 22px;
    height: 22px;
}


.schedule-delete-heading h2 {
    margin:
        5px
        0
        7px;

    font-size: 21px;

    line-height: 1.2;

    letter-spacing: -.4px;
}


.schedule-delete-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


.schedule-delete-media-choice {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    margin-top: 22px;

    padding: 15px 16px;

    border:
        1px solid
        #e5e2f2;

    border-radius: 13px;

    background:
        #faf9ff;
}


.schedule-delete-media-choice[hidden] {
    display: none !important;
}


.schedule-delete-media-copy {
    display: grid;

    min-width: 0;

    gap: 3px;
}


.schedule-delete-media-copy strong {
    color: #343744;

    font-size: 12px;
}


.schedule-delete-media-copy span {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.45;
}


.schedule-delete-switch {
    display: grid;

    flex: 0 0 auto;

    justify-items: center;

    gap: 5px;

    cursor: pointer;
}


.schedule-delete-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
}


.schedule-delete-switch-track {
    position: relative;

    display: block;

    width: 42px;
    height: 24px;

    border-radius: 999px;

    background: #d9dae2;

    transition:
        background
        .16s ease;
}


.schedule-delete-switch-track > span {
    position: absolute;

    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 2px 5px
        rgba(
            20,
            22,
            35,
            .18
        );

    transition:
        transform
        .16s ease;
}


.schedule-delete-switch
input:checked
+
.schedule-delete-switch-track {
    background:
        var(--red);
}


.schedule-delete-switch
input:checked
+
.schedule-delete-switch-track
> span {
    transform:
        translateX(
            18px
        );
}


.schedule-delete-switch
input:focus-visible
+
.schedule-delete-switch-track {
    box-shadow:
        0
        0
        0
        3px
        rgba(
            211,
            77,
            92,
            .15
        );
}


.schedule-delete-switch > strong {
    color: #777986;

    font-size: 9px;

    font-weight: 750;

    white-space: nowrap;
}


.schedule-delete-switch
input:checked
~
strong {
    color: var(--red);
}


.schedule-delete-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 24px;

    padding-top: 19px;

    border-top:
        1px solid
        var(--line);
}


.schedule-delete-confirm {
    border-color:
        var(--red);

    background:
        var(--red);

    color: #fff;

    box-shadow:
        0 8px 18px
        rgba(
            211,
            77,
            92,
            .20
        );
}


.schedule-delete-confirm:hover {
    border-color: #bd3f4e;

    background: #bd3f4e;
}


@media (max-width: 540px) {

    .schedule-delete-modal {
        padding: 14px;
    }


    .schedule-delete-dialog {
        padding: 22px;

        border-radius: 16px;
    }


    .schedule-delete-media-choice {
        align-items: flex-start;

        flex-direction: column;
    }


    .schedule-delete-switch {
        grid-template-columns:
            auto
            auto;

        align-items: center;

        justify-items: start;
    }


    .schedule-delete-actions {
        display: grid;

        grid-template-columns:
            1fr
            1fr;
    }


    .schedule-delete-actions
    .button {
        width: 100%;
    }

}


/* =========================================================
   BOTTOM LINE
   ========================================================= */

.schedule-card.has-media
.schedule-bottom {
    padding-right: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .schedule-card .schedule-main {
        padding-right: 90px;
    }


    .schedule-card.has-media
    .schedule-main {
        padding-right: 235px !important;
    }


    .schedule-card.has-media
    .schedule-media-thumb {
        right: 80px;

        width: 140px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .schedule-card
    .schedule-main {
        padding-right: 18px;
        padding-top: 68px;
    }


    .schedule-card.has-media
    .schedule-main {
        padding-right: 18px !important;
        padding-bottom: 145px !important;
    }


    .schedule-card
    .schedule-actions {
        top: 12px;
        right: 12px;
        left: 12px;

        justify-content: flex-end;
    }


    .schedule-card.has-media
    .schedule-media-thumb {
        top: auto;

        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 125px !important;

        border-left: 0;

        border-top:
            1px solid #e5e5ec;
    }

}


/* =========================================================
   MEDIA BIN
   ========================================================= */

.media-storage-panel {
    margin-bottom: 20px;
    padding: 24px;
}


.media-storage-top {
    display: flex;
    align-items: center;
    gap: 16px;
}


.media-storage-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 15px;

    background:
        var(--violet-soft);

    color:
        var(--violet);
}


.media-storage-icon
.icon {
    width: 24px;
    height: 24px;
}


.media-storage-copy {
    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;

    gap: 2px;
}


.media-storage-copy
strong {
    font-size: 18px;

    letter-spacing: -.02em;
}


.media-storage-copy
small {
    color: var(--muted);
}


.media-storage-percent {
    flex: 0 0 auto;

    font-size: 22px;
    font-weight: 800;

    color: var(--violet);
}


.media-storage-progress {
    display: block;

    width: 100%;
    height: 12px;

    margin-top: 20px;

    overflow: hidden;

    appearance: none;
    -webkit-appearance: none;

    border: 0;

    border-radius: 999px;

    background: #ececf2;
}


.media-storage-progress::-webkit-progress-bar {
    border-radius: 999px;

    background: #ececf2;
}


.media-storage-progress::-webkit-progress-value {
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--violet),
            #8b78e8
        );
}


.media-storage-progress::-moz-progress-bar {
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--violet),
            #8b78e8
        );
}


.media-storage-stats {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;

    margin-top: 18px;
}


.media-storage-stats
span {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 11px 13px;

    border:
        1px solid var(--line);

    border-radius: 12px;

    background: #fafafd;

    color: var(--muted);

    font-size: 12px;
}


.media-storage-stats
strong {
    color: var(--ink);

    font-size: 13px;
}


.media-storage-stats
.icon {
    width: 16px;
    height: 16px;

    color: var(--violet);
}


.media-bin-filterbar {
    display: flex;
    align-items: end;

    gap: 14px;

    margin-bottom: 20px;
    padding: 18px;
}


.media-bin-filter {
    min-width: 180px;

    display: flex;
    flex-direction: column;

    gap: 7px;
}


.media-bin-filter
label {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .05em;
}


.media-bin-filter
select {
    min-height: 42px;

    padding: 0 38px 0 13px;

    border:
        1px solid var(--line);

    border-radius: 11px;

    background: #fff;

    color: var(--ink);
}


.media-bin-filter-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: auto;
}


.media-bin-upload-form {
    margin: 0;
    padding: 0;
}


.media-bin-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}


.media-bin-upload-button .icon {
    width: 16px;
    height: 16px;
}


.media-bin-upload-progress {
    margin-top: -8px;
    margin-bottom: 20px;
}


.media-bin-delete-form {
    display: block;
}


.media-bin-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 16px;
    padding: 15px 17px;

    border:
        1px solid #e3e1f3;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #faf9ff,
            #fff
        );
}


.media-bin-bulkbar
div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.media-bin-bulkbar
strong {
    font-size: 13px;
}


.media-bin-bulkbar
span {
    color: var(--muted);

    font-size: 12px;
}


.media-bin-delete-button {
    min-height: 40px;

    flex: 0 0 auto;

    border:
        1px solid #f0c9cf;

    background: #fff7f8;

    color: var(--red);
}


.media-bin-delete-button:hover {
    border-color: var(--red);

    background: var(--red);

    color: #fff;
}


.media-bin-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                235px,
                1fr
            )
        );

    gap: 18px;
}


.media-bin-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 7px 24px
        rgba(
            31,
            35,
            52,
            .045
        );

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


.media-bin-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #d9d5ef;

    box-shadow:
        0 13px 30px
        rgba(
            31,
            35,
            52,
            .075
        );
}


.media-bin-card.is-protected {
    background: #fffdf8;
}


.media-bin-card.is-missing {
    opacity: .72;
}


.media-bin-card-select {
    position: absolute;
    z-index: 3;

    top: 11px;
    left: 11px;
}


.media-bin-card-select
label {
    min-height: 32px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 5px 9px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .78
        );

    border-radius: 9px;

    background:
        rgba(
            19,
            22,
            35,
            .74
        );

    color: #fff;

    backdrop-filter:
        blur(8px);

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;
}


.media-bin-card-select
input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color:
        var(--violet);
}


.media-bin-card-select
input:disabled {
    cursor: not-allowed;
}


.media-bin-card-select
label:has(
    input:disabled
) {
    opacity: .55;

    cursor: not-allowed;
}


.media-bin-preview {
    position: relative;

    height: 185px;

    overflow: hidden;

    background:
        #ececf2;
}


.media-bin-preview
img,
.media-bin-preview
video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.media-bin-preview-missing {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}


.media-bin-preview-missing
.icon {
    width: 28px;
    height: 28px;
}


.media-bin-type-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;

    min-height: 28px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 4px 8px;

    border-radius: 999px;

    background:
        rgba(
            21,
            24,
            38,
            .78
        );

    color: #fff;

    backdrop-filter:
        blur(8px);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}


.media-bin-type-badge
.icon {
    width: 14px;
    height: 14px;
}


.media-bin-card-body {
    padding: 15px;
}


.media-bin-filename {
    min-width: 0;

    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
}


.media-bin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 8px;

    color: var(--muted);

    font-size: 10px;
}


.media-bin-meta
span:last-child {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    text-align: right;
}


.media-bin-usage {
    margin-top: 12px;
    padding-top: 11px;

    border-top:
        1px solid #efeff4;
}


.media-bin-status {
    min-height: 26px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 4px 8px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 700;
}


.media-bin-status
.icon {
    width: 13px;
    height: 13px;
}


.media-bin-status.protected {
    background: #fff4df;

    color: #9a631b;
}


.media-bin-status.linked {
    background: #f2efff;

    color: var(--violet-dark);
}


.media-bin-status.free {
    background: #eaf7f2;

    color: var(--green);
}


@media (max-width: 900px) {

    .media-storage-stats {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .media-bin-filterbar {
        flex-wrap: wrap;
    }


    .media-bin-filter {
        flex:
            1 1 200px;
    }


    .media-bin-filter-actions {
        width: 100%;

        margin-left: 0;
    }

}


@media (max-width: 600px) {

    .media-storage-panel {
        padding: 18px;
    }


    .media-storage-top {
        align-items: flex-start;

        flex-wrap: wrap;
    }


    .media-storage-percent {
        width: 100%;

        padding-left: 64px;

        font-size: 18px;
    }


    .media-storage-stats {
        grid-template-columns:
            1fr;
    }


    .media-bin-filterbar {
        align-items: stretch;

        flex-direction: column;
    }


    .media-bin-filter {
        min-width: 0;
        width: 100%;
    }


    .media-bin-filter-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .media-bin-bulkbar {
        align-items: stretch;

        flex-direction: column;
    }


    .media-bin-delete-button {
        width: 100%;

        justify-content: center;
    }


    .media-bin-grid {
        grid-template-columns:
            1fr;
    }


    .media-bin-preview {
        height: 210px;
    }

}
/* Post editor section contrast and two-step calendar selection. */
[data-post-editor] .post-editor-sections {
    background: #ffffff;
}
[data-post-editor] .editor-media-section {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e2e5ec;
    border-radius: 16px;
    background: #f3f4f7;
}
[data-post-editor] .publish-compact-block {
    padding: 18px;
    border: 1px solid #d4d9e3;
    border-radius: 16px;
    background: #e5e8ef;
}
.calendar-modal .calendar-time-field[hidden] {
    display: none;
}
.calendar-modal .calendar-day-cell {
    cursor: pointer;
}
.calendar-modal .calendar-day-cell:hover {
    background: #f4f1ff;
}
.calendar-modal .calendar-day-cell.selected,
.calendar-modal .calendar-hour-slot.selected,
.calendar-modal .calendar-day-hour-slot.selected {
    background: #ede7ff;
    box-shadow: inset 0 0 0 2px #7961c9;
}
.calendar-modal .calendar-day-cell.selected .calendar-day-number {
    background: #684db4;
    color: #ffffff;
}
.calendar-modal [data-calendar-pick-time]:focus-visible,
.calendar-modal .calendar-day-number:focus-visible {
    outline: 3px solid #684db4;
    outline-offset: -3px;
}
.calendar-modal .calendar-draft-post {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 3px;
    padding: 10px 14px;
    border-left: 4px solid #684db4;
    border-radius: 8px;
    background: #684db4;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}
.calendar-modal .calendar-draft-post strong {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}
.calendar-modal .calendar-draft-post span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}
.calendar-modal .calendar-day-view {
    min-width: 0;
}
@media (max-width: 700px) {
    [data-post-editor] .editor-media-section,
    [data-post-editor] .publish-compact-block {
        padding: 14px;
    }
    .calendar-modal .calendar-day-hour-row {
        grid-template-columns: 60px minmax(0, 1fr);
    }
    .calendar-modal .calendar-draft-post {
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
}

/* Keep scheduled media inside the card, with a smaller rounded preview. */
.schedule-card.has-media .schedule-main {
    padding-right: 275px !important;
}
.schedule-card.has-media .schedule-media-thumb {
    top: 12px;
    right: 102px;
    bottom: 12px;
    left: auto;
    width: 160px;
    height: auto !important;
    border: 1px solid #dfe2ea;
    border-radius: 5px;
    background: #f2f3f7;
    overflow: hidden;
}
.schedule-card.has-media .schedule-media-thumb > img,
.schedule-card.has-media .schedule-media-thumb video {
    object-fit: contain !important;
    border-radius: 5px !important;
    background: #f2f3f7;
}
.schedule-card.has-media .schedule-video-thumb {
    border-radius: 5px;
    overflow: hidden;
}
@media (max-width: 1100px) {
    .schedule-card.has-media .schedule-main {
        padding-right: 230px !important;
    }
    .schedule-card.has-media .schedule-media-thumb {
        right: 92px;
        width: 125px;
    }
}
@media (max-width: 760px) {
    .schedule-card.has-media .schedule-main {
        padding-right: 18px !important;
        padding-bottom: 135px !important;
    }
    .schedule-card.has-media .schedule-media-thumb {
        top: auto;
        right: 18px;
        bottom: 14px;
        left: 18px;
        width: auto;
        height: 105px !important;
        border: 1px solid #dfe2ea;
        border-radius: 5px;
    }
}
/* =========================================================
   PROFESSIONAL SHOP THEME
   Visual refresh only. Existing layout and application logic
   remain unchanged.
   ========================================================= */

:root {
    --ink: #222222;
    --muted: #777777;
    --line: #dedede;
    --canvas: #fbfcfd;
    --panel: #ffffff;
    --sidebar: #20252c;
    --sidebar-muted: #aeb4bd;
    --violet: #5c738f;
    --violet-dark: #526b87;
    --violet-soft: #eef2f6;
    --orange: #b77a51;
    --green: #587653;
    --red: #b95f5f;
    --blue: #5c738f;
    --shadow: 0 3px 12px rgba(15, 23, 42, .055);
    --radius: 5px;
}

body {
    background: #fbfcfd;
    color: #222222;
    font-family: "Manrope", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* App chrome */
.sidebar {
    background: #20252c;
    border-right: 1px solid #2f353d;
    box-shadow: none;
}

.brand {
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -.25px;
}

.brand-mark span {
    border-radius: 1px;
    background: #7d91aa;
}

.brand-mark span:nth-child(3) {
    background: #b28a70;
}

.nav-link {
    min-height: 44px;
    border-radius: 5px;
    color: #aeb4bd;
    font-size: 13px;
    font-weight: 600;
}

.nav-link:hover {
    background: #292f37;
    color: #ffffff;
}

.nav-link.active {
    background: #303741;
    color: #ffffff;
    box-shadow: inset 3px 0 #7d91aa;
}

.nav-link.active .icon {
    color: #aebed0;
}

.sidebar-platform-box {
    border-radius: 5px;
    box-shadow: none !important;
}

.sidebar-platform-box:hover {
    transform: none;
}

.sidebar-platform-box.connected,
.sidebar-platform-box.is-connected {
    background: #edf5ef !important;
    border-color: #bbd0bd !important;
    color: #355a39 !important;
    box-shadow: none !important;
}

.sidebar-platform-box.disconnected,
.sidebar-platform-box.is-disconnected {
    background: #292f37 !important;
    border-color: #3a414b !important;
    color: #9299a4 !important;
}

.page-wrap {
    padding-top: 42px;
}

/* Typography */
.page-heading {
    margin-bottom: 26px;
}

.page-heading h1 {
    margin-top: 2px;
    color: #222222;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: -.65px;
}

.page-heading p,
.panel-heading p,
.section-heading p,
.meta-text,
.muted {
    color: #777777;
}

.eyebrow {
    color: #5c738f;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
}

.back-link,
.text-link {
    color: #5c738f;
    font-weight: 600;
}

/* Buttons */
.button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    transform: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.button:hover {
    transform: none;
}

.button-primary {
    background: #5c738f;
    border-color: #5c738f;
    color: #ffffff;
    box-shadow: none;
}

.button-primary:hover {
    background: #526b87;
    border-color: #526b87;
}

.button-soft {
    background: #eef2f6;
    border-color: #dbe2e9;
    color: #465d77;
}

.button-soft:hover {
    background: #e5ebf1;
    border-color: #cfd8e1;
}

.button-ghost {
    background: #ffffff;
    border-color: #cccccc;
    color: #444444;
}

.button-ghost:hover {
    background: #f5f5f5;
    border-color: #b7b7b7;
    color: #222222;
}

.button-danger-outline {
    background: #ffffff;
    border-color: #d8b5b5;
    color: #a64f4f;
}

.button-danger-outline:hover {
    background: #faf2f2;
    border-color: #c99494;
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 5px;
}

.icon-button {
    border-color: #d4d4d4;
    border-radius: 5px;
    background: #ffffff;
    color: #666666;
}

.icon-button:hover {
    border-color: #aeb8c3;
    background: #f7f8f9;
    color: #5c738f;
}

/* Panels and cards */
.panel,
.stat-card,
.post-card,
.social-channel-card,
.choice-card,
.check-card,
.schedule-card,
.compact-post-card,
.media-bin-card,
.form-panel,
.preview-panel,
.system-panel {
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .055);
}

.panel-heading {
    padding: 22px 24px 18px;
    border-bottom-color: #e6e6e6;
}

.panel-heading h2,
.section-heading h2 {
    color: #222222;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.stat-card {
    border-radius: 5px;
    box-shadow: none;
}

.stat-card strong {
    color: #222222;
    font-weight: 600;
}

.stat-icon,
.connection-icon,
.post-placeholder,
.media-storage-icon,
.settings-section-icon {
    border-radius: 5px;
    background: #eef2f6 !important;
    color: #5c738f !important;
}

.post-card,
.media-bin-card,
.social-channel-card,
.choice-card,
.schedule-card {
    transition: border-color .15s ease, background .15s ease;
}

.post-card:hover,
.media-bin-card:hover,
.social-channel-card:hover,
.choice-card:hover,
.schedule-card:hover {
    transform: none;
    border-color: #bbc3cb;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .055);
}

.post-media,
.media-bin-preview,
.media-preview,
.platform-preview {
    background: #f3f5f7;
}

.post-placeholder {
    box-shadow: none;
}

/* Forms */
.field label,
.field-label-with-note > span,
.label-row,
.mode-label {
    color: #333333;
    font-weight: 600;
    letter-spacing: 0;
}

.field input,
.field textarea,
.field select,
.search-box,
.media-bin-filter select,
.calendar-time-field input,
.date-field input {
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
    box-shadow: none;
}

.field input:hover,
.field textarea:hover,
.field select:hover,
.search-box:hover,
.media-bin-filter select:hover {
    border-color: #aeb8c3;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-box:focus-within,
.media-bin-filter select:focus {
    border-color: #5c738f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 115, 143, .10);
}

.field input::placeholder,
.field textarea::placeholder,
.search-box input::placeholder {
    color: #9a9a9a;
}

/* Alerts and status */
.alert,
.connection-banner,
.inline-note,
.import-box,
.danger-zone {
    border-radius: 5px;
    box-shadow: none;
}

.connection-banner {
    border-color: #d7dfe6;
    background: #f6f8fa;
}

.connection-banner.connected {
    border-color: #cbd9cb;
    background: #f4f8f4;
}

.status-pill,
.target-chip,
.platform-mini-chip,
.media-bin-status,
.media-bin-type-badge,
.count-bubble {
    border-radius: 4px;
}

.status-pill.pending,
.status-pill.scheduled {
    background: #f7f1e9;
    color: #8b653f;
}

.status-pill.failed {
    background: #faf0f0;
    color: #9b5050;
}

.status-pill.publishing {
    background: #edf2f7;
    color: #4f6a88;
}

.status-pill.draft {
    background: #f2f3f4;
    color: #666666;
}

/* Menus */
.context-menu {
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .12);
}

.context-menu a,
.context-menu button {
    border-radius: 3px;
}

.context-menu a:hover,
.context-menu button:hover {
    background: #f3f5f7;
}

/* Editor section hierarchy: preserve the existing layout */
[data-post-editor] .post-editor-sections {
    background: #ffffff;
}

[data-post-editor] .editor-media-section {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #f5f6f7;
}

[data-post-editor] .publish-compact-block {
    padding: 18px;
    border: 1px solid #d6d9dd;
    border-radius: 5px;
    background: #eceff2;
}

.publish-mini-heading,
.schedule-mini-heading,
.compact-section-heading {
    color: #333333;
    font-weight: 600;
}

/* Calendar and picker modals */
.calendar-modal,
.media-picker-modal,
.schedule-delete-modal,
.app-target-modal {
    background: rgba(20, 27, 34, .48);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.calendar-modal-shell,
.media-picker-shell,
.schedule-delete-dialog {
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .16);
}

.calendar-modal-header,
.media-picker-header,
.calendar-modal-footer {
    border-color: #e1e1e1;
}

.calendar-modal-header h2,
.media-picker-header h2,
.schedule-delete-heading {
    color: #222222;
    font-weight: 600;
    letter-spacing: 0;
}

.calendar-modal .calendar-day-cell:hover {
    background: #f3f5f7;
}

.calendar-modal .calendar-day-cell.selected,
.calendar-modal .calendar-hour-slot.selected,
.calendar-modal .calendar-day-hour-slot.selected {
    background: #e8edf2;
    box-shadow: inset 0 0 0 2px #5c738f;
}

.calendar-modal .calendar-day-cell.selected .calendar-day-number {
    background: #5c738f;
    color: #ffffff;
}

.calendar-modal [data-calendar-pick-time]:focus-visible,
.calendar-modal .calendar-day-number:focus-visible {
    outline-color: #5c738f;
}

.calendar-modal .calendar-draft-post {
    border-left-color: #5c738f;
    border-radius: 5px;
    background: #5c738f;
}

/* Scheduled post cards: visual treatment only */
.schedule-card {
    background: #ffffff;
}

.schedule-card.failed {
    border-color: #e0c9c9;
}

.schedule-card.has-media .schedule-media-thumb {
    border-color: #d9dde1;
    border-radius: 5px;
    background: #f3f5f7;
}

.schedule-card.has-media .schedule-media-thumb > img,
.schedule-card.has-media .schedule-media-thumb video,
.schedule-card.has-media .schedule-video-thumb {
    border-radius: 5px !important;
    background: #f3f5f7;
}

/* Media library */
.media-storage-panel,
.media-bin-filterbar,
.media-bin-bulkbar {
    border-radius: 5px;
}

.media-storage-progress,
.media-storage-progress::-webkit-progress-bar,
.media-storage-progress::-webkit-progress-value,
.media-storage-progress::-moz-progress-bar {
    border-radius: 2px;
}

.media-storage-progress::-webkit-progress-value,
.media-storage-progress::-moz-progress-bar {
    background: #5c738f;
}

.media-bin-card-select label {
    border-radius: 4px;
    background: rgba(32, 37, 44, .80);
}

/* Authentication */
.guest-shell {
    background: #fbfcfd;
}

/*
 * Keep the original split-screen login layout. The reference-shop styling
 * belongs on the controls, not around the entire left column as one tall card.
 */
.guest-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-copy h1 {
    color: #222222;
    font-weight: 600;
    letter-spacing: -.4px;
}

.auth-copy p,
.auth-footnote {
    color: #777777;
}

/* Posts page: make the compact cards roughly 20% taller without changing
   the grid width or page layout. */
.post-grid.compact-post-grid .compact-post-card {
    min-height: 252px;
    display: flex;
    flex-direction: column;
}

.post-grid.compact-post-grid .compact-post-card .post-media {
    height: 106px;
    min-height: 106px;
    flex: 0 0 106px;
}

.post-grid.compact-post-grid .compact-post-card .post-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding-top: 11px;
    padding-bottom: 12px;
}

.post-grid.compact-post-grid .compact-post-card .post-card-footer {
    margin-top: auto;
}

/* Destructive confirmation */
.schedule-delete-dialog {
    padding: 30px;
}

.schedule-delete-icon {
    border-radius: 5px;
    background: #faf0f0;
    color: #a64f4f;
}

.schedule-delete-actions {
    padding-top: 18px;
    border-top: 1px solid #e1e1e1;
}

/* Mobile shell keeps the same layout breakpoints */
.mobile-header {
    background: #20252c;
    border-bottom: 1px solid #2f353d;
    box-shadow: none;
}

@media (max-width: 760px) {
    .page-wrap {
        width: min(100% - 32px, 1280px);
        padding-top: 28px;
    }

    [data-post-editor] .editor-media-section,
    [data-post-editor] .publish-compact-block {
        padding: 14px;
        border-radius: 5px;
    }
}



.status-pill.published {
    background: #edf7ef;
    color: #4f7759;
}

.history-page-heading {
    margin-bottom: 24px;
}

.history-workbook {
    overflow: hidden;
    border: 1px solid #d9dee5;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .055);
}

.history-workbook-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e4e7eb;
    background: #ffffff;
}

.history-filter-form {
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(170px, 210px) auto;
    align-items: end;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.history-search-control,
.history-month-control {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.history-control-label {
    color: #5f6670;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.history-search-input-wrap {
    position: relative;
    display: block;
}

.history-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #8a929d;
    transform: translateY(-50%);
    pointer-events: none;
}

.history-search-icon svg {
    width: 16px;
    height: 16px;
}

.history-search-input-wrap input,
.history-month-control select {
    width: 100%;
    height: 42px;
    border: 1px solid #cfd5dc;
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
    box-shadow: none;
}

.history-search-input-wrap input {
    padding: 0 13px 0 38px;
}

.history-month-control select {
    padding: 0 36px 0 12px;
}

.history-search-input-wrap input:hover,
.history-month-control select:hover {
    border-color: #aeb8c3;
}

.history-search-input-wrap input:focus,
.history-month-control select:focus {
    border-color: #5c738f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 115, 143, .10);
}

.history-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-record-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: max-content;
    padding: 0 2px 8px;
    color: #7a818a;
    font-size: 12px;
}

.history-record-count strong {
    color: #253142;
    font-size: 18px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.history-sheet-header {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #dfe3e8;
    background: #f7f8fa;
}

.history-sheet-header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.history-sheet-header strong {
    color: #29323d;
    font-size: 13px;
    font-weight: 650;
}

.history-sheet-header span {
    color: #8a929b;
    font-size: 11px;
}

.history-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-table-professional {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
    color: #2c333b;
    font-size: 12px;
    line-height: 1.35;
}

.history-table-professional th,
.history-table-professional td {
    padding: 12px 14px;
    vertical-align: middle;
    text-align: left;
    border-right: 1px solid #e3e6ea;
    border-bottom: 1px solid #e3e6ea;
}

.history-table-professional th:last-child,
.history-table-professional td:last-child {
    border-right: 0;
}

.history-table-professional tbody tr:last-child td {
    border-bottom: 0;
}

.history-table-professional thead th {
    background: #eef1f4;
    color: #59616c;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.history-table-professional tbody tr:nth-child(even) td {
    background: #fbfcfd;
}

.history-table-professional tbody tr:hover td {
    background: #f5f8fb;
}

.history-table-professional th:nth-child(1),
.history-table-professional td:nth-child(1) {
    width: 135px;
}

.history-table-professional th:nth-child(2),
.history-table-professional td:nth-child(2) {
    width: 300px;
}

.history-table-professional th:nth-child(3),
.history-table-professional td:nth-child(3) {
    width: 180px;
}

.history-table-professional th:nth-child(4),
.history-table-professional td:nth-child(4) {
    width: 135px;
}

.history-table-professional th:nth-child(5),
.history-table-professional td:nth-child(5) {
    width: 105px;
}

.history-table-professional th:nth-child(6),
.history-table-professional td:nth-child(6) {
    width: 80px;
}

.history-table-professional th:nth-child(7),
.history-table-professional td:nth-child(7) {
    width: auto;
}

.history-date-cell strong,
.history-post-cell strong {
    display: block;
    color: #242b33;
    font-weight: 650;
}

.history-date-cell span,
.history-post-cell > span,
.history-destination-cell > span:last-child,
.history-muted-detail {
    display: block;
    margin-top: 3px;
    color: #7c848e;
    font-size: 11px;
}

.history-date-cell {
    white-space: nowrap;
}

.history-post-cell strong,
.history-post-cell > span,
.history-destination-cell > span:last-child,
.history-details-cell > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-destination-cell .platform-mini-chip {
    display: inline-flex;
    margin-bottom: 3px;
}

.history-number-column,
.history-number-cell {
    text-align: center !important;
}

.history-number-cell {
    color: #3f4750;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.history-success-detail {
    color: #587653;
    font-weight: 600;
}

.history-error-text {
    color: #a25151;
    font-weight: 600;
}

.history-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 150px;
    padding: 28px;
    background: #ffffff;
}

.history-empty-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 5px;
    background: #eef2f6;
    color: #5c738f;
}

.history-empty-icon svg {
    width: 20px;
    height: 20px;
}

.history-empty-state h2 {
    margin: 0 0 4px;
    color: #2b3138;
    font-size: 15px;
    font-weight: 650;
}

.history-empty-state p {
    margin: 0;
    color: #7b828b;
    font-size: 12px;
}

.history-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 10px 18px;
    border-top: 1px solid #e3e6ea;
    background: #fafbfc;
}

.history-page-summary {
    color: #7a818a;
    font-size: 12px;
}

.history-page-summary strong {
    color: #333b45;
    font-weight: 650;
}

.history-page-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 980px) {
    .history-workbook-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .history-filter-form {
        grid-template-columns: minmax(0, 1fr) minmax(160px, 210px) auto;
    }

    .history-record-count {
        padding: 0;
    }
}

@media (max-width: 700px) {
    .history-workbook-toolbar {
        padding: 14px;
    }

    .history-filter-form {
        grid-template-columns: 1fr;
    }

    .history-filter-actions {
        align-items: stretch;
    }

    .history-filter-actions .button {
        flex: 1 1 auto;
    }

    .history-sheet-header {
        padding: 0 14px;
    }

    .history-sheet-header > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .history-pagination-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* =========================================================
   AddFlow brand + sidebar storage + schedule countdown
   ========================================================= */

.brand-image-link {
    text-decoration: none;
}

.sidebar .brand.brand-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 0 0 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.sidebar-brand-image {
    display: block;
    width: min(182px, 100%);
    height: auto;
}

.guest-brand.brand-image-link {
    display: inline-flex;
    align-items: center;
}

.guest-brand-image {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
}

.mobile-brand.brand-image-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.mobile-brand-image {
    display: block;
    width: 132px;
    max-width: 46vw;
    height: auto;
}

.sidebar .nav-link span {
    min-width: 0;
}

.schedule-time {
    flex-wrap: wrap;
}

.schedule-time-main {
    white-space: nowrap;
}

.schedule-time-separator {
    color: #a2a6af;
    font-weight: 500;
}

.schedule-remaining {
    color: #4f5963;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.schedule-bottom-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.schedule-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    margin: 0 0 0 21px;
    padding: 7px 10px;
    border: 1px solid #bfd8c8;
    border-radius: 7px;
    background: #edf7f0;
    color: #1f6b3d !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1;
    letter-spacing: .4px;
}

.schedule-countdown[hidden] {
    display: none !important;
}

.schedule-countdown.is-sending {
    border-color: #9cc4a9;
    background: #e3f2e8;
    color: #155b33 !important;
    letter-spacing: 0;
}

@media (max-width: 760px) {
    .schedule-time-main,
    .schedule-remaining {
        white-space: normal;
    }

    .schedule-time-separator {
        display: none;
    }

    .schedule-remaining {
        flex-basis: calc(100% - 22px);
        margin-left: 21px;
    }
}

.publish-mode-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.publish-mode-divider::before,
.publish-mode-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.facebook-groups-mode {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.facebook-groups-mode.selected {
    border-color: #b8aef2;
    background: #fbfaff;
    box-shadow: 0 0 0 2px rgba(104, 84, 208, .07);
}

.facebook-groups-mode-toggle {
    display: grid;
    grid-template-columns: 24px 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
}

.facebook-groups-mode-toggle > input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--violet);
}

.facebook-groups-mode-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef3ff;
    color: #3158b9;
}

.facebook-groups-mode-icon .icon {
    width: 17px;
    height: 17px;
}

.facebook-groups-mode-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.facebook-groups-mode-copy strong {
    color: var(--ink);
    font-size: 11px;
}

.facebook-groups-mode-copy small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.facebook-groups-picker {
    margin: 0 10px 10px;
    padding: 12px;
    background: #f8f9fc;
}

.group-picker-heading {
    align-items: flex-start;
    gap: 12px;
}

.group-picker-heading > div:first-child {
    display: grid;
    gap: 3px;
}

.group-picker-heading > div:first-child > small {
    color: var(--muted);
    font-size: 9px;
}

.group-picker-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.facebook-group-card {
    align-items: flex-start;
    transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

.facebook-group-card.selected {
    border-color: #b8aef2;
    background: #fbfaff;
}

.facebook-group-card.is-unavailable {
    cursor: not-allowed;
    background: #f6f6f8;
    opacity: .72;
}

.facebook-group-card.is-unavailable input {
    cursor: not-allowed;
}

.facebook-group-card span {
    gap: 2px;
}

.facebook-group-card .group-availability {
    font-weight: 700;
}

.facebook-group-card .group-availability.available {
    color: #1f6b3d;
}

.facebook-group-card .group-availability.unavailable {
    color: #9b4a42;
}

.facebook-group-card .group-url {
    color: var(--muted);
    font-weight: 400;
}

@media (max-width: 760px) {
    .group-picker-heading {
        display: grid;
    }

    .group-picker-actions {
        justify-content: flex-start;
    }

    .facebook-group-check-grid {
        grid-template-columns: 1fr;
    }
}

.platform-mini-chip.facebook-groups {
    border-color: #c7d5f6;
    background: #eef3ff;
    color: #3158b9;
}

.schedule-countdown.is-ready-to-share {
    border-color: #bfd8c8;
    background: #e3f2e8;
    color: #155b33;
}

.group-reminder-options {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.group-reminder-repeat-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border, #d9dee8);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.group-reminder-repeat-toggle input {
    margin-top: 3px;
}

.group-reminder-repeat-toggle span {
    display: grid;
    gap: 4px;
}

.group-reminder-repeat-toggle strong {
    font-size: 14px;
}

.group-reminder-repeat-toggle small {
    color: var(--muted, #667085);
    line-height: 1.45;
}

.group-reminder-email-note {
    margin: 0;
}

.group-reminder-section {
    margin: 0 0 24px;
}

.group-reminder-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 14px;
}

.group-reminder-section-heading h2 {
    margin: 4px 0 5px;
    font-size: 22px;
}

.group-reminder-section-heading p {
    margin: 0;
    color: var(--muted, #667085);
}

.group-reminder-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2f8;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.group-reminder-list {
    display: grid;
    gap: 12px;
}

.group-reminder-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    border: 1px solid #d9dee8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.group-reminder-card.ready {
    border-color: #9bc5aa;
}

.group-reminder-card.overdue {
    border-color: #e4b2ad;
}

.group-reminder-date {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    border-right: 1px solid #e5e9f0;
    background: #f7f9fc;
}

.group-reminder-card.ready .group-reminder-date {
    background: #edf7f0;
}

.group-reminder-card.overdue .group-reminder-date {
    background: #fff3f1;
}

.group-reminder-date span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #667085;
}

.group-reminder-date strong {
    font-size: 28px;
    line-height: 1;
}

.group-reminder-date small {
    margin-top: 5px;
    font-weight: 700;
    color: #475467;
}

.group-reminder-main {
    padding: 16px 18px;
    min-width: 0;
}

.group-reminder-topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.group-reminder-topline h3 {
    margin: 8px 0 5px;
    font-size: 17px;
}

.group-reminder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.group-reminder-frequency,
.group-reminder-state {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.group-reminder-frequency {
    background: #f2f4f7;
    color: #475467;
}

.group-reminder-frequency.recurring {
    background: #eef4ff;
    color: #3448a4;
}

.group-reminder-state.scheduled {
    background: #f2f4f7;
    color: #475467;
}

.group-reminder-state.ready {
    background: #e3f2e8;
    color: #155b33;
}

.group-reminder-state.overdue {
    background: #ffebe8;
    color: #9b2c24;
}

.group-reminder-group-name {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.group-reminder-group-name .icon {
    width: 15px;
    height: 15px;
}

.group-reminder-next {
    display: grid;
    gap: 2px;
    text-align: right;
    min-width: 210px;
}

.group-reminder-next small,
.group-reminder-next span {
    color: #667085;
    font-size: 11px;
}

.group-reminder-next strong {
    font-size: 13px;
}

.group-reminder-caption {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eef1f5;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-reminder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.group-reminder-actions form {
    margin: 0;
}

.group-reminder-load-error {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .group-reminder-section-heading,
    .group-reminder-topline {
        align-items: stretch;
        flex-direction: column;
    }

    .group-reminder-card {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .group-reminder-next {
        min-width: 0;
        text-align: left;
    }

    .group-reminder-actions .button,
    .group-reminder-actions form {
        width: 100%;
    }

    .group-reminder-actions form .button {
        width: 100%;
        justify-content: center;
    }
}

/* Facebook Group reminder popup */
body.group-share-popup {
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    background: #f5f7fb;
    color: #202735;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.group-share-popup *,
.group-share-popup *::before,
.group-share-popup *::after {
    box-sizing: border-box;
}

.group-share-popup .group-share-shell {
    width: min(960px, calc(100% - 36px));
    margin: 0 auto;
    padding: 26px 0 34px;
}

.group-share-popup .group-share-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(20, 29, 45, 0.07);
}

.group-share-popup .group-share-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    min-height: 52px;
    padding: 4px 8px;
}

.group-share-popup .group-share-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.group-share-popup .group-share-heading {
    min-width: 0;
}

.group-share-popup .group-share-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #66728a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.group-share-popup .group-share-heading h1,
.group-share-popup .group-share-section-heading h2 {
    margin: 0;
    color: #171d2a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.group-share-popup .group-share-heading h1 {
    margin-bottom: 5px;
    font-size: 22px;
    line-height: 1.2;
}

.group-share-popup .group-share-heading p {
    margin: 0;
    color: #697386;
    font-size: 13px;
    line-height: 1.5;
}

.group-share-popup .group-share-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.group-share-popup .group-share-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid #d9dfeb;
    border-radius: 11px;
    background: #eef2f8;
    color: #556176;
    font-size: 12px;
    line-height: 1.5;
}

.group-share-popup .group-share-notice strong {
    color: #313b50;
    white-space: nowrap;
}

.group-share-popup .group-share-caption-card,
.group-share-popup .group-share-groups {
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 29, 45, 0.05);
}

.group-share-popup .group-share-caption-heading,
.group-share-popup .group-share-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.group-share-popup .group-share-caption-heading {
    margin-bottom: 12px;
}

.group-share-popup .group-share-caption-heading > strong {
    color: #222a39;
    font-size: 13px;
}

.group-share-popup .group-share-caption-card > p {
    max-height: 180px;
    margin: 0;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #3f485a;
    font-size: 13px;
    line-height: 1.58;
}

.group-share-popup .group-share-section-heading {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f5;
}

.group-share-popup .group-share-section-heading h2 {
    font-size: 17px;
}

.group-share-popup .group-share-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0f2f8;
    color: #56627c;
    font-size: 11px;
    font-weight: 800;
}

.group-share-popup .groups {
    display: grid;
    gap: 10px;
}

.group-share-popup .group-share-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid #e1e5ed;
    border-radius: 11px;
    background: #fbfcfe;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.group-share-popup .group-share-row:hover {
    border-color: #cbd3e3;
    box-shadow: 0 6px 16px rgba(35, 45, 65, 0.06);
    transform: translateY(-1px);
}

.group-share-popup .group-share-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eaf0fa;
    color: #475b83;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.group-share-popup .group-share-row.is-posted {
    border-color: #e1e3e9;
    background: #f0f1f4;
    opacity: .75;
}

.group-share-popup .group-share-row.is-posted:hover {
    border-color: #e1e3e9;
    box-shadow: none;
    transform: none;
}

.group-share-popup .group-share-row.is-posted .group-share-number {
    background: #dfe2e8;
    color: #747b89;
}

.group-share-popup .group-share-row.is-posted .group-share-info > strong {
    color: #7b8190;
}

.group-share-popup .group-share-state.posted {
    background: #e0e3e8;
    color: #69717e;
}

.group-share-popup .group-share-row.is-posted .group-share-btn.posted {
    background: #8f969f;
    box-shadow: none;
}

.group-share-popup .group-share-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
    min-width: 0;
}

.group-share-popup .group-share-info > strong {
    overflow: hidden;
    color: #202735;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-share-popup .group-share-info > span {
    grid-column: 1;
    color: #748096;
    font-size: 11px;
}

.group-share-popup .group-share-state {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf1f6;
    color: #526074;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.group-share-popup .group-share-state.ready {
    background: #e7f6ed;
    color: #17633a;
}

.group-share-popup .group-share-state.overdue {
    background: #fff0ed;
    color: #a64031;
}

.group-share-popup .group-share-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.group-share-popup .group-share-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.group-share-popup .group-share-btn:hover {
    transform: translateY(-1px);
}

.group-share-popup .group-share-btn.post {
    background: #5d6d98;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(93, 109, 152, 0.18);
}

.group-share-popup .group-share-btn.post:hover {
    background: #516189;
}

.group-share-popup .group-share-btn.posted {
    background: #23784b;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(35, 120, 75, 0.18);
}

.group-share-popup .group-share-btn.posted:hover {
    background: #1d6740;
}

.group-share-popup .group-share-btn.secondary {
    border-color: #d9dfe9;
    background: #f1f3f8;
    color: #46526a;
}

.group-share-popup .group-share-btn.secondary:hover {
    background: #e8ecf4;
}

.group-share-popup .group-share-btn.small {
    min-height: 32px;
    padding: 7px 10px;
}

.group-share-popup .group-share-btn:disabled {
    opacity: .55;
    transform: none;
    cursor: not-allowed;
}

.group-share-popup .group-share-done {
    padding: 28px 18px;
    border: 1px dashed #cfd6e2;
    border-radius: 10px;
    background: #f8fafc;
    color: #667286;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 760px) {
    .group-share-popup .group-share-shell {
        width: min(100% - 24px, 960px);
        padding-top: 14px;
    }

    .group-share-popup .group-share-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .group-share-popup .group-share-brand {
        width: 122px;
        padding: 0;
    }

    .group-share-popup .group-share-toolbar {
        justify-content: flex-start;
    }

    .group-share-popup .group-share-notice {
        grid-template-columns: 1fr;
    }

    .group-share-popup .group-share-row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .group-share-popup .group-share-actions {
        grid-column: 2;
    }

    .group-share-popup .group-share-actions {
        width: 100%;
    }

    .group-share-popup .group-share-actions .group-share-btn {
        flex: 1;
    }
}


/* Post History - accessible, native no-JavaScript popovers */
.history-table-professional .history-action-cell {
  min-width: 112px; text-align: center; vertical-align: middle; white-space: nowrap;
}
.history-table-professional .history-view-button {
  appearance: none !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px !important; height: 34px !important; min-width: 88px !important;
  padding: 0 14px !important; border: 1px solid #d4dbee !important;
  border-radius: 8px !important; background: #f3f5fb !important;
  color: #455783 !important; font-family: inherit !important; font-size: 12px !important;
  font-weight: 700 !important; line-height: 1 !important; letter-spacing: .01em !important;
  box-shadow: 0 1px 2px rgba(20,32,64,.05) !important;
  cursor: pointer !important; white-space: nowrap !important;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.history-table-professional .history-view-button:hover {
  background: #e8edfb !important; color: #303f72 !important;
  border-color: #aebce2 !important; box-shadow: 0 3px 10px rgba(36,54,100,.12) !important;
  transform: translateY(-1px);
}
.history-table-professional .history-view-button:focus-visible,
.history-popup button:focus-visible { outline: 3px solid #9daff2 !important; outline-offset: 3px; }
.history-popup[popover] {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(610px, calc(100vw - 32px)); max-height: min(78vh, 650px);
  overflow: hidden; border: 1px solid #e1e6f0; border-radius: 16px;
  background: #fff; color: #1a2746;
  box-shadow: 0 24px 75px rgba(20,30,61,.28);
}
.history-popup[popover]::backdrop { background: rgba(13,23,48,.62); backdrop-filter: blur(3px); }
.history-popup[popover]:popover-open { display: flex; flex-direction: column; }
.history-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 18px; border-bottom: 1px solid #e8ecf4; }
.history-popup-kicker { display: block; margin-bottom: 7px; color: #7684a5; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.history-popup-heading h2 { margin: 0; font-size: 20px; font-weight: 750; color: #1e2d51; }
.history-popup-x { appearance: none; border: 0; border-radius: 9px; width: 36px; height: 36px; background: #f0f2f8; color: #4a597c; font-size: 24px; cursor: pointer; }
.history-popup-x:hover { background: #e4e9f6; }
.history-popup-content { flex: 1; min-height: 60px; overflow: auto; padding: 23px 26px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; font-size: 14px; color: #344463; }
.history-popup-footer { display: flex; justify-content: flex-end; padding: 15px 26px; border-top: 1px solid #e8ecf4; background: #fafbfe; }
.history-popup-close { appearance: none; min-width: 105px; padding: 11px 21px; border: 0; border-radius: 8px; background: #606e95; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.history-popup-close:hover { background: #4c597d; }
@media(max-width: 620px) { .history-popup-header { padding: 17px 19px; } .history-popup-content { padding: 19px; } .history-popup-footer { padding: 13px 19px; } }
