.comms-2-calendar-shell .calendar-top-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 24px 24px 8px;
    width: 100%;
    box-sizing: border-box;
}

.comms-2-calendar-shell .calendar-top-bar #calendar-title {
    text-align: left;
    margin: 0;
    width: 100%;
    align-self: stretch;
}

.comms-2-calendar-shell .calendar-subheader-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.comms-2-calendar-shell .calendar-date-hint {
    color: var(--primary-accent, #DD502C);
    font-weight: 700;
    margin: 0;
    text-align: left;
    flex: 1 1 auto;
}

.comms-2-calendar-shell .calendar-controls-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: stretch;
}

.comms-2-calendar-shell .calendar-container {
    margin-top: 8px;
}

.saved-calendars-sort-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.saved-calendars-sort-label {
    font-weight: 700;
    color: var(--text-primary, #36443C);
}

.saved-calendars-sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.saved-calendars-sort-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 9999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.saved-calendars-sort-btn.active {
    background: var(--primary-color, #36443C);
    border-color: var(--primary-color, #36443C);
    color: #fff;
}

.comms2-composer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.18);
    z-index: 1200;
}

.comms2-composer-backdrop[hidden] {
    display: none !important;
}

.comms2-composer {
    position: fixed;
    z-index: 1210;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    font-family: var(--font-family, Inter, sans-serif);
}

.comms2-composer[hidden] {
    display: none !important;
}

.comms2-composer-header {
    padding: 12px 12px 0;
    flex-shrink: 0;
}

.comms2-segment {
    display: flex;
    gap: 4px;
    background: #e9ecef;
    border-radius: 9999px;
    padding: 4px;
}

.comms2-segment button {
    flex: 1;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 10px 14px;
    border-radius: 9999px;
    cursor: pointer;
}

.comms2-segment button.active {
    background: var(--primary-color, #36443C);
    color: #fff;
}

.comms2-composer-body {
    padding: 14px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.comms2-field-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.comms2-field-block.comms2-accent-left {
    border-left: 4px solid var(--primary-color, #36443C);
}

.comms2-field-input,
.comms2-field-textarea {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary, #36443C);
    outline: none;
    box-sizing: border-box;
}

.comms2-field-input::placeholder,
.comms2-field-textarea::placeholder {
    color: #94a3b8;
}

.comms2-datetime-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-primary, #36443C);
    cursor: pointer;
    font-family: inherit;
}

.comms2-datetime-trigger span.subtle {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.8125rem;
}

.comms2-inline-panel {
    padding: 12px 16px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comms2-inline-panel label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.comms2-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.comms2-inline-grid input,
.comms2-inline-grid select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.875rem;
}

.comms2-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary, #36443C);
}

.comms2-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-accent, #DD502C);
}

.comms2-section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    margin: 4px 0 0;
}

.comms2-platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 4px;
}

.comms2-platform-grid .composer-platform-chip {
    cursor: pointer;
}

.comms2-platform-grid .composer-platform-chip.active {
    background-color: var(--brand-color, var(--primary-color, #36443C));
    color: var(--white);
    border-color: var(--brand-color, var(--primary-color, #36443C));
}

.comms2-platform-grid .composer-platform-chip.active:hover {
    filter: brightness(0.92);
}

.comms2-email-preview {
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}

.comms2-email-preview strong {
    font-weight: 700;
}

.comms2-composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 16px;
    gap: 12px;
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.comms2-composer-footer .secondary-btn,
.comms2-composer-footer .primary-btn {
    min-width: 120px;
}

.comms2-frequency-modal:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comms2-frequency-modal {
    position: fixed;
    inset: 0;
    z-index: 1220;
    background: rgba(15, 23, 42, 0.28);
    padding: 24px;
}

.comms2-frequency-modal[hidden] {
    display: none !important;
}

.comms2-frequency-card {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.comms2-frequency-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 0.9rem;
}

.comms2-frequency-row input[type="number"] {
    width: 56px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.comms2-frequency-row select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    font-family: inherit;
}

.comms2-weekday-toggle {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.comms2-weekday-toggle button {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
}

.comms2-weekday-toggle button.active {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.comms2-frequency-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.date-number.comms2-date-trigger {
    cursor: pointer;
}

.date-number.comms2-date-trigger:hover {
    opacity: 0.85;
}

.comms2-recurring-link {
    color: var(--primary-accent, #DD502C);
    font-weight: 700;
    cursor: pointer;
}

.comms2-recurring-link:hover {
    text-decoration: underline;
}

.comms2-post-actions {
    margin-top: 2px;
    font-size: 0.8rem;
}

.comms2-post-action-sep {
    color: #94a3b8;
    margin: 0 4px;
}

.comms2-todo-preview-link {
    border: 0;
    background: transparent;
    padding: 10px 12px;
    width: 100%;
    min-height: 40px;
    text-align: left;
    color: var(--primary-accent, #DD502C);
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.comms2-todo-preview-link:hover {
    text-decoration: underline;
}

.todo-task-cell {
    padding: 0 !important;
}

.comms2-hidden {
    display: none !important;
}

.comms2-campaign-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

#planning-campaign-table {
    border: none;
}

#planning-campaign-table tbody tr:last-child td {
    border-bottom: 1px solid #e2e8f0;
}

.comms2-post-creator-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    z-index: 1300;
}

.comms2-post-creator-backdrop[hidden],
.comms2-post-creator-modal[hidden] {
    display: none !important;
}

.comms2-post-creator-modal {
    position: fixed;
    inset: 0;
    z-index: 1310;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.comms2-post-creator-card {
    pointer-events: auto;
    width: min(960px, 96vw);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    font-family: var(--font-family, Inter, sans-serif);
}

#post-creator-modal.comms2-post-creator-wide .comms2-post-creator-card {
    width: min(1200px, 98vw);
}

.comms2-post-creator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    flex-shrink: 0;
}

.comms2-post-creator-header h2 {
    margin: 0;
    font-size: 1.95rem;
    font-weight: 900;
    color: var(--primary-color, #36443C);
}

.comms2-post-creator-header .modal-close-x {
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.comms2-post-creator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.comms2-post-creator-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.comms2-post-creator-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comms2-post-creator-section-overview {
    margin-bottom: 32px;
    padding-bottom: 8px;
}

.comms2-post-creator-section-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark, #36443C);
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.comms2-post-creator-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comms2-post-creator-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.comms2-optional-label {
    font-weight: 500;
    color: #94a3b8;
}

.comms2-post-creator-field .template-input {
    width: 100%;
    box-sizing: border-box;
}

.comms2-pill-input {
    border-radius: 9999px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.comms2-cross-platform-check {
    margin: 0;
}

.comms2-post-creator-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comms2-post-creator-platforms .pc-platform-chip {
    cursor: pointer;
}

.comms2-post-creator-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
    background: #f8f9fa;
}

.comms2-post-creator-footer .modal-footer-left,
.comms2-post-creator-footer .modal-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comms2-post-creator-footer .modal-footer-left {
    grid-column: 1;
    justify-content: flex-start;
}

.comms2-post-creator-footer .modal-footer-center {
    grid-column: 2;
    display: flex;
    justify-content: center;
}

.comms2-post-creator-footer .modal-footer-right {
    grid-column: 3;
    justify-content: flex-end;
}

.comms2-dialog-btn {
    width: auto;
    min-height: 36px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--primary-color, #36443C);
    background: #fff;
    color: var(--primary-color, #36443C);
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comms2-dialog-btn:hover {
    background: #f8fafc;
}

.comms2-dialog-btn.primary {
    background: var(--primary-color, #36443C);
    border-color: var(--primary-color, #36443C);
    color: #fff;
}

.comms2-dialog-btn.primary:hover {
    filter: brightness(1.05);
}

@media (max-width: 820px) {
    .comms2-post-creator-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.comms2-post-creator-wide .comms2-post-creator-card,
#post-creator-modal.comms2-post-creator-wide .comms2-post-creator-card {
    width: min(1200px, 98vw);
}

.comms2-post-creator-wide .comms2-post-creator-pages,
#post-creator-modal.comms2-post-creator-wide .comms2-post-creator-pages {
    min-height: 0;
}

.comms2-post-creator-pages {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.comms2-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(94vh - 145px);
}

.comms2-create-column {
    min-height: 0;
    overflow-y: auto;
    padding: 24px 28px;
}

.comms2-create-left {
    border-right: 1px solid #e2e8f0;
}

.comms2-create-section-title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark, #36443C);
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.comms2-guidance-carousel {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.comms2-guidance-carousel.comms2-guidance-single {
    grid-template-columns: 1fr;
}

.comms2-guidance-carousel.comms2-guidance-single .comms2-guidance-carousel-track {
    grid-column: 1;
}

.comms2-guidance-carousel-track {
    position: relative;
    min-height: 180px;
}

.comms2-guidance-card {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.comms2-guidance-card.active {
    display: block;
}

.comms2-guidance-card .platform-template-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark, #36443C);
}

.comms2-guidance-card .guideline-text {
    margin: 0 0 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
}

.comms2-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.comms2-carousel-btn:hover {
    background: #f8fafc;
}

.comms2-guidance-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.comms2-guidance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
}

.comms2-guidance-dot.active {
    background: var(--primary-color, #36443C);
}

.comms2-create-form .template-form-group {
    margin-bottom: 16px;
}

.comms2-create-form .template-textarea {
    min-height: 120px;
}

.comms2-preview-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comms2-preview-stack-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comms2-preview-platform-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.comms2-preview-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.comms2-preview-tiktok {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 420px;
    background: #000;
    color: #fff;
}

.comms2-assign-layout {
    padding: 28px 32px;
    overflow-y: auto;
    max-height: calc(94vh - 145px);
}

.comms2-confirm-layout {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(94vh - 145px);
}

.comms2-confirm-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 8px;
}

.comms2-confirm-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}

.comms2-confirm-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.comms2-confirm-summary h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark, #36443C);
}

.comms2-confirm-summary p {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #334155;
}

.comms2-confirm-preview .comms2-preview-card {
    max-width: 100%;
}

.comms2-delete-ghost-btn {
    color: #dc2626;
    border-color: #fca5a5;
    background: transparent;
}

.comms2-delete-ghost-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.comms2-delete-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.comms2-delete-confirm-modal[hidden] {
    display: none !important;
}

.comms2-delete-confirm-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.comms2-delete-confirm-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--primary-dark, #36443C);
}

.comms2-delete-confirm-card p {
    margin: 0 0 20px;
    color: #475569;
    line-height: 1.5;
    font-size: 0.95rem;
}

.comms2-delete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.comms2-delete-confirm-btn {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.comms2-delete-confirm-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.comms2-delete-series-actions {
    flex-wrap: wrap;
    justify-content: stretch;
}

.comms2-delete-series-actions .comms2-dialog-btn {
    flex: 1 1 auto;
    min-width: 140px;
}

.comms2-assign-summary {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
}

.comms2-assign-summary p {
    margin: 0 0 8px;
}

@media (max-width: 900px) {
    .comms2-create-layout {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .comms2-create-left {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        max-height: 50vh;
    }

    .comms2-confirm-row {
        grid-template-columns: 1fr;
    }
}
