:root {
    --ink: #141213;
    --ink-soft: #3d3537;
    --muted: #6f6567;
    --paper: #ffffff;
    --wash: #f7f4f4;
    --sidebar: #f4f0f0;
    --sidebar-soft: #ebe4e5;
    --sidebar-line: #e0d7d8;
    --sidebar-text: #3d3537;
    --sidebar-muted: #7a7072;
    --brand: #ff8f8f;
    --brand-strong: #f07575;
    --brand-soft: rgba(255, 143, 143, .18);
    --line: #e8e2e3;
    --line-strong: #d2c9ca;
    --link: #b4535a;
    --danger: #b42318;
    --ok-bg: #ecfdf3;
    --ok-ink: #067647;
    --err-bg: #fef3f2;
    --err-ink: #b42318;
    --sidebar-w: 248px;
    --font: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --serif: "Source Serif 4", "Times New Roman", serif;
    --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.app-body {
    min-height: 100vh;
    min-height: 100dvh;
}
body {
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    user-select: none;
    vertical-align: middle;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; }

.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f3f3f4;
}
.app-body > .site-header,
.app-body > .site-footer {
    flex-shrink: 0;
    width: 100%;
}
.app {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}
.app-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--line-strong);
    color: var(--sidebar-text);
    box-shadow: 4px 0 18px rgba(40, 24, 28, .04);
    position: relative;
    z-index: 30;
    overflow: visible;
}
.sidebar-inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 14px 14px;
    max-height: 100vh;
    overflow: visible;
    box-sizing: border-box;
}
.sidebar-brand {
    display: block;
    text-decoration: none;
    margin: 0 0 20px;
    padding: 0 4px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.sidebar-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 128px;
    object-fit: contain;
    margin: 0 auto;
}
.sidebar-mark {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
}
.sidebar-nav svg,
.logout svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 2px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sidebar-nav a:hover {
    background: var(--sidebar-soft);
    color: var(--ink);
}
.sidebar-nav a.is-active {
    background: var(--brand-soft);
    color: var(--ink);
    border-left-color: var(--brand-strong);
    font-weight: 600;
}
.sidebar-nav a.is-active svg { color: var(--brand-strong); }
.sidebar-nav a.is-active .material-symbols-outlined { color: var(--brand-strong); }
.sidebar-flyout {
    position: relative;
}
.sidebar-flyout-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.sidebar-flyout-caret {
    margin-left: auto;
    opacity: .55;
    transition: transform .18s ease, opacity .15s ease;
}
.sidebar-flyout:hover .sidebar-flyout-caret,
.sidebar-flyout.is-open .sidebar-flyout-caret {
    transform: rotate(180deg);
    opacity: .95;
}
.sidebar-flyout-caret .material-symbols-outlined {
    font-size: 18px !important;
}
.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 6px;
    padding: 4px 0 4px 14px;
    border-left: 2px solid var(--brand-soft);
    margin-left: 18px;
}
.sidebar-flyout:hover .sidebar-submenu,
.sidebar-flyout.is-open .sidebar-submenu,
.sidebar-flyout:focus-within .sidebar-submenu {
    display: flex;
}
.sidebar-submenu-link {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    border-left: 0 !important;
    color: var(--sidebar-text) !important;
    font-weight: 500 !important;
    background: transparent !important;
}
.sidebar-submenu-link:hover {
    background: var(--sidebar-soft) !important;
    color: var(--ink) !important;
}
.sidebar-submenu-dot {
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--brand-strong);
    flex-shrink: 0;
    opacity: .7;
}
.sidebar-submenu-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.sidebar-submenu-text strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}
.sidebar-submenu-text small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.sidebar-submenu-all {
    display: block !important;
    margin-top: 4px;
    padding: 6px 10px !important;
    border-left: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--link) !important;
    background: transparent !important;
}
.sidebar-submenu-all:hover {
    background: var(--wash) !important;
}
.sidebar-submenu-empty {
    margin: 0;
    padding: 6px 10px;
    color: var(--muted);
    font-size: 12.5px;
}
.sidebar-ext {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-ext-ico {
    margin-left: auto;
    opacity: .55;
}
.sidebar-ext-ico .material-symbols-outlined {
    font-size: 16px !important;
}
.sidebar-client {
    padding-top: 22px;
}
.sidebar-client .sidebar-nav {
    gap: 4px;
}
.sidebar-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 12px 14px !important;
    background: var(--brand) !important;
    color: #fff !important;
    border-radius: 10px !important;
    border-left: 0 !important;
    font-weight: 700;
    text-decoration: none;
}
.sidebar-cta:hover {
    background: var(--brand-strong) !important;
    color: #fff !important;
}
.sidebar-cta.is-active {
    background: var(--brand-strong) !important;
    color: #fff !important;
    box-shadow: none;
}
.sidebar-cta .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    color: #fff !important;
}
.sidebar-nav a.sidebar-cta.is-active .material-symbols-outlined {
    color: #fff !important;
}
.sidebar-foot-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 2px;
}
.sidebar-foot-link:hover,
.sidebar-foot-link.is-active {
    background: var(--sidebar-soft);
    color: var(--ink);
}
.sidebar-foot-link .material-symbols-outlined,
.sidebar-client .logout .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.sidebar-foot {
    border-top: 1px solid var(--sidebar-line);
    padding-top: 12px;
    margin-top: 8px;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 8px;
    font-size: 13px;
    color: var(--ink);
}
.sidebar-muted {
    margin: 0;
    padding: 0 8px;
    color: var(--sidebar-muted);
    font-size: 12px;
}
.sidebar-quiet-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
}
.sidebar-quiet-link:hover,
.sidebar-quiet-link:focus-visible {
    color: var(--ink-soft);
    text-decoration: none;
    outline: none;
}
.avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #1a1516;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
}
.avatar-sm.avatar-img {
    object-fit: cover;
    padding: 0;
    background: transparent;
}
.auth-card-brand {
    margin: 0 auto 18px;
    max-width: 148px;
}
.auth-card-brand img {
    display: block;
    width: 100%;
    height: auto;
}
.auth-hint { margin-top: 14px; }
.client-profile-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}
.client-profile-name { margin: 0 0 4px; font-size: 17px; }
.client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.client-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #e8eef8, #d4dde9);
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}
.client-wp-card {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.client-wp-card .client-avatar { width: 44px; height: 44px; }
.logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: none;
    color: var(--danger);
    padding: 8px 10px;
    cursor: pointer;
    font: inherit;
    border-radius: 8px;
}
.logout:hover { background: #fdecea; color: var(--danger); }

.page {
    flex: 1;
    padding: 36px 48px 48px;
    max-width: 1180px;
}
.page-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
h2 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.h-sub { margin: 28px 0 10px; font-size: 15px; }
.eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.lede { color: var(--muted); margin: 0 0 20px; max-width: 62ch; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #1a1516;
    border: 1px solid var(--brand-strong);
    border-radius: var(--radius);
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.btn-block { width: 100%; }
.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
    font-weight: 500;
}
.btn-ghost:hover { background: var(--wash); color: var(--ink); }
.btn-ink {
    background: #2f343c;
    color: #fff;
    border-color: #2f343c;
}
.btn-ink:hover {
    background: #1f2328;
    color: #fff;
    border-color: #1f2328;
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px 28px 24px;
}
.card-narrow { width: min(420px, 100%); }
.card h1 { font-size: 22px; }
.text-link { display: inline-block; margin-top: 10px; font-size: 13px; }

label, .field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}
input, select, textarea {
    width: 100%;
    margin-top: 6px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 9px 11px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: 2px solid #111;
    outline-offset: 1px;
}

.stack { display: flex; flex-direction: column; gap: 4px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.span-2 { grid-column: span 2; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.linkish {
    background: none;
    border: 0;
    color: var(--link);
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.linkish.danger { color: var(--danger); }

.flash {
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13.5px;
}
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--err-bg); color: var(--err-ink); }
.hint { color: var(--muted); font-size: 12.5px; }
.empty { color: var(--muted); }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.stats article {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    background: #fff;
}
.stats strong { display: block; font-size: 26px; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 13px; }

.panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: #fff;
}
.panel.compact { padding: 14px 16px; }
.panel p { margin: 6px 0; color: var(--ink-soft); }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.hero { padding-top: 12px; max-width: 640px; }
.hero h1 { font-size: 34px; letter-spacing: -0.03em; }

/* Accueil maquette — sans sidebar */
.public-body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
}
.public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.public-shell > .page {
    flex: 1;
    max-width: none;
    width: 100%;
}
.public-shell-center > .page-center {
    min-height: calc(100vh - 140px);
}
.public-shell .site-footer {
    padding-left: 40px;
    padding-right: 40px;
}
.public-shell-home {
    background: #fff;
}
.page-home {
    max-width: none;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.home {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}
.home-grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .55;
    background-image: radial-gradient(circle, rgba(40, 30, 32, .22) 1px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: 0 0;
    animation: home-dots-drift 28s linear infinite;
}
@keyframes home-dots-drift {
    from { background-position: 0 0; }
    to { background-position: 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-grain { animation: none; opacity: .4; }
}
.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 40px 14px;
    border-bottom: 1px solid rgba(226, 214, 216, .55);
    background: #fff;
}
.site-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.site-header-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-header-brand img {
    height: 52px;
    width: auto;
    display: block;
}
.site-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255, 143, 143, .28);
}
.site-header-pill-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.site-header-pill-ico .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.site-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.site-header-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.site-header-help:hover { color: var(--brand-strong); }
.site-header-help-ico .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    color: var(--brand-strong);
}
.site-header-support {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    gap: 8px;
    max-width: min(460px, 48vw);
}
.site-header-support .tickets-support-copy {
    min-width: 0;
}
.site-header-support strong,
.site-header-support [data-support-text],
.site-header-support span {
    font-size: 12.5px;
}
.site-header-support .tickets-support-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}
.tickets-support-edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.tickets-support-edit:hover,
.tickets-support-edit:focus-visible {
    background: rgba(0, 0, 0, .06);
    color: var(--ink);
}
.tickets-support-edit .material-symbols-outlined {
    font-size: 17px !important;
}
.tickets-support [data-support-text].is-editing {
    outline: 1px solid var(--brand-strong);
    outline-offset: 2px;
    border-radius: 4px;
    background: #fff;
    padding: 1px 4px;
    min-width: 12ch;
    display: inline !important;
}
.tickets-support.has-live-message [data-support-text] {
    font-weight: 550;
}
.tickets-support.is-saving {
    opacity: .72;
}
@media (max-width: 1200px) {
    .site-header-support:not([data-editing="1"]) [data-support-text] { display: none; }
    .site-header-support:not([data-editing="1"]) strong::after { content: none; }
}
@media (max-width: 900px) {
    .site-header-support {
        max-width: none;
        padding: 6px 8px;
    }
    .site-header-support:not([data-editing="1"]) > .tickets-support-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}
.site-header-bell {
    position: relative;
}
.site-header-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
}
.site-header-bell-btn:hover,
.site-header-bell.is-open .site-header-bell-btn {
    color: var(--brand-strong);
    background: #fff1f0;
}
.site-header-bell-btn .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}
.site-header-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand-strong);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.site-header-bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(420px, 70vh);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 21, 22, 0.12);
    z-index: 80;
}
.site-header-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.site-header-bell-head strong {
    font-size: 13.5px;
}
.site-header-bell-mark {
    border: 0;
    background: transparent;
    color: var(--brand-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.site-header-bell-mark:hover { text-decoration: underline; }
.site-header-bell-empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.site-header-bell-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header-bell-list li {
    border-bottom: 1px solid #f3f0f0;
}
.site-header-bell-list li:last-child { border-bottom: 0; }
.site-header-bell-list a,
.site-header-bell-list li > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}
.site-header-bell-list a:hover {
    background: #faf8f8;
}
.site-header-bell-list strong {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}
.site-header-bell-list span {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.site-header-bell-list time {
    font-size: 11.5px;
    color: #9a9092;
}
.site-header-bell-list li.is-unread a,
.site-header-bell-list li.is-unread > div {
    background: #fff8f7;
}
.site-header-bell-list li.is-unread strong {
    color: #1a1516;
}
.site-header-user-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--ink-soft);
}
.site-header-user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #5a3030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    border: 1px solid rgba(242,154,154,.45);
    line-height: 0;
}
.site-header-user img { width: 100%; height: 100%; object-fit: cover; }
.site-header-user .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}
.site-header-user-ghost {
    background: #fff;
    color: var(--muted);
}
.home-hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px 48px;
    background: transparent;
}
.home-rule {
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    margin: 0 auto 16px;
}
.home-title {
    margin: 0 0 14px;
    max-width: none;
    font-size: clamp(28px, 4.2vw, 46px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--ink);
    white-space: nowrap;
}
.home-title em {
    font-style: normal;
    color: var(--brand);
}
.home-lede {
    margin: 0 auto 36px;
    max-width: 38ch;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.55;
    white-space: pre-line;
}
.home-cards {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    text-decoration: none;
    color: var(--ink);
    --cta: var(--brand);
    --cta-soft: color-mix(in srgb, var(--cta) 16%, #fff);
    --cta-ink: color-mix(in srgb, var(--cta) 48%, #3a2424);
    background: #fff;
    border: 1px solid rgba(226, 220, 222, .95);
    border-radius: 18px;
    padding: 26px 24px 22px;
    min-height: 210px;
    box-shadow: 0 8px 24px rgba(40, 24, 28, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.home-card-primary {
    background: linear-gradient(180deg, var(--cta-soft) 0%, #fff 72%);
    border-color: color-mix(in srgb, var(--cta) 42%, #e8d6d8);
}
.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--cta) 22%, rgba(40, 24, 28, .07));
    border-color: color-mix(in srgb, var(--cta) 65%, #fff);
    color: var(--ink);
}
.home-card-ico {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cta) 22%, #fff);
    color: var(--cta);
    margin-bottom: 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}
.home-card:hover .home-card-ico {
    background: var(--cta);
    color: #fff;
    transform: scale(1.05);
}
.home-card-ico .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.home-card strong {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.home-card-hint {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    max-width: 30ch;
    flex: 1;
}
.home-card-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.home-card-btn-solid {
    background: var(--cta);
    color: #fff;
    border: 1px solid var(--cta);
}
.home-card:hover .home-card-btn-solid {
    background: color-mix(in srgb, var(--cta) 82%, #5a3030);
    border-color: color-mix(in srgb, var(--cta) 82%, #5a3030);
    transform: translateX(2px);
}
.home-card-btn-outline {
    background: #fff;
    color: var(--cta-ink);
    border: 1.5px solid var(--cta);
}
.home-card:hover .home-card-btn-outline {
    background: var(--cta-soft);
    transform: translateX(2px);
}
.home-info {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 16px;
    align-items: stretch;
}
.home-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 8px 22px;
    border-right: 1px solid #e6e0e1;
}
.home-info-item:first-child { padding-left: 4px; }
.home-info-item:last-child {
    border-right: 0;
    padding-right: 4px;
}
.home-info-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--brand);
    line-height: 1;
    margin-top: 2px;
}
.home-info-ico .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
    color: var(--brand);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.home-info-item > div {
    min-width: 0;
    padding-top: 1px;
}
.home-info-label {
    margin: 0 0 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.home-info-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}
.home-info-item span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}
.site-footer .footer-brand {
    display: inline-block;
}
.site-footer .footer-brand img {
    height: 40px;
    width: auto;
    display: block;
    opacity: .9;
}
.site-footer .footer-sites .footer-ext-row {
    justify-content: center;
}

@media (max-width: 900px) {
    .site-header { padding: 14px 18px; }
    .site-header-pill {
        font-size: 10px;
        padding: 7px 12px 7px 10px;
        letter-spacing: 0.08em;
    }
    .site-header-pill-ico { display: none; }
    .home-cards { grid-template-columns: 1fr; }
    .home-info {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .home-info-item {
        border-right: 0;
        padding: 0;
    }
    .public-shell .site-footer,
    .app-body > .site-footer {
        padding-left: 18px;
        padding-right: 18px;
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer-legal { text-align: left; }
    .site-footer .footer-ext-row { justify-content: flex-start; }
}

.footer-sep { color: var(--line-strong); }
.footer-ext-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: center;
}
.footer-ext {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--link);
    font-weight: 500;
}
.footer-ext:hover { color: var(--brand-strong); }
.footer-ext-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    line-height: 1;
}
.footer-ext-ico .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.page.page-help {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 28px 32px 40px;
    background: var(--wash);
    box-sizing: border-box;
}
.app-main:has(.page-help) {
    background: var(--wash);
}
.public-shell > .page.page-help {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 32px 40px 48px;
}
.help-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: none;
}
.help-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: start;
}
.help-top-text { min-width: 0; }
.help-kicker {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.help-top h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.2vw, 36px);
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--ink);
}
.help-intro {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 56ch;
}
.help-top-art {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 2px;
}
.help-book {
    width: 148px;
    height: auto;
    display: block;
}
.help-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.help-search-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px 0 14px;
    color: var(--muted);
    flex-shrink: 0;
}
.help-search-ico .material-symbols-outlined { font-size: 22px; }
.help-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 12px;
    font: inherit;
    font-size: 15px;
    outline: none;
}
.help-search-btn {
    flex: 0 0 auto;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 22px !important;
    min-height: 100%;
}
.help-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}
.help-cat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    width: 100%;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.help-cat-card:hover,
.help-cat-card.is-active {
    border-color: #f2b0b4;
    box-shadow: 0 6px 18px rgba(255, 143, 143, 0.14);
}
.help-cat-card.is-active {
    background: #fff8f7;
}
.help-cat-ico {
    color: var(--brand-strong);
    flex-shrink: 0;
    margin-top: 1px;
}
.help-cat-ico .material-symbols-outlined { font-size: 22px; }
.help-cat-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.help-cat-body strong {
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
}
.help-cat-body span {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}
.help-cat-chevron {
    color: #c4b8ba;
    flex-shrink: 0;
    align-self: center;
}
.help-cat-chevron .material-symbols-outlined { font-size: 20px; }
.help-faq-block {
    width: 100%;
}
.help-faq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.help-faq-head h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.help-faq-expand {
    border: 0;
    background: transparent;
    color: var(--brand-strong);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.help-faq-expand:hover { text-decoration: underline; }
.help-faq-empty {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
.help-shell .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.help-shell .faq-item {
    background: #fff;
    border: 1px solid rgba(232, 214, 216, .95);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    width: 100%;
}
.help-shell .faq-item[hidden] { display: none; }
.help-shell .faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
}
.help-shell .faq-item summary::-webkit-details-marker { display: none; }
.help-shell .faq-chevron {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--brand-strong);
    display: grid;
    place-items: center;
    transition: transform .2s ease;
}
.help-shell .faq-chevron .material-symbols-outlined { font-size: 22px; }
.help-shell .faq-item[open] .faq-chevron { transform: rotate(180deg); }
.help-shell .faq-body {
    padding: 0 18px 16px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
}
.help-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 4px;
    text-align: center;
}
.help-cta p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}
.help-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: var(--brand-strong) !important;
    color: var(--brand-strong) !important;
}
.help-cta-btn .material-symbols-outlined { font-size: 18px; }
@media (max-width: 1100px) {
    .help-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .page.page-help,
    .public-shell > .page.page-help {
        padding: 22px 16px 32px;
    }
    .help-top {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .help-top-art { display: none; }
    .help-categories {
        grid-template-columns: 1fr;
    }
    .help-search {
        flex-wrap: wrap;
    }
    .help-search-btn {
        width: 100%;
        padding: 12px 16px !important;
        border-top: 1px solid var(--line) !important;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].is-in {
    opacity: 1;
    transform: none;
}
.home-rule[data-reveal] { transition-delay: .05s; }
.home-title[data-reveal] { transition-delay: .12s; }
.home-lede[data-reveal] { transition-delay: .2s; }
.home-cards[data-reveal] { transition-delay: .3s; }
.home-info[data-reveal] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding: 8px 8px 8px 0;
}
.table td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table a { color: var(--ink); text-decoration: none; font-weight: 500; }
.table a:hover { text-decoration: underline; }

.pill, .prio {
    display: inline-block;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--wash);
}
.pill-nouveau { background: #f4f4f4; }
.pill-en_cours { background: #eef4ff; border-color: #c7d7fe; }
.pill-en_attente { background: #fff8eb; border-color: #f6d58b; }
.pill-resolu { background: #ecfdf3; border-color: #abefc6; }
.pill-ferme { color: var(--muted); }
.prio-mineure { color: #344054; }
.prio-majeure { color: #b54708; background: #fef4e6; border-color: #f7d5a3; }
.prio-bloquante { color: #b42318; background: #fee4e2; border-color: #f7b4ad; }
.sla-late { color: var(--danger); font-weight: 500; }

/* Ticket overview (light) — style liste conversations */
.ticket-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.ticket-hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ticket-hero-title h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
    font-weight: 650;
}
.ticket-hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--brand);
    display: grid;
    place-items: center;
    color: var(--brand-strong);
    flex-shrink: 0;
    background: rgba(255,184,184,.08);
}
.ticket-hero-icon svg { width: 20px; height: 20px; }
.ticket-hero .lede {
    margin: 10px 0 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}
.ticket-filters-more {
    margin-bottom: 18px;
}
.ticket-board {
    margin-top: 8px;
}
.ticket-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.ticket-board-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.ticket-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}
.ticket-search {
    position: relative;
    margin: 0;
}
.ticket-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
    display: grid;
    place-items: center;
}
.ticket-search-icon svg { width: 16px; height: 16px; }
.ticket-search input {
    width: min(240px, 42vw);
    margin: 0;
    padding: 9px 14px 9px 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--wash);
    font-size: 13.5px;
}
.ticket-search input:focus {
    outline: none;
    border-color: var(--line-strong);
    background: #fff;
}
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ticket-list-head {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(110px, 0.8fr) minmax(110px, 0.7fr) 100px;
    gap: 12px;
    padding: 6px 14px 10px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}
.ticket-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(110px, 0.8fr) minmax(110px, 0.7fr) 100px;
    gap: 12px;
    align-items: center;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ticket-row:hover,
.ticket-row:focus-visible {
    background: #f3f3f1;
    border-color: var(--line);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    outline: none;
}
.ticket-cell-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ticket-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1f2937;
    background: linear-gradient(145deg, #e8eef8 0%, #dfe7f4 55%, #d4dde9 100%);
    border: 1px solid #cfd8e6;
}
.ticket-user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ticket-user-text strong {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-user-text em {
    font-style: normal;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-cell-cat {
    color: var(--ink-soft);
    font-size: 13.5px;
}
.ticket-cell-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #98a2b3;
}
.status-dot-open { background: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, .12); }
.status-dot-wait { background: #f79009; box-shadow: 0 0 0 3px rgba(247, 144, 9, .12); }
.status-dot-closed { background: #98a2b3; }
.status-dot-neutral { background: #98a2b3; }
.ticket-cell-date {
    color: var(--muted);
    font-size: 13.5px;
    text-align: right;
}
.ticket-empty { padding: 28px 14px; }

@media (max-width: 860px) {
    .ticket-hero { flex-direction: column; }
    .ticket-board-head { flex-direction: column; align-items: stretch; }
    .ticket-search input { width: 100%; }
    .ticket-list-head { display: none; }
    .ticket-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "user status"
            "user date"
            "cat cat";
        gap: 6px 12px;
    }
    .ticket-cell-user { grid-area: user; }
    .ticket-cell-cat { grid-area: cat; padding-left: 48px; }
    .ticket-cell-status { grid-area: status; justify-self: end; }
    .ticket-cell-date { grid-area: date; justify-self: end; }
}

.quick-filters, .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.quick-filters a {
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 99px;
    font-size: 13px;
}
.quick-filters a.is-on { background: var(--brand); color: #1a1516; border-color: var(--brand-strong); font-weight: 600; }
.filters input, .filters select { width: auto; min-width: 140px; margin: 0; }

.page.page-kanban {
    max-width: none !important;
    width: 100%;
    padding: 18px 20px 24px;
    background: #f6f4f5;
}
.app-main:has(.page-kanban) {
    background: #f6f4f5;
}
.kanban-page {
    width: 100%;
}
.kanban-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
}
.kanban-page-titles {
    min-width: 0;
    flex: 0 1 auto;
}
.kanban-page-head h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.kanban-page-lede {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.kanban-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    flex-wrap: nowrap;
    height: 34px;
}
.kanban-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin: 0;
    height: 34px;
}
.kanban-search {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e6e0e1;
    border-radius: 8px;
    padding: 0 8px;
    width: 168px;
    height: 34px;
    margin: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.kanban-search-ico {
    color: #9a9092;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.kanban-search-ico .material-symbols-outlined { font-size: 16px; }
.kanban-search input,
.kanban-filters select {
    width: auto;
    margin: 0;
    margin-top: 0;
    box-sizing: border-box;
}
.kanban-search input {
    border: 0;
    background: transparent;
    padding: 0;
    height: 32px;
    font: inherit;
    font-size: 12.5px;
    line-height: 32px;
    width: 100%;
    min-width: 0;
    outline: none;
    color: var(--ink);
    border-radius: 0;
}
.kanban-search input:focus {
    outline: none;
}
.kanban-search input::placeholder { color: #a89fa0; }
.kanban-filters select {
    border: 1px solid #e6e0e1;
    border-radius: 8px;
    background: #fff;
    height: 34px;
    min-height: 34px;
    padding: 0 28px 0 10px;
    font: inherit;
    font-size: 12.5px;
    line-height: 1.2;
    color: var(--ink);
    max-width: none;
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9092' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.kanban-filters select[name="service"] { width: 158px; }
.kanban-filters select.kanban-select-sort,
.kanban-filters select[name="tri"] { width: 128px; }
.kanban-filters select:focus {
    outline: 2px solid #111;
    outline-offset: 1px;
}
.btn.btn-kanban-new {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    margin: 0;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.kanban {
    display: grid;
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    gap: 10px;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 4px;
}
.kanban-col {
    display: flex;
    flex-direction: column;
    background: #eeeaea;
    border: 0;
    border-radius: 10px;
    min-height: 0;
    min-width: 200px;
    padding-bottom: 6px;
}
.kanban-col.is-over {
    outline: 2px dashed var(--brand-strong);
    outline-offset: -2px;
    background: #fde8e7;
}
.kanban-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 8px;
}
.kanban-col-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.kanban-col-title h2 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ink);
}
.kanban-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #98a2b3;
    flex-shrink: 0;
}
.kanban-status-dot.is-nouveau { background: #98a2b3; }
.kanban-status-dot.is-cours { background: #f5a524; }
.kanban-status-dot.is-attente { background: #3b82f6; }
.kanban-status-dot.is-resolu { background: #22c55e; }
.kanban-status-dot.is-ferme { background: #ef4444; }
.kanban-col-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    color: #7a7072;
    font-size: 10.5px;
    font-weight: 650;
}
.kanban-list {
    flex: 1;
    padding: 0 8px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kanban-card {
    background: #fff;
    border: 1px solid #ebe6e7;
    border-radius: 8px;
    padding: 8px 9px 7px;
    cursor: grab;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
}
.kanban-card:hover {
    border-color: #e0d8d9;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.05);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .4; }
.kanban-card-title {
    display: block;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
    font-size: 12.5px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.kanban-card-title:hover { color: var(--brand-strong); }
.kanban-card-meta {
    margin: 2px 0 0;
    color: #8a8082;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kanban-card-desc {
    margin: 5px 0 0;
    color: #6f6567;
    font-size: 11.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kanban-card-foot {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    min-height: 20px;
}
.kanban-prio {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
    flex-shrink: 0;
}
.kanban-prio.is-high {
    background: #fee4e2;
    color: #b42318;
}
.kanban-prio.is-mid {
    background: #fef0c7;
    color: #b54708;
}
.kanban-prio.is-low {
    background: #e0f2fe;
    color: #026aa2;
}
.kanban-card-id {
    color: #9a9092;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}
.kanban-card-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd0d0;
    color: #9a3f3f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    flex-shrink: 0;
}
.kanban-card-time {
    margin-left: auto;
    color: #a89fa0;
    font-size: 10.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.kanban-card-menu {
    position: relative;
    flex-shrink: 0;
    margin: -2px -4px -2px 0;
}
.kanban-card-menu .ticket-icon-btn-sm {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #a89fa0;
    background: transparent;
    border: 0;
}
.kanban-card-menu .ticket-icon-btn-sm:hover {
    background: #f7f4f4;
    color: var(--ink);
}
.kanban-card-menu .ticket-icon-btn-sm .material-symbols-outlined {
    font-size: 16px;
}
.kanban-card-menu .ticket-menu-panel {
    min-width: 140px;
    z-index: 20;
}
.kanban-col-add {
    display: block;
    margin: 6px 8px 2px;
    padding: 5px 8px;
    text-align: center;
    text-decoration: none;
    color: #9a9092;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 6px;
}
.kanban-col-add:hover {
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink);
}

.thread { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 22px; }
.bubble { display: flex; gap: 10px; max-width: 78%; }
.bubble-me { margin-left: auto; flex-direction: row-reverse; }
.bubble-avatar {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 4px;
}
.bubble-body {
    background: #f3f3f1;
    border-radius: 14px 14px 14px 4px;
    padding: 10px 12px;
}
.bubble-me .bubble-body {
    background: #111;
    color: #fff;
    border-radius: 14px 14px 4px 14px;
}
.bubble-me .bubble-body header { color: #cfcfcf; }
.bubble-note { max-width: 100%; }
.bubble-note .bubble-body {
    background: #fff8eb;
    border: 1px dashed #e8c56b;
    border-radius: 6px;
    width: 100%;
}
.bubble-body header { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.bubble-text { white-space: pre-wrap; }
.att { display: inline-block; margin-top: 6px; margin-right: 8px; font-size: 12.5px; }
.tags { margin-left: 6px; color: var(--link); }

.composer {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
}
.composer textarea { border: 0; padding: 0; outline: none; }
.composer textarea:focus { outline: none; }
.composer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.composer-tools {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
}
.side-panel { position: sticky; top: 20px; }
.resolve-box { margin: 12px 0; }

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(220, 220, 222, .9);
    padding: 18px 48px;
    font-size: 12.5px;
    color: var(--muted);
    background: #f3f3f4;
    margin: 0;
}
.site-footer p { margin: 4px 0; }
.site-footer .footer-brand {
    display: inline-block;
}
.site-footer .footer-brand img {
    height: 40px;
    width: auto;
    display: block;
    opacity: .9;
}
.site-footer .footer-sites .footer-ext-row {
    justify-content: center;
}
.footer-legal { text-align: right; }
.site-footer a { color: var(--link); }

.guest-body { background: var(--paper); }
.guest-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 8px 0; }
legend { font-weight: 600; padding: 0 6px; }
.prose { max-width: 68ch; color: var(--ink-soft); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); }

.table-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-label input { width: auto; margin: 0; }

.auth-fallback {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.auth-fallback summary,
.customize-block summary {
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 500;
    list-style: none;
}
.auth-fallback summary::-webkit-details-marker,
.customize-block summary::-webkit-details-marker { display: none; }
.auth-fallback summary::after,
.customize-block summary::after {
    content: " ▾";
    color: var(--muted);
}
.customize-block {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    background: var(--wash);
}
.hint { display: block; margin-top: 4px; }

.wording-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.wording-field { flex: 1; margin: 0; }
.wording-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 6px;
}
.wording-meta code {
    font-size: 11px;
    color: var(--muted);
    background: var(--wash);
    padding: 2px 6px;
    border-radius: 4px;
}
.wording-delete { margin-top: 8px; white-space: nowrap; align-self: center; }
.att-row { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.msg-edit { margin-top: 4px; font-size: 12.5px; }
.msg-edit summary { cursor: pointer; color: var(--muted); }

/* —— Nouvelle demande (client) —— */
.page-new-ticket {
    max-width: none;
    width: 100%;
    padding: 28px 32px 28px;
    background: var(--wash);
}
.request-shell {
    max-width: none;
    width: 100%;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--brand-strong); }
.request-head { margin-bottom: 22px; }
.request-head h1 { margin-bottom: 6px; }
.request-head .lede { margin-bottom: 0; }
.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 24px;
    align-items: start;
    width: 100%;
}
.request-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.field { display: block; margin: 0; }
.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.field-label .req {
    color: var(--brand-strong);
    font-style: normal;
    font-weight: 700;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.field-control {
    position: relative;
    display: block;
}
.field-control .field-ico {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    line-height: 0;
}
.field-control-top .field-ico {
    top: 12px;
    transform: none;
}
.field-control .field-ico .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.field-control input,
.field-control select,
.field-control textarea {
    margin-top: 0;
    padding-left: 38px;
    border-radius: 8px;
    border-color: var(--line);
    background: #faf8f8;
}
.field-control select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f6567' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.field-control input:focus,
.field-control select:focus,
.field-control textarea:focus {
    outline: 2px solid rgba(255, 143, 143, .45);
    outline-offset: 0;
    border-color: var(--brand);
    background: #fff;
}
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 132px;
    padding: 22px 18px;
    border: 1.5px dashed rgba(255, 143, 143, .55);
    border-radius: 10px;
    background: rgba(255, 143, 143, .05);
    cursor: pointer;
    text-align: center;
    position: relative;
}
.dropzone.is-drag { background: rgba(255, 143, 143, .12); border-color: var(--brand-strong); }
.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 0;
}
.dropzone-ico .material-symbols-outlined {
    font-size: 32px;
    color: var(--brand-strong);
}
.dropzone-title {
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 13.5px;
}
.dropzone-meta {
    font-size: 12px;
    color: var(--muted);
}
.dropzone-files {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 500;
}
.more-info {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f5f5;
    overflow: hidden;
}
.more-info > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}
.more-info > summary::-webkit-details-marker { display: none; }
.more-info > summary::marker { content: ""; }
.more-info-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    line-height: 0;
    transition: transform .2s ease;
}
.more-info-caret .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}
.more-info[open] > summary {
    border-bottom: 1px solid var(--line);
}
.more-info[open] .more-info-caret {
    transform: rotate(180deg);
}
.more-info-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #faf8f8;
}
.hint-inline {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.request-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
}
.btn-outline {
    background: #fff;
    color: var(--brand-strong);
    border: 1px solid var(--brand);
    font-weight: 600;
}
.btn-outline:hover {
    background: rgba(255, 143, 143, .1);
    color: var(--brand-strong);
}
.request-actions .btn {
    gap: 6px;
}
.request-actions .btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.request-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 16px;
}
.aside-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}
.aside-status {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.aside-status strong { display: block; margin-bottom: 2px; }
.aside-status p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}
.aside-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.aside-status.is-open {
    background: #ecfdf3;
    border-color: #abefc6;
}
.aside-status.is-open .aside-status-dot { background: #12b76a; }
.aside-status.is-closed {
    background: #f8f6f6;
}
.aside-status.is-closed .aside-status-dot { background: #98a2b3; }
.aside-help {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.aside-help:hover { border-color: var(--brand); }
.aside-help-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 143, 143, .15);
    color: var(--brand-strong);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.aside-help-ico .material-symbols-outlined { font-size: 20px; }
.aside-help strong { display: block; font-size: 13.5px; }
.aside-help-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.aside-tips {
    background: rgba(255, 143, 143, .08);
    border-color: rgba(255, 143, 143, .22);
}
.aside-tips-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.aside-tips-ico { color: var(--brand-strong); line-height: 0; }
.aside-tips-ico .material-symbols-outlined { font-size: 20px; }
.aside-tips-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aside-tips-list li {
    position: relative;
    padding-left: 22px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.35;
}
.aside-tips-list li::before {
    content: "check";
    font-family: "Material Symbols Outlined";
    font-size: 16px;
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--brand-strong);
}

.app-main:has(.page-new-ticket),
.app-main:has(.page-tickets),
.app-main:has(.page-ticket-detail) {
    background: var(--wash);
}
.page-new-ticket,
.page-tickets,
.page-ticket-detail {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    padding-bottom: 24px;
}
.app-body > .site-footer {
    margin-top: 0;
}

/* —— Mes tickets —— */
.page-tickets {
    max-width: none;
    width: 100%;
    padding: 28px 32px 28px;
    background: var(--wash);
}
.page.page-tickets.page-kanban {
    padding: 18px 20px 24px;
    background: #f6f4f5;
}
.tickets-shell { width: 100%; }
.tickets-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}
.tickets-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
}
.tickets-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}
.tickets-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
}
.tickets-chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.tickets-chip.is-on {
    background: rgba(255, 143, 143, .16);
    border-color: var(--brand);
    color: #9f2d2d;
    font-weight: 600;
}
.tickets-advanced {
    margin-bottom: 16px;
}
.tickets-advanced-form .field select {
    margin-top: 6px;
    width: 100%;
}
.tickets-client {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tickets-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #5a3030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.tickets-subject small.tickets-site,
.tickets-site {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}
.tickets-assignee {
    color: var(--ink-soft);
    white-space: nowrap;
    font-size: 13px;
}
.tickets-head h1 { margin-bottom: 6px; }
.tickets-head .lede {
    margin: 0;
    max-width: none;
    white-space: nowrap;
}
.tickets-support {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #abefc6;
    background: #ecfdf3;
    flex-shrink: 0;
    white-space: nowrap;
    max-width: none;
}
.tickets-support.has-live-message,
.tickets-support[data-editing="1"] {
    white-space: normal;
}
.tickets-support.is-closed {
    background: #fef3f2;
    border-color: #fecdca;
}
.tickets-support-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12b76a;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(18, 183, 106, .45);
    animation: support-pulse 1.8s ease-out infinite;
}
.tickets-support.is-closed .tickets-support-dot {
    background: #f04438;
    animation: support-pulse-closed 1.8s ease-out infinite;
    box-shadow: 0 0 0 0 rgba(240, 68, 56, .4);
}
@keyframes support-pulse {
    0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .45); }
    70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}
@keyframes support-pulse-closed {
    0% { box-shadow: 0 0 0 0 rgba(240, 68, 56, .4); }
    70% { box-shadow: 0 0 0 8px rgba(240, 68, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0); }
}
.tickets-support strong {
    display: inline;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.tickets-support strong::after { content: " : "; font-weight: 700; }
.tickets-support [data-support-text],
.tickets-support span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.2;
}
.tickets-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.tickets-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.tickets-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    border-bottom: 2px solid transparent;
}
.tickets-tab:hover { color: var(--ink); }
.tickets-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--brand-strong);
    font-weight: 600;
}
.tickets-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #eef2ff;
    color: #3538cd;
}
.tickets-tab.is-active .tickets-tab-count,
.count-tous {
    background: rgba(255, 143, 143, .22);
    color: #9f2d2d;
}
.count-ouverts { background: #eef4ff; color: #3538cd; }
.count-en_cours { background: #fff8eb; color: #b54708; }
.count-resolus { background: #ecfdf3; color: #067647; }
.count-fermes { background: #f2f4f7; color: #667085; }
.tickets-search {
    position: relative;
    min-width: min(280px, 100%);
}
.tickets-search-ico {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    line-height: 0;
    pointer-events: none;
}
.tickets-search-ico .material-symbols-outlined { font-size: 18px; }
.tickets-search input {
    margin: 0;
    padding-left: 36px;
    border-radius: 8px;
    background: #fff;
    border-color: var(--line);
}
.tickets-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 0 0;
    overflow: hidden;
}
.tickets-empty {
    margin: 0;
    padding: 36px 24px;
    text-align: center;
    color: var(--muted);
}
.tickets-table-wrap { overflow-x: auto; }
.tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.tickets-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.th-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
}
.th-sort:hover,
.th-sort.is-active { color: var(--brand-strong); }
.th-sort-ico {
    display: inline-flex;
    line-height: 0;
    opacity: .45;
}
.th-sort.is-active .th-sort-ico { opacity: 1; }
.th-sort-ico .material-symbols-outlined { font-size: 16px; }
.tickets-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.tickets-table tr:last-child td { border-bottom: 0; }
.tickets-ref a {
    color: var(--brand-strong);
    font-weight: 700;
    text-decoration: none;
}
.tickets-subject a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.tickets-subject a:hover,
.tickets-ref a:hover { text-decoration: underline; }
.tickets-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    white-space: nowrap;
}
.tickets-cat-ico {
    color: var(--muted);
    line-height: 0;
}
.tickets-cat-ico .material-symbols-outlined { font-size: 16px; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.status-pill .material-symbols-outlined {
    font-size: 14px;
    line-height: 1;
}
.status-nouveau { background: #eef4ff; color: #3538cd; }
.status-en_attente { background: #fff8eb; color: #b54708; }
.status-en_cours { background: #fff8eb; color: #b54708; }
.status-resolu { background: #ecfdf3; color: #067647; }
.status-ferme { background: #f2f4f7; color: #667085; }
.prio-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}
.prio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.prio-line.is-mineure { color: #12b76a; }
.prio-line.is-majeure { color: #f79009; }
.prio-line.is-bloquante { color: #f04438; }
.tickets-date {
    color: var(--muted);
    white-space: nowrap;
    font-size: 12.5px;
}
.btn-voir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 143, 143, .16);
    color: #9f2d2d;
    text-decoration: none;
    font-weight: 600;
    font-size: 12.5px;
}
.btn-voir:hover {
    background: rgba(255, 143, 143, .28);
    color: #9f2d2d;
}
.tickets-actions-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tickets-delete-form {
    display: inline;
    margin: 0;
}
.btn-suppr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(240, 68, 56, .28);
    background: #fff;
    color: #b42318;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
}
.btn-suppr:hover {
    background: rgba(240, 68, 56, .08);
    border-color: rgba(240, 68, 56, .45);
}
.btn-restore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.btn-restore:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
}
.list-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.list-view-toggle a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
}
.list-view-toggle a.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 600;
}
.trash-meta {
    color: var(--muted);
    font-size: 12px;
}
.tickets-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.tickets-pagination p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}
.tickets-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.page-btn .material-symbols-outlined { font-size: 18px; }
.page-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.page-btn:hover:not(.is-active) {
    border-color: var(--brand);
    color: var(--brand-strong);
}

@media (max-width: 980px) {
    .tickets-head { flex-direction: column; }
    .tickets-support {
        max-width: none;
        width: auto;
        white-space: nowrap;
    }
    .tickets-toolbar { flex-direction: column; align-items: stretch; }
    .tickets-search { min-width: 0; }
}

@media (max-width: 980px) {
    .app { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid var(--sidebar-line);
        box-shadow: none;
    }
    .sidebar-inner {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
    }
    .sidebar-brand { max-width: 160px; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-cta { width: 100%; }
    .page { padding: 24px 18px; }
    .page-new-ticket,
    .page-tickets,
    .page-ticket-detail { padding: 20px 16px 32px; }
    .page.page-tickets.page-kanban { padding: 14px 12px 20px; }
    .kanban { grid-template-columns: repeat(5, minmax(188px, 1fr)); gap: 8px; }
    .kanban-page-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .kanban-toolbar {
        margin-left: 0;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .kanban-search { width: 148px; }
    .ticket-progress {
        overflow-x: auto;
        padding: 14px 10px 12px;
    }
    .ticket-progress-track { min-width: 560px; }
    .ticket-thread::before { left: 15px; }
    .msg-row { max-width: 100%; }
    .msg-row.is-right { max-width: 100%; }
    .bubble { max-width: 100%; }
    .site-header-help span:not(.material-symbols-outlined):not(.site-header-help-ico) {
        /* keep label */
    }
}


.auth-minimal-body {
    min-height: 100vh;
    margin: 0;
    background: var(--wash);
    display: grid;
    place-items: center;
    padding: 32px 16px;
}
.auth-minimal {
    width: min(420px, 100%);
}
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin: 0 auto 22px;
}
.auth-brand-logo {
    display: block;
    height: 64px;
    width: auto;
}
.auth-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255, 143, 143, .28);
}
.auth-brand-pill-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.auth-brand-pill-ico .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.auth-minimal-brand {
    display: block;
    width: 120px;
    margin: 0 auto 20px;
}
.auth-minimal-brand img {
    display: block;
    width: 100%;
    height: auto;
}
.auth-back {
    margin: 18px 0 0;
    text-align: center;
}
.auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}
.auth-back a:hover { color: var(--ink); }
.auth-back .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

/* Connexion split — maquette */
.auth-split-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(255, 143, 143, .10), transparent 55%),
        linear-gradient(180deg, #fff8f8 0%, #f7f4f4 100%);
    color: var(--ink);
}
.auth-split-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.auth-split-shell > .site-footer {
    margin-top: auto;
}
.auth-split {
    flex: 1;
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(340px, 420px);
    align-items: center;
    gap: 36px;
    padding: 36px 0 28px;
    box-sizing: border-box;
}
.auth-split-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 420px;
    padding: 0;
}
.auth-split-brand {
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 18px;
}
.auth-split-brand img {
    height: 62px;
    width: auto;
    display: block;
}
.auth-split-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(255, 143, 143, .28);
    margin-bottom: 20px;
}
.auth-split-pill-ico .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.auth-split-rule {
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    margin-bottom: 18px;
}
.auth-split-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.auth-split-lede {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 34ch;
}
.auth-split-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.45;
    max-width: 36ch;
}
.auth-split-note-ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 143, 143, .18);
    color: var(--brand-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-split-note-ico .material-symbols-outlined { font-size: 16px; line-height: 1; }
.auth-split-home {
    margin: 28px 0 0;
}
.auth-split-home a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}
.auth-split-home a:hover { color: var(--ink); }
.auth-split-home .material-symbols-outlined { font-size: 18px; line-height: 1; }

.auth-split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
}
.auth-panel {
    background: #fff;
    border: 1px solid rgba(226, 214, 216, .85);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(40, 24, 28, .08);
    padding: 28px 28px 0;
    width: 100%;
    margin: 0;
}
.auth-panel-head { margin-bottom: 20px; }
.auth-panel-head h2 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -0.02em;
}
.auth-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.auth-panel-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 13.5px;
}
.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-ico {
    position: absolute;
    left: 12px;
    color: var(--muted);
    display: inline-flex;
    pointer-events: none;
}
.auth-input-ico .material-symbols-outlined { font-size: 20px; line-height: 1; }
.auth-input input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 44px 12px 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}
.auth-input input:focus {
    outline: 2px solid rgba(255, 143, 143, .45);
    border-color: var(--brand);
}
.auth-input-toggle {
    position: absolute;
    right: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    padding: 6px;
    border-radius: 8px;
}
.auth-input-toggle:hover { color: var(--ink); background: #f7f4f4; }
.auth-input-toggle .material-symbols-outlined { font-size: 20px; line-height: 1; }
.auth-submit {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    font-weight: 600;
}
.auth-forgot {
    margin: 14px 0 0;
    text-align: center;
}
.auth-forgot a {
    color: var(--brand-strong);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}
.auth-forgot a:hover { text-decoration: underline; }
.auth-panel .auth-fallback {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.auth-panel-foot {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 18px;
}
.auth-panel-meta {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.auth-panel-meta-ico {
    color: var(--brand-strong);
    display: inline-flex;
    margin-top: 1px;
}
.auth-panel-meta-ico .material-symbols-outlined { font-size: 20px; line-height: 1; }
.auth-panel-meta strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
}
.auth-panel-meta span,
.auth-panel-meta a {
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.35;
}
.auth-panel-meta a {
    color: var(--brand-strong);
    font-weight: 600;
    margin-top: 2px;
}
.auth-panel-meta a:hover { text-decoration: underline; }
.auth-split-footer {
    display: none;
}
.auth-split-footer p { margin: 3px 0; }
.auth-split-footer a { color: var(--muted); }

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        width: min(440px, calc(100% - 32px));
        padding: 28px 0 20px;
        gap: 24px;
    }
    .auth-split-left {
        max-width: none;
        padding: 0;
        align-items: center;
        text-align: center;
    }
    .auth-split-lede,
    .auth-split-note { max-width: 42ch; text-align: left; }
    .auth-split-note { margin-left: auto; margin-right: auto; }
}

/* ——— Ticket detail (maquette pleine largeur) ——— */
.page-ticket-detail {
    max-width: none;
    width: 100%;
    padding: 24px 28px 40px;
    background: var(--wash);
    box-sizing: border-box;
}
.ticket-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: none;
}
.ticket-main {
    min-width: 0;
    width: 100%;
}
.ticket-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.ticket-back:hover { color: var(--brand-strong); }
.ticket-back .material-symbols-outlined { font-size: 18px; }
.ticket-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.ticket-head-main { min-width: 0; flex: 1; }
.ticket-ref-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.ticket-ref {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-strong);
}
.page-ticket-detail .status-nouveau,
.page-ticket-detail .status-pill.status-nouveau {
    background: #e8f1ff;
    color: #2e6bdb;
}
.ticket-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ticket-title-row .ticket-title { flex: 1; min-width: 0; }
.ticket-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.ticket-edit-ico {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    line-height: 0;
    flex-shrink: 0;
}
.ticket-edit-ico:hover { color: var(--brand-strong); background: rgba(255,143,143,.12); }
.ticket-edit-ico .material-symbols-outlined { font-size: 18px; }
.ticket-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.ticket-meta-line .material-symbols-outlined { font-size: 16px; }

/* Stepper progression ticket */
.ticket-progress {
    margin: 18px 0 22px;
    padding: 16px 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.ticket-progress-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    width: 100%;
}
.ticket-progress-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0 4px;
}
.ticket-progress-line {
    position: absolute;
    top: 14px;
    right: calc(50% + 16px);
    left: calc(-50% + 16px);
    height: 3px;
    background: #e8e2e3;
    border-radius: 99px;
    z-index: 0;
}
.ticket-progress-step.is-done .ticket-progress-line,
.ticket-progress-step.is-current .ticket-progress-line {
    background: var(--brand-strong);
}
.ticket-progress-node {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #f2f4f7;
    color: #98a2b3;
    border: 2px solid #e4e7ec;
    box-sizing: border-box;
}
.ticket-progress-node .material-symbols-outlined {
    font-size: 16px;
    font-weight: 700;
}
.ticket-progress-step.is-done .ticket-progress-node,
.ticket-progress-step.is-current .ticket-progress-node {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #fff;
}
.ticket-progress-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    min-width: 0;
    width: 100%;
}
.ticket-progress-label {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--ink-soft);
    line-height: 1.25;
}
.ticket-progress-step.is-done .ticket-progress-label,
.ticket-progress-step.is-current .ticket-progress-label {
    color: var(--ink);
}
.ticket-progress-step.is-pending .ticket-progress-label {
    color: #98a2b3;
    font-weight: 500;
}
.ticket-progress-sub {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.3;
}

.ticket-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ticket-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}
.ticket-icon-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.ticket-icon-btn .material-symbols-outlined { font-size: 20px; }
.ticket-desc-wrap {
    position: relative;
    margin-bottom: 8px;
}
.ticket-desc {
    margin: 0 0 4px;
    padding: 12px 40px 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.ticket-desc-wrap .ticket-edit-ico {
    position: absolute;
    top: 12px;
    right: 12px;
}
.ticket-inline-edit {
    margin: 8px 0 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.ticket-inline-edit[hidden] { display: none !important; }
.ticket-view-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    margin: 8px 0 12px;
}
.ticket-view-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.ticket-view-tab.is-active {
    color: var(--brand-strong);
    border-bottom-color: var(--brand-strong);
}
.ticket-panel[hidden] { display: none !important; }

/* Fil d’échanges distincts */
.ticket-thread {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    padding: 4px 0 4px 2px;
}
.ticket-thread::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-strong), rgba(240, 117, 117, .25));
    border-radius: 99px;
    pointer-events: none;
}
.msg-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    z-index: 1;
    max-width: 92%;
}
.msg-row.is-left {
    align-self: flex-start;
    padding-left: 0;
}
.msg-row.is-right {
    align-self: flex-end;
    flex-direction: row;
    max-width: 88%;
}
.msg-row.is-note {
    align-self: stretch;
    max-width: 100%;
    margin-left: 36px;
}
.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--wash);
}
.msg-avatar.is-client { background: #ffd4d4; color: #8a3a3a; }
.msg-avatar.is-support { background: #d6e4ff; color: #3538cd; }
.msg-avatar.is-note { background: #fef0c7; color: #93370d; }
.msg-bubble {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
}
.msg-bubble.is-client {
    background: #fff1f0;
    border-color: #ffd6d4;
}
.msg-bubble.is-support {
    background: #eef4ff;
    border-color: #d6e4ff;
}
.msg-bubble.is-note {
    background: #fffaf0;
    border-color: #f5e0b8;
}
.msg-bubble-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.msg-who-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.25;
}
.msg-who-name strong { font-weight: 650; }
.msg-role {
    display: inline-flex;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.msg-role.is-client { background: #ffe4e1; color: #b42318; }
.msg-role.is-support { background: #d6e4ff; color: #3538cd; }
.msg-role.is-note { background: #fffaeb; color: #b54708; }
.msg-time {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
    flex-shrink: 0;
    white-space: nowrap;
}
.msg-body {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.45;
    white-space: pre-line;
}
.msg-atts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.msg-att {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .72);
    max-width: min(100%, 320px);
    min-width: 0;
}
.msg-att:hover { border-color: var(--brand); }
.msg-att-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f2f4f7;
    line-height: 0;
}
.msg-att-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msg-att-ico {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 143, 143, .16);
    color: var(--brand-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msg-att-ico .material-symbols-outlined { font-size: 18px; }
.msg-att-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.25;
}
.msg-att-name {
    font-size: 12px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msg-att-meta { font-size: 11px; color: var(--muted); }
.msg-att-dl {
    margin-left: auto;
    font-size: 16px !important;
    color: var(--muted);
    flex-shrink: 0;
}
.msg-att-preview {
    display: none;
}
.msg-att-caption {
    display: none;
}
.msg-att-row {
    display: contents;
}
.msg-card-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.msg-resolved {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 11.5px;
    font-weight: 650;
}
.msg-edit {
    margin-top: 4px;
}
.msg-edit > summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--muted);
    list-style: none;
    display: inline-block;
    float: right;
    line-height: 1.2;
    padding: 0;
}
.msg-edit > summary::-webkit-details-marker { display: none; }
.msg-edit > summary:hover { color: var(--brand-strong); }
.msg-edit[open] > summary {
    float: none;
    display: block;
    text-align: right;
    margin-bottom: 8px;
}
.msg-edit-panel {
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafafa;
}
.msg-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.msg-edit-form textarea {
    width: 100%;
    min-height: 72px;
    max-height: 180px;
    resize: vertical;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.45;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}
.msg-edit-actions {
    display: flex;
    justify-content: flex-end;
}
.msg-row::after {
    content: "";
    display: table;
    clear: both;
}
.ticket-composer {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.composer-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
    background: #f7f5f5;
}
.composer-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 11px 16px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}
.composer-tab .material-symbols-outlined { font-size: 18px; }
.composer-tab.is-active {
    color: var(--brand-strong);
    border-bottom-color: var(--brand-strong);
    background: #fff;
}
.composer-tab.is-note.is-active {
    color: #b54708;
    border-bottom-color: #f79009;
    background: #fffaf0;
}
.ticket-composer.is-note-mode {
    border-color: #f5e0b8;
    box-shadow: inset 0 0 0 1px rgba(247, 144, 9, .12);
}
.ticket-composer.is-note-mode .composer-body {
    background: #fffdf8;
}
.ticket-composer.is-note-mode .composer-send {
    background: #b54708;
    border-color: #b54708;
}
.composer-body { padding: 14px 16px 16px; }
.composer-body textarea {
    width: 100%;
    min-height: 110px;
    border: 0;
    resize: vertical;
    font: inherit;
    color: var(--ink);
    outline: none;
    padding: 0;
    background: transparent;
}
.composer-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.composer-tools-row select,
.composer-tools-row input {
    font: inherit;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
}
.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.composer-attach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
    flex-wrap: wrap;
}
.composer-attach input { display: none; }
.composer-attach .material-symbols-outlined { font-size: 18px; color: var(--brand-strong); }
.composer-attach-hint {
    color: #98a2b3;
    font-size: 11.5px;
    font-weight: 400;
}
.composer-tab:disabled {
    opacity: 1;
    cursor: default;
}
.composer-attach:hover { color: var(--brand-strong); }
.composer-send {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.composer-send .material-symbols-outlined { font-size: 18px; }

/* Zone de réponse client — distincte, sobre */
.ticket-composer.is-client-reply {
    margin-top: 8px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    overflow: hidden;
}
.client-reply-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f3;
    background: #f8f9fb;
}
.client-reply-ico {
    color: #475467;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.client-reply-ico .material-symbols-outlined { font-size: 20px; }
.client-reply-head strong {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.25;
}
.ticket-composer.is-client-reply .composer-body {
    padding: 12px 16px 14px;
    background: #fff;
}
.ticket-composer.is-client-reply .composer-body textarea {
    min-height: 88px;
    font-size: 14px;
}
.ticket-composer.is-client-reply .composer-footer {
    border-top-color: #eef0f3;
}
.ticket-composer.is-client-reply .composer-attach {
    color: #667085;
}
.ticket-composer.is-client-reply .composer-attach .material-symbols-outlined {
    color: #667085;
}
.ticket-composer.is-client-reply .composer-attach:hover,
.ticket-composer.is-client-reply .composer-attach:hover .material-symbols-outlined {
    color: #344054;
}

.ticket-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 8px;
}
.ticket-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 550;
}
.ticket-tag-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}
.ticket-tag-remove:hover { color: #b42318; }
.ticket-tag-add {
    display: flex;
    gap: 6px;
    align-items: center;
}
.ticket-tag-add input {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}
.ticket-tag-add-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
    white-space: nowrap;
}
.ticket-tag-add-btn:hover { background: rgba(255,143,143,.1); }
.ticket-history {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.ticket-history-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.ticket-history-item:last-child { border-bottom: 0; }
.ticket-history-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    margin-top: 5px;
}
.ticket-history-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.ticket-history-item span { font-size: 12px; color: var(--muted); }
.ticket-aside {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    width: 100%;
}
.ticket-aside-section {
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line);
}
.ticket-aside-section:last-child { border-bottom: 0; }
.ticket-aside-person {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ticket-aside-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.ticket-aside-avatar.is-client { background: #ffd4d4; color: #8a3a3a; }
.ticket-aside-avatar.is-support { background: #d6e4ff; color: #3538cd; }
.ticket-aside-person strong {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.3;
}
.ticket-aside-person-meta {
    min-width: 0;
    flex: 1;
}
.ticket-aside-person small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 1px;
}
.ticket-aside-mail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
    min-width: 0;
}
.ticket-aside-mail span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ticket-aside-mail:hover { color: var(--brand-strong); }
.ticket-aside-mail .material-symbols-outlined {
    font-size: 15px;
    flex-shrink: 0;
}
.ticket-aside-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.ticket-aside-dates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ticket-aside-dates li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.35;
}
.ticket-aside-dates .material-symbols-outlined {
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 1px;
}
.ticket-aside-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.ticket-aside-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
}
.ticket-aside-edit {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-strong);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
}
.ticket-aside-edit:hover { text-decoration: underline; }
.ticket-aside-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ticket-aside-save {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 5px 10px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.ticket-aside-save .material-symbols-outlined { font-size: 16px; color: var(--brand-strong); }
.ticket-aside-save:hover {
    border-color: var(--brand);
    background: rgba(255, 143, 143, .08);
    color: var(--brand-strong);
}
.ticket-icon-btn-sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}
.ticket-aside .ticket-menu-panel {
    right: 0;
    left: auto;
}
.ticket-aside-field {
    margin-bottom: 12px;
}
.ticket-aside-field:last-child { margin-bottom: 0; }
.ticket-aside-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticket-aside-control.is-static {
    min-height: 0;
    padding: 2px 0;
}
.ticket-aside-control.is-static .ticket-aside-v {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.35;
}
.ticket-aside-control.is-static .prio-line {
    font-size: 13.5px;
    font-weight: 650;
}
.ticket-aside .status-pill.status-en_cours,
.page-ticket-detail .status-pill.status-en_cours {
    background: #eef4ff;
    color: #3538cd;
}
.ticket-aside-control .ticket-aside-select {
    flex: 1;
    min-width: 0;
}
.ticket-aside-ico {
    color: var(--muted);
    line-height: 0;
    flex-shrink: 0;
    display: inline-flex;
    width: 20px;
    justify-content: center;
}
.ticket-aside-ico .material-symbols-outlined { font-size: 18px; }
.ticket-aside-ico.is-prio-mineure { color: #12b76a; }
.ticket-aside-ico.is-prio-majeure { color: #f79009; }
.ticket-aside-ico.is-prio-bloquante { color: #f04438; }
.ticket-aside-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ticket-aside-head h2 .ticket-aside-ico { color: var(--brand-strong); }
.ticket-tag-add .ticket-aside-ico {
    margin-right: 0;
}
.ticket-aside-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.ticket-aside-select {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    background: #fff;
    color: var(--ink);
    box-sizing: border-box;
}
.ticket-aside-textarea {
    font-weight: 500;
    resize: vertical;
    min-height: 72px;
    line-height: 1.45;
}
.ticket-aside-control .ticket-aside-textarea {
    align-self: stretch;
}
.ticket-aside-v {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}
.ticket-aside-v a { color: var(--brand-strong); text-decoration: none; }
.ticket-aside-v a:hover { text-decoration: underline; }
.ticket-aside-v small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}
.ticket-comp {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #faf7f7;
}
.ticket-comp dl {
    margin: 0;
    display: grid;
    gap: 6px;
}
.ticket-comp dt {
    font-size: 11.5px;
    color: var(--muted);
}
.ticket-comp dd {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.ticket-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    margin-bottom: 8px;
}
.ticket-action-btn:last-child { margin-bottom: 0; }
.ticket-action-btn .material-symbols-outlined { font-size: 18px; }
.ticket-action-btn.is-resolve {
    border: 1.5px solid rgba(240, 68, 56, .45);
    color: #b42318;
}
.ticket-action-btn.is-resolve:hover { background: rgba(240, 68, 56, .06); }
.ticket-action-btn.is-hold {
    border: 1.5px solid rgba(53, 56, 205, .35);
    color: #3538cd;
}
.ticket-action-btn.is-hold:hover { background: rgba(53, 56, 205, .06); }
.ticket-action-btn.is-delete {
    border: 1.5px solid rgba(240, 68, 56, .45);
    color: #b42318;
}
.ticket-action-btn.is-delete:hover { background: rgba(240, 68, 56, .06); }
.ticket-menu { position: relative; z-index: 20; }
.ticket-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(40, 20, 20, .12);
    padding: 6px;
    z-index: 30;
    display: none;
}
.ticket-menu.is-open .ticket-menu-panel { display: block; }
.ticket-menu-panel button,
.ticket-menu-panel a {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}
.ticket-menu-panel button:hover,
.ticket-menu-panel a:hover { background: #f7f4f4; }
.ticket-menu-panel .danger { color: #b42318; }
@media (max-width: 1100px) {
    .ticket-shell { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
}
@media (max-width: 980px) {
    .ticket-shell { grid-template-columns: 1fr; }
    .ticket-aside { position: static; }
    .ticket-head { flex-direction: column; }
}

/* —— Clients (maquette) —— */
.page-clients .tickets-lede {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.clients-section-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    background: #f4f5f7;
    border-radius: 12px;
    width: fit-content;
    max-width: 100%;
}
.clients-section-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.clients-section-tab:hover {
    color: var(--ink);
}
.clients-section-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.clients-section-tab .tickets-tab-count {
    background: #e8eaed;
    color: var(--muted);
}
.clients-section-tab.is-active .tickets-tab-count {
    background: #eef6ff;
    color: #175cd3;
}
.client-tabs-card {
    display: grid;
    gap: 14px;
}
.client-tabs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.client-detail-tabs {
    margin: 0;
}
.client-tabs-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.client-tabs-actions [hidden] {
    display: none !important;
}
.client-tab-panel[hidden] {
    display: none !important;
}
.client-tab-panel-head {
    margin-bottom: 12px;
}
.client-tab-panel-head .client-card-lede {
    margin: 0;
}
.client-tab-panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.client-tab-panel-actions.is-inline {
    margin-bottom: 10px;
    justify-content: flex-end;
}
@media (max-width: 720px) {
    .client-tabs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .client-tabs-actions {
        margin-left: 0;
    }
    .client-tabs-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
.clients-inline-edit-row > td {
    background: #fafbfc;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--line);
}
.clients-inline-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.clients-inline-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
}
.clients-inline-contact-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    font-weight: 550;
}
.clients-inline-contact-grid .span-2 {
    grid-column: span 2;
}
.clients-inline-contact-grid .client-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    padding-top: 18px;
}
.clients-inline-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}
.clients-inline-hint a {
    color: inherit;
    text-decoration: underline;
}
.client-owned-tag.is-wp {
    background: #fde8e8;
    color: #a33b3b;
}
.client-owned-tag.is-both {
    background: #e8f4ee;
    color: #1f6b45;
}
.client-owned-tag.is-none {
    background: #f0f0f0;
    color: #666;
}
.contact-access-checks {
    grid-template-columns: 1fr 1fr;
}
.contact-access-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}
.contact-access-card:has(input[type="checkbox"]:checked) {
    border-color: #f07575;
    background: #fff8f8;
}
.clients-inline-contact-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .clients-inline-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    .clients-inline-contact-grid .span-2 {
        grid-column: span 2;
    }
}
@media (max-width: 640px) {
    .clients-section-tabs { width: 100%; }
    .clients-section-tab { flex: 1; justify-content: center; }
    .clients-inline-contact-grid { grid-template-columns: 1fr; }
    .clients-inline-contact-grid .span-2 { grid-column: span 1; }
}
.client-aside-form.is-edit {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.client-aside-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.clients-form {
    margin-bottom: 18px;
}
.clients-form-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.clients-identity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.clients-identity strong {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink);
}
.clients-identity small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}
.client-type-pill {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.client-type-pill.is-privee {
    background: #ffe8e8;
    color: #9f2d2d;
}
.client-type-pill.is-collectivites {
    background: #e8f1ff;
    color: #2e6bdb;
}
.clients-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.clients-project-tag {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 550;
}
.clients-project-tag.is-more {
    background: #eef2ff;
    color: #3538cd;
}
.clients-tickets strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
}
.clients-tickets small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}
.clients-muted { color: var(--muted); }
.client-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 550;
    color: var(--ink-soft);
}
.client-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #98a2b3;
}
.client-status.is-active { color: #067647; }
.client-status.is-active .client-status-dot { background: #12b76a; }
.client-status.is-archived { color: #667085; }
.client-status.is-archived .client-status-dot { background: #98a2b3; }
.clients-row-menu { display: inline-flex; position: relative; z-index: 2; }
.page-clients .tickets-panel {
    overflow: visible;
}
.page-clients .tickets-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    /* visible : sinon le menu ⋮ est clipé (overflow-x:auto force aussi le clip vertical) */
    overflow: visible;
}
.page-clients .clients-row-menu.is-open {
    z-index: 40;
}
.page-clients .clients-row-menu .ticket-menu-panel {
    z-index: 50;
    min-width: 180px;
}
.clients-menu-note {
    display: block;
    padding: 9px 10px;
    font-size: 12.5px;
    color: var(--muted);
}
.page-clients .tickets-table td {
    vertical-align: middle;
}

/* —— Fiche client (maquette 2 colonnes, sans accès portail) —— */
.page-client-show {
    max-width: none;
}
.client-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}
.client-main {
    min-width: 0;
}
.client-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 8px 0 20px;
}
.client-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.client-detail-title-row h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
    font-weight: 700;
}
.client-detail-since {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.client-engagement-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff1f0;
    color: #9f2d2d;
    font-size: 12px;
    font-weight: 600;
}
.client-info-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}
.client-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.client-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.client-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.client-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
}
.client-card-lede {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.client-linkish {
    color: var(--brand-strong);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}
.client-linkish:hover { text-decoration: underline; }
.client-info-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.client-info-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.client-info-avatar.is-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffe4e8;
    color: #b42318;
    font-weight: 700;
    font-size: 16px;
}
.client-info-avatar.is-org {
    border-radius: 14px;
    background: #f3f0f0;
    color: #5c5556;
}
.client-info-profile strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.client-info-profile p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.client-info-sites {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.client-info-sites > .client-info-label {
    margin-bottom: 8px;
}
.client-info-site-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.client-site-logo-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    max-width: 220px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.client-site-logo-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.client-site-logo-card img,
.client-site-logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fb;
    flex-shrink: 0;
}
.client-site-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #475467;
}
.client-site-logo-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}
.client-site-logo-meta strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-site-logo-meta small {
    color: var(--muted);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
}
.client-info-grid.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
}
.client-info-grid.is-compact .client-info-item {
    gap: 8px;
}
.client-info-grid.is-compact .client-info-label {
    margin-bottom: 2px;
}
.client-info-grid.is-compact .client-info-item > div > span:not(.client-info-label):not(.client-info-inline-tags),
.client-info-grid.is-compact .client-info-item > div > a {
    font-size: 13.5px;
    line-height: 1.35;
}
.client-info-inline-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.client-project-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    background: #f8f9fb;
    flex-shrink: 0;
}
.client-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}
.client-info-ico {
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 2px;
}
.client-info-ico .material-symbols-outlined { font-size: 18px; }
.client-info-label {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 3px;
    font-weight: 550;
}
.client-info-item a {
    color: var(--brand-strong);
    text-decoration: none;
    word-break: break-word;
}
.client-info-item a:hover { text-decoration: underline; }
.client-info-multiline {
    white-space: pre-line;
    color: var(--ink);
    font-size: 13.5px;
}
.client-info-notes {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.client-info-notes p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.5;
}
.client-inline-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.client-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.client-inline-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 550;
}
.client-inline-grid .client-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    padding-top: 22px;
}
.client-inline-grid .client-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.client-inline-grid .span-2 { grid-column: 1 / -1; }
.client-inline-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.client-table-wrap {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: visible;
}
.client-project-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.client-project-cell.is-button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.client-project-cell.is-button:hover strong {
    color: var(--brand-strong);
    text-decoration: underline;
}
.client-project-edit-row td {
    background: #fafafa;
    padding: 12px 16px 16px !important;
    border-bottom: 1px solid var(--line);
}
.client-inline-form.is-embedded {
    margin: 0;
    padding: 0;
    border: 0;
}
.projects-callout {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 13.5px;
    color: var(--muted);
}
.projects-callout a {
    color: var(--brand-strong);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.projects-callout a:hover { text-decoration: underline; }
.projects-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: visible;
}
.projects-name {
    font-weight: 650;
    color: var(--ink);
    text-decoration: none;
}
.projects-name:hover {
    color: var(--brand-strong);
    text-decoration: underline;
}
.projects-client-link {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
    color: var(--ink);
}
.projects-client-link small {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
}
.projects-client-link:hover {
    color: var(--brand-strong);
}
.page-projects .tickets-lede {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    max-width: 62ch;
}
.client-project-ico {
    color: var(--muted);
}
.client-project-ico .material-symbols-outlined { font-size: 20px; }
.client-owned-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 550;
    vertical-align: middle;
}
.client-owned-tag.is-portal {
    background: #e8f7ef;
    color: #1f8a4c;
}
.client-owned-tag.is-satellite {
    background: #eef2ff;
    color: #4338ca;
}
.client-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.client-tree-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.client-tree-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    padding-left: calc(12px + (var(--tree-depth, 0) * 18px));
}
.client-tree-meta {
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}
.client-tree-children {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
    border-top: 1px dashed var(--line);
}
.client-project-edit-panel {
    padding: 0 12px 12px;
    border-top: 1px solid var(--line);
}
.client-satellite-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.client-satellite-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}
.client-satellite-list a:hover {
    background: var(--wash);
}
.client-satellite-list small {
    color: var(--muted);
}
.client-site-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 12px;
    margin-top: 6px;
}
.client-site-picks {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.client-site-picks legend {
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.contact-form-simple {
    display: grid;
    gap: 14px;
}
.project-composer {
    display: grid;
    grid-template-columns: auto minmax(8rem, 1.4fr) minmax(6rem, 1fr) minmax(5.5rem, 8rem) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
}
.project-composer-ico {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.project-composer-ico .material-symbols-outlined {
    font-size: 18px;
}
.project-composer-name,
.project-composer-host,
.project-composer-parent {
    margin: 0;
    min-height: 34px;
    width: 100%;
}
.project-composer-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.project-composer-more {
    grid-column: 1 / -1;
    border: 0;
    padding: 0;
    background: transparent;
}
.project-composer-more > summary {
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 0 0;
    width: fit-content;
}
.project-composer-more > summary::-webkit-details-marker { display: none; }
.project-composer-more > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 5px;
    transition: transform .15s ease;
}
.project-composer-more[open] > summary::before {
    transform: rotate(90deg);
}
.project-composer-more-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}
.project-composer-more-grid input {
    margin: 0;
    min-height: 34px;
}
.client-tree-item.is-composer {
    border-style: dashed;
    background: var(--wash);
}
.project-composer-wrap {
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: var(--wash);
    margin-bottom: 14px;
}
.project-folder-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.project-folder {
    list-style: none;
    margin: 0;
    min-width: 0;
}
.project-folder-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.project-folder-card:hover {
    border-color: var(--brand-strong);
    box-shadow: 0 6px 18px rgba(20, 18, 19, .06);
}
.project-folder-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 14px 12px 14px 14px;
    text-decoration: none;
    color: inherit;
}
.project-folder-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(160deg, #ffe8e0 0%, #ffd4c8 100%);
    color: #c45c4a;
    flex-shrink: 0;
    overflow: hidden;
}
.project-folder-icon .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.project-folder-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #fff;
}
.project-folder-icon.has-logo {
    background: #fff;
    border: 1px solid var(--line);
    color: inherit;
}
.project-folder.is-satellite .project-folder-icon {
    background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
}
.project-folder-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.project-folder-name {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-folder-host {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-folder-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.project-folder-link.is-static {
    cursor: default;
}
.clients-folder.is-archived .project-folder-card {
    opacity: .72;
    background: #fafafa;
}
.clients-folder-grid {
    margin-top: 4px;
}
.project-folder-meta .client-type-pill {
    font-size: 11px;
    padding: 2px 8px;
}
.project-folder-open {
    margin-left: 6px;
    color: var(--brand-strong);
    font-weight: 600;
}
.project-folder-chevron {
    color: var(--muted);
    display: grid;
    place-items: center;
}
.project-folder-chevron .material-symbols-outlined { font-size: 22px; }
.project-folder-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}
.project-folder-children {
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    display: grid;
    gap: 8px;
    border-left: 2px solid var(--line);
}
.client-project-edit-inline {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf8;
}
.project-folder.is-editing > .project-folder-card {
    display: none;
}
.project-folder.is-editing > .client-project-edit-inline {
    display: block;
}
.contact-person-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.contact-person {
    list-style: none;
    margin: 0;
    min-width: 0;
}
.contact-person-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-person-card:hover {
    border-color: var(--brand-strong);
    box-shadow: 0 6px 18px rgba(20, 18, 19, .06);
}
.contact-person-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 14px 40px 14px 14px;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.contact-person-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(160deg, #e8f1ff 0%, #d7e6ff 100%);
    color: #2e6bdb;
    flex-shrink: 0;
}
.contact-person-icon .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.contact-person-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.contact-person-name {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-person-role,
.contact-person-mail {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-person-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.contact-person-primary {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-strong);
}
.contact-person-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}
.contact-person-edit {
    margin-top: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf8;
}
.contact-person.is-editing > .contact-person-card {
    display: none;
}
.contact-person.is-editing > .contact-person-edit {
    display: block;
}
@media (max-width: 1100px) {
    .project-folder-grid,
    .contact-person-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .project-folder-grid,
    .contact-person-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .project-folder-grid,
    .contact-person-grid {
        grid-template-columns: 1fr;
    }
}
.tickets-filter-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--wash);
}
.tickets-filter-banner .material-symbols-outlined {
    color: var(--brand-strong);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.tickets-filter-banner strong {
    display: block;
    font-size: 14px;
}
.tickets-filter-banner .btn {
    margin-left: auto;
}
.client-tree-item.is-editing > [data-project-view] {
    display: none;
}
.client-tree-item.is-editing > .client-project-edit-inline {
    border-top: 0;
}
.project-composer-actions .btn-sm {
    min-height: 34px;
}
@media (max-width: 860px) {
    .project-composer {
        grid-template-columns: auto 1fr;
    }
    .project-composer-host,
    .project-composer-parent,
    .project-composer-actions {
        grid-column: 2;
    }
    .project-composer-more-grid {
        grid-template-columns: 1fr;
    }
}
.contact-form-essentials {
    margin: 0;
}
.contact-access-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}
.contact-access-fieldset > legend {
    padding: 0;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.contact-access-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.contact-access-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    font-weight: 400;
}
.contact-access-card:hover {
    border-color: var(--line-strong);
    background: var(--wash);
}
.contact-access-card:has(input:checked) {
    border-color: var(--brand-strong);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px var(--brand-strong);
}
.contact-access-card input[type="radio"] {
    width: auto;
    min-width: 16px;
    margin: 3px 0 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--brand-strong);
}
.contact-access-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}
.contact-access-card-body strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
}
.contact-access-card-body small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 400;
    white-space: normal;
}
.contact-password-row {
    display: flex;
    gap: 8px;
    align-items: end;
    margin-top: 10px;
}
.contact-password-row[hidden] {
    display: none !important;
}
.contact-password-row label {
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-password-row .btn {
    flex-shrink: 0;
    margin-bottom: 1px;
}
.contact-advanced {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fafafa;
}
.contact-advanced > summary {
    cursor: pointer;
    list-style: none;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.contact-advanced > summary::-webkit-details-marker { display: none; }
.contact-advanced > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 6px;
    color: var(--muted);
    transition: transform .15s ease;
}
.contact-advanced[open] > summary::before {
    transform: rotate(90deg);
}
.contact-advanced .client-inline-grid {
    padding-bottom: 12px;
}
@media (max-width: 860px) {
    .contact-access-cards {
        grid-template-columns: 1fr;
    }
    .contact-password-row {
        flex-direction: column;
        align-items: stretch;
    }
}
.clients-muted { color: var(--muted); }
.client-empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    background: #fafafa;
    border-radius: 10px;
}
.client-empty.is-aside {
    padding: 12px;
    background: transparent;
}
.client-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}
.client-aside-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}
.client-aside-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.client-aside-head h2 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 650;
}
.client-aside-lede {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    font-weight: 400;
}
.client-aside-period {
    font-size: 12px;
    color: var(--muted);
}
.btn-aside-add {
    padding: 6px 10px;
    font-size: 12px;
}
.client-stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.client-stat-list li {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
}
.client-stat-jump {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
}
.client-stat-jump:hover .client-stat-label {
    color: var(--ink);
}
.client-stat-jump:hover .client-stat-ico {
    border-color: var(--line-strong);
    background: var(--wash);
}
.client-stat-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: #fafafa;
}
.client-stat-ico .material-symbols-outlined { font-size: 18px; }
.client-stat-label {
    font-size: 13px;
    color: var(--ink-soft);
}
.client-stat-list strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}
.client-aside-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.client-aside-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    font-weight: 550;
}
.client-aside-form .client-check {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-bottom: 0;
    max-width: 100%;
}
.client-aside-form .client-check input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--brand-strong);
}
.client-contact-list,
.client-note-list,
.client-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.client-aside-card.is-contacts {
    padding: 12px 14px;
}
.client-contact-list.is-compact {
    gap: 8px;
}
.client-contact-list.is-compact li {
    gap: 8px;
    align-items: center;
}
.client-contact-list.is-compact .client-contact-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
}
.client-contact-list.is-compact .client-contact-body {
    gap: 0;
    font-size: 12px;
}
.client-contact-list.is-compact .client-contact-top strong {
    font-size: 12.5px;
}
.client-contact-list.is-compact .client-owned-tag {
    margin-left: 0;
    padding: 1px 6px;
    font-size: 10px;
}
.client-contact-line {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: baseline;
}
.client-contact-line a {
    color: var(--brand-strong);
    text-decoration: none;
}
.client-contact-line a:hover { text-decoration: underline; }
.client-aside-card.is-contacts .btn-aside-add {
    min-width: 28px;
    padding: 4px 8px;
}
.client-doc-body a {
    color: var(--brand-strong);
    text-decoration: none;
}
.client-doc-body a:hover { text-decoration: underline; }

.client-contact-list li,
.client-note-list li,
.client-doc-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.client-contact-avatar,
.client-note-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffe4e8;
    color: #b42318;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.client-note-avatar {
    background: #eef2ff;
    color: #3538cd;
}
.client-contact-body,
.client-doc-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
}
.client-contact-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.client-contact-role { color: var(--muted); }
.client-contact-body a {
    color: var(--brand-strong);
    text-decoration: none;
}
.client-note-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
}
.client-note-meta time {
    color: var(--muted);
    white-space: nowrap;
}
.client-note-list p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.45;
}
.client-doc-ico {
    color: #b42318;
    flex-shrink: 0;
}
.client-doc-body strong {
    display: block;
    font-size: 13px;
    word-break: break-word;
}
.client-doc-body span {
    color: var(--muted);
    font-size: 11.5px;
}
@media (max-width: 1100px) {
    .client-shell {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
    .client-info-grid,
    .client-info-grid.is-compact {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .client-shell {
        grid-template-columns: 1fr;
    }
    .client-aside {
        position: static;
    }
    .client-detail-head {
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .client-info-grid,
    .client-info-grid.is-compact,
    .client-inline-grid {
        grid-template-columns: 1fr;
    }
}


/* —— Modèles de réponse (maquette) —— */
.page-templates {
    max-width: none;
    position: relative;
}
.page-templates.has-template-drawer {
    padding-right: min(420px, 42vw);
}
.templates-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.templates-head h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}
.templates-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    align-items: center;
}
.templates-toolbar .tickets-search {
    flex: 1;
    min-width: 220px;
    margin: 0;
}
.templates-service-filter select {
    margin: 0;
    min-width: 200px;
}
.templates-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: visible;
}
.templates-title a {
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
}
.templates-title a:hover {
    color: var(--brand-strong);
    text-decoration: underline;
}
.templates-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-sm {
    padding: 6px 10px;
    font-size: 12.5px;
}
.tpl-service-pill {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f2f4f7;
    color: #475467;
}
.tpl-service-pill.is-ssl { background: #ffe8e8; color: #9f2d2d; }
.tpl-service-pill.is-waf { background: #fff1e0; color: #b54708; }
.tpl-service-pill.is-host { background: #f0e8ff; color: #6941c6; }
.tpl-service-pill.is-mail { background: #fee4e2; color: #b42318; }
.tpl-service-pill.is-seo { background: #e8f8ef; color: #067647; }
.tpl-service-pill.is-dev { background: #e8f1ff; color: #2e6bdb; }
.tpl-service-pill.is-domain { background: #fff8eb; color: #b54708; }
.tpl-service-pill.is-all { background: #f2f4f7; color: #475467; }

.template-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(40, 20, 20, .08);
    z-index: 80;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 20px;
    overflow: auto;
}
.template-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.template-drawer-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
}
.template-drawer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.template-drawer-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 550;
}
.template-drawer-form input,
.template-drawer-form select,
.template-drawer-form textarea {
    width: 100%;
    margin: 0;
    font-weight: 400;
}
.template-body-field .field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 550;
}
.template-editor-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.template-editor-toolbar button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.template-editor-toolbar button:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
}
.template-editor-toolbar .material-symbols-outlined { font-size: 18px; }
.template-vars {
    margin-top: 4px;
}
.template-var-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.template-var-chip {
    border: 1px solid #f3c4c4;
    background: #fff1f0;
    color: #9f2d2d;
    border-radius: 999px;
    padding: 4px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.template-var-chip:hover {
    background: #ffe4e8;
}
.template-drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}
@media (max-width: 980px) {
    .page-templates.has-template-drawer {
        padding-right: 0;
    }
    .template-drawer {
        width: min(100vw, 420px);
    }
}

.templates-usage {
    position: relative;
    display: inline-flex;
}
.templates-usage-zero {
    color: var(--muted);
}
.templates-usage-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 4px 8px 4px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    cursor: pointer;
}
.templates-usage-btn .material-symbols-outlined {
    font-size: 16px;
    color: var(--muted);
}
.templates-usage-btn:hover,
.templates-usage.is-open .templates-usage-btn {
    border-color: var(--brand);
    color: var(--brand-strong);
}
.templates-usage-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(320px, 70vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(40, 20, 20, .14);
    z-index: 40;
    padding: 10px;
}
.templates-usage.is-open .templates-usage-panel {
    display: block;
}
.templates-usage-panel-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
}
.templates-usage-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow: auto;
}
.templates-usage-panel li + li {
    border-top: 1px solid var(--line);
}
.templates-usage-panel a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    padding: 8px 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}
.templates-usage-panel a:hover {
    background: #f7f4f4;
}
.templates-usage-panel strong {
    grid-row: 1 / span 2;
    color: var(--brand-strong);
    font-size: 12.5px;
    padding-top: 1px;
}
.templates-usage-panel span {
    font-size: 13px;
    font-weight: 550;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.templates-usage-panel small {
    font-size: 11.5px;
    color: var(--muted);
}

/* —— Équipe (maquette) —— */
.page-team {
    max-width: none;
    position: relative;
}
.page-team.has-team-drawer {
    padding-right: min(400px, 42vw);
}
.team-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.team-head h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}
.team-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    align-items: center;
}
.team-toolbar .tickets-search {
    flex: 1;
    min-width: 220px;
    margin: 0;
}
.team-role-filter select {
    margin: 0;
    min-width: 180px;
}
.team-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: visible;
}
.team-member-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.team-member-cell strong {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
}
.team-member-cell small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}
.team-phone { white-space: nowrap; }
.team-role-pill {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.team-role-pill.is-admin {
    background: #ffe8e8;
    color: #9f2d2d;
}
.team-role-pill.is-agent,
.team-role-pill.is-cmp {
    background: #e8f1ff;
    color: #2e6bdb;
}
.team-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(40, 20, 20, .08);
    z-index: 80;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 20px;
    overflow: auto;
}
.team-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.team-drawer-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
}
.team-drawer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.team-drawer-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 550;
}
.team-drawer-form input,
.team-drawer-form select {
    width: 100%;
    margin: 0;
    font-weight: 400;
}
.team-password-wrap {
    position: relative;
    display: block;
}
.team-password-wrap input {
    padding-right: 42px;
}
.team-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
}
.team-password-toggle .material-symbols-outlined { font-size: 18px; }
.team-drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}
@media (max-width: 980px) {
    .page-team.has-team-drawer {
        padding-right: 0;
    }
}

/* —— Journal (maquette) —— */
.page-journal { max-width: none; }
.journal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.journal-head h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}
.journal-head .btn .material-symbols-outlined {
    font-size: 18px;
    margin-right: 4px;
}
.journal-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px 14px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.journal-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 550;
}
.journal-filters input,
.journal-filters select {
    width: 100%;
    margin: 0;
    font-weight: 400;
}
.journal-period-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.journal-period-inputs input { min-width: 0; }
.journal-period-inputs span {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}
.journal-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 2px;
}
.journal-purge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5f5;
    border: 1px solid #f3c4c4;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.journal-purge-ico {
    color: #b42318;
    flex-shrink: 0;
}
.journal-purge-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}
.journal-purge-body strong {
    color: #9f2d2d;
}
.journal-purge-body span {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.journal-purge-body input[type="number"] {
    width: 64px;
    margin: 0;
    padding: 6px 8px;
}
.journal-table-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.journal-table-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.journal-per-page select {
    margin: 0;
    min-width: 120px;
}
.journal-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: visible;
}
.journal-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
}
.journal-type .material-symbols-outlined { font-size: 18px; }
.journal-type.is-mail { color: #b42318; }
.journal-type.is-ok { color: #067647; }
.journal-type.is-edit { color: #b54708; }
.journal-type.is-reply { color: #2e6bdb; }
.journal-type.is-sync { color: #6941c6; }
.journal-type.is-new { color: #3538cd; }
.journal-type.is-otp { color: #475467; }
.journal-actor,
.journal-subject {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .journal-filters {
        grid-template-columns: 1fr 1fr;
    }
    .journal-filter-actions {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .journal-filters {
        grid-template-columns: 1fr;
    }
    .journal-head {
        flex-direction: column;
    }
}

/* —— Paramètres (maquette) —— */
.page-settings { max-width: none; width: 100%; }
.settings-head {
    margin-bottom: 14px;
}
.settings-head h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}
.settings-head .tickets-lede {
    margin: 4px 0 0;
}
.settings-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
    width: 100%;
}
.settings-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px 12px;
}
.settings-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.settings-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.settings-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.settings-card-title-row h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.settings-card-sub {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}
.settings-card-lede {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.settings-card-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 10px;
}
.settings-card-inline .settings-card-lede {
    margin: 0;
    flex: 1 1 240px;
}
.settings-card-inline .settings-switch {
    margin: 0;
}
.settings-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    border-radius: 8px;
}
.settings-logo-pair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.settings-logo-pair .settings-logo-img {
    width: 28px;
    height: 28px;
}
.settings-logo-recaptcha {
    border-radius: 6px;
    background: #fff;
}
.settings-logo {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}
.settings-logo-gear {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f6f3f3;
    color: var(--brand-strong, #f07d8b);
}
.settings-logo-gear .material-symbols-outlined {
    font-size: 18px;
}
.settings-docs {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12.5px;
    gap: 4px;
    padding: 6px 10px;
}
.settings-docs .material-symbols-outlined {
    font-size: 15px;
}
.settings-card-tools {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    flex: 0 0 auto;
}
.settings-card-tools .settings-switch {
    margin: 0;
}
.settings-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}
.settings-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.settings-status.is-off {
    background: #fdecef;
    color: #c45b6a;
}
.settings-status.is-on {
    background: #e8f7ef;
    color: #1f8a4c;
}
.settings-status.is-warn {
    background: #fff6e5;
    color: #b76e00;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-bottom: 10px;
}
.settings-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.settings-grid-single {
    grid-template-columns: 1fr;
}
.settings-grid label,
.settings-grid-single label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}
.settings-grid label span em,
.settings-grid-single label span em {
    color: var(--brand-strong, #f07d8b);
    font-style: normal;
    font-weight: 700;
}
.settings-grid input,
.settings-grid select,
.settings-grid-single input,
.settings-grid-single select {
    font-weight: 400;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
}
.settings-span-2 { grid-column: span 2; }
.settings-span-3 { grid-column: 1 / -1; }
.settings-hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.35;
}
.settings-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.settings-card-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
}
.settings-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eef6ff;
    color: #2f5f8a;
    font-size: 12.5px;
    line-height: 1.35;
}
.settings-info .material-symbols-outlined {
    font-size: 16px;
    color: #3b82c4;
}
.settings-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
}
.settings-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.settings-switch-ui {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #d9d2d2;
    position: relative;
    transition: background .15s ease;
    flex: 0 0 auto;
}
.settings-switch-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .15s ease;
}
.settings-switch input:checked + .settings-switch-ui {
    background: var(--brand-strong, #f07d8b);
}
.settings-switch input:checked + .settings-switch-ui::after {
    transform: translateX(18px);
}
.settings-switch input:focus-visible + .settings-switch-ui {
    outline: 2px solid var(--brand-strong, #f07d8b);
    outline-offset: 2px;
}
.settings-advanced {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}
.settings-advanced > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--muted);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.settings-advanced > summary::-webkit-details-marker { display: none; }
.settings-advanced > summary::before {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    font-size: 16px;
    transition: transform .15s ease;
}
.settings-advanced[open] > summary::before {
    transform: rotate(180deg);
}
.settings-advanced[open] > summary {
    color: var(--ink);
}
.settings-advanced-intro {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f4f4;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
}
.settings-block {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.settings-block:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.settings-block h3 {
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.settings-block-lede {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
}
.settings-block-lede code {
    font-size: 11.5px;
    background: #f3f0f0;
    padding: 1px 5px;
    border-radius: 4px;
}
.settings-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff6d6;
    color: #6b5a12;
    font-size: 11px;
    font-weight: 600;
}
.settings-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-weight: 500 !important;
    min-height: 38px;
}
.settings-check input {
    width: auto !important;
}
.settings-advanced-actions {
    align-items: end;
    margin-top: 2px;
    margin-bottom: 0;
}
.settings-inline-email {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    min-width: 200px;
}
.settings-footer {
    padding-top: 2px;
}
@media (max-width: 1100px) {
    .settings-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .settings-span-2 { grid-column: span 1; }
}
@media (max-width: 780px) {
    .settings-card-head {
        flex-direction: column;
        align-items: stretch;
    }
    .settings-docs {
        align-self: flex-start;
    }
    .settings-grid,
    .settings-grid-3 {
        grid-template-columns: 1fr;
    }
    .settings-span-2 { grid-column: auto; }
}

/* —— Profil (maquette) —— */
.page-profile { max-width: none; width: 100%; }
.profile-head {
    margin-bottom: 16px;
}
.profile-head h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}
.profile-head .tickets-lede { margin: 4px 0 0; }
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: none;
}
.profile-summary {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
    width: 100%;
}
.profile-summary-main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 24px;
}
.profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
}
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: #ffd4d4;
    color: #8a3a3a;
    font-weight: 700;
    font-size: 30px;
}
.profile-avatar.is-initials { border: 0; }
.profile-avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-strong, #f07d8b);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    border: 2px solid #fff;
}
.profile-avatar-edit .material-symbols-outlined { font-size: 15px; }
.profile-summary-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 2px;
}
.profile-summary-name-row h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.profile-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.profile-status.is-on { background: #e8f7ef; color: #1f8a4c; }
.profile-status.is-off { background: #fdecef; color: #c45b6a; }
.profile-role-pill {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f3f0f0;
    color: var(--ink-soft, var(--ink));
    font-size: 12px;
    font-weight: 600;
}
.profile-summary-role {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}
.profile-summary-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-summary-contacts li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-soft, var(--ink));
}
.profile-summary-contacts li.is-muted { color: var(--muted); }
.profile-summary-contacts .material-symbols-outlined {
    font-size: 18px;
    color: var(--muted);
}
.profile-summary-contacts a {
    color: inherit;
    text-decoration: none;
}
.profile-summary-contacts a:hover { color: var(--brand-strong, #f07d8b); }
.profile-summary-meta {
    flex: 0 0 280px;
    border-left: 1px solid var(--line);
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.profile-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}
.profile-meta-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--brand-strong, #f07d8b);
    margin-top: 1px;
}
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
.profile-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}
.profile-stat strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.profile-stat span:last-child {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 2px;
}
.profile-stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fdecef;
    color: var(--brand-strong, #f07d8b);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.profile-stat-ico .material-symbols-outlined,
.profile-stat-ico svg {
    width: 20px;
    height: 20px;
    font-size: 20px;
}
.profile-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 14px;
    align-items: start;
    width: 100%;
}
.profile-col-main,
.profile-col-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.profile-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px 18px;
}
.profile-card-tip {
    background: linear-gradient(180deg, #fffaf8 0%, #fff 100%);
}
.profile-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.profile-card-head-row {
    justify-content: space-between;
    align-items: center;
}
.profile-card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-card-head h2 {
    margin: 0;
    font-size: 16px;
}
.profile-card-sub {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.profile-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-strong, #f07d8b);
    text-decoration: none;
}
.profile-card-link:hover { text-decoration: underline; }
.profile-card-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fdecef;
    color: var(--brand-strong, #f07d8b);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.profile-card-ico .material-symbols-outlined,
.profile-card-ico svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.profile-span-2 { grid-column: 1 / -1; }
.profile-grid label,
.profile-password {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}
.profile-grid label span em {
    color: var(--brand-strong, #f07d8b);
    font-style: normal;
}
.profile-grid input,
.profile-grid select,
.profile-password input {
    font-weight: 400;
    width: 100%;
}
.profile-grid label.is-locked span {
    color: var(--muted);
}
.profile-grid label.is-locked input:disabled,
.profile-grid input:disabled,
.profile-grid input[readonly] {
    background: #f3f1f1;
    color: #8a8183;
    border-color: #e4dede;
    cursor: not-allowed;
    opacity: 1;
}
.profile-password-wrap {
    position: relative;
    display: block;
}
.profile-password-wrap input { padding-right: 42px; }
.profile-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: grid;
    place-items: center;
}
.profile-password-toggle:hover { color: var(--ink); }
.profile-password-toggle .material-symbols-outlined { font-size: 18px; }
.profile-hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
}
.profile-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}
.profile-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.profile-shortcuts a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    background: #faf8f8;
}
.profile-shortcuts a:hover {
    border-color: #f0c4c8;
    background: #fff5f6;
    color: var(--brand-strong, #f07d8b);
}
.profile-shortcuts .material-symbols-outlined {
    font-size: 18px;
    color: var(--brand-strong, #f07d8b);
}
.profile-ticket-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.profile-ticket-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}
.profile-ticket-list a:hover { background: #faf7f7; }
.profile-ticket-ref {
    font-weight: 700;
    color: var(--brand-strong, #f07d8b);
    font-size: 13px;
}
.profile-ticket-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.profile-ticket-body strong {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-ticket-body span {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-ticket-date {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}
.profile-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}
.profile-tip-text {
    margin: 0;
    color: var(--ink-soft, var(--ink));
    font-size: 13.5px;
    line-height: 1.45;
}
@media (max-width: 1100px) {
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    .profile-columns {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 860px) {
    .profile-summary {
        flex-direction: column;
        gap: 16px;
    }
    .profile-summary-main { padding-right: 0; }
    .profile-summary-meta {
        flex-basis: auto;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 14px;
    }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-shortcuts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .profile-stats { grid-template-columns: 1fr; }
}

/* —— Tableau de bord CMP —— */
.page-dashboard {
    max-width: none;
    width: 100%;
    padding: 18px 22px 28px;
    background: var(--wash);
    box-sizing: border-box;
}
.dash { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin: 0;
}
.dash-head h1 {
    margin: 0 0 2px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.dash-lede {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    max-width: 62ch;
}
.dash-period label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
}
.dash-period select {
    width: auto;
    margin: 0;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 12.5px;
}
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.dash-kpi {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 0;
}
.dash-kpi-body { min-width: 0; flex: 1; }
.dash-kpi-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-kpi-ico .material-symbols-outlined { font-size: 18px; }
.dash-kpi-ico.is-recv { background: #ffe4e1; color: #b42318; }
.dash-kpi-ico.is-work { background: #fffaeb; color: #b54708; }
.dash-kpi-ico.is-done { background: #ecfdf3; color: #067647; }
.dash-kpi-label {
    display: block;
    font-size: 12px;
    font-weight: 550;
    color: var(--ink-soft);
    line-height: 1.2;
}
.dash-kpi-value {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}
.dash-kpi-meta {
    margin: 5px 0 0;
    font-size: 11.5px;
    line-height: 1.25;
    color: var(--muted);
}
.dash-kpi-meta.is-up { color: #067647; }
.dash-kpi-meta.is-warn { color: #b54708; }
.dash-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    align-items: stretch;
}
.dash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.dash-card-head h2 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 650;
}
.dash-card-head select {
    width: auto;
    margin: 0;
    height: 28px;
    padding: 0 8px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 12px;
}
.dash-card-link {
    color: var(--brand-strong);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.dash-card-link:hover { text-decoration: underline; }
.dash-evo { min-height: 220px; }
.dash-evo-chart {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
}
.dash-evo-chart svg { width: 100%; height: auto; max-height: 168px; display: block; }
.dash-grid { stroke: #f0ecec; stroke-width: 1; }
.dash-area { fill: rgba(255, 143, 143, .18); }
.dash-line { stroke: var(--brand-strong); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.dash-dot { fill: var(--brand-strong); stroke: #fff; stroke-width: 1.5; }
.dash-axis { fill: #98a2b3; font-size: 10px; font-family: inherit; }
.dash-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 11.5px;
    color: var(--muted);
}
.dash-legend-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-strong);
}
.dash-donut-card { min-height: 220px; }
.dash-donut-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.dash-donut {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
}
.dash-donut svg { width: 100%; height: 100%; }
.dash-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.dash-donut-center strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}
.dash-donut-center span {
    font-size: 11px;
    color: var(--muted);
}
.dash-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash-donut-legend li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}
.dash-dot-swatch {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dash-donut-lab {
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-donut-n { font-weight: 650; color: var(--ink); }
.dash-donut-pct { color: var(--muted); min-width: 32px; text-align: right; }
.dash-section-title {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 650;
}
.dash-watch { margin: 0; }
.dash-watch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.dash-watch-card {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}
.dash-watch-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-watch-ico .material-symbols-outlined { font-size: 18px; }
.dash-watch-card.is-block .dash-watch-ico { background: #fee4e2; color: #b42318; }
.dash-watch-card.is-wait .dash-watch-ico { background: #fffaeb; color: #b54708; }
.dash-watch-card.is-unassigned .dash-watch-ico { background: #ffe4e1; color: #c01048; }
.dash-watch-card strong {
    display: block;
    font-size: 12.5px;
    font-weight: 650;
    margin-bottom: 1px;
    line-height: 1.25;
}
.dash-watch-card p {
    margin: 0 0 4px;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.3;
}
.dash-watch-card a {
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}
.dash-watch-card.is-block a { color: #b42318; }
.dash-watch-card.is-wait a { color: #b54708; }
.dash-watch-card.is-unassigned a { color: #c01048; }
.dash-watch-card a:hover { text-decoration: underline; }
.dash-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}
.dash-bar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dash-bar-list li {
    display: grid;
    grid-template-columns: minmax(110px, 150px) 1fr auto;
    gap: 8px;
    align-items: center;
}
.dash-bar-who {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.dash-bar-lab {
    font-size: 12.5px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-bar-track {
    height: 7px;
    border-radius: 999px;
    background: #f2ecec;
    overflow: hidden;
}
.dash-bar-track > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--brand-strong);
}
.dash-bar-n {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ink);
    min-width: 1.5ch;
    text-align: right;
}
.dash-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffd4d4;
    color: #8a3a3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    flex-shrink: 0;
}
.dash-activity { padding-bottom: 4px; }
.dash-table-wrap { overflow-x: auto; }
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dash-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
}
.dash-table td {
    padding: 8px;
    border-bottom: 1px solid #f0ecec;
    vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 550;
}
.dash-table a:hover { color: var(--brand-strong); }
.dash-id { color: var(--brand-strong) !important; font-weight: 700 !important; }
.dash-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.dash-muted { color: var(--muted); font-size: 12.5px; }
.dash-empty {
    margin: 6px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.page-dashboard .status-pill {
    padding: 2px 8px;
    font-size: 11.5px;
}
.page-dashboard .status-en_cours {
    background: #eef4ff;
    color: #3538cd;
}
.page-dashboard .status-nouveau {
    background: #f2f4f7;
    color: #475467;
}
@media (max-width: 1100px) {
    .dash-charts,
    .dash-bars { grid-template-columns: 1fr; }
    .dash-evo,
    .dash-donut-card { min-height: 0; }
}
@media (max-width: 860px) {
    .dash-kpis,
    .dash-watch-grid { grid-template-columns: 1fr; }
    .page-dashboard { padding: 14px 14px 24px; }
    .dash-bar-list li { grid-template-columns: minmax(90px, 120px) 1fr auto; }
}

/* —— Mentions légales / confidentialité —— */
.page.page-legal {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 24px 28px 40px;
    background: var(--wash);
    box-sizing: border-box;
}
.app-main:has(.page-legal) {
    background: var(--wash);
}
.public-shell > .page.page-legal {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 28px 32px 40px;
}
.legal-page { width: 100%; max-width: none; margin: 0; }
.legal-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}
.legal-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
.legal-hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.legal-lede {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: none;
}
.legal-lede a {
    color: var(--brand-strong);
    font-weight: 600;
    text-decoration: none;
}
.legal-lede a:hover { text-decoration: underline; }
.legal-hero-art {
    position: relative;
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    color: var(--brand);
    opacity: .85;
}
.legal-hero-art .material-symbols-outlined {
    font-size: 88px;
    position: absolute;
    right: 0;
    top: 0;
    opacity: .35;
}
.legal-hero-art .is-doc {
    font-size: 64px;
    right: 28px;
    top: 18px;
    opacity: .9;
    color: var(--brand-strong);
}
.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}
.legal-grid-single {
    grid-template-columns: 1fr 1fr;
    max-width: none;
}
.legal-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
}
.legal-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.legal-card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.legal-card-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 143, 143, .16);
    color: var(--brand-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.legal-card-ico .material-symbols-outlined { font-size: 20px; }
.legal-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legal-dl > div {
    display: grid;
    grid-template-columns: minmax(110px, 160px) 1fr;
    gap: 8px 12px;
    align-items: start;
}
.legal-dl dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.legal-dl dd {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.4;
}
.legal-dl a,
.legal-card a {
    color: var(--brand-strong);
    text-decoration: none;
    font-weight: 550;
}
.legal-dl a:hover,
.legal-card a:hover { text-decoration: underline; }
.legal-card p {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.55;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-mail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 143, 143, .14);
    color: var(--brand-strong) !important;
    font-weight: 650 !important;
    text-decoration: none !important;
}
.legal-mail-pill:hover { background: rgba(255, 143, 143, .22); }
.legal-mail-pill .material-symbols-outlined { font-size: 18px; }
.legal-link {
    font-weight: 650 !important;
}
@media (max-width: 900px) {
    .legal-grid,
    .legal-grid-single { grid-template-columns: 1fr; }
    .legal-hero { flex-direction: column; }
    .legal-hero-art { display: none; }
    .legal-dl > div { grid-template-columns: 1fr; gap: 2px; }
    .page.page-legal,
    .public-shell > .page.page-legal { padding: 18px 16px 32px; }
}

/* —— Bandeau cookies —— */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(32, 28, 28, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(32, 28, 28, .14);
}
.cookie-banner-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 143, 143, .16);
    color: var(--brand-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cookie-banner-ico .material-symbols-outlined { font-size: 22px; }
.cookie-banner-copy { flex: 1; min-width: 0; }
.cookie-banner-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.cookie-banner-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}
.cookie-banner-text a {
    color: var(--brand-strong);
    font-weight: 600;
    white-space: nowrap;
}
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-banner-actions .btn {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
}
@media (max-width: 720px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-banner-ico { display: none; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* —— Templates e-mails (aperçu) —— */
.email-tpl-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.email-tpl-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.email-tpl-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    transition: background .15s ease, color .15s ease;
}
.email-tpl-tab:hover { background: var(--wash); color: var(--ink); }
.email-tpl-tab.is-active {
    background: var(--brand, #ff8f8f);
    color: #fff;
}
.email-tpl-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.email-tpl-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 143, 143, .08), transparent);
}
.email-tpl-panel-title {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
}
.email-tpl-panel-hint {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.email-tpl-master { margin: 0; }
.email-tpl-master-switch,
.email-tpl-row-switch {
    margin: 0;
    white-space: nowrap;
}
.email-tpl-auth-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}
.email-tpl-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: stretch;
    min-height: 640px;
}
.email-tpl-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-right: 1px solid var(--line);
    background: #faf8f8;
}
.email-tpl-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 2px;
}
.email-tpl-row.is-active {
    background: #fff;
    border-color: rgba(255, 143, 143, .4);
    box-shadow: 0 1px 0 rgba(40, 24, 28, .04);
}
.email-tpl-toggle-form { margin: 0; padding-right: 6px; }
.email-tpl-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
}
.email-tpl-item:hover { background: rgba(255, 255, 255, .7); }
.email-tpl-row.is-active .email-tpl-item:hover { background: transparent; }
.email-tpl-item strong {
    font-size: 13.5px;
    font-weight: 650;
}
.email-tpl-meta {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}
.email-tpl-switch-label {
    font-size: 11px;
    color: var(--muted);
    min-width: 22px;
}
.email-tpl-preview {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    background: #fff;
}
.email-tpl-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.email-tpl-preview-head h3 {
    margin: 0 0 6px;
    font-size: 17px;
}
.email-tpl-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
.email-tpl-subject {
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
}
.email-tpl-subject span {
    color: var(--muted);
    font-weight: 600;
    margin-right: 6px;
}
.email-tpl-frame {
    width: 100%;
    flex: 1;
    min-height: 520px;
    border: 0;
    background: #f4f2f2;
}
.email-tpl-text {
    border-top: 1px solid var(--line);
    padding: 10px 16px 14px;
}
.email-tpl-text summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.email-tpl-text pre {
    margin: 10px 0 0;
    white-space: pre-wrap;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ink-soft);
}
@media (max-width: 900px) {
    .email-tpl-tabs {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .email-tpl-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .email-tpl-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .email-tpl-list {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .email-tpl-preview,
    .email-tpl-frame {
        min-height: 420px;
    }
}

.aside-tips.is-featured {
    border-color: rgba(255, 143, 143, .45);
    background: linear-gradient(180deg, rgba(255, 143, 143, .10), #fff 42%);
    box-shadow: 0 8px 22px rgba(40, 24, 28, .05);
}
.aside-tips-lede {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 450;
}
.aside-tips.is-featured .aside-tips-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.aside-tips.is-featured .aside-tips-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 143, 143, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aside-tips.is-featured .aside-tips-list li {
    font-size: 13.5px;
    line-height: 1.45;
}

/* —— Installation —— */
.install-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(255, 143, 143, .22), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(46, 107, 219, .08), transparent 50%),
        var(--wash);
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
}
.install-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 20px 48px;
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.install-aside {
    position: sticky;
    top: 28px;
    padding: 8px 4px 0;
}
.install-logo {
    display: block;
    width: auto;
    height: 40px;
    margin-bottom: 22px;
}
.install-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
.install-aside h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 700;
}
.install-lede {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.5;
}
.install-checklist {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.install-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-soft);
}
.install-checklist .material-symbols-outlined {
    font-size: 20px;
    color: var(--brand-strong);
}
.install-aside-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
}
.install-aside-note code {
    font-size: 12px;
}
.install-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.install-form {
    display: grid;
    gap: 14px;
}
.install-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 24px rgba(20, 18, 19, .04);
}
.install-panel-head {
    margin-bottom: 14px;
}
.install-panel-head h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
}
.install-panel-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.install-optional {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    background: var(--wash);
    vertical-align: middle;
}
.install-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}
.install-grid label {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}
.install-grid label .hint {
    margin: 0;
    font-weight: 400;
    font-size: 12px;
}
.install-grid input,
.install-grid select {
    margin: 0;
    min-height: 40px;
}
.install-grid .span-2 {
    grid-column: 1 / -1;
}
.install-actions {
    display: flex;
    justify-content: flex-end;
}
.install-actions .btn {
    min-width: 220px;
    min-height: 44px;
    font-weight: 650;
}
.install-main > .flash {
    margin: 0;
}
@media (max-width: 880px) {
    .install-shell {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }
    .install-aside {
        position: static;
    }
}
@media (max-width: 560px) {
    .install-grid {
        grid-template-columns: 1fr;
    }
    .install-actions .btn {
        width: 100%;
    }
}

/* Passerelle WordPress — fiche client */
.client-bridge-card {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.25rem 1.15rem;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: 12px;
    background: linear-gradient(165deg, #faf7f7 0%, #fff 55%);
}
.client-bridge-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}
.client-bridge-ico {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f07575;
    color: #fff;
    flex-shrink: 0;
}
.client-bridge-ico .material-symbols-outlined {
    font-size: 1.25rem;
}
.client-bridge-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}
.client-bridge-head p {
    margin: 0;
    color: var(--muted, #666);
    font-size: 0.92rem;
    line-height: 1.4;
}
.client-bridge-steps {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
    color: var(--ink, #222);
    font-size: 0.92rem;
    line-height: 1.45;
}
.client-bridge-steps li + li {
    margin-top: 0.2rem;
}
.client-bridge-key-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}
.client-bridge-key-field {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.client-bridge-key-field input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.client-bridge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.client-bridge-actions form {
    margin: 0;
}
.client-bridge-meta {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}
.client-bridge-meta code {
    font-size: 0.85em;
}
.client-bridge-head {
    position: relative;
}
.client-bridge-badge {
    margin-left: auto;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f0f0f1;
    color: #50575e;
    white-space: nowrap;
}
.client-bridge-badge.is-on {
    background: #ecfdf3;
    color: #067647;
}
.client-bridge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 980px) {
    .client-bridge-grid {
        grid-template-columns: 1fr;
    }
}
.client-bridge-block {
    background: #fff;
    border: 1px solid var(--line, #e8e8e8);
    border-radius: 10px;
    padding: 0.95rem 1rem 1.05rem;
}
.client-bridge-block h3 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
}
.client-bridge-secret {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    align-items: center;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    background: #f6f7f7;
    border-radius: 8px;
}
.client-bridge-secret-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #666);
}
.client-bridge-secret-value {
    flex: 1 1 auto;
    font-size: 0.85rem;
    word-break: break-all;
}
.contact-email-masked {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
}
.tickets-support {
    position: relative;
}
.tickets-support[data-editing="1"] {
    z-index: 120;
    overflow: visible;
    border-radius: 12px;
}
.site-header:has(.tickets-support[data-editing="1"]),
.site-header-actions:has(.tickets-support[data-editing="1"]) {
    overflow: visible;
    z-index: 120;
}
.tickets-support-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 130;
    width: min(420px, calc(100vw - 24px));
    max-height: min(78vh, 640px);
    padding: 0;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
    display: flex;
    flex-direction: column;
    white-space: normal;
    color: #1d2327;
    overflow: hidden;
}
.tickets-support-panel[hidden] {
    display: none !important;
}
.tickets-support-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1rem 0.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.tickets-support-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #344054;
}
.tickets-support-panel input[type="text"] {
    font-weight: 500;
    font-size: 0.85rem;
    color: #1d2327;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 8px 10px;
}
.tickets-support-colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.65rem;
}
.tickets-support-colors label {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.72rem;
}
.tickets-support-colors input[type="color"] {
    width: 2rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: transparent;
}
.tickets-support-panel-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid #eaecf0;
    background: #f9fafb;
}
.tickets-support-save-btn {
    gap: 6px;
    min-height: 34px;
    background: #ff8f8f !important;
    border-color: #f07575 !important;
    color: #1a1516 !important;
}
.tickets-support-save-btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}
.tickets-support-panel-actions .btn-ghost {
    background: #fff !important;
    color: #344054 !important;
}


