/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/css/social.css
   Description: Social Media module styles — all channels
   Last Edited: 2026-04-10
   ================================================== */

@import url('fonts.css');
@import url('tabs.css');

/* ---- Page background ---- */
#wpcontent,
#wpbody,
#wpbody-content {
    background: #F9FAFB;
}

/* ---- Outer wrap ---- */
.amai-social-wrap {
    margin: 0;
    padding: 0 20px 40px;
    font-family: 'DM Sans', sans-serif;
}

/* ---- Page header ---- */
.amai-page-header {
    padding: 32px 0 0;
    margin-bottom: 24px;
    text-align: center;
}

.amai-page-title {
    font-family: 'Nunito', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #D97757 !important;
    -webkit-text-fill-color: #D97757 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin: 0 0 6px !important;
    line-height: 1.2;
}

.amai-page-subtitle {
    font-size: 0.95rem !important;
    color: #78716C !important;
    margin: 0 0 20px !important;
    text-align: center !important;
    font-family: 'DM Sans', -apple-system, sans-serif !important;
}

/* ---- Chip tab navigation ---- */

/* ====================================================
   TWO-COLUMN LAYOUT
   ==================================================== */

.amai-social-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

/* ====================================================
   SECONDARY CHANNEL NAV
   ==================================================== */

.amai-channel-nav {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 16px 10px;
    position: sticky;
    top: 32px;
}

.amai-channel-nav-label {
    font-size: 10px;
    font-weight: 600;
    color: #9B958F;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px 10px;
}

.amai-channel-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #3D3A38;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
    margin-bottom: 2px;
}

.amai-channel-item:hover {
    background: #FDF6F2;
    color: #D97757;
}

.amai-channel-item-active {
    background: #FDF6F2;
    color: #D97757;
}

.amai-channel-item-soon {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.amai-channel-item-soon:hover {
    background: none;
    color: #3D3A38;
}

.amai-channel-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.amai-channel-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Connection status dot */
.amai-channel-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amai-channel-status-connected {
    background: #2D9E6B;
}

.amai-channel-status-disconnected {
    background: #D5D0CB;
}

.amai-channel-status-coming_soon {
    background: #D5D0CB;
}

/* Coming soon badge inside nav */
.amai-channel-soon-badge {
    font-size: 9px;
    font-weight: 600;
    color: #9B958F;
    background: #F0EBE6;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ====================================================
   CHANNEL CONTENT AREA
   ==================================================== */

.amai-channel-content {
    flex: 1;
    min-width: 0;
}

/* ====================================================
   NOTICE BARS
   ==================================================== */

.amai-fb-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.amai-fb-notice-warn {
    background: #FDF4E3;
    border: 1px solid #E8C97A;
    color: #7A5500;
}

.amai-fb-notice-soft {
    background: #F0EBE6;
    border: 1px solid #E2C4B0;
    color: #6B6560;
    font-style: italic;
}

.amai-fb-notice-body strong {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.amai-fb-notice-link {
    color: #C8870A;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-block;
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.amai-fb-notice-link:hover {
    color: #8a5c00;
}

/* ====================================================
   FACEBOOK CONNECTION SCREEN
   ==================================================== */

.amai-fb-connect-area {
    max-width: 580px;
}

.amai-fb-connect-shell {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}

.amai-fb-connect-hero {
    padding: 44px 40px 32px;
    text-align: center;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-connect-icon {
    margin-bottom: 18px;
}

.amai-fb-connect-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #1A1614;
    margin: 0 0 10px !important;
    line-height: 1.3;
}

.amai-fb-connect-subheading {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.6;
    margin: 0 !important;
    max-width: 400px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---- Commitment warning zone on connect screen ---- */
.amai-fb-connect-commitment-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 24px;
    padding: 14px 16px;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-left: 4px solid #DC2626;
    border-radius: 10px;
    font-size: 12.5px;
    color: #991B1B;
    line-height: 1.55;
    font-weight: 500;
}

.amai-fb-connect-commitment-notice svg {
    flex-shrink: 0;
    color: #DC2626;
    margin-top: 1px;
}

/* Grey zone wrapping warning + help block */
.amai-fb-connect-newbie-zone {
    background: #FAFAF9;
    border-top: 1px solid #F0EBE6;
    border-bottom: 1px solid #F0EBE6;
    padding: 20px 0;
}

.amai-fb-connect-steps {
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-connect-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.amai-fb-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FDF6F2;
    border: 1.5px solid #E8C5B0;
    color: #D97757;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.amai-fb-step-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}

.amai-fb-step-desc {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.55;
}

.amai-fb-connect-action {
    padding: 28px 36px;
    text-align: center;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: #1877F2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.15s;
    letter-spacing: 0.01em;
}

.amai-fb-connect-btn:hover {
    opacity: 0.88;
    color: #fff;
}

.amai-fb-connect-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 36px;
}
.amai-fb-connect-legal {
    font-size: 11px;
    color: #9B958F;
    margin: 10px 0 0 !important;
    text-align: center;
    max-width: 320px;
}
.amai-fb-connect-btn--google {
    background: #fff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    font-family: 'DM Sans', sans-serif;
}
.amai-fb-connect-btn--google:hover {
    background: #f8f9fa;
    color: #3c4043;
    opacity: 1;
}
.amai-fb-connect-fine {
    font-size: 11px;
    color: #9B958F;
    margin: 10px 0 0 !important;
}

/* ---- Disconnect trigger link ---- */
.amai-fb-disconnect-trigger {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: #DC2626;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.amai-fb-disconnect-trigger:hover {
    color: #991B1B;
}

.amai-fb-help-block {
    padding: 16px 36px 0;
}

.amai-fb-help-heading {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 4px;
}

.amai-fb-help-body {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.55;
    margin-bottom: 8px;
}

.amai-fb-help-link {
    font-size: 12px;
    color: #D97757;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.amai-fb-help-link:hover {
    color: #b85e3a;
}

/* ====================================================
   FACEBOOK PAGE PICKER
   ==================================================== */

.amai-fb-picker-area {
    max-width: 580px;
}

.amai-fb-picker-shell {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}

.amai-fb-picker-header {
    padding: 32px 32px 22px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-fb-picker-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1A1614;
    margin: 0 0 6px !important;
}

.amai-fb-picker-sub {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.55;
    margin: 0 !important;
}

.amai-fb-picker-body {
    padding: 20px 24px;
}

.amai-fb-pages-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amai-fb-page-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border: 1.5px solid #E7DDD5;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    user-select: none;
}

.amai-fb-page-card:hover {
    border-color: #E8C5B0;
    background: #FDF6F2;
}

.amai-fb-page-card.selected {
    border-color: #D97757;
    background: #FDF6F2;
}
.amai-fb-page-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amai-fb-page-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #E2C4B0;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    flex-shrink: 0;
}
.amai-fb-page-radio::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #D97757;
    opacity: 0;
    transition: opacity 0.15s;
}
.amai-fb-page-card.selected .amai-fb-page-radio {
    border-color: #D97757;
}
.amai-fb-page-card.selected .amai-fb-page-radio::after {
    opacity: 1;
}

.amai-fb-page-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #1877F2;
}

.amai-fb-page-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amai-fb-page-initials {
    width: 100%;
    height: 100%;
    background: #E7F0FE;
    color: #1877F2;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amai-fb-page-info {
    flex: 1;
    min-width: 0;
}

.amai-fb-page-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amai-fb-page-meta {
    font-size: 12px;
    color: #6B6560;
}

.amai-fb-page-meta-dot {
    margin: 0 4px;
}

.amai-fb-picker-footer {
    padding: 16px 32px;
    border-top: 1px solid #F0EBE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAFAF9;
}

.amai-fb-back-link {
    font-size: 13px;
    color: #6B6560;
    text-decoration: none;
}

.amai-fb-back-link:hover {
    color: #D97757;
}

.amai-fb-select-btn {
    padding: 9px 20px;
    background: #D97757;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.amai-fb-select-btn:hover:not(:disabled) {
    opacity: 0.88;
}

.amai-fb-select-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ====================================================
   COMING SOON
   ==================================================== */

.amai-coming-soon-area {
    max-width: 580px;
}

.amai-coming-soon-shell {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}

.amai-coming-soon-content {
    padding: 60px 48px;
    text-align: center;
}

.amai-coming-soon-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #9B958F;
    background: #F0EBE6;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 18px;
}

.amai-coming-soon-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1A1614;
    margin: 0 0 14px !important;
}

.amai-coming-soon-body {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.65;
    max-width: 360px;
    margin: 0 auto 10px !important;
}

/* ====================================================
   DISCONNECT CONFIRMATION MODAL
   ==================================================== */

.amai-dc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(26, 22, 20, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.amai-dc-modal.show {
    display: flex;
}

.amai-dc-wrap {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    font-family: 'DM Sans', sans-serif;
    animation: amaiDcSpring 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes amaiDcSpring {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.amai-dc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-dc-eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.amai-dc-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1A1614;
    line-height: 1.25;
}

.amai-dc-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #9B958F;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
}

.amai-dc-close:hover {
    color: #1A1614;
}

.amai-dc-body {
    padding: 24px 28px;
}

.amai-dc-warning-text {
    font-size: 14px;
    color: #1A1614;
    line-height: 1.65;
    margin: 0 0 18px !important;
    text-align: center;
}

.amai-dc-warning-text strong {
    color: #DC2626;
}

.amai-dc-consequences {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #FEF2F2;
    border-radius: 10px;
    border: 1px solid #FECACA;
}

.amai-dc-consequence {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #991B1B;
    line-height: 1.4;
}

.amai-dc-consequence svg {
    flex-shrink: 0;
}

.amai-dc-warning-sub {
    font-size: 12px;
    color: #6B6560;
    text-align: center;
    margin: 0 !important;
    line-height: 1.55;
}

.amai-dc-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #F0EBE6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amai-dc-btn-cancel {
    flex: 1;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    color: #3D3A38;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
}

.amai-dc-btn-cancel:hover {
    border-color: #D97757;
    color: #D97757;
}

.amai-dc-btn-disconnect {
    flex: 1;
    background: #DC2626;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.15s;
}

.amai-dc-btn-disconnect:hover {
    background: #B91C1C;
}

.amai-dc-btn-disconnect:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====================================================
   CREATE PAGE WALKTHROUGH MODAL
   ==================================================== */

.amai-cp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(26, 22, 20, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.amai-cp-modal.show {
    display: flex;
}

.amai-cp-wrap {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    font-family: 'DM Sans', sans-serif;
    animation: amaiCpSpring 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes amaiCpSpring {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.amai-cp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-cp-eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: #D97757;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.amai-cp-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1A1614;
    line-height: 1.25;
}

.amai-cp-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #9B958F;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
}

.amai-cp-close:hover {
    color: #1A1614;
}

.amai-cp-progress {
    padding: 16px 28px 0;
}

.amai-cp-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.amai-cp-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #C4BDB8;
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid #E7DDD5;
    transition: all 0.15s;
}

.amai-cp-lbl.active {
    color: #D97757;
    border-color: #D97757;
    background: #FDF6F2;
}

.amai-cp-lbl.done {
    color: #2D9E6B;
    border-color: #A8DCC5;
    background: #F0FAF5;
}

.amai-cp-track {
    height: 3px;
    background: #F0EBE6;
    border-radius: 2px;
    overflow: hidden;
}

.amai-cp-fill {
    height: 100%;
    background: #D97757;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.amai-cp-counter {
    font-size: 11px;
    color: #9B958F;
    padding: 6px 28px 0;
}

.amai-cp-body {
    padding: 20px 28px;
}

.amai-cp-headline {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1A1614;
    margin-bottom: 6px;
}

.amai-cp-text {
    font-size: 13px;
    color: #3D3A38;
    line-height: 1.6;
    margin-bottom: 16px;
}

.amai-cp-note,
.amai-cp-success,
.amai-cp-warn {
    font-size: 12px;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 14px;
    border-left: 3px solid;
}

.amai-cp-note {
    background: #F0F4FF;
    border-color: #93AAEE;
    color: #2D3A80;
}

.amai-cp-success {
    background: #F0FAF5;
    border-color: #2D9E6B;
    color: #1A5C3A;
}

.amai-cp-warn {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #991B1B;
    font-weight: 500;
}


/* Bio writer button — shown on Bio step of create-page walkthrough */
.amai-cp-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 9px 18px;
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}
.amai-cp-bio-btn:hover { opacity: 0.88; }

/* Bio writer mini-modal */
.amai-bio-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amai-bio-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 28px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.amai-bio-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.amai-bio-modal-close:hover { color: #374151; }
.amai-bio-modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #D97757;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.amai-bio-modal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1C1917;
    margin: 0 0 8px;
}
.amai-bio-modal-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 20px;
    line-height: 1.5;
}
.amai-bio-modal-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}
.amai-bio-modal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.amai-bio-modal-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.amai-bio-modal-optional {
    font-weight: 400;
    color: #9CA3AF;
}
.amai-bio-modal-input {
    padding: 9px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #1C1917;
    transition: border-color 0.15s;
    outline: none;
}
.amai-bio-modal-input:focus { border-color: #D97757; }
.amai-bio-modal-generate {
    width: 100%;
    padding: 11px;
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-bottom: 16px;
}
.amai-bio-modal-generate:hover { opacity: 0.88; }
.amai-bio-modal-generate:disabled { opacity: 0.55; cursor: not-allowed; }
.amai-bio-modal-result {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.amai-bio-modal-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #1C1917;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.amai-bio-modal-textarea:focus { border-color: #D97757; }
.amai-bio-modal-copy {
    align-self: flex-start;
    padding: 8px 16px;
    background: #F3F4F6;
    color: #374151;
    border: 1.5px solid #E5E7EB;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.amai-bio-modal-copy:hover { background: #E5E7EB; }
.amai-bio-modal-hint {
    font-size: 11.5px;
    color: #9CA3AF;
    margin: 0;
}
.amai-bio-modal-error {
    font-size: 13px;
    color: #DC2626;
    background: #FEF2F2;
    border-left: 3px solid #DC2626;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 4px;
}
.amai-cp-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #F0EBE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.amai-cp-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amai-cp-btn-back {
    background: none;
    border: 1.5px solid #E7DDD5;
    color: #6B6560;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
}

.amai-cp-btn-back:hover:not(:disabled) {
    border-color: #C4BDB8;
    color: #1A1614;
}

.amai-cp-btn-back:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.amai-cp-btn-next {
    background: #D97757;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 9px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: opacity 0.15s;
}

.amai-cp-btn-next:hover {
    opacity: 0.88;
}

.amai-cp-btn-go,
.amai-cp-btn-go-fb,
.amai-cp-btn-go-connect {
    display: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 9px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.amai-cp-btn-go-fb {
    background: #1877F2;
    color: #fff;
}

.amai-cp-btn-go-fb:hover {
    opacity: 0.88;
    color: #fff;
}

.amai-cp-btn-go-connect {
    background: #2D9E6B;
    color: #fff;
    font-size: 14px;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.amai-cp-btn-go-connect:hover {
    opacity: 0.88;
    color: #fff;
}

.amai-cp-tip {
    font-size: 11px;
    color: #9B958F;
    font-style: italic;
}

/* ====================================================
   FACEBOOK PAGE CREATION MOCKUP
   ==================================================== */

.amai-cp-mock {
    background: #16181F;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid #2D3148;
}

.amai-cp-mock-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #1E2030;
    border-bottom: 1px solid #2D3148;
}

.amai-cp-mock-dots {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.amai-cp-mock-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.amai-cp-mock-url {
    font-size: 10px;
    color: #8B92A5;
    background: #252839;
    padding: 3px 10px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
}

.amai-cp-mock-screen {
    display: flex;
    height: 200px;
}

.amai-cp-mock-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 14px 12px;
    border-right: 1px solid #2D3148;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
}

.amai-cp-mock-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 2px;
}

.amai-cp-mock-sidebar-sub {
    font-size: 8.5px;
    color: #6B7280;
    line-height: 1.4;
    margin-bottom: 4px;
}

.amai-cp-mock-field {
    background: #252839;
    border: 1px solid #3D4160;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 9.5px;
    color: #8B92A5;
}

.amai-cp-mock-field-filled {
    color: #E2E8F0;
    border-color: #3D4160;
}

.amai-cp-mock-field-tall {
    min-height: 36px;
}

.amai-cp-mock-field-empty {
    color: #4B5563;
}

.amai-cp-mock-btn-fb {
    margin-top: auto;
    background: #1877F2;
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 5px;
    text-align: center;
    cursor: default;
}

.amai-cp-mock-dropdown {
    background: #252839;
    border: 1px solid #3D4160;
    border-radius: 5px;
    overflow: hidden;
    margin-top: -4px;
}

.amai-cp-mock-dropdown-item {
    padding: 5px 10px;
    font-size: 9px;
    color: #8B92A5;
    border-bottom: 1px solid #2D3148;
}

.amai-cp-mock-dropdown-item:last-child {
    border-bottom: none;
}

.amai-cp-mock-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    background: #1A1D27;
    overflow: hidden;
}

.amai-cp-mock-preview-label {
    font-size: 8px;
    color: #4B5563;
    margin-bottom: 6px;
    align-self: flex-start;
}

.amai-cp-mock-preview-cover {
    width: 100%;
    height: 52px;
    background: #252839;
    border-radius: 4px;
    margin-bottom: -16px;
}

.amai-cp-mock-preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3D4160;
    border: 2px solid #1A1D27;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.amai-cp-mock-preview-name {
    font-size: 11px;
    font-weight: 600;
    color: #E2E8F0;
    text-align: center;
}

/* Highlight — active element in mockup */
.amai-cp-hl {
    border-color: #1877F2 !important;
    color: #E2E8F0 !important;
}

.amai-cp-mock-btn-fb.amai-cp-hl {
    box-shadow: 0 0 0 2px #1877F2, 0 0 8px rgba(24,119,242,0.4);
}

.amai-cp-mock-upload-box {
    background: #252839;
    border: 1.5px dashed #3D4160;
    border-radius: 5px;
    padding: 10px;
    font-size: 9px;
    color: #6B7280;
    text-align: center;
    cursor: default;
}

.amai-cp-mock-upload-box.amai-cp-hl {
    border-color: #1877F2;
    color: #93AAEE;
}

/* ====================================================
   FACEBOOK DASHBOARD — connected state
   ==================================================== */

.amai-fbdash {
    max-width: 780px;
}

.amai-fbdash-notice {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.amai-fbdash-notice--success {
    background: #F0FAF5;
    border: 1px solid #A8DCC5;
    color: #1A5C3A;
}

.amai-fbdash-notice--warn {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-left: 4px solid #F59E0B;
    color: #78350F;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.amai-token-reauth-link {
    color: #92400E;
    font-weight: 600;
    text-decoration: underline;
}
.amai-token-reauth-link:hover {
    color: #78350F;
}
.amai-fbdash-notice--nudge {
    background: #FDF6F3;
    border: 1.5px solid #D97757;
    border-left: 4px solid #D97757;
    color: #3D2B1F;
}
.amai-nudge-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.amai-nudge-text {
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
}
.amai-nudge-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.amai-nudge-btn-primary {
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.amai-nudge-btn-primary:hover {
    background: #C4633E;
}
.amai-nudge-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.amai-nudge-btn-dismiss {
    background: transparent;
    color: #9C8880;
    border: none;
    padding: 7px 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.amai-nudge-btn-dismiss:hover {
    color: #3D2B1F;
}
.amai-fbdash-notice--info {
    background: #F0EBE6;
    border: 1px solid #E2C4B0;
    color: #6B6560;
}

.amai-fbdash-page-card {
    background: #FAFAF9;
    border: 1px solid #EDE8E4;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.amai-fbdash-page-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.amai-fbdash-page-avatar {
    position: relative;
    flex-shrink: 0;
}

.amai-fbdash-page-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #1877F2;
    display: block;
    object-fit: cover;
}

.amai-fbdash-page-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E7F0FE;
    color: #1877F2;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1877F2;
}

.amai-fbdash-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2D9E6B;
    border: 2px solid #fff;
}

.amai-fbdash-page-meta {
    min-width: 0;
}

.amai-fbdash-page-name {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #1A1614;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amai-fbdash-page-sub {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.5;
}

.amai-fbdash-dot {
    margin: 0 4px;
}

.amai-fbdash-disconnect-btn {
    background: none;
    border: 1.5px solid #E7DDD5;
    color: #9B958F;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    flex-shrink: 0;
}

.amai-fbdash-disconnect-btn:hover {
    border-color: #DC2626;
    color: #DC2626;
}

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

.amai-fb-toast {
    position: fixed;
    top: 48px;
    right: 24px;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-width: 360px;
    animation: amaiToastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.amai-fb-toast svg {
    flex-shrink: 0;
}

@keyframes amaiToastIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0);    }
}

.amai-fb-toast--success {
    background: #F0FAF5;
    border: 1px solid #A8DCC5;
    color: #1A5C3A;
}

.amai-fb-toast-dismissing {
    opacity: 0;
    transform: translateX(20px);
}

/* ====================================================
   WEEKLY FEED
   ==================================================== */

.amai-feed {
    background: #fff;
    border: 1.5px solid #D9CFC8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.amai-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #F0EBE6;
    background: #FAFAF9;
}

.amai-feed-nav-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #6B6560;
    text-decoration: none;
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
}

.amai-feed-nav-btn:hover {
    color: #D97757;
    border-color: #D97757;
    background: #FDF6F2;
}

.amai-feed-week-label {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1A1614;
}

.amai-feed-list {
    display: flex;
    flex-direction: column;
}

.amai-feed-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F0EBE6;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
    border-left: 3px solid transparent;
}

.amai-feed-row:last-child {
    border-bottom: none;
}

.amai-feed-row:hover:not(.amai-feed-row--empty) {
    background: #FDF6F2;
    border-left-color: #E8C5B0;
}

.amai-feed-row--today {
    background: #FAFAF9;
}

.amai-feed-row--empty {
    cursor: default;
    opacity: 0.55;
}

.amai-feed-row.selected {
    background: #FDF6F2;
    border-left-color: #D97757;
}

/* Date column */
.amai-feed-date {
    text-align: center;
    padding-top: 2px;
}

.amai-feed-dow {
    font-size: 10px;
    font-weight: 600;
    color: #9B958F;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1px;
}

.amai-feed-day-num {
    font-size: 26px;
    font-weight: 700;
    color: #1A1614;
    line-height: 1;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 1px;
}

.amai-feed-month {
    font-size: 11px;
    color: #9B958F;
}

/* Content column */
.amai-feed-content {
    min-width: 0;
    padding-top: 3px;
}

.amai-feed-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 7px;
}

.amai-feed-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.amai-feed-pill--educational  { background: #E6F1FB; color: #0C447C; }
.amai-feed-pill--product       { background: #EEEDFE; color: #3C3489; }
.amai-feed-pill--feel_good     { background: #E1F5EE; color: #085041; }
.amai-feed-pill--behind_scenes { background: #FAEEDA; color: #633806; }
.amai-feed-pill--engagement    { background: #FAECE7; color: #712B13; }
.amai-feed-pill--quote         { background: #F0FDFA; color: #115E59; }
.amai-feed-pill--humor         { background: #FFF1F2; color: #9F1239; }
.amai-feed-pill--myth_bust     { background: #FEF3C7; color: #92400E; }
.amai-feed-pill--tip           { background: #ECFDF5; color: #065F46; }
.amai-feed-pill--milestone     { background: #EFF6FF; color: #1E40AF; }
.amai-feed-pill--testimonial   { background: #FDF2F8; color: #9D174D; }
.amai-feed-pill--review        { background: #FDF6F2; color: #9B6E58; border: 1px solid #E8C5B0; }

.amai-feed-preview {
    font-size: 14px;
    color: #3D3A38;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amai-feed-empty-label {
    font-size: 12px;
    color: #C4BDB8;
    font-style: italic;
    padding-top: 6px;
}

/* Status column */
.amai-feed-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 4px;
    white-space: nowrap;
    justify-content: flex-end;
}
.amai-feed-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 3px;
}

.amai-feed-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amai-feed-status-dot--draft     { background: #C4BDB8; }
.amai-feed-status-dot--approved  { background: #2D9E6B; }
.amai-feed-status-dot--rejected  { background: #DC2626; }
.amai-feed-status-dot--posted    { background: #1877F2; }
.amai-feed-status-dot--failed    { background: #C2410C; }

.amai-feed-status-label {
    font-size: 13px;
    color: #9B958F;
}

/* ====================================================
   SLIDE-IN POST PANEL
   ==================================================== */

.amai-post-panel {
    position: fixed;
    top: 32px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    pointer-events: none;
}

.amai-post-panel.open {
    pointer-events: all;
}

.amai-post-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 20, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.amai-post-panel.open .amai-post-panel-backdrop {
    opacity: 1;
}

.amai-post-panel-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 95vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.14);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'DM Sans', sans-serif;
}

.amai-post-panel.open .amai-post-panel-inner {
    transform: translateX(0);
}

.amai-post-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #F0EBE6;
    flex-shrink: 0;
}

.amai-post-panel-eyebrow {
    font-size: 10px;
    font-weight: 600;
    color: #D97757;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.amai-post-panel-title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1A1614;
    line-height: 1.25;
}

.amai-post-panel-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #9B958F;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 12px;
}

.amai-post-panel-close:hover {
    color: #1A1614;
}

.amai-post-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.amai-post-panel-status-row {
    margin-bottom: 14px;
    flex-shrink: 0;
}

.amai-post-panel-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.amai-post-panel-status.status-draft     { background: #F0EBE6; color: #6B6560; }
.amai-post-panel-status.status-approved  { background: #F0FAF5; color: #2D9E6B; border: 1px solid #A8DCC5; }
.amai-post-panel-status.status-rejected  { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.amai-post-panel-status.status-posted    { background: #EFF6FF; color: #1877F2; border: 1px solid #BFDBFE; }
.amai-post-panel-status.status-failed    { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }

.amai-post-panel-content {
    font-size: 14px;
    color: #1A1614;
    line-height: 1.7;
    white-space: pre-wrap;
    flex: 1;
}

.amai-post-panel-textarea {
    flex: 1;
    min-height: 200px;
    width: 100%;
    font-size: 14px;
    color: #1A1614;
    line-height: 1.7;
    font-family: 'DM Sans', sans-serif;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
    padding: 12px 14px;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.amai-post-panel-textarea:focus {
    outline: none;
    border-color: #D97757;
}

.amai-post-panel-char-count {
    font-size: 11px;
    color: #9B958F;
    text-align: right;
    margin-top: 6px;
    flex-shrink: 0;
}

.amai-post-panel-char-count.over-limit {
    color: #DC2626;
    font-weight: 600;
}

.amai-post-panel-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #F0EBE6;
    flex-shrink: 0;
}

.amai-panel-mode {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amai-panel-mode-row {
    display: flex;
    gap: 8px;
}

.amai-panel-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    border: none;
    text-align: center;
}

.amai-panel-btn--ghost {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    color: #6B6560;
}

.amai-panel-btn--ghost:hover {
    border-color: #C4BDB8;
    color: #1A1614;
}

.amai-panel-btn--clay {
    background: #FDF6F2;
    border: 1.5px solid #E8C5B0;
    color: #D97757;
}

.amai-panel-btn--clay:hover {
    background: #FAF0EA;
}

.amai-panel-btn--green {
    background: #2D9E6B;
    color: #fff;
}

.amai-panel-btn--green:hover {
    background: #237A53;
}

.amai-panel-btn--red {
    background: #DC2626;
    color: #fff;
}

.amai-panel-btn--red:hover {
    background: #B91C1C;
}

.amai-panel-btn--full {
    flex: none;
    width: 100%;
}

.amai-panel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reason step */
.amai-post-panel-reason-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
}

.amai-post-panel-reason-optional {
    font-weight: 400;
    color: #9B958F;
    font-size: 12px;
}

.amai-post-panel-reason-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E7DDD5;
    border-radius: 9px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #1A1614;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.amai-post-panel-reason-input:focus {
    outline: none;
    border-color: #DC2626;
}

.amai-post-panel-reason-input::placeholder {
    color: #C4BDB8;
}

/* ====================================================
   REGENERATE BAR
   ==================================================== */

.amai-panel-regen-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #FAFAF9;
    border: 1.5px solid #F0EBE6;
    border-radius: 10px;
}

.amai-panel-regen-label {
    font-size: 11px;
    font-weight: 600;
    color: #9B958F;
    white-space: nowrap;
    flex-shrink: 0;
}

.amai-panel-regen-select {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    color: #3D3A38;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    padding: 5px 8px;
    cursor: pointer;
    transition: border-color 0.15s;
    appearance: auto;
}

.amai-panel-regen-select:focus {
    outline: none;
    border-color: #D97757;
}

.amai-panel-btn-regen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6B6560;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.amai-panel-btn-regen:hover {
    border-color: #D97757;
    color: #D97757;
    background: #FDF6F2;
}

.amai-panel-btn-regen:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ====================================================
   REGENERATING SPINNER MODE
   ==================================================== */

.amai-panel-regen-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 500;
    color: #9B958F;
}

@keyframes amaiSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.amai-regen-spin {
    animation: amaiSpin 0.9s linear infinite;
    color: #D97757;
    flex-shrink: 0;
}
/* ====================================================
   APPROVAL MODE BAR
   ==================================================== */

.amai-bio-card {
    background: #F7F4F2;
    border: 1px solid #EDE8E4;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.amai-bio-card-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #3D2B1F;
    font-family: inherit;
}
.amai-bio-card-toggle:hover {
    background: #FDF6F3;
}
.amai-bio-card-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9C8880;
}
.amai-bio-chevron {
    color: #9C8880;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.amai-bio-body {
    padding: 0 20px 18px;
}
.amai-bio-hint {
    font-size: 12px;
    color: #9C8880;
    margin-bottom: 12px;
    line-height: 1.5;
}
.amai-bio-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.amai-bio-url-input {
    flex: 1;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #3D2B1F;
    font-family: inherit;
    outline: none;
    background: #FAFAFA;
}
.amai-bio-url-input:focus {
    border-color: #D97757;
    background: #fff;
}
.amai-bio-generate-btn {
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}
.amai-bio-generate-btn:hover { background: #C4633E; }
.amai-bio-generate-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.amai-bio-result {
    margin-top: 12px;
}
.amai-bio-textarea {
    width: 100%;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #3D2B1F;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    background: #F9FAFB;
    box-sizing: border-box;
}
.amai-bio-result-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.amai-bio-copy-btn {
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.amai-bio-copy-btn:hover { background: #C4633E; }
.amai-bio-regen-btn {
    background: transparent;
    color: #9C8880;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.amai-bio-regen-btn:hover { color: #3D2B1F; border-color: #C4A99A; }
.amai-bio-regen-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.amai-bio-generated-badge {
    display: inline-flex;
    align-items: center;
    background: #F0FAF5;
    color: #1A5C3A;
    border: 1px solid #A8DCC5;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.amai-bio-error {
    margin-top: 10px;
    font-size: 12px;
    color: #DC2626;
    line-height: 1.5;
}
.amai-approval-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FAFAF9;
    border: 1px solid #EDE8E4;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.amai-approval-bar-left {
    min-width: 0;
    flex: 1;
}

.amai-approval-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}

.amai-approval-bar-hint {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.5;
}

/* Segmented control */
.amai-approval-seg {
    display: inline-flex;
    align-items: center;
    background: #F0EBE6;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.amai-approval-seg-btn {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6B6560;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.amai-approval-seg-btn:hover:not(.active) {
    color: #1A1614;
}

.amai-approval-seg-btn.active {
    background: #fff;
    color: #D97757;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Read-only panel nudge */
.amai-panel-readonly-nudge {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.6;
    text-align: center;
    padding: 10px 4px;
}

.amai-panel-readonly-switch {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: #D97757;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.amai-panel-readonly-switch:hover {
    color: #b85e3a;
}

/* ====================================================
   FEED PILL — media / location / feeling extras
   ==================================================== */

.amai-feed-pill--media    { background: #EEF2FF; color: #3730A3; }
.amai-feed-pill--manual   { background: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }
.amai-feed-pill--location { background: #F0FAF5; color: #065F46; }
.amai-feed-pill--feeling  { background: #FFF7ED; color: #92400E; }

/* ====================================================
   POST PANEL — meta summary (read view)
   ==================================================== */

.amai-panel-meta-summary {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.amai-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amai-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
}

.amai-meta-chip--image    { background: #EEF2FF; color: #3730A3; }
.amai-meta-chip--location { background: #F0FAF5; color: #065F46; }
.amai-meta-chip--feeling  { background: #FFF7ED; color: #92400E; }

/* ====================================================

/* ====================================================
   FEED PILL — media / location / feeling extras
   ==================================================== */

.amai-feed-pill--media    { background: #EEF2FF; color: #3730A3; }
.amai-feed-pill--location { background: #F0FAF5; color: #065F46; }
.amai-feed-pill--feeling  { background: #FFF7ED; color: #92400E; }

/* ====================================================
   POST PANEL — meta summary (read view)
   ==================================================== */

.amai-panel-meta-summary {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.amai-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amai-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
}

.amai-meta-chip--image    { background: #EEF2FF; color: #3730A3; }
.amai-meta-chip--location { background: #F0FAF5; color: #065F46; }
.amai-meta-chip--feeling  { background: #FFF7ED; color: #92400E; }

/* ====================================================
   ENRICHMENT TOOLBAR — sits below textarea in edit mode
   ==================================================== */

.amai-panel-enrichments {
    margin-top: 12px;
    flex-shrink: 0;
}

/* ---- Toolbar row ---- */

.amai-enrich-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #FAFAF9;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
}

.amai-enrich-toolbar-label {
    font-size: 11px;
    font-weight: 600;
    color: #C4BDB8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 4px;
    flex-shrink: 0;
}

.amai-enrich-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9B958F;
    transition: all 0.13s;
    position: relative;
    flex-shrink: 0;
}

.amai-enrich-btn:hover {
    background: #F0EBE6;
    color: #D97757;
}

.amai-enrich-btn.active {
    background: #FDF6F2;
    color: #D97757;
}

.amai-enrich-btn svg {
    display: block;
    flex-shrink: 0;
}

/* Active chip in toolbar — shows chosen value */
.amai-enrich-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #FDF6F2;
    border: 1.5px solid #E8C5B0;
    color: #D97757;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amai-enrich-chip-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #C4BDB8;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.13s;
}

.amai-enrich-chip-remove:hover {
    color: #DC2626;
}

/* ---- Image preview strip (below toolbar) ---- */

.amai-image-strip {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}

.amai-image-strip-preview {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 1.5px solid #E7DDD5;
}

.amai-image-strip-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(26,22,20,0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.amai-image-strip-remove:hover {
    background: rgba(220,38,38,0.85);
}

.amai-image-uploading-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #9B958F;
    padding: 8px 0 4px;
}


/* ---- Feeling modal ---- */

.amai-feeling-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(26,22,20,0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.amai-feeling-modal.show {
    display: flex;
}

.amai-feeling-modal-wrap {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    font-family: 'DM Sans', sans-serif;
    animation: amaiDcSpring 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amai-feeling-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #F0EBE6;
}

.amai-feeling-modal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1A1614;
}

.amai-feeling-modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #9B958F;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}

.amai-feeling-modal-close:hover {
    color: #1A1614;
}

.amai-feeling-modal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 18px 24px 22px;
}

.amai-feeling-option {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6B6560;
    background: #FAFAF9;
    border: 1.5px solid #E7DDD5;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.13s;
    white-space: nowrap;
}

.amai-feeling-option:hover {
    border-color: #D97757;
    color: #D97757;
    background: #FDF6F2;
}

.amai-feeling-option.active {
    background: #FDF6F2;
    border-color: #D97757;
    color: #D97757;
}

/* ---- Emoji picker (inline below toolbar) ---- */

.amai-emoji-dropdown {
    margin-top: 8px;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
    overflow: hidden;
}

.amai-emoji-sticky-cat {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 5px 10px 4px;
    font-size: 10px;
    font-weight: 700;
    color: #9B958F;
    background: #fff;
    border-bottom: 1px solid #F0EBE6;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
}

.amai-emoji-sticky-cat:hover {
    color: #D97757;
}

.amai-emoji-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 6px 8px;
}

.amai-emoji-section-header {
    font-size: 10px;
    font-weight: 700;
    color: #C4BDB8;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 4px 2px;
}

.amai-emoji-section-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.amai-emoji-grid {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 6px 8px;
}

.amai-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
    line-height: 1;
}

.amai-emoji-item:hover {
    background: #F0EBE6;
}

/* ====================================================
   TEXTAREA WRAP — emoji corner button
   ==================================================== */

.amai-textarea-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.amai-textarea-wrap .amai-post-panel-textarea {
    flex: 1;
    padding-bottom: 32px;
}

.amai-emoji-corner-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    color: #C4BDB8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    z-index: 2;
}

.amai-emoji-corner-btn:hover {
    color: #D97757;
}

.amai-emoji-corner-btn.active {
    color: #D97757;
}

.amai-textarea-wrap .amai-emoji-dropdown {
    position: absolute;
    bottom: 38px;
    right: 0;
    width: 280px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ====================================================
   UNSPLASH SUGGESTED IMAGE BLOCK
   ==================================================== */

.amai-unsplash-block {
    margin: 12px 0 8px;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
    overflow: hidden;
}

.amai-unsplash-label {
    font-size: 10px;
    font-weight: 700;
    color: #9B958F;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px 4px;
    background: #FAFAF9;
    border-bottom: 1px solid #F0EBE6;
}

.amai-unsplash-img-wrap {
    position: relative;
}

.amai-unsplash-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.amai-unsplash-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    font-family: 'DM Sans', sans-serif;
}

.amai-unsplash-credit a {
    color: #fff;
    text-decoration: underline;
}

.amai-unsplash-actions {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
}

.amai-unsplash-btn-accept {
    flex: 1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    background: #D97757;
    color: #fff;
    border: none;
    transition: background 0.15s;
}

.amai-unsplash-btn-accept:hover {
    background: #C4633F;
}

.amai-unsplash-btn-remove {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    background: none;
    color: #9B958F;
    border: 1.5px solid #E7DDD5;
    transition: all 0.15s;
}

.amai-unsplash-btn-remove:hover {
    color: #D97757;
    border-color: #D97757;
}

.amai-unsplash-accepted {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #F6FAF3;
    border-top: 1px solid #D4EAC8;
}

.amai-unsplash-accepted-label {
    font-size: 12px;
    font-weight: 600;
    color: #4A7C3F;
    font-family: 'DM Sans', sans-serif;
}

.amai-unsplash-btn-undo {
    font-size: 11px;
    font-family: 'DM Sans', sans-serif;
    color: #9B958F;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* ====================================================
   FEED ROW THUMBNAIL
   ==================================================== */

.amai-feed-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.amai-feed-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}


/* ====================================================
   FEED ROW THUMBNAIL
   ==================================================== */

.amai-feed-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.amai-feed-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.amai-feed-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7F4F2;
    border: 1.5px dashed #D0C8C2;
}

.amai-feed-nav-btn--disabled {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #C4BCBA;
    padding: 6px 14px;
    background: #FAFAFA;
    border: 1.5px solid #EDE8E4;
    border-radius: 8px;
    cursor: default;
    pointer-events: none;
    user-select: none;
}
.amai-batch-select {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1A1614;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    outline: none;
}
.amai-batch-select:hover {
    background: #F3EDE8;
}
.amai-feed-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    gap: 10px;
    text-align: center;
}
.amai-feed-empty-icon {
    font-size: 32px;
    line-height: 1;
}
.amai-feed-empty-title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1A1614;
}
.amai-feed-empty-body {
    font-size: 13px;
    color: #6B6560;
    max-width: 280px;
    line-height: 1.5;
}

/* ── Facebook channel tabs (Dashboard | Compose Post) ── */
.amai-fb-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: none;
}
.amai-fb-tab {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #78716C;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 0;
    transition: color 0.15s, background 0.15s;
    border-bottom: 3px solid #E7DDD5;
}
.amai-fb-tab:hover {
    color: #D97757;
    background: #FDF6F3;
    border-bottom: 3px solid #E7DDD5;
}
.amai-fb-tab--active,
.amai-fb-tab--active:hover {
    color: #D97757;
    background: transparent;
    border-bottom: 3px solid #D97757;
}
/* ── Manual compose inside social shell ── */
.amai-manual-steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}
.amai-manual-step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.amai-manual-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E7DDD5;
    color: #78716C;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.amai-manual-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #78716C;
    transition: color 0.2s;
}
.amai-manual-step--active .amai-manual-step-num { background: #D97757; color: #fff; }
.amai-manual-step--active .amai-manual-step-label { color: #D97757; }
.amai-manual-step--done .amai-manual-step-num { background: #22c55e; color: #fff; }
.amai-manual-step--done .amai-manual-step-label { color: #22c55e; }
.amai-manual-step-connector {
    flex: 1;
    height: 2px;
    background: #E7DDD5;
    margin: 0 12px;
    min-width: 32px;
}
.amai-manual-card {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.amai-manual-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}
.amai-manual-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #1C1917;
}
.amai-manual-optional {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #A8A29E;
}
.amai-manual-card-count {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #A8A29E;
}
.amai-manual-textarea-wrap { position: relative; margin-bottom: 14px; }
.amai-manual-textarea {
    width: 100%;
    min-height: 160px;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
    padding: 14px 44px 14px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1C1917;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.amai-manual-textarea:focus { border-color: #D97757; }
.amai-manual-type-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.amai-manual-type-label {
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.amai-manual-type-select {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #1C1917;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 6px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    height: auto;
    line-height: normal;
}
.amai-manual-type-select:focus {
    border-color: #D97757;
}
.amai-manual-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.amai-manual-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: #A8A29E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.amai-seed-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.amai-seed-label {
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    color: #9A7E6F;
    background: #F5EDE8;
    border: 1px solid #E7DDD5;
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: 0.01em;
}
.amai-manual-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F5EDE8;
}
.amai-manual-card-footer--split { justify-content: space-between; }
.amai-manual-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #D97757;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.amai-manual-btn-primary:hover { background: #C4623E; }
.amai-manual-btn-primary:disabled { background: #E7DDD5; color: #A8A29E; cursor: not-allowed; }
.amai-manual-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #D97757;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border: 1.5px solid #D97757;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.amai-manual-btn-secondary:hover { background: #FDF6F3; }
.amai-manual-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #78716C;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.amai-manual-btn-ghost:hover { color: #1C1917; background: #F5EDE8; }
.amai-manual-unsplash-searching {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #78716C;
    margin-bottom: 20px;
}
#amai-unsplash-keyword-wrap { margin-bottom: 14px; font-size: 13px; color: #78716C; }
.amai-manual-keyword { font-weight: 600; color: #D97757; }
.amai-manual-unsplash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.amai-manual-unsplash-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
    aspect-ratio: 4/3;
}
.amai-manual-unsplash-item:hover { border-color: #D97757; box-shadow: 0 2px 10px rgba(217,119,87,0.18); }
.amai-manual-unsplash-item--selected { border-color: #D97757; box-shadow: 0 0 0 3px rgba(217,119,87,0.18); }
.amai-manual-unsplash-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amai-manual-unsplash-item-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #D97757;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.amai-manual-unsplash-item--selected .amai-manual-unsplash-item-check { opacity: 1; }
.amai-manual-unsplash-credit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.amai-manual-unsplash-error {
    font-size: 13px;
    color: #ef4444;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
.amai-manual-selected-img-wrap {
    margin-bottom: 20px;
    padding: 16px;
    background: #F9FAFB;
    border: 1.5px solid #E7DDD5;
    border-radius: 12px;
}
.amai-manual-selected-label { font-size: 13px; font-weight: 700; color: #22c55e; margin-bottom: 10px; }
.amai-manual-selected-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; }
.amai-manual-selected-credit { font-size: 11px; color: #A8A29E; margin-bottom: 12px; }
.amai-manual-image-hint {
    font-size: 12px;
    color: #A8A29E;
    margin-bottom: 12px;
}
.amai-manual-image-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.amai-manual-upload-strip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #78716C; }
.amai-manual-ai-img-wrap { margin-top: 20px; }
.amai-manual-ai-hint { font-size: 13px; color: #78716C; margin-bottom: 10px; }
.amai-manual-ai-prompt { width: 100%; box-sizing: border-box; border: 1.5px solid #E7DDD5; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; color: #1C1917; resize: vertical; outline: none; }
.amai-manual-ai-prompt:focus { border-color: #D97757; }
.amai-manual-ai-prompt-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.amai-manual-ai-generating-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #78716C; margin-top: 12px; }
.amai-manual-ai-error { font-size: 13px; color: #ef4444; margin-top: 10px; }
.amai-manual-preview {
    background: #F9FAFB;
    border: 1.5px solid #E7DDD5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.amai-manual-preview-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.amai-manual-preview-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid #E7DDD5; }
.amai-manual-preview-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; color: #1C1917; }
.amai-manual-preview-meta { font-size: 12px; color: #A8A29E; }
.amai-manual-preview-content { font-size: 14px; line-height: 1.7; color: #1C1917; white-space: pre-wrap; word-break: break-word; margin-bottom: 10px; }
.amai-manual-preview-feeling { display: inline-block; font-size: 13px; color: #78716C; background: #FDF6F3; border: 1px solid #E7DDD5; border-radius: 20px; padding: 3px 12px; margin-bottom: 12px; }
.amai-manual-preview-img-wrap { margin-top: 10px; }
.amai-manual-preview-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; display: block; }
.amai-manual-preview-credit { font-size: 11px; color: #A8A29E; margin-top: 6px; }
.amai-manual-post-error { font-size: 13px; color: #ef4444; padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; margin-bottom: 16px; }
.amai-manual-post-success { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #22c55e; padding: 12px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-bottom: 16px; }


/* === post stats === */

.amai-feed-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.amai-feed-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F0ED;
    border: 1px solid #E7DDD5;
    border-radius: 20px;
    padding: 2px 8px;
    line-height: 1.4;
}

.amai-panel-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #F7F4F2;
    border: 1px solid #EDE8E4;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0 4px;
}

.amai-panel-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px 12px;
    gap: 3px;
    border-right: 1px solid #EDE8E4;
    background: transparent;
}

.amai-panel-stat-item:last-child {
    border-right: none;
}

.amai-panel-stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A89890;
    margin-bottom: 2px;
}

.amai-panel-stat-value {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1C1917;
    line-height: 1;
}

.amai-panel-stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ====================================================
   EDIT-MODE IMAGE BLOCK — unified FB + IG panel
   ==================================================== */

.amai-edit-img-block {
    margin-top: 12px;
    border: 1.5px solid #E7DDD5;
    border-radius: 10px;
    overflow: hidden;
    background: #FAFAF9;
    flex-shrink: 0;
}

/* All state divs default hidden; JS controls display */
.amai-edit-img-state {
    padding: 12px 14px;
}

/* ── None state ── */
.amai-edit-img-empty-label {
    font-size: 12px;
    color: #9B958F;
    margin-bottom: 10px;
}

.amai-edit-img-required {
    color: #C2410C;
    font-weight: 600;
}

.amai-edit-img-options {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

/* ── Option buttons / upload label ── */
.amai-edit-img-opt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: #6B6560;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    cursor: pointer;
    transition: all 0.13s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.amai-edit-img-opt:hover {
    border-color: #D97757;
    color: #D97757;
    background: #FDF6F2;
}

.amai-edit-img-opt--sm {
    font-size: 11px;
    padding: 4px 9px;
}

/* ── Spinner row ── */
.amai-edit-img-spinner-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9B958F;
    padding: 4px 0;
}

/* ── Has-image state ── */
.amai-edit-img-preview-wrap {
    position: relative;
    margin-bottom: 8px;
}

.amai-edit-img-preview-img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 7px;
    border: 1.5px solid #E7DDD5;
}

.amai-edit-img-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(26,22,20,0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.amai-edit-img-remove:hover {
    background: rgba(220,38,38,0.85);
}

.amai-edit-img-credit {
    font-size: 10px;
    color: #9B958F;
    margin-bottom: 8px;
    line-height: 1.4;
}

.amai-edit-img-replace-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.amai-edit-img-replace-label {
    font-size: 11px;
    font-weight: 600;
    color: #C4BDB8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

/* ── Unsplash search state ── */
.amai-edit-img-unsplash-head {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.amai-edit-img-unsplash-input {
    flex: 1;
    min-width: 120px;
    padding: 7px 10px;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    color: #1A1614;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.amai-edit-img-unsplash-input:focus {
    border-color: #D97757;
}

.amai-edit-img-unsplash-search-btn {
    padding: 7px 14px;
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.amai-edit-img-unsplash-search-btn:hover {
    background: #C4633E;
}

.amai-edit-img-unsplash-cancel {
    padding: 7px 10px;
    background: none;
    color: #9B958F;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.13s;
}

.amai-edit-img-unsplash-cancel:hover {
    color: #1A1614;
    border-color: #C4BDB8;
}

.amai-edit-img-unsplash-status {
    font-size: 12px;
    color: #9B958F;
    padding: 4px 0 6px;
}

.amai-edit-img-unsplash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.amai-edit-img-unsplash-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    aspect-ratio: 4/3;
    transition: border-color 0.13s, box-shadow 0.13s;
}

.amai-edit-img-unsplash-item:hover {
    border-color: #D97757;
    box-shadow: 0 2px 8px rgba(217,119,87,0.2);
}

.amai-edit-img-unsplash-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amai-edit-img-unsplash-credit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    font-size: 9px;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'DM Sans', sans-serif;
}

/* ── AI prompt state ── */
.amai-edit-img-ai-label {
    font-size: 12px;
    font-weight: 600;
    color: #3D3A38;
    margin-bottom: 8px;
}

.amai-edit-img-ai-textarea {
    width: 100%;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    color: #1A1614;
    line-height: 1.6;
    resize: none;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.amai-edit-img-ai-textarea:focus {
    border-color: #D97757;
}

.amai-edit-img-ai-row {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
}

.amai-edit-img-ai-cancel {
    padding: 7px 12px;
    background: none;
    color: #9B958F;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.13s;
}

.amai-edit-img-ai-cancel:hover {
    color: #1A1614;
    border-color: #C4BDB8;
}

.amai-edit-img-ai-generate {
    padding: 7px 16px;
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

.amai-edit-img-ai-generate:hover {
    background: #C4633E;
}

/* ── AI preview state ── */
.amai-edit-img-ai-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #3D3A38;
    margin-bottom: 8px;
}

.amai-edit-img-ai-preview-row {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

.amai-edit-img-ai-discard {
    flex: 1;
    padding: 8px 12px;
    background: none;
    color: #9B958F;
    border: 1.5px solid #E7DDD5;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.13s;
}

.amai-edit-img-ai-discard:hover {
    color: #DC2626;
    border-color: #FECACA;
    background: #FEF2F2;
}

.amai-edit-img-ai-accept {
    flex: 1;
    padding: 8px 12px;
    background: #2D9E6B;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

.amai-edit-img-ai-accept:hover {
    background: #237A53;
}

/* ── Error state ── */
.amai-edit-img-error-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amai-edit-img-error-msg {
    flex: 1;
    font-size: 12px;
    color: #DC2626;
    line-height: 1.4;
}

.amai-edit-img-error-retry {
    padding: 6px 12px;
    background: #D97757;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.amai-edit-img-error-retry:hover {
    background: #C4633E;
}


/* Panel view-mode image */
.amai-panel-view-image {
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.amai-panel-view-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid #E7DDD5;
}

/* Bio status badge — shown in accordion toggle label */
.amai-bio-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.5;
}
.amai-bio-status-done {
    background: transparent;
    color: #6B7280;
    font-weight: 600;
    padding: 0;
    margin-left: 6px;
    border-radius: 0;
    letter-spacing: 0;
    font-size: 11px;
}
.amai-bio-status-nudge {
    background: transparent;
    color: #B45309;
    font-weight: 600;
    padding: 0;
    margin-left: 6px;
    border-radius: 0;
    letter-spacing: 0;
    font-size: 11px;
}


/* ==================================================
   Shared connect card styles — used by all channels
   ================================================== */
.amai-connect-card {
    max-width: 580px;
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}
.amai-connect-notice {
    margin: 20px 24px 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}
.amai-connect-notice-error {
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    color: #991B1B;
}
.amai-connect-header {
    padding: 44px 40px 32px;
    text-align: center;
    border-bottom: 1px solid #F0EBE6;
}
.amai-connect-icon {
    margin-bottom: 18px;
}
.amai-connect-icon svg {
    display: inline-block;
}
.amai-connect-title {
    font-family: 'Nunito', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #1A1614;
    margin: 0 0 10px !important;
    line-height: 1.3;
}
.amai-connect-subtitle {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.6;
    margin: 0 !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.amai-connect-steps {
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-bottom: 1px solid #F0EBE6;
}
.amai-connect-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.amai-connect-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FDF6F2;
    border: 1.5px solid #E8C5B0;
    color: #D97757;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.amai-connect-step-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 2px;
}
.amai-connect-step-desc {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.55;
}
.amai-connect-action {
    padding: 28px 36px;
    text-align: center;
    border-bottom: 1px solid #F0EBE6;
}
.amai-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.15s;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}
.amai-connect-btn:hover {
    opacity: 0.88;
    color: #fff;
}
.amai-connect-btn-tiktok {
    background: #000;
}
.amai-connect-btn-linkedin {
    background: #0A66C2;
}
.amai-connect-btn-facebook {
    background: #1877F2;
}
.amai-connect-btn-instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}
.amai-connect-fine {
    font-size: 11px;
    color: #9B958F;
    margin: 10px 0 0 !important;
}
.amai-connect-help {
    padding: 24px 36px;
}
.amai-connect-help-heading {
    font-size: 13px;
    font-weight: 600;
    color: #1A1614;
    margin-bottom: 4px;
}
.amai-connect-help-body {
    font-size: 12px;
    color: #6B6560;
    line-height: 1.55;
    margin: 0 0 8px;
}

/* ==================================================
   Shared dashboard styles — connected state
   ================================================== */
.amai-dashboard-card {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 20px;
    overflow: hidden;
}
.amai-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #F0EBE6;
}
.amai-dashboard-account {
    display: flex;
    align-items: center;
    gap: 16px;
}
.amai-dashboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E7DDD5;
}
.amai-dashboard-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
}
.amai-dashboard-account-name {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1A1614;
    display: flex;
    align-items: center;
    gap: 8px;
}
.amai-dashboard-account-handle {
    font-size: 13px;
    color: #6B6560;
    margin-top: 2px;
}
.amai-dashboard-account-followers {
    font-size: 12px;
    color: #9B958F;
    margin-top: 2px;
}
.amai-dashboard-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.amai-dashboard-status-dot-active {
    background: #22C55E;
}
.amai-dashboard-empty {
    padding: 56px 40px;
    text-align: center;
}
.amai-dashboard-empty-icon {
    margin-bottom: 20px;
}
.amai-dashboard-empty-icon svg {
    display: inline-block;
}
.amai-dashboard-empty-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1614;
    margin: 0 0 8px !important;
}
.amai-dashboard-empty-desc {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto !important;
}
.amai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    line-height: 1.4;
}
.amai-btn:hover {
    opacity: 0.88;
}
.amai-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}
.amai-btn-secondary {
    background: #fff;
    color: #1A1614;
    border: 1.5px solid #E7DDD5;
}
.amai-btn-danger {
    background: #DC2626;
    color: #fff;
}

/* ==================================================
   Shared disconnect modal styles
   ================================================== */
.amai-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amai-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.amai-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #9B958F;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.amai-modal-close:hover {
    color: #1A1614;
}
.amai-modal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1614;
    margin: 0 0 12px !important;
}
.amai-modal-body {
    font-size: 13px;
    color: #6B6560;
    line-height: 1.6;
    margin: 0 0 24px !important;
}
.amai-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ==================================================
   Facebook post preview — panel inline mockup
   ================================================== */

.amai-fb-preview-toggle {
    margin: 12px 0 0;
}

.amai-fb-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #78716C;
    cursor: pointer;
    transition: all 0.15s;
}

.amai-fb-preview-btn:hover {
    border-color: #D97757;
    color: #D97757;
    background: #FEF3EE;
}

.amai-fb-post-preview {
    margin: 12px 0 0;
}

.amai-fbp-card {
    background: #fff;
    border: 1px solid #CED0D4;
    border-radius: 8px;
    overflow: hidden;
    font-family: Helvetica, Arial, sans-serif;
}

.amai-fbp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 6px;
}

.amai-fbp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #E4E6E9;
    flex-shrink: 0;
}

.amai-fbp-name {
    font-size: 14px;
    font-weight: 700;
    color: #050505;
    line-height: 1.2;
}

.amai-fbp-time {
    font-size: 12px;
    color: #65676B;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.amai-fbp-copy {
    padding: 4px 12px 10px;
    font-size: 15px;
    color: #050505;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.amai-fbp-image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #E4E6E9;
}

.amai-fbp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amai-fbp-actions {
    display: flex;
    border-top: 1px solid #E4E6E9;
    padding: 4px 0;
}

.amai-fbp-action {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 600;
    color: #65676B;
    cursor: default;
}

/* ==================================================
   Instagram post preview — panel inline mockup
   ================================================== */

.amai-ig-preview-toggle { margin: 12px 0 0; }

.amai-ig-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #78716C;
    cursor: pointer;
    transition: all 0.15s;
}

.amai-ig-preview-btn:hover {
    border-color: #D97757;
    color: #D97757;
    background: #FEF3EE;
}

.amai-ig-post-preview { margin: 12px 0 0; }

.amai-igp-card {
    background: #fff;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amai-igp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.amai-igp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
    flex-shrink: 0;
}

.amai-igp-username {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    flex: 1;
}

.amai-igp-more {
    color: #262626;
    margin-left: auto;
    flex-shrink: 0;
}

.amai-igp-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #EFEFEF;
}

.amai-igp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amai-igp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 4px;
}

.amai-igp-actions-left {
    display: flex;
    gap: 14px;
    align-items: center;
    color: #262626;
}

.amai-igp-bookmark { color: #262626; }

.amai-igp-caption {
    padding: 4px 12px 12px;
    font-size: 13px;
    color: #262626;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==================================================
   X post preview — panel inline mockup
   ================================================== */

.amai-x-preview-toggle { margin: 12px 0 0; }

.amai-x-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #78716C;
    cursor: pointer;
    transition: all 0.15s;
}

.amai-x-preview-btn:hover {
    border-color: #D97757;
    color: #D97757;
    background: #FEF3EE;
}

.amai-x-post-preview { margin: 12px 0 0; }

.amai-xp-card {
    background: #fff;
    border: 1px solid #CFD9DE;
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amai-xp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.amai-xp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #CFD9DE;
}

.amai-xp-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.amai-xp-display-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F1419;
}

.amai-xp-handle,
.amai-xp-dot,
.amai-xp-time {
    font-size: 13px;
    color: #536471;
}

.amai-xp-copy {
    font-size: 14px;
    color: #0F1419;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 10px;
}

.amai-xp-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background: #CFD9DE;
    margin-bottom: 10px;
}

.amai-xp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amai-xp-actions {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.amai-xp-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #536471;
    cursor: default;
}
