/* Staff interface only. Presentation, print and advisor canvases keep their own theme. */
.staff-shell {
    --brand: #a51d2b; --brand-rgb: 165,29,43; --brand-dark: #851a26;
    --brand-darker: #6c1822; --brand-tint: #f7e9e7; --brand-tint-2: #eed5d0;
    --ink: #27282a; --ink-2: #59544e; --ink-3: #756e65; --ink-4: #8d8174;
    --surface: #fff; --surface-2: #f6f4ef; --surface-3: #eee7dc;
    --line: #e0d8cd; --line-2: #e8e0d6; --line-strong: #cbbfaf;
    --font-body: Outfit, sans-serif; --font-display: 'League Spartan', sans-serif;
    --font-sans: Outfit, sans-serif; --radius-card: 14px; --radius-btn: 8px;
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
    --shadow-sm: 0 2px 8px #5a3e1b05; --shadow-md: 0 8px 28px #5a3e1b08;
    --shadow-lg: 0 18px 54px #32251b18; --shadow-brand: none;
    background: var(--surface-2); color: var(--ink); font: 14px/1.55 var(--font-body);
}
.staff-shell :where(button,input,select,textarea) { font-family: var(--font-body); }
.staff-shell :where(h1,h2,h3,h4) { font-family: var(--font-display); letter-spacing: -.025em; }
.staff-shell :where(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.staff-shell .app-shell { --sidebar-w: 248px; background: var(--surface-2); }
.staff-shell .app-shell .maincol { background: var(--surface-2); }
.staff-shell .app-shell .page { max-width: 1480px; padding: 32px 40px 72px; }
.staff-shell .sidebar { background: #fffdf9; border-color: var(--line); }
.staff-shell .sidebar-brand { padding: 28px 26px 20px; }
.staff-shell .sidebar-brand .logo-k { display: none; }
.staff-shell .sidebar-brand .brand-title { color: var(--brand); font: 800 29px/1 var(--font-display); letter-spacing: -.025em; }
.staff-shell .sidebar-brand .sub { color: var(--ink-3); font: 400 11px/1.5 var(--font-body); margin-top: 8px; }
.staff-shell .sidebar nav { padding: 10px 15px; gap: 3px; }
.staff-shell .sidebar .section-label,.staff-shell .section-toggle { font-size: 9px; font-weight: 500; letter-spacing: .14em; color: #827362; padding-top: 24px; }
.staff-shell .sidebar .navitem { min-height: 42px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 400; }
.staff-shell .sidebar .navitem.active { background: var(--brand-tint); color: var(--brand); font-weight: 500; }
.staff-shell .sidebar .navitem:hover { background: var(--surface-3); }
.staff-shell .sidebar-user .card-inner { border-radius: 10px; padding: 9px; background: var(--surface-2); }
.staff-shell .avatar { background: var(--surface-3); color: var(--brand); }
.staff-shell .app-header { min-height: 76px; padding: 16px 32px; gap: 22px; border-color: var(--line); background: #fffdf9; }
.staff-header-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.staff-header-title .staff-kicker { font-size: 9px; color: var(--ink-3); letter-spacing: .12em; }
.staff-header-title strong { font: 500 14px/1.4 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-workspace-shortcuts { margin-left: auto; display: flex; align-items: center; gap: 23px; }
.staff-workspace-shortcuts a { font-size: 12px; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.staff-workspace-shortcuts a:hover { color: var(--brand); }
.staff-shell .app-header>.actions { margin-left: auto; }
.staff-shell .staff-skip { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-180%); padding: 10px 16px; color: #fff; background: var(--brand); border-radius: 7px; }
.staff-shell .staff-skip:focus { transform: none; }
.staff-shell .page-head { gap: 18px; margin-bottom: 26px; }
.staff-shell .page-head h1,.staff-shell .page-head .h1 { font: 700 clamp(30px,3vw,42px)/1.08 var(--font-display); letter-spacing: -.025em; }
.staff-shell .page-head p { font-size: 14px; line-height: 1.65; color: var(--ink-3); }
.staff-shell .eyebrow { font: 500 10px/1.5 var(--font-body); letter-spacing: .12em; color: var(--brand); }
.staff-shell .card { border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.staff-shell .card-hover:hover { box-shadow: var(--shadow-md); }
.staff-shell .btn { min-height: 42px; padding: 10px 16px; border-radius: 8px; font: 500 13px/1.3 var(--font-body); box-shadow: none; }
.staff-shell .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.staff-shell .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: none; }
.staff-shell .btn-ghost,.staff-shell .btn-outline { border: 1px solid var(--line); color: var(--ink-2); }
.staff-shell .btn-ghost:hover,.staff-shell .btn-outline:hover { background: var(--surface-3); border-color: var(--line-strong); }
.staff-shell .iconbtn { border-radius: 8px; box-shadow: none; }
.staff-shell :is(.input,.field-input,input[type=search],input[type=date],input[type=datetime-local],textarea,select):not([type=checkbox]):not([type=radio]) {
    border: 1px solid var(--line-strong); border-radius: 8px; background-color: #fffefb; color: var(--ink);
    font-family: var(--font-body); font-size: 13px; min-height: 43px; box-shadow: 0 2px 4px #634d3004;
    transition: border-color .15s, box-shadow .15s;
}
.staff-shell :is(.input,.field-input,textarea,select):hover { border-color: #bba991; }
.staff-shell :is(.input,.field-input,textarea,select):focus { border-color: var(--brand); outline: 2px solid #a51d2b20; outline-offset: 0; box-shadow: none; }
.staff-shell :is(input,textarea)::placeholder { color: #998b7b; }
.staff-shell select:not([multiple]) { appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center; background-size: 13px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a7866' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); }
.staff-shell :is(input[type=checkbox],input[type=radio]) { accent-color: var(--brand); }
.staff-shell .tabs { border-color: var(--line); gap: 4px; }
.staff-shell .tab { color: var(--ink-3); font: 500 13px/1.4 var(--font-body); padding: 12px 14px; }
.staff-shell .tab.active { color: var(--brand); }
.staff-shell .pill { box-shadow: none; }
.staff-shell table.data th { font-family: var(--font-body); color: var(--ink-3); }
.communication-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 0 27px; }
.communication-home { color: var(--brand); text-decoration: none; font: 500 10px/1.5 var(--font-body); text-transform: uppercase; letter-spacing: .13em; display: inline-flex; gap: 8px; margin-bottom: 18px; }
.communication-home:hover { text-decoration: underline; text-underline-offset: 3px; }
.communication-heading h1 { margin: 0 0 12px; font: 700 clamp(32px,3.5vw,46px)/1.05 var(--font-display); letter-spacing: -.035em; }
.communication-heading p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.65; max-width: 760px; }
.communication-navigation { display: flex; gap: 5px; align-items: center; max-width: 100%; padding: 7px 3px 13px; margin: 0 0 29px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; z-index: 12; }
.communication-tab-scroll { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow-x: auto; padding: 3px 4px; scrollbar-width: thin; scrollbar-color: #d3c5b2 transparent; }
.communication-tab--home { border-right-color: var(--line); }
.communication-tab { flex: 0 0 auto; min-height: 43px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--ink-3); font-size: 12px; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.communication-tab svg { width: 17px; height: 17px; flex-shrink: 0; }
.communication-tab:hover { background: #fffdf9; color: var(--ink); border-color: var(--line); }
.communication-tab.is-active { background: #fffdf9; color: var(--brand); border-color: #d8c6b8; font-weight: 500; }
.communication-content { min-width: 0; }
.communication-content .workspace-section-title { margin: 0 0 5px; font: 650 27px/1.15 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.communication-content .page-head { margin-bottom: 22px; }
.communication-content .page-head>div { min-width: 0; }
.communication-content .ccw-head { align-items: center; }
.communication-content .ccw-week-nav { border-radius: 10px; padding: 5px; box-shadow: none; background: #fffdf9; }
.communication-content .ccw-stat { border-radius: 11px; padding: 17px 19px; min-height: 88px; }
.communication-content .ccw-stat strong { font-size: 29px; }
.communication-content .ccw-stat span { font-size: 10px; font-weight: 500; }
.communication-content .ccw-bulkbar { border-radius: 10px; box-shadow: none; }
.communication-content .ccw-slot { border-radius: 11px; box-shadow: none; }
.communication-content .ccw-week-nav button { font-weight: 500; }
.communication-content .ccw-board { grid-template-columns: repeat(7,minmax(150px,1fr)); min-width: 1110px; }
.communication-content .ccw-column { min-height: 260px; border-radius: 12px; }
.communication-toolbar { margin-bottom: 24px; }
.communication-toolbar p { margin: 5px 0 0; color: var(--ink-3); font-size: 13px; }
.staff-shell .communication-content .ai-panel { box-shadow: none; background: var(--surface); border-color: var(--line); }
.staff-shell .communication-content .ai-s { color: var(--ink-3); }
@media(max-width:1250px) { .staff-shell .app-shell .page { padding: 28px 26px 60px; } .staff-workspace-shortcuts { gap: 16px; } }
@media(max-width:1100px) { .staff-workspace-shortcuts { display: none; } }
@media(max-width:760px) { .staff-shell .app-shell .page { padding: 25px 18px 50px; } .staff-shell .app-header { padding: 13px 18px; min-height: 68px; gap: 16px; } .communication-heading { padding-bottom: 18px; } .communication-heading h1 { font-size: 34px; } .communication-heading p { font-size: 13px; } .communication-navigation { margin-bottom: 22px; gap: 3px; } .communication-tab { min-height: 44px; padding: 10px 11px; } .communication-content .workspace-section-title { font-size: 24px; } .communication-content .page-head { flex-wrap: wrap; } .communication-content .ccw-head { align-items: stretch; } .staff-shell :is(.input,.field-input,input[type=search],input[type=date],input[type=datetime-local],textarea,select):not([type=checkbox]):not([type=radio]) { font-size: 16px; } .staff-shell .btn { min-height: 44px; } }
@media(prefers-reduced-motion:reduce) { .staff-shell :is(.sidebar,.btn,.input,.field-input,.communication-tab) { transition: none; } }

/* État des comptes : séparé des onglets de contenu, partagé avec les réglages. */
.communication-heading > div:first-child { min-width: 0; }
.center-networks { flex: 0 0 auto; position: relative; z-index: 15; padding-bottom: 1px; }
.center-networks-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-3); font-size: 11px; text-decoration: none; margin: 0 3px 9px; }
.center-networks-label:hover { color: var(--brand); }
.center-networks-icons { display: flex; align-items: center; gap: 6px; position: relative; }
.center-network { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf9; color: #98958e; text-decoration: none; transition: border-color 150ms, background-color 150ms; }
.center-network:hover { border-color: var(--line-strong); background: #fff; }
.center-network:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.center-network-symbol { position: relative; display: grid; place-items: center; width: 25px; height: 25px; }
.center-network-icon { width: 25px; height: 25px; flex-shrink: 0; }
.center-network.connected.platform-facebook,.center-network.issue.platform-facebook { color: #1877f2; }
.center-network.connected.platform-instagram,.center-network.issue.platform-instagram { color: #c13584; }
.center-network.connected.platform-linkedin,.center-network.issue.platform-linkedin { color: #0a66c2; }
.center-network:is(.connected,.issue) .google-blue { fill: #4285f4; }
.center-network:is(.connected,.issue) .google-green { fill: #34a853; }
.center-network:is(.connected,.issue) .google-yellow { fill: #fbbc05; }
.center-network:is(.connected,.issue) .google-red { fill: #ea4335; }
.center-network.checking { border-style: dashed; color: #b5b0a8; }
.center-network-alert { position: absolute; top: -8px; right: -9px; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #fffdf9; border-radius: 50%; background: #b12735; color: #fff; font: 700 11px/1 var(--font-body); }
.center-network-tooltip { display: none; position: absolute; top: calc(100% + 9px); right: 0; width: 244px; padding: 12px 14px; color: var(--ink-2); background: #fffdf9; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px #39281714; font-size: 12px; line-height: 1.55; pointer-events: none; z-index: 30; }
.center-network-tooltip strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.center-network:hover .center-network-tooltip,.center-network:focus-visible .center-network-tooltip { display: block; }
.center-network-setting { scroll-margin-top: 165px; }
.center-network-setting:target { background: #f8f0e7; box-shadow: inset 3px 0 var(--brand); }
@media(max-width:1100px) { .communication-heading { flex-wrap: wrap; align-items: flex-start; gap: 20px; } .center-network-tooltip { right: auto; left: 0; } }
@media(max-width:760px) { .center-networks { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; } .center-networks-label { max-width: 85px; margin: 0; line-height: 1.45; } .center-networks-label span { display: none; } .center-networks-icons { gap: 4px; } .center-network { width: 42px; height: 44px; border-radius: 9px; } .center-network-tooltip { left: auto; right: 0; } .center-network-setting > div:first-child { flex-wrap: wrap; } }
@media(prefers-reduced-motion:reduce) { .center-network { transition: none; } }

/* Explication des résultats, intégrée à la période Analytics. */
.analytics-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.analytics-explainer { border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; overflow: hidden; scroll-margin-top: 170px; }
.analytics-explainer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.analytics-eyebrow { display: block; color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; margin-bottom: 8px; }
.analytics-explainer-head h2 { font: 650 28px/1.1 var(--font-display); margin: 0 0 8px; }
.analytics-explainer-head p { font-size: 12px; color: var(--ink-3); margin: 0; }
.analytics-explainer-grid { display: grid; grid-template-columns: 270px minmax(0,1fr); }
.analytics-explainer-context { padding: 24px; background: var(--surface-2); border-right: 1px solid var(--line); }
.analytics-explainer-context h3,.analytics-discussion-empty h3 { margin: 0 0 9px; font: 600 23px/1.2 var(--font-display); }
.analytics-explainer-context p,.analytics-discussion-empty p { color: var(--ink-3); font-size: 12px; line-height: 1.65; margin: 0 0 18px; }
.analytics-suggestions { display: grid; gap: 9px; }
.analytics-suggestions button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px; background: #fffdf9; border: 1px solid var(--line); border-radius: 8px; font: 500 12px/1.45 var(--font-body); color: var(--ink-2); text-align: left; cursor: pointer; }
.analytics-suggestions button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.analytics-suggestions button:disabled { opacity: .6; cursor: default; }
.analytics-explainer-context .analytics-context-footnote { margin: 20px 0 0; font-size: 11px; }
.analytics-context-note { padding: 9px 11px; border-left: 2px solid #bd9561; background: #f2ebdf; }
.analytics-explainer-conversation { min-width: 0; display: flex; flex-direction: column; }
.analytics-discussion { min-height: 165px; max-height: 420px; overflow: auto; padding: 24px 26px; scrollbar-width: thin; }
.analytics-discussion-empty { padding: 15px 0; }
.analytics-turn + .analytics-turn { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.analytics-question { margin: 0 0 18px; padding: 13px 16px; border-radius: 8px; background: #f4ede3; color: var(--ink); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.analytics-question > span { display: block; color: var(--ink-3); font-size: 10px; margin-bottom: 4px; }
.analytics-answer { font-size: 13px; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.analytics-answer p { margin: 0 0 12px; }.analytics-answer ul,.analytics-answer ol { margin: 12px 0; padding-left: 22px; }.analytics-answer li { margin: 6px 0; }
.analytics-answer h1,.analytics-answer h2,.analytics-answer h3 { font: 600 22px/1.2 var(--font-display); margin: 16px 0 10px; }.analytics-answer a { color: var(--brand); text-decoration: underline; }.analytics-answer table { display: block; max-width: 100%; overflow-x: auto; }
.analytics-question-form { margin-top: auto; padding: 20px 26px; border-top: 1px solid var(--line); }
.analytics-question-form label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 9px; }.analytics-question-form textarea { width: 100%; min-height: 82px; padding: 12px; resize: vertical; line-height: 1.55; }
.analytics-question-form > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; }.analytics-question-form small { color: var(--ink-3); font-size: 10px; line-height: 1.5; max-width: 260px; }
.analytics-question-form .btn { white-space: nowrap; }.analytics-form-error { color: var(--danger); font-size: 12px; margin: 9px 0; }
.analytics-notice { margin: 18px 24px 0; padding: 12px 14px; border-radius: 8px; background: #f4ede1; color: var(--ink-2); font-size: 12px; line-height: 1.6; }.analytics-notice a { color: var(--brand); text-decoration: underline; }.analytics-notice.error { margin: 0; background: #fbefec; color: #96372f; }.analytics-notice .btn { margin-top: 10px; }
.analytics-pending { display: flex; gap: 9px; align-items: center; color: var(--ink-3); font-size: 12px; line-height: 1.6; }.analytics-pending-dot { width: 7px; height: 7px; background: #b18a56; border-radius: 50%; flex-shrink: 0; }
.analytics-archives { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }.analytics-archives summary { font-size: 13px; cursor: pointer; color: var(--ink-2); }.analytics-archives article { margin-top: 22px; }.analytics-archives article > p { font-size: 12px; color: var(--ink-3); }
@media(max-width:950px) { .analytics-explainer-grid { grid-template-columns: minmax(0,1fr); }.analytics-explainer-context { border-right: 0; border-bottom: 1px solid var(--line); }.analytics-suggestions { grid-template-columns: repeat(3,minmax(0,1fr)); }.analytics-explainer-head h2 { font-size: 26px; } }
@media(max-width:650px) { .analytics-explainer-head,.analytics-explainer-context,.analytics-discussion,.analytics-question-form { padding: 18px 16px; }.analytics-explainer-head { flex-wrap: wrap; align-items: flex-start; gap: 10px; }.analytics-suggestions { grid-template-columns: minmax(0,1fr); }.analytics-question-form > div { flex-wrap: wrap; gap: 10px; }.analytics-question-form .btn { width: 100%; justify-content: center; }.analytics-notice { margin: 16px 16px 0; }.analytics-actions { width: 100%; }.analytics-discussion { max-height: 360px; } }
