@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --ink: #17151d;
    --muted: #706b79;
    --line: #e9e5ed;
    --paper: #ffffff;
    --canvas: #f6f4f8;
    --purple: #7557e8;
    --purple-dark: #5a3dcc;
    --purple-soft: #eee9ff;
    --orange: #eb8d3d;
    --green: #2f9b70;
    --red: #dc5e65;
    --shadow: 0 18px 50px rgba(41, 31, 63, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { font-family: "DM Sans", system-ui, sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px 20px; background: #1d1825; color: #d8d1df; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; color: white; font: 800 17px/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.brand small { display: block; margin-top: 3px; color: #938a9e; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: linear-gradient(135deg, #8d71fb, #6542dc); display: flex; align-items: end; gap: 3px; box-shadow: 0 8px 24px rgba(117,87,232,.28); }
.brand-mark i { display: block; width: 5px; border-radius: 5px; background: #fff; transform: rotate(18deg); }
.brand-mark i:nth-child(1) { height: 10px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 14px; opacity: .85; }

.main-nav { margin-top: 50px; }
.nav-label { margin: 0 12px 12px; color: #716779; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a { display: flex; align-items: center; gap: 13px; margin-bottom: 5px; padding: 11px 13px; border-radius: 11px; color: #a9a0b1; text-decoration: none; font-size: 14px; font-weight: 600; transition: .18s ease; }
.main-nav a:hover { color: white; background: rgba(255,255,255,.055); }
.main-nav a.active { color: white; background: rgba(117,87,232,.2); box-shadow: inset 3px 0 #8e73fa; }
.nav-icon { width: 22px; color: #a58ef6; font-size: 18px; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip > span:last-child { min-width: 0; }
.user-chip strong, .user-chip small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { color: #f5f0f7; font-size: 13px; }
.user-chip small { margin-top: 2px; color: #7f7487; font-size: 11px; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #5f41cd; background: #ded5ff; font-weight: 800; }
.link-button { appearance: none; padding: 0; border: 0; background: none; color: var(--purple); cursor: pointer; font-size: 12px; font-weight: 700; }
.sidebar-footer .link-button { margin: 13px 0 0 48px; color: #7f7487; }
.link-button.danger { color: var(--red); }

.main-content { min-width: 0; }
.topbar { height: 104px; padding: 22px clamp(24px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(246,244,248,.88); border-bottom: 1px solid rgba(225,220,229,.9); backdrop-filter: blur(14px); }
.topbar h1 { margin: 2px 0 0; font-size: 24px; }
.eyebrow { margin: 0 0 5px; color: #918a98; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.accent { color: var(--purple); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.page-content { padding: 34px clamp(24px, 4vw, 58px) 70px; }

.button { min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); box-shadow: 0 8px 20px rgba(104,73,210,.2); }
.button-primary:hover { box-shadow: 0 11px 25px rgba(104,73,210,.28); }
.button-quiet { color: #5a5164; background: white; border-color: var(--line); box-shadow: 0 3px 10px rgba(35,24,54,.04); }
.button-wide { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.flash { margin: 20px clamp(24px, 4vw, 58px) -8px; padding: 13px 16px; border: 1px solid; border-radius: 12px; display: flex; align-items: center; gap: 11px; font-size: 13px; }
.flash > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.flash p { flex: 1; margin: 0; }
.flash button { border: 0; background: transparent; cursor: pointer; font-size: 20px; opacity: .55; }
.flash-success { color: #236d51; background: #e9f8f1; border-color: #c6eadb; }
.flash-success > span { color: white; background: var(--green); }
.flash-error { color: #9f3f47; background: #fff0f1; border-color: #f3cdd0; }
.flash-error > span { color: white; background: var(--red); }

.welcome-row, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.welcome-row h2, .section-heading h2, .composer-heading h2 { max-width: 720px; margin-bottom: 8px; font-size: clamp(23px, 2.2vw, 31px); }
.welcome-row p:last-child, .section-heading p:last-child, .composer-heading p:last-child { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.split-heading { align-items: center; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { position: relative; min-height: 130px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: flex; align-items: center; gap: 15px; box-shadow: 0 6px 24px rgba(42,33,54,.04); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -24px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: currentColor; opacity: .045; }
.stat-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; font-weight: 800; background: currentColor; color: inherit; box-shadow: inset 0 0 0 30px rgba(255,255,255,.86); }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-card strong { margin-top: 5px; color: var(--ink); font: 800 28px/1 "Manrope"; }
.stat-card em { position: absolute; top: 17px; right: 17px; padding: 3px 7px; border-radius: 10px; background: currentColor; color: white; font-size: 9px; font-style: normal; font-weight: 800; }
.tone-purple { color: var(--purple); }.tone-orange { color: var(--orange); }.tone-green { color: var(--green); }.tone-red { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 32px rgba(42,33,54,.045); }
.panel-header { min-height: 78px; padding: 21px 24px; border-bottom: 1px solid #efecf1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-header h3 { margin: 0; font-size: 17px; }
.panel-header a { color: var(--purple); font-size: 12px; font-weight: 800; text-decoration: none; }
.schedule-list { padding: 5px 24px 12px; }
.schedule-list article { padding: 15px 0; border-bottom: 1px solid #f0edf2; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; }
.schedule-list article:last-child { border: 0; }
.schedule-list time { width: 45px; height: 48px; border-radius: 11px; background: var(--purple-soft); display: grid; place-content: center; text-align: center; }
.schedule-list time strong, .schedule-list time small { display: block; }
.schedule-list time strong { color: #5d42c8; font: 800 16px/1.1 "Manrope"; }
.schedule-list time small { margin-top: 3px; color: #8b79cc; font-size: 8px; font-weight: 800; }
.schedule-list h4 { margin: 0 0 4px; font-size: 13px; }
.schedule-list p { margin: 0; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge-scheduled, .badge-queued, .badge-pending { color: #704fc9; background: #eee9ff; }
.badge-published, .badge-connected, .badge-done { color: #237657; background: #e5f6ee; }
.badge-publishing, .badge-processing { color: #b16525; background: #fff0df; }
.badge-failed, .badge-partially_failed, .badge-disconnected { color: #b34950; background: #fde9ea; }
.activity-list { padding: 12px 24px 20px; }
.activity-list article { position: relative; padding: 10px 0 10px 22px; display: flex; }
.activity-list article:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 27px; bottom: -10px; width: 1px; background: #e8e2ec; }
.activity-dot { position: absolute; left: 0; top: 15px; width: 11px; height: 11px; border: 3px solid #d9cff8; border-radius: 50%; background: var(--purple); }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { font-size: 12px; }
.activity-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.empty-state { min-height: 310px; padding: 36px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state > span { width: 55px; height: 55px; margin-bottom: 12px; border-radius: 17px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-size: 23px; font-weight: 800; }
.empty-state h4 { margin-bottom: 7px; }
.empty-state p { max-width: 370px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.empty-state.compact { min-height: 220px; }.empty-state.full-page { min-height: 70vh; }
.mini-empty { min-height: 180px; padding: 25px; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 12px; }
.mini-empty span { font-size: 25px; color: #b7a8de; }.mini-empty a { color: var(--purple); font-weight: 700; }

.provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.provider-card { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; display: flex; flex-direction: column; align-items: flex-start; box-shadow: 0 5px 18px rgba(45,32,59,.035); }
.provider-card > div { flex: 1; }
.provider-card h3 { margin: 13px 0 5px; font-size: 14px; }
.provider-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.provider-card .button { width: 100%; min-height: 35px; padding: 7px 10px; }
.provider-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: white; background: #777; font-weight: 800; }
.provider-facebook_page .provider-logo, .network-facebook_page { background: #1877f2; }
.provider-instagram .provider-logo, .provider-instagram_standalone .provider-logo, .network-instagram, .network-instagram_standalone { background: linear-gradient(135deg, #7b31c6, #e7477d, #f4a52d); }
.provider-linkedin .provider-logo, .provider-linkedin_page .provider-logo, .network-linkedin, .network-linkedin_page { background: #0a66c2; }
.provider-youtube .provider-logo, .network-youtube { background: #f00; }
.provider-gbp .provider-logo, .network-gbp { background: #4285f4; }
.provider-threads .provider-logo, .network-threads { background: #111; }
.provider-pinterest .provider-logo, .network-pinterest { background: #e60023; }
.provider-tiktok .provider-logo, .network-tiktok { background: linear-gradient(135deg, #25f4ee, #111 45%, #fe2c55); }
.provider-twitter .provider-logo, .network-twitter { background: #111; }
.provider-logo.mini { width: 32px; height: 32px; border-radius: 9px; background: var(--purple); font-size: 11px; }
.table-panel { overflow: hidden; }
.count-pill { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 15px; display: grid; place-items: center; color: #5d42c8; background: var(--purple-soft); font-size: 11px; font-weight: 800; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 22px; color: #928b98; background: #faf9fb; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 15px 22px; border-top: 1px solid #f0edf2; color: #514b58; font-size: 12px; }
.account-cell, .network-label { display: flex; align-items: center; gap: 10px; }
.account-cell img { width: 37px; height: 37px; border-radius: 50%; object-fit: cover; }
.account-cell strong, .account-cell small, .content-cell strong, .content-cell small { display: block; }
.account-cell strong, .content-cell strong { color: var(--ink); font-size: 12px; }
.account-cell small, .content-cell small, .cell-note { margin-top: 3px; color: #968f9d; font-size: 10px; }
.network-dot { width: 8px; height: 8px; border-radius: 50%; }
.align-right { text-align: right; }
.content-cell { max-width: 440px; }.error-note { display: block; margin-top: 5px; color: var(--red); font-size: 9px; }

.composer-heading { margin-bottom: 24px; }.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); gap: 20px; align-items: start; }
.composer-main { padding: 25px; }
.field-group > label, .plain-label, .two-fields label { display: block; margin-bottom: 9px; color: #4b4551; font-size: 12px; font-weight: 800; }
.two-fields label small { color: #aaa2ae; font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid #ded9e3; border-radius: 10px; outline: none; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
input { height: 43px; margin-top: 7px; padding: 0 13px; }
select { height: 43px; margin-top: 7px; padding: 0 13px; }
textarea { padding: 15px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: #967ef0; box-shadow: 0 0 0 3px rgba(117,87,232,.11); }
.textarea-wrap { position: relative; }.textarea-wrap textarea { padding-bottom: 34px; }
.character-count { position: absolute; right: 12px; bottom: 10px; color: #aaa3ae; font-size: 9px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.upload-zone { position: relative; margin-top: 16px; border: 1px dashed #cfc6da; border-radius: 13px; background: #faf9fc; }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone label { min-height: 110px; padding: 18px; display: grid; place-items: center; align-content: center; cursor: pointer; text-align: center; }
.upload-zone label > span { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 9px; display: grid; place-items: center; color: #6047c9; background: #e9e2ff; font-weight: 800; }
.upload-zone label strong { font-size: 11px; }.upload-zone label small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.upload-zone > p { margin: -8px 15px 12px; color: var(--purple); text-align: center; font-size: 10px; }
.upload-zone.disabled { opacity: .45; pointer-events: none; }
.composer-side { display: grid; gap: 14px; }.settings-card { overflow: hidden; }
.settings-card > header { padding: 17px 19px; border-bottom: 1px solid #efecf1; display: flex; gap: 10px; align-items: center; }
.settings-card > header > span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-weight: 800; }
.settings-card h3 { margin: 0; font-size: 13px; }.settings-card header p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.account-picker { padding: 8px 12px 12px; max-height: 260px; overflow-y: auto; }
.account-picker label { position: relative; padding: 8px; border-radius: 9px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.account-picker label:hover { background: #f8f6fa; }.account-picker input { position: absolute; opacity: 0; }
.picker-check { width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid #d6cfdd; border-radius: 6px; display: grid; place-items: center; color: transparent; font-size: 10px; }
.account-picker input:checked + .picker-check { color: white; border-color: var(--purple); background: var(--purple); }
.account-picker strong, .account-picker small { display: block; }.account-picker strong { font-size: 11px; }.account-picker small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.plain-label { padding: 16px 19px 0; }.timezone-note { margin: 6px 19px 17px; color: #9a929f; font-size: 9px; }
.recurrence-select-label { padding-top: 5px; }.recurrence-options { margin: 12px 19px 4px; padding: 14px; border: 1px solid #e2dced; border-radius: 11px; background: #faf8fd; }.recurrence-options > label, .recurrence-inline-fields label { color: #554e5b; font-size: 9px; font-weight: 800; }.recurrence-inline-fields { display: grid; grid-template-columns: .65fr 1.35fr; gap: 10px; }.recurrence-options > p { margin: 11px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.composer-submit { min-height: 48px; }.submit-note { margin: -4px 15px 0; color: #9a929f; text-align: center; font-size: 9px; line-height: 1.5; }

.settings-grid { display: grid; grid-template-columns: .8fr 1.5fr; gap: 20px; margin-bottom: 20px; }
.config-list { padding: 10px 24px 20px; }.config-list > div { padding: 13px 0; border-bottom: 1px solid #f0edf2; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; }
.config-list > div:last-child { border: 0; }.config-list strong { font-size: 12px; }.config-list em, .config-list a { color: var(--muted); font-size: 10px; font-style: normal; text-decoration: none; }.config-list a:hover { color: var(--purple); }
.status-light { width: 8px; height: 8px; border-radius: 50%; }.status-light.on { background: var(--green); box-shadow: 0 0 0 4px #e2f4ec; }.status-light.off { background: var(--red); box-shadow: 0 0 0 4px #fde9ea; }
.callback-list { padding: 8px 22px 20px; }.callback-list label { padding: 11px 0; border-bottom: 1px solid #f0edf2; display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 12px; }
.callback-list label:last-child { border: 0; }.callback-list span { font-size: 11px; font-weight: 700; }.callback-list code { overflow: hidden; color: #625a69; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.callback-list button { border: 0; background: transparent; color: var(--purple); cursor: pointer; font-size: 10px; font-weight: 800; }
.callback-state { margin-left: 5px; padding: 2px 5px; border-radius: 8px; font-size: 7px; letter-spacing: .04em; text-transform: uppercase; }
.callback-state.ready { color: #237657; background: #e5f6ee; }.callback-state.reserved { color: #9b642e; background: #fff0df; }
.notice-card { padding: 20px 23px; border: 1px solid #d8cef7; border-radius: 15px; background: #f1edff; display: flex; gap: 15px; }
.notice-card > span { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--purple); font: 800 13px "Manrope"; }
.notice-card h3 { margin: 1px 0 5px; font-size: 13px; }.notice-card p { margin: 0; color: #655b76; font-size: 11px; line-height: 1.6; }
.users-grid { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.6fr); gap: 20px; }.compact-form { padding: 8px 23px 24px; }.compact-form label small { color: var(--muted); font-weight: 500; }.recurrence-actions { min-width: 150px; }.recurrence-actions form { display: inline; }.recurrence-actions form + form { margin-left: 8px; }

.service-credentials { margin-bottom: 20px; overflow: hidden; scroll-margin-top: 20px; }
.service-credentials-heading { align-items: center; }.service-credentials-heading > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.service-credentials-heading code, .service-settings-footer code { color: #5d42c8; }
.secure-pill { padding: 7px 10px; border: 1px solid #c9e8da; border-radius: 20px; color: #237657; background: #edf9f3; font-size: 9px; font-weight: 800; }
.settings-inline-feedback { margin: 16px 23px 0; padding: 12px 14px; border: 1px solid; border-radius: 11px; display: flex; align-items: center; gap: 9px; font-size: 10px; }.settings-inline-feedback strong { flex: 0 0 auto; }.settings-inline-feedback.success { border-color: #bfe5d4; color: #236d51; background: #e9f8f1; }.settings-inline-feedback.error { border-color: #efc7ca; color: #92424a; background: #fff0f1; }.settings-inline-feedback a { color: inherit; font-weight: 800; }
.service-settings-form { padding: 0; }.service-editor-list { border-top: 1px solid var(--line); }
.service-editor { scroll-margin-top: 20px; background: white; }.service-editor + .service-editor { border-top: 1px solid var(--line); }
.service-editor summary { min-height: 70px; padding: 14px 23px; display: grid; grid-template-columns: 10px minmax(190px, 1fr) auto 18px; align-items: center; gap: 13px; cursor: pointer; list-style: none; }
.service-editor summary::-webkit-details-marker { display: none; }.service-editor summary:hover { background: #fbfafc; }
.service-editor-title strong, .service-editor-title small { display: block; }.service-editor-title strong { font-size: 12px; }.service-editor-title small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.service-editor-state { padding: 5px 8px; border-radius: 12px; color: #716a77; background: #f4f1f6; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.service-editor-chevron { color: #998fa2; font-size: 17px; transition: transform .18s; }.service-editor[open] .service-editor-chevron { transform: rotate(180deg); }
.service-editor-body { padding: 5px 23px 22px 46px; background: #fbfafc; }
.credential-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.credential-field { color: #4b4551; font-size: 11px; font-weight: 800; }.credential-field > span { display: flex; align-items: center; gap: 7px; }.credential-field > span small { padding: 2px 5px; border-radius: 7px; color: #7058c7; background: #eee9ff; font-size: 7px; text-transform: uppercase; }
.credential-field .credential-input-wrap { position: relative; display: block; }.credential-input-wrap input { padding-right: 68px; }.credential-input-wrap button { position: absolute; right: 8px; top: 15px; padding: 5px; border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }
.credential-field > small { display: block; min-height: 28px; margin-top: 6px; color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.45; }
.field-source { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 7px; font-size: 7px; font-style: normal; }.field-source.stored { color: #237657; background: #e5f6ee; }.field-source.env { color: #8b5e21; background: #fff0d9; }.field-source.default { color: #6e6574; background: #eeeaf0; }
.clear-service { width: max-content; max-width: 100%; margin-top: 13px; display: flex; align-items: center; gap: 8px; color: #8a6266; cursor: pointer; font-size: 9px; }.clear-service input { width: 15px; height: 15px; margin: 0; }
.service-settings-footer { padding: 18px 23px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; background: white; }.service-settings-footer p { max-width: 650px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.service-settings-footer .button { flex: 0 0 auto; }
.service-settings-footer .button:disabled { cursor: not-allowed; opacity: .45; }

.auth-page { min-height: 100vh; background: #18131f; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(480px, .85fr); }
.auth-intro { position: relative; padding: 56px clamp(40px, 7vw, 110px); color: white; background: radial-gradient(circle at 80% 10%, rgba(129,93,232,.32), transparent 37%), linear-gradient(145deg, #1c1625, #2e203e); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-intro::after { content: ""; position: absolute; right: -100px; bottom: -100px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.auth-intro h1 { max-width: 620px; margin: 0 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; }
.auth-intro > div > p:last-child { max-width: 520px; color: #bcb3c5; line-height: 1.7; }
.auth-proof { width: max-content; padding: 10px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 25px; background: rgba(255,255,255,.045); color: #c8bfce; font-size: 11px; }
.auth-proof span { color: #aa91ff; }
.auth-card-wrap { padding: 40px; background: #f8f6fa; display: grid; place-items: center; align-content: center; }
.auth-card-wrap .flash { width: min(430px, 100%); margin: 0 0 14px; }
.auth-card { width: min(430px, 100%); padding: clamp(28px, 4vw, 45px); border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 8px; font-size: 27px; }.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-card .muted code { padding: 2px 5px; border-radius: 5px; color: #5d42c8; background: var(--purple-soft); }
.install-card { width: min(520px, 100%); }
.upgrade-card { width: min(590px, 100%); }
.stack-form label small { color: #938b99; font-weight: 500; }
.migration-summary { margin: 24px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.migration-summary > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf9fc; text-align: center; }
.migration-summary strong, .migration-summary span { display: block; }
.migration-summary strong { color: var(--purple); font: 800 24px/1 "Manrope"; }
.migration-summary span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.migration-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.migration-list > div { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; }
.migration-list > div:last-child { border-bottom: 0; }
.migration-list code { min-width: 0; overflow: hidden; color: #514b58; text-overflow: ellipsis; font-size: 10px; white-space: nowrap; }
.migration-list small { color: var(--muted); font-size: 9px; }
.upgrade-run-form { margin-top: 18px; }
.confirmation-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600 !important; line-height: 1.5; }
.confirmation-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
.up-to-date { margin-top: 16px; padding: 13px; border: 1px solid #c6eadb; border-radius: 12px; display: flex; align-items: center; gap: 11px; color: #236d51; background: #e9f8f1; }
.up-to-date > span { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); }
.up-to-date p { margin: 0; font-size: 11px; line-height: 1.45; }
.upgrade-exit { display: block; margin-top: 17px; color: var(--purple); text-align: center; font-size: 11px; font-weight: 700; }
.inline-error { margin-top: 20px; padding: 14px; border: 1px solid #f3cdd0; border-radius: 12px; color: #9f3f47; background: #fff0f1; }
.inline-error p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.stack-form { display: grid; gap: 17px; margin-top: 25px; }.stack-form label { color: #4c4552; font-size: 11px; font-weight: 800; }.stack-form .button { margin-top: 5px; }

.public-page { min-height: 100vh; color: var(--ink); background: #fbfafc; }
.public-header { min-height: 82px; padding: 16px clamp(22px, 6vw, 92px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: rgba(255,255,255,.94); }
.public-header .brand strong { color: var(--ink); }.public-header .brand small { color: #857e8c; }
.public-header nav, .public-footer nav { display: flex; align-items: center; gap: 22px; }
.public-header nav > a:not(.button), .public-footer a { color: #625b68; text-decoration: none; font-size: 12px; font-weight: 700; }
.public-hero { min-height: 650px; padding: 88px clamp(24px, 8vw, 126px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .65fr); align-items: center; gap: clamp(50px, 8vw, 130px); background: radial-gradient(circle at 80% 20%, rgba(117,87,232,.12), transparent 29%), linear-gradient(180deg, #fff, #f7f4fb); }
.public-hero-copy h1 { max-width: 810px; margin: 12px 0 22px; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.02; }
.public-hero-copy > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.public-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.public-product-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 28px 75px rgba(50,35,74,.12); }
.public-product-card h2 { margin: 3px 0 22px; font-size: 22px; }
.public-product-row { padding: 15px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; }
.public-product-row > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: currentColor; box-shadow: inset 0 0 0 28px rgba(255,255,255,.88); font-weight: 800; }
.public-product-row strong, .public-product-row small { display: block; }.public-product-row strong { font-size: 12px; }.public-product-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }.public-product-row b { font: 800 20px "Manrope"; }
.public-features { padding: 95px clamp(24px, 8vw, 126px); background: white; }
.public-section-heading { max-width: 700px; margin-bottom: 42px; }.public-section-heading h2 { font-size: clamp(30px, 4vw, 48px); }
.public-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.public-feature-grid article { min-height: 240px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: #fbfafc; }
.public-feature-grid article > span { color: var(--purple); font: 800 11px "Manrope"; }.public-feature-grid h3 { margin: 38px 0 10px; font-size: 19px; }.public-feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.public-trust { padding: 65px clamp(24px, 8vw, 126px); display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 60px; color: white; background: #201829; }
.public-trust h2 { margin: 6px 0 0; font-size: 31px; }.public-trust > p { margin: 0; color: #c2b8ca; line-height: 1.8; }
.public-footer { padding: 38px clamp(24px, 8vw, 126px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; background: white; }
.public-footer p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.legal-document { width: min(920px, calc(100% - 40px)); margin: 70px auto 100px; }
.legal-document > header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }.legal-document h1 { margin: 10px 0; font-size: clamp(38px, 6vw, 64px); }.legal-document header > p:last-child { color: var(--muted); font-size: 12px; }
.legal-document section { margin: 0 0 32px; }.legal-document section h2 { margin-bottom: 10px; font-size: 19px; }.legal-document section p { color: #5f5965; line-height: 1.8; }.legal-document a { color: var(--purple-dark); }

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .provider-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; left: -280px; width: 260px; transition: left .2s ease; box-shadow: 20px 0 60px rgba(23,17,31,.3); }
    .sidebar.open { left: 0; }
    .menu-toggle { display: block; }
    .topbar { height: 84px; padding: 16px 22px; }.topbar > div { flex: 1; }.topbar .eyebrow { display: none; }.topbar h1 { font-size: 20px; }
    .page-content { padding: 25px 20px 50px; }
    .flash { margin-left: 20px; margin-right: 20px; }
    .dashboard-grid, .composer-grid { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }.auth-intro { min-height: 380px; padding: 35px; }.auth-intro .brand { margin-bottom: 80px; }.auth-proof { display: none; }.auth-card-wrap { min-height: 520px; padding: 25px; }
    .public-hero { min-height: 0; grid-template-columns: 1fr; }.public-product-card { max-width: 540px; }.public-feature-grid { grid-template-columns: 1fr; }.public-feature-grid article { min-height: 190px; }.public-trust { grid-template-columns: 1fr; gap: 20px; }
    .credential-fields { grid-template-columns: 1fr; }.service-settings-footer { align-items: stretch; flex-direction: column; }.service-settings-footer .button { width: 100%; }
    .users-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .topbar .button { width: 43px; padding: 0; font-size: 0; }.topbar .button span { font-size: 20px; }
    .welcome-row, .section-heading { display: block; }.welcome-row .button, .section-heading .button { margin-top: 18px; }
    .stat-grid, .provider-grid, .two-fields { grid-template-columns: 1fr; }
    .stat-card { min-height: 105px; }
    .schedule-list { padding-left: 16px; padding-right: 16px; }.schedule-list article { grid-template-columns: 45px 1fr; }.schedule-list .badge { grid-column: 2; }
    .callback-list label { grid-template-columns: 1fr auto; }.callback-list code { grid-column: 1 / -1; grid-row: 2; }
    .auth-intro h1 { font-size: 34px; }.auth-intro { min-height: 330px; }.auth-intro .brand { margin-bottom: 55px; }
    .public-header nav > a:not(.button) { display: none; }.public-header { padding: 14px 18px; }.public-header .brand small { display: none; }.public-hero { padding: 60px 22px; }.public-hero-copy h1 { font-size: 40px; }.public-features, .public-trust { padding: 60px 22px; }.public-footer { display: block; }.public-footer nav { margin-top: 25px; align-items: flex-start; flex-direction: column; gap: 12px; }
    .service-editor summary { grid-template-columns: 10px 1fr 18px; padding: 14px 17px; }.service-editor-state { display: none; }.service-editor-body { padding: 5px 17px 20px 40px; }.secure-pill { display: none; }
}

/* Comptes sociaux et éditeur enrichi */
[hidden] { display: none !important; }
.account-avatar { position: relative; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: white; background: #7965c8; font-size: 11px; font-weight: 800; }
.account-avatar > span { position: relative; z-index: 0; }
.account-avatar > img { position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important; border-radius: inherit; object-fit: cover; }
.account-avatar > i { position: absolute; right: -4px; bottom: -4px; z-index: 2; min-width: 17px; height: 17px; padding: 0 3px; border: 2px solid white; border-radius: 7px; display: grid; place-items: center; color: white; background: #6d58bd; font-size: 7px; font-style: normal; line-height: 1; box-shadow: 0 2px 6px rgba(27,20,38,.18); }
.account-avatar.provider-facebook_page, .account-avatar.provider-facebook_page > i { background: #1877f2; }
.account-avatar.provider-instagram, .account-avatar.provider-instagram_standalone, .account-avatar.provider-instagram > i, .account-avatar.provider-instagram_standalone > i { background: linear-gradient(135deg, #7b31c6, #e7477d, #f4a52d); }
.account-avatar.provider-linkedin, .account-avatar.provider-linkedin_page, .account-avatar.provider-linkedin > i, .account-avatar.provider-linkedin_page > i { background: #0a66c2; }
.account-avatar.provider-youtube, .account-avatar.provider-youtube > i { background: #f00; }
.account-avatar.provider-gbp, .account-avatar.provider-gbp > i { background: #4285f4; }
.account-avatar.provider-threads, .account-avatar.provider-threads > i, .account-avatar.provider-twitter, .account-avatar.provider-twitter > i { background: #111; }
.account-avatar.provider-pinterest, .account-avatar.provider-pinterest > i { background: #e60023; }
.account-avatar.provider-tiktok, .account-avatar.provider-tiktok > i { background: linear-gradient(135deg, #25f4ee, #111 45%, #fe2c55); }
.picker-account-avatar { width: 34px; height: 34px; border-radius: 10px; }
.composer-workspace { min-width: 0; display: grid; gap: 18px; }
.hashtag-assistant { margin-top: 14px; padding: 13px; border: 1px solid #e6e0ed; border-radius: 12px; background: #fbfaff; }
.hashtag-assistant-heading, .hashtag-assistant-heading > span { display: flex; align-items: center; gap: 9px; }
.hashtag-assistant-heading { justify-content: space-between; }
.hashtag-assistant-heading b { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-size: 13px; }
.hashtag-assistant-heading strong, .hashtag-assistant-heading small { display: block; }
.hashtag-assistant-heading strong { font-size: 10px; }.hashtag-assistant-heading small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.hashtag-assistant-heading > a { color: var(--purple); font-size: 9px; font-weight: 800; text-decoration: none; }
.hashtag-quick-list { margin-top: 10px; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.hashtag-quick-list button { min-width: max-content; padding: 7px 9px; border: 1px solid #e2dbed; border-radius: 9px; color: #554c5e; background: white; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 9px; font-weight: 800; }
.hashtag-quick-list button:hover { border-color: #a993ef; color: var(--purple-dark); background: #f7f4ff; }.hashtag-quick-list button > span { color: var(--purple); }.hashtag-quick-list button small { color: #a295aa; }
.hashtag-assistant-empty { margin: 10px 0 0; color: var(--muted); font-size: 9px; }.hashtag-assistant-empty a { color: var(--purple); font-weight: 700; }

.preview-studio { min-width: 0; overflow: hidden; }
.preview-studio-header { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.preview-studio-header h3 { margin: 0; font-size: 14px; }.preview-studio-header > span { padding: 4px 8px; border-radius: 20px; color: #786c80; background: #f1eef3; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.preview-empty { min-height: 260px; padding: 35px; display: grid; place-items: center; align-content: center; text-align: center; }
.preview-empty > span { width: 45px; height: 45px; margin-bottom: 10px; border-radius: 14px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-size: 19px; }.preview-empty strong { font-size: 12px; }.preview-empty p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.preview-feed { padding: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(310px, .72fr); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; background: #f8f6fa; }
.social-preview-card { min-height: 330px; border: 1px solid #e1dce6; border-radius: 15px; display: flex; flex-direction: column; scroll-snap-align: start; overflow: hidden; color: #26212b; background: white; box-shadow: 0 8px 25px rgba(37,27,51,.055); }
.social-preview-header { order: 1; padding: 13px 14px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 9px; }.preview-avatar { width: 37px; height: 37px; border-radius: 50%; }.social-preview-header strong, .social-preview-header small { display: block; }.social-preview-header strong { font-size: 10px; }.social-preview-header small { margin-top: 2px; color: #827a87; font-size: 8px; }.preview-network-mark { min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; color: white; background: #39323f; font-size: 8px; }
.preview-facebook_page .preview-network-mark { background: #1877f2; }.preview-instagram .preview-network-mark, .preview-instagram_standalone .preview-network-mark { background: linear-gradient(135deg, #7b31c6, #e7477d, #f4a52d); }.preview-linkedin .preview-network-mark, .preview-linkedin_page .preview-network-mark { background: #0a66c2; }.preview-youtube .preview-network-mark { background: #f00; }.preview-pinterest .preview-network-mark { background: #e60023; }.preview-tiktok .preview-network-mark { background: #111; }
.preview-copy { order: 2; padding: 4px 14px 13px; }.preview-copy p { min-height: 48px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; line-height: 1.5; }.preview-copy p.is-placeholder { color: #a49da9; }.preview-title { display: block; margin-bottom: 6px; font-size: 12px; }.preview-copy a { display: block; margin-top: 7px; overflow: hidden; color: #5e4cc4; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.preview-media { order: 3; min-height: 185px; margin-top: auto; background: #ede9f0; }.preview-media img, .preview-media video { width: 100%; height: 210px; display: block; object-fit: cover; }.social-preview-card > footer { order: 4; min-height: 43px; padding: 10px 14px; border-top: 1px solid #eeeaf0; display: flex; align-items: center; gap: 15px; color: #655d6a; font-size: 15px; }.social-preview-card > footer small { margin-left: auto; color: #9e97a3; font-size: 7px; font-weight: 800; }
.preview-instagram .preview-media, .preview-instagram_standalone .preview-media { order: 2; margin-top: 0; }.preview-instagram .preview-copy, .preview-instagram_standalone .preview-copy { order: 3; padding-top: 12px; }.preview-instagram .preview-media img, .preview-instagram .preview-media video, .preview-instagram_standalone .preview-media img, .preview-instagram_standalone .preview-media video { height: 285px; aspect-ratio: 1; }.preview-twitter .social-preview-header, .preview-threads .social-preview-header { grid-template-columns: 39px 1fr auto; }.preview-twitter, .preview-threads { border-radius: 13px; }.preview-youtube .preview-media { order: 2; margin-top: 0; }.preview-youtube .preview-copy { order: 3; }

/* Bibliothèque de hashtags */
.hashtag-manager-grid { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.panel-symbol { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-weight: 800; }
.hashtag-form { padding: 22px; display: grid; gap: 17px; }.hashtag-form label, .hashtag-edit-form label { color: #4b4551; font-size: 10px; font-weight: 800; }.hashtag-form label small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.5; }
.hashtag-library { overflow: hidden; }.hashtag-set-list { padding: 10px 20px 20px; }.hashtag-set-card { border-bottom: 1px solid #eeeaf0; }.hashtag-set-card:last-child { border-bottom: 0; }.hashtag-set-card summary { padding: 14px 4px; display: grid; grid-template-columns: 35px minmax(0, 1fr) 20px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }.hashtag-set-card summary::-webkit-details-marker { display: none; }.hashtag-set-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-weight: 800; }.hashtag-set-card summary strong, .hashtag-set-card summary small { display: block; }.hashtag-set-card summary strong { font-size: 11px; }.hashtag-set-card summary small { margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }.details-chevron { color: #a39aa9; transition: transform .18s; }.hashtag-set-card[open] .details-chevron { transform: rotate(180deg); }
.hashtag-edit-form { margin: 0 4px 9px 49px; padding: 14px; border: 1px solid #e7e1eb; border-radius: 11px; display: grid; gap: 11px; background: #faf9fc; }.hashtag-card-actions { display: flex; justify-content: flex-end; }.hashtag-card-actions .button { min-height: 34px; padding: 7px 11px; font-size: 9px; }.hashtag-delete-form { margin: 0 4px 15px 49px; text-align: right; }

/* Calendrier éditorial */
.calendar-heading { align-items: center; }.calendar-heading-actions { display: flex; align-items: center; gap: 7px; }.calendar-heading-actions .button { min-width: 42px; }.calendar-current-month { min-width: 150px !important; }
.calendar-panel { overflow: hidden; }.calendar-summary { min-height: 65px; padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }.calendar-summary > div:first-child { display: flex; align-items: baseline; gap: 7px; }.calendar-summary strong { color: var(--purple); font: 800 22px "Manrope"; }.calendar-summary span { color: var(--muted); font-size: 9px; }.calendar-legend { display: flex; gap: 15px; }.calendar-legend > span { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; }.legend-dot.scheduled { background: var(--purple); }.legend-dot.published { background: var(--green); }.legend-dot.failed { background: var(--red); }
.calendar-scroll { overflow-x: auto; }.calendar-grid { min-width: 850px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }.calendar-weekdays { border-bottom: 1px solid var(--line); background: #faf9fb; }.calendar-weekdays div { padding: 9px 12px; color: #958e9b; text-align: center; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calendar-day { min-height: 145px; padding: 8px; border-right: 1px solid #eeeaf0; border-bottom: 1px solid #eeeaf0; background: white; }.calendar-day:nth-child(7n) { border-right: 0; }.calendar-day.outside-month { background: #fbfafc; }.calendar-day.outside-month > header, .calendar-day.outside-month .calendar-events { opacity: .42; }.calendar-day > header { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }.calendar-day > header time { width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; color: #716a77; font-size: 9px; font-weight: 800; }.calendar-day > header span { color: var(--purple); font-size: 7px; font-weight: 800; }.calendar-day.is-today > header time { color: white; background: var(--purple); }
.calendar-events { display: grid; gap: 5px; }.calendar-event { padding: 7px; border-left: 3px solid var(--purple); border-radius: 7px; background: #f4f0ff; overflow: hidden; }.calendar-event-published { border-color: var(--green); background: #edf8f3; }.calendar-event-failed, .calendar-event-partially_failed { border-color: var(--red); background: #fff0f1; }.calendar-event-publishing { border-color: var(--orange); background: #fff5e9; }.calendar-event-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }.calendar-event time { color: #786f7d; font-size: 7px; font-weight: 800; }.calendar-event strong { display: block; margin-top: 4px; overflow: hidden; font: 700 8px/1.35 "DM Sans"; text-overflow: ellipsis; white-space: nowrap; }.calendar-event > small { display: block; margin-top: 3px; color: #8d8492; font-size: 6px; text-transform: uppercase; }.calendar-account-stack { display: flex; flex-direction: row-reverse; justify-content: flex-start; }.mini-account-avatar { position: relative; width: 18px; height: 18px; margin-left: -5px; border: 1px solid white; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: white; background: #7562bd; font-size: 5px; font-style: normal; font-weight: 800; }.mini-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.calendar-event-recurring { border-color: #5e9fc7; background: #edf7fc; }

@media (max-width: 1000px) {
    .hashtag-manager-grid { grid-template-columns: 1fr; }
    .calendar-heading { align-items: flex-start; flex-direction: column; }.calendar-heading-actions { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 560px) {
    .preview-feed { grid-auto-columns: minmax(280px, 92%); padding: 12px; }
    .hashtag-edit-form, .hashtag-delete-form { margin-left: 4px; }
    .calendar-heading-actions .button { width: auto; font-size: 11px; padding: 8px 11px; }.calendar-heading-actions .button span { font-size: inherit; }.calendar-current-month { order: -1; width: 100% !important; }
    .calendar-summary { align-items: flex-start; flex-direction: column; }.calendar-legend { flex-wrap: wrap; }
}

/* Groupes de réseaux sociaux */
.account-group-picker { padding: 11px 12px 9px; border-bottom: 1px solid #efecf1; background: #fbfafc; }
.account-picker-subheading { padding: 0 4px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-picker-subheading strong { color: #756d7b; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.account-picker-subheading a { color: var(--purple); font-size: 8px; font-weight: 800; text-decoration: none; }
.individual-heading { padding: 11px 16px 0; }
.account-group-empty { margin: 0 4px 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.account-group-quick-list { max-height: 190px; display: grid; gap: 6px; overflow-y: auto; }
.account-group-quick-list button { width: 100%; min-height: 45px; padding: 7px 9px; border: 1px solid #e5dfeb; border-radius: 10px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 17px; align-items: center; gap: 7px; color: #574f5e; background: white; cursor: pointer; text-align: left; }
.account-group-quick-list button > span:first-child { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); font-size: 10px; }
.account-group-quick-list button strong, .account-group-quick-list button small { display: block; }
.account-group-quick-list button strong { font-size: 10px; }.account-group-quick-list button small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.account-group-quick-list button i { width: 17px; height: 17px; border: 1px solid #d8d0df; border-radius: 6px; display: grid; place-items: center; color: transparent; font-size: 8px; font-style: normal; }
.account-group-quick-list button:hover { border-color: #b8a8ed; background: #faf8ff; }
.account-group-quick-list button.active { border-color: #a995ee; color: var(--purple-dark); background: #f4f0ff; box-shadow: 0 0 0 2px rgba(117,87,232,.06); }
.account-group-quick-list button.active i { border-color: var(--purple); color: white; background: var(--purple); }
.account-group-quick-list button:disabled { cursor: not-allowed; opacity: .48; }
.settings-card > header p b { color: var(--purple); }

.social-group-manager-grid { display: grid; grid-template-columns: minmax(290px, .75fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.social-group-form { padding: 22px; display: grid; gap: 17px; }
.social-group-name { color: #4b4551; font-size: 10px; font-weight: 800; }
.social-group-accounts { min-width: 0; margin: 0; padding: 0; border: 0; }
.social-group-accounts legend { margin-bottom: 8px; color: #4b4551; font-size: 10px; font-weight: 800; }
.social-group-account-list { max-height: 330px; padding: 5px; border: 1px solid #e8e2ec; border-radius: 12px; display: grid; gap: 2px; overflow-y: auto; background: #fbfafc; }
.social-group-account-list.compact-list { max-height: 260px; }
.social-group-account-option { position: relative; padding: 8px; border-radius: 9px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.social-group-account-option:hover { background: white; }.social-group-account-option > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.social-group-account-option > input:checked + .picker-check { border-color: var(--purple); color: white; background: var(--purple); }
.social-group-account-option strong, .social-group-account-option small { display: block; }
.social-group-account-option strong { font-size: 10px; }.social-group-account-option small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.social-group-library { overflow: hidden; }.social-group-list { padding: 10px 20px 20px; }
.social-group-card { border-bottom: 1px solid #eeeaf0; }.social-group-card:last-child { border-bottom: 0; }
.social-group-card summary { padding: 14px 4px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; align-items: center; gap: 11px; cursor: pointer; list-style: none; }.social-group-card summary::-webkit-details-marker { display: none; }
.social-group-card summary strong, .social-group-card summary small { display: block; }.social-group-card summary strong { font-size: 11px; }.social-group-card summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.social-group-card[open] .details-chevron { transform: rotate(180deg); }
.social-group-stack { min-height: 36px; display: flex; align-items: center; }
.social-group-stack .account-avatar { width: 34px; height: 34px; margin-right: -13px; border: 2px solid white; border-radius: 50%; font-size: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(33,24,45,.12); }
.social-group-edit-form { margin: 0 4px 9px; padding: 15px; border: 1px solid #e7e1eb; border-radius: 11px; display: grid; gap: 12px; background: #faf9fc; }
.social-group-card-actions { display: flex; justify-content: flex-end; }.social-group-card-actions .button { min-height: 34px; padding: 7px 11px; font-size: 9px; }
.social-group-delete-form { margin: 0 4px 15px; text-align: right; }

@media (max-width: 1000px) {
    .social-group-manager-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .social-group-card summary { grid-template-columns: 62px minmax(0, 1fr) 18px; }
    .social-group-list { padding-left: 13px; padding-right: 13px; }
}

/* Parcours de création guidé */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.composer-heading-guided { margin-bottom: 20px; }
.composer-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.composer-steps { margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; list-style: none; }
.composer-steps li { display: flex; align-items: center; gap: 6px; color: #8b8491; font-size: 9px; font-weight: 800; }
.composer-steps li:not(:last-child)::after { content: ''; width: 18px; height: 1px; margin-left: 2px; background: #ddd6e4; }
.composer-steps span { width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; color: var(--purple-dark); background: var(--purple-soft); font-size: 9px; }
.composer-section-title { margin: -3px 0 20px; padding-bottom: 16px; border-bottom: 1px solid #eeeaf1; display: flex; align-items: center; gap: 10px; }
.composer-section-title > span { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--purple); font-size: 11px; font-weight: 800; }
.composer-section-title h3, .composer-section-title p { margin: 0; }.composer-section-title h3 { font-size: 13px; }.composer-section-title p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.composer-side { position: sticky; top: 18px; }
.settings-card > header > span { font-family: "Manrope", sans-serif; }
.account-select-toggle { padding: 0; border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }
.existing-media-note { margin-top: 16px; padding: 13px; border: 1px solid #e2dced; border-radius: 12px; display: flex; align-items: center; gap: 10px; background: #faf8fd; }
.existing-media-note > span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); }
.existing-media-note strong, .existing-media-note small { display: block; }.existing-media-note strong { font-size: 10px; }.existing-media-note small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.publish-mode-picker { margin: 0; padding: 15px 14px 12px; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.publish-mode-picker legend { width: 100%; margin-bottom: 8px; color: #4b4551; font-size: 10px; font-weight: 800; }
.publish-mode-picker label { position: relative; min-width: 0; cursor: pointer; }
.publish-mode-picker input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.publish-mode-picker label > span { min-height: 58px; padding: 9px 7px; border: 1px solid #e3dee7; border-radius: 10px; display: grid; align-content: center; text-align: center; background: white; transition: border .15s, background .15s, box-shadow .15s; }
.publish-mode-picker b, .publish-mode-picker small { display: block; }.publish-mode-picker b { font-size: 9px; }.publish-mode-picker small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.25; }
.publish-mode-picker input:checked + span { border-color: #9d89e9; color: var(--purple-dark); background: #f3efff; box-shadow: 0 0 0 2px rgba(117,87,232,.08); }
.publish-mode-picker input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.schedule-fields { padding: 5px 19px 2px; }
.schedule-fields .plain-label { padding: 8px 0 0; }
.schedule-shortcuts { margin: 7px 0 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.schedule-shortcuts button { padding: 6px 8px; border: 1px solid #ded7e5; border-radius: 8px; color: #62576c; background: white; cursor: pointer; font-size: 8px; font-weight: 700; }
.schedule-shortcuts button:hover { border-color: #ad9be9; color: var(--purple-dark); background: #f8f6ff; }
.schedule-summary { margin: 0; padding: 8px 10px; border-radius: 8px; color: #5d4d72; background: #f5f1ff; font-size: 8px; font-weight: 700; line-height: 1.4; }
.editing-schedule-banner { margin: 14px 19px 7px; padding: 11px; border: 1px solid #ddd5eb; border-radius: 10px; display: flex; align-items: center; gap: 9px; background: #faf8fd; }
.editing-schedule-banner > span { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); }
.editing-schedule-banner strong, .editing-schedule-banner small { display: block; }.editing-schedule-banner strong { font-size: 9px; }.editing-schedule-banner small { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.programming-card .recurrence-options { margin-top: 10px; }
.post-row-actions { min-width: 145px; text-align: right; white-space: nowrap; }
.post-row-actions a { display: inline-block; margin-left: 9px; color: var(--purple-dark); font-size: 9px; font-weight: 800; text-decoration: none; }
.post-row-actions a:hover { text-decoration: underline; }

/* Calendrier actionnable */
.legend-dot.recurring { background: #5e9fc7; }
.calendar-drag-hint { margin: 0; color: #776f7e; font-size: 9px; }.calendar-drag-hint span { color: var(--purple); font-weight: 800; }
.calendar-grid { min-width: 960px; }
.calendar-day { position: relative; transition: background .14s, box-shadow .14s; }
.calendar-day-heading { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.calendar-day > header .calendar-day-heading b { color: var(--purple); font-size: 7px; }
.calendar-day-heading a { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; color: #817589; text-decoration: none; font-size: 11px; font-weight: 800; opacity: 0; transition: opacity .15s, background .15s; }
.calendar-day:hover .calendar-day-heading a, .calendar-day-heading a:focus-visible { opacity: 1; }.calendar-day-heading a:hover { color: var(--purple); background: var(--purple-soft); }
.calendar-event { position: relative; overflow: visible; transition: opacity .15s, transform .15s, box-shadow .15s; }
.calendar-event.is-movable { cursor: grab; }.calendar-event.is-movable:active { cursor: grabbing; }.calendar-event.is-movable:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(59,43,80,.12); }
.calendar-event.is-dragging { opacity: .35; transform: scale(.97); }
.calendar-event.just-moved { animation: calendar-pulse 1.1s ease; }
.calendar-event-top { min-width: 0; }.calendar-account-stack { margin-left: auto; }
.calendar-event-menu { position: relative; z-index: 4; flex: 0 0 auto; }
.calendar-event-menu summary { width: 20px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: #766b7d; cursor: pointer; list-style: none; font-size: 8px; font-weight: 800; letter-spacing: -.08em; }
.calendar-event-menu summary::-webkit-details-marker { display: none; }.calendar-event-menu summary:hover { color: var(--purple); background: rgba(255,255,255,.7); }
.calendar-event-menu[open] { z-index: 15; }.calendar-event-menu[open] summary { color: var(--purple); background: white; }
.calendar-event-menu > div { position: absolute; top: 22px; right: 0; min-width: 105px; padding: 5px; border: 1px solid #e2dce7; border-radius: 9px; display: grid; gap: 2px; background: white; box-shadow: 0 10px 25px rgba(35,25,48,.18); }
.calendar-event-menu a { padding: 7px 8px; border-radius: 6px; color: #514758; text-decoration: none; white-space: nowrap; font-size: 8px; font-weight: 700; }.calendar-event-menu a:hover { color: var(--purple-dark); background: var(--purple-soft); }
.calendar-day.is-drop-target { z-index: 3; background: #f2edff; box-shadow: inset 0 0 0 2px var(--purple); }
.calendar-drop-label { position: absolute; inset: 34px 7px 7px; z-index: 10; border: 1px dashed #9b84e9; border-radius: 9px; display: none; place-items: center; color: var(--purple-dark); background: rgba(243,239,255,.92); pointer-events: none; font-size: 9px; font-weight: 800; }
.calendar-day.is-drop-target .calendar-drop-label { display: grid; }
.calendar-live { position: sticky; left: 50%; bottom: 12px; z-index: 20; width: max-content; max-width: calc(100% - 24px); margin: 0 auto 12px; padding: 9px 13px; border-radius: 10px; color: white; background: #2c2434; box-shadow: 0 8px 25px rgba(31,23,40,.22); font-size: 9px; font-weight: 700; }.calendar-live:empty { display: none; }
@keyframes calendar-pulse { 0%, 100% { box-shadow: none; } 35% { box-shadow: 0 0 0 4px rgba(117,87,232,.2); } }

@media (max-width: 1000px) {
    .composer-heading-row { align-items: flex-start; flex-direction: column; }
    .composer-side { position: static; }
    .calendar-summary { flex-wrap: wrap; }.calendar-drag-hint { order: 3; width: 100%; }
}

@media (max-width: 650px) {
    .composer-steps { width: 100%; justify-content: space-between; }.composer-steps li:not(:last-child)::after { width: 10px; }
    .publish-mode-picker { grid-template-columns: 1fr; }.publish-mode-picker label > span { min-height: 50px; text-align: left; padding: 9px 12px; }
    .calendar-day-heading a { opacity: 1; }
    .posts-table .post-row-actions { min-width: 125px; }
}
