/* Pages modules (ancien dashboard) affichées sur squir.fr : couleurs, polices et marque Squir */
:root.squir:not([data-theme]) {
  --bg: #0f1012; --bg-2: #0f1012; --panel: #15161a; --panel-2: #1a1b20; --panel-3: #212228;
  --border: #222329; --border-2: #2c2d35;
  --red: #ff5a1f; --red-2: #ff7b42; --red-dark: #7a2a0d;
  --red-soft: rgba(255, 90, 31, .12); --red-line: rgba(255, 90, 31, .4);
  --kp-font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Red Hat Display', 'Inter', system-ui, sans-serif;
}
:root.squir:not([data-theme]) body:has(.app.kp), :root.squir:not([data-theme]) .kp .sidebar { background: #0c0d0f }
:root.squir:not([data-theme]) .kp .topbar { background: rgba(15, 16, 18, .88) }
:root.squir .kp h1, :root.squir .kp h2, :root.squir .kp .module-head h1 { font-family: var(--display); letter-spacing: -.02em }
:root.squir .kp .nav-item.active { color: #fff }
:root.squir .kp .nav-item.active svg { color: var(--red-2) }

.sq-brand { display: flex; align-items: center; gap: 10px; text-decoration: none }
.sq-brand img { width: 30px; height: 30px; object-fit: contain }
.sq-brand b { font-family: 'Red Hat Display', 'Inter', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: #fff }
.sq-brand b i { font-style: normal; color: #ff5a1f }

/* Entrée douce du contenu */
:root.squir .kp .content > * { animation: sqIn .45s cubic-bezier(.2, .7, .2, 1) both }
:root.squir .kp .content > *:nth-child(2) { animation-delay: .05s }
:root.squir .kp .content > *:nth-child(3) { animation-delay: .1s }
:root.squir .kp .content > *:nth-child(n+4) { animation-delay: .15s }
@keyframes sqIn { from { opacity: 0; transform: translateY(10px) } }
@media (prefers-reduced-motion: reduce) { :root.squir .kp .content > * { animation: none } }

/* Menu Squir sur les pages modules */
.sqs { --line: #222329; --line2: #2c2d35; --card: #15161a; --card2: #1a1b20; --card3: #212228; --text: #f4f4f6; --muted: #a0a0ab; --dim: #6b6b76; --accent: #ff5a1f; --accent2: #ff7b42; --bg2: #0c0d0f; --display: 'Red Hat Display', 'Inter', system-ui, sans-serif }
:root.squir .kp .sidebar.sqs { display: flex; flex-direction: column; padding: 22px 16px 14px; background: #0c0d0f; border-right: 1px solid #222329; font-family: 'Inter', system-ui, sans-serif }
.sqs a { color: inherit; text-decoration: none } .sqs button { font: inherit; color: inherit; cursor: pointer } .sqs svg.lucide { width: 18px; height: 18px; flex-shrink: 0 } .sqs img { display: block; object-fit: cover }
.sqs .brand { justify-content: center; margin-bottom: 22px; color: #fff }
.sqs .ws-btn { color: var(--text) }
.sqs .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.04em }
.sqs .brand img { width: 34px; height: 34px } .sqs .brand i { color: var(--accent); font-style: normal }
.sqs .ws { position: relative; margin-bottom: 18px }
.sqs .ws-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line2); background: var(--card); text-align: left }
.sqs .ws-btn:hover { border-color: #3a3a48 }
.sqs .ws-btn .gi, .sqs .ws-it .gi { position: relative; width: 38px; height: 38px; border-radius: 11px; background: var(--card3); display: grid; place-items: center; flex-shrink: 0; overflow: hidden } .sqs .gi img { width: 100%; height: 100% } .sqs .gi svg.lucide { color: var(--muted) }
.sqs .ws-btn > span:not(.gi) { flex: 1; min-width: 0 } .sqs .ws-btn b, .sqs .ws-it b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .sqs .ws-btn small, .sqs .ws-it small { color: var(--dim); font-size: 12px }
.sqs .ws-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 13px; border: 1px solid var(--line2); background: #121218; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); display: none }
.sqs .ws.open .ws-menu { display: block }
.sqs .ws-it { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; font-size: 13.5px; color: var(--muted) } .sqs .ws-it:hover { background: var(--card2); color: var(--text) } .sqs .ws-it.cur { background: var(--card2); color: var(--text) } .sqs .ws-it.cur small { color: var(--accent2) } .sqs .ws-it .gi { width: 30px; height: 30px; border-radius: 9px }
.sqs .ws-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0 }
.sqs .side-nav { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px }
.sqs .sn-h { margin: 18px 10px 8px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase }
.sqs .snv { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14.5px; border: 1px solid transparent }
.sqs .snv:hover { color: var(--text); background: rgba(255, 255, 255, .03) }
.sqs .snv.on { color: var(--text); background: var(--card2); border-color: var(--line2) } .sqs .snv.on svg.lucide { color: var(--accent2) }
.sqs .sn-g > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer } .sqs .sn-g > summary::-webkit-details-marker { display: none }
.sqs .sn-g > summary:hover { color: var(--text) } .sqs .sn-g > summary svg.lucide { width: 15px; height: 15px; transition: transform .2s } .sqs .sn-g[open] > summary svg.lucide { transform: rotate(90deg) } .sqs .sn-g[open] > summary { color: var(--text) }
.sqs .sn-sub { margin: 2px 0 6px 18px; padding-left: 10px; border-left: 1px solid var(--line2) } .sqs .sn-sub .snv { font-size: 13.5px; padding: 7px 10px } .sqs .sn-sub .snv svg.lucide { width: 16px; height: 16px }
.sqs .side-foot { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px }
.sqs .side-cta { margin: 6px 0 12px; width: 100% }
.sqs .side-me { display: flex; align-items: center; gap: 10px; padding: 8px 6px } .sqs .side-me img { width: 36px; height: 36px; border-radius: 50% } .sqs .side-me > span { flex: 1; min-width: 0 } .sqs .side-me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .sqs .side-me small { color: var(--dim); font-size: 12px }
.sqs .side-me a { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted) } .sqs .side-me a:hover { background: var(--card2); color: var(--text) }
.sqs .sn-sep { height: 1px; background: var(--line); margin: 10px 6px }
@view-transition { navigation: auto }
.sqs { view-transition-name: sq-side }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s }
/* Bas du menu : progression des succès et émeraudes (le profil est déjà en haut à droite) */
.sqs .side-ach { display: flex; flex-direction: column; gap: 9px; padding: 12px 13px; border-radius: 13px; border: 1px solid var(--line2); background: var(--card); transition: border-color .2s }
.sqs .side-ach:hover { border-color: rgba(255, 90, 31, .4) }
.sqs .side-ach-top, .sqs .side-ach-low { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.sqs .side-ach-top b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600 } .sqs .side-ach-top b svg.lucide { width: 15px; height: 15px; color: var(--accent2) }
.sqs .side-ach-top > span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums }
.sqs .side-ach-bar { height: 5px; border-radius: 5px; background: var(--card3); overflow: hidden } .sqs .side-ach-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #d9430d, #ff7b42) }
.sqs .side-ach-low > span { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.sqs .side-ach-low em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #4ade80; flex-shrink: 0 } .sqs .side-ach-low em svg.lucide { width: 13px; height: 13px }
:root.squir * { scrollbar-width: thin; scrollbar-color: #2c2d35 transparent }
:root.squir ::-webkit-scrollbar { width: 8px; height: 8px } :root.squir ::-webkit-scrollbar-track { background: transparent }
:root.squir ::-webkit-scrollbar-thumb { background: #2c2d35; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box }
:root.squir ::-webkit-scrollbar-button { display: none; height: 0; width: 0 }
.sqs .ws-menu { right: auto; min-width: 100%; width: max-content; max-width: 320px; max-height: min(420px, 70vh); overflow-y: auto; z-index: 60 }
.sqs .ws.open .ws-menu { animation: wsIn .14s ease-out } @keyframes wsIn { from { opacity: 0; transform: translateY(-4px) } }
.sqs .ws-it { white-space: nowrap } .sqs .ws-it b { max-width: 230px }
.sqs .ws { z-index: 30 }

/* Pages modules : barre du haut épurée comme l'accueil Squir (le profil est en bas à gauche) */
:root.squir .kp .topbar .kp-bell-host, :root.squir .kp .topbar .kp-discord, :root.squir .kp .topbar .search-trigger, :root.squir .kp .topbar .kp-user, :root.squir .kp .topbar #layoutBtn, :root.squir #langPick { display: none !important }
:root.squir .kp .topbar { border-bottom-color: transparent; background: transparent; backdrop-filter: none }
:root.squir .kp .topbar .crumbs { font-size: 14px }
:root.squir .kp .topbar .kp-saved { margin-left: auto }

/* Profil en bas à gauche (comme sur l'accueil Squir) */
.sqs .side-me { display: flex; align-items: center; gap: 10px; padding: 8px 6px }
.sqs .side-me a.side-me-l { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; width: auto; height: auto; color: inherit; border-radius: 10px }
.sqs .side-me a.side-me-l:hover { background: none } .sqs .side-me a.side-me-l:hover b { color: var(--accent2) }
.sqs .side-me .side-me-l img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0 }
.sqs .side-me .side-me-l > span { min-width: 0; display: block } .sqs .side-me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .sqs .side-me small { display: block; color: var(--dim); font-size: 12px }
.sqs .side-me > a:last-child { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; color: var(--muted) } .sqs .side-me > a:last-child:hover { background: var(--card2); color: var(--text) }

/* Contenu des modules : icônes neutres comme sur l'accueil (plus de carrés orange) */
:root.squir .kp .content [class$="-ic"], :root.squir .kp .content [class*="-ic "], :root.squir .kp .content .module-icon, :root.squir .kp .content .kp-head-ic, :root.squir .kp .content .card-ic {
  background: #1a1b20 !important; border-color: #2c2d35 !important; color: #e8e8ec !important; box-shadow: none !important }
:root.squir .kp .content [class$="-ic"] svg, :root.squir .kp .content .module-icon svg { color: #e8e8ec !important; filter: none !important }
:root.squir .kp .content h1, :root.squir .kp .content h2, :root.squir .kp .content .card-title { font-family: 'Red Hat Display', 'Inter', sans-serif }
/* Annonce de l'équipe : bandeau discret */
:root.squir .kp .kp-gnotice { background: #15161a !important; border: 1px solid #26272e !important; border-radius: 12px; margin: 14px 24px 0 !important; color: #e8e8ec }
:root.squir .kp .kp-gnotice > svg { color: #ff7b42 !important }

/* ---------- Pages modules : même mise en page que l'accueil Squir ---------- */
:root.squir .kp .content { max-width: none; margin: 0; padding: 28px 44px 70px }
:root.squir .kp .module-form, :root.squir .kp .module-form ~ .card { max-width: none }
/* En-tête : icône au-dessus du titre, comme les pages Squir */
:root.squir .kp .kp-head, :root.squir .kp .module-head { flex-wrap: wrap; align-items: flex-end; gap: 0 20px; margin-bottom: 14px }
:root.squir .kp .kp-head-ic, :root.squir .kp .module-icon { flex-basis: 100%; max-width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px }
:root.squir .kp .kp-head-txt, :root.squir .kp .module-title { flex: 1; padding-top: 0 }
:root.squir .kp .kp-head-txt h1, :root.squir .kp .module-title h1 { font-family: 'Red Hat Display', 'Inter', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -.03em }
:root.squir .kp .kp-head-txt p, :root.squir .kp .module-title p { color: #a0a0ab; font-size: 15px; margin-top: 6px }
/* Cartes comme sur l'accueil */
:root.squir:not([data-theme]) .kp .card, :root.squir .kp .content [class*="-card"]:not(.kp-demo-card) { background: #15161a; border: 1px solid #222329; border-radius: 16px; box-shadow: none }
:root.squir .kp .card-head { border-bottom-color: #222329 }
:root.squir .kp .card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em }
:root.squir .kp .content .btn-red { background: #ff5a1f; border-color: #ff5a1f }
:root.squir .kp .content .btn-red:hover { background: #ff7b42; border-color: #ff7b42 }
@media (max-width: 900px) { :root.squir .kp .content { padding: 20px 16px 90px } }

/* =====================================================================
   DA de l'accueil Squir appliquée à toutes les pages modules
   (carte = en-tête « titre » séparé par un trait, puis des lignes ; accents neutres)
   ===================================================================== */
:root.squir .kp .content { --sq-card: #15161a; --sq-line: #222329; --sq-line2: #2c2d35; --sq-muted: #a0a0ab; --sq-dim: #6b6b76 }
/* En-tête de page : icône au-dessus, grand titre, texte gris, actions à droite */
:root.squir .kp .module-head { display: grid !important; grid-template-columns: minmax(0, 1fr); grid-auto-columns: max-content; grid-auto-flow: column; align-items: end; gap: 0 10px; margin-bottom: 10px }
:root.squir .kp .module-head > * { grid-row: 2 }
:root.squir .kp .module-head > .module-icon { grid-row: 1; grid-column: 1 / -1; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 13px }
:root.squir .kp .module-head > .module-title { grid-column: 1 }
:root.squir .kp .module-title h1, :root.squir .kp .kp-head-txt h1 { font-family: 'Red Hat Display', 'Inter', sans-serif !important; font-size: 32px !important; font-weight: 700 !important; letter-spacing: -.03em !important }
:root.squir .kp .module-title p, :root.squir .kp .kp-head-txt p { color: var(--sq-muted); font-size: 15px }
/* Cartes */
:root.squir .kp .content .card { padding: 0 !important; overflow: hidden; background: var(--sq-card) !important; border: 1px solid var(--sq-line) !important; border-radius: 16px !important }
:root.squir .kp .content .card > * { margin-left: 22px; margin-right: 22px }
:root.squir .kp .content .card > :last-child { margin-bottom: 20px }
:root.squir .kp .content .card > .card-title, :root.squir .kp .content .card > .card-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; padding: 18px 22px; border-bottom: 1px solid var(--sq-line);
  font: 600 15.5px 'Inter', system-ui, sans-serif !important; letter-spacing: 0 !important; color: #f4f4f6 }
:root.squir .kp .content .card > .card-head .card-title { font: 600 15.5px 'Inter', system-ui, sans-serif !important; margin: 0 !important; padding: 0; border: 0 }
:root.squir .kp .content .card-title svg { width: 17px; height: 17px; color: var(--sq-muted) }
/* Réglages en lignes, comme les lignes « Dernières actions » */
:root.squir .kp .content .card > .field, :root.squir .kp .content .card > .field-inline, :root.squir .kp .content .card .more-grid > .field-inline { margin-top: 0 !important; margin-bottom: 0 !important; padding: 16px 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; border-top: 1px solid #1c1d22 !important }
:root.squir .kp .content .card > .card-title + .field, :root.squir .kp .content .card > .card-title + .field-inline, :root.squir .kp .content .card > .card-head + .field, :root.squir .kp .content .card > .card-head + .field-inline { border-top: 0 !important }
:root.squir .kp .content .field label { color: #f4f4f6; font-weight: 600 } :root.squir .kp .content .field small, :root.squir .kp .content .muted { color: var(--sq-dim) }
/* Bloc « raccourci » (console live…) : comme « Protection du serveur » */
:root.squir .kp .content .console-cta { display: flex; align-items: center; gap: 16px; padding: 16px 20px !important; border-left: 1px solid var(--sq-line) !important }
:root.squir .kp .content .console-cta > * { margin: 0 !important }
:root.squir .kp .content .console-cta::before { display: none !important }
/* Boutons : neutres comme « Paramètres » ; seuls l'enregistrement et les interrupteurs restent orange */
:root.squir .kp .content .btn-red:not(.savebar .btn-red) { background: #1a1b20 !important; border: 1px solid var(--sq-line2) !important; color: #f4f4f6 !important; box-shadow: none !important }
:root.squir .kp .content .btn-red:not(.savebar .btn-red):hover { background: #212228 !important; border-color: #3a3b45 !important }
:root.squir .kp .content .btn-ghost { background: #15161a !important; border-color: var(--sq-line2) !important; color: #f4f4f6 !important }
/* Commandes et variables : pastilles neutres */
:root.squir .kp .content .cmd-list span, :root.squir .kp .content .var-chip, :root.squir .kp .content .vars code, :root.squir .kp .content .field small code { background: #1a1b20 !important; border: 1px solid var(--sq-line2) !important; border-radius: 8px !important; color: var(--sq-muted) }
:root.squir .kp .content .cmd-list code, :root.squir .kp .content code { color: #e8e8ec !important; background: none }
/* Champs */
:root.squir .kp .content input[type=text], :root.squir .kp .content input[type=number], :root.squir .kp .content input[type=url], :root.squir .kp .content input:not([type]), :root.squir .kp .content select, :root.squir .kp .content textarea { background: #0f1012 !important; border-color: var(--sq-line2) !important; border-radius: 11px !important }
/* Onglets internes (Configuration, Tickets, Transcripts…) */
:root.squir .kp .content .tabs, :root.squir .kp .content .kp-tabs { border-bottom-color: var(--sq-line) }

/* Panel admin : mêmes cartes que l'accueil */
body.adm-body.sqa .adm-main .card { padding: 0 !important; overflow: hidden }
body.adm-body.sqa .adm-main .card > * { margin-left: 22px; margin-right: 22px }
body.adm-body.sqa .adm-main .card > :last-child { margin-bottom: 20px }
body.adm-body.sqa .adm-main .card > .card-title, body.adm-body.sqa .adm-main .card > .card-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; padding: 18px 22px; border-bottom: 1px solid #222329; font: 600 15.5px 'Inter', system-ui, sans-serif !important }
body.adm-body.sqa .adm-main .card > .card-head .card-title { font: 600 15.5px 'Inter', system-ui, sans-serif !important; margin: 0; padding: 0; border: 0 }
body.adm-body.sqa .adm-main .btn-red { background: #1a1b20 !important; border: 1px solid #2c2d35 !important; color: #f4f4f6 !important }
body.adm-body.sqa .adm-main .btn-red:hover { background: #212228 !important }
:root.squir .kp .kp-head { display: grid !important; grid-template-columns: minmax(0, 1fr); grid-auto-columns: max-content; grid-auto-flow: column; align-items: end; gap: 0 10px; margin-bottom: 10px }
:root.squir .kp .kp-head > * { grid-row: 2 } :root.squir .kp .kp-head > .kp-head-ic { grid-row: 1; grid-column: 1 / -1; width: 48px; height: 48px; margin-bottom: 18px }
:root.squir .kp .kp-head > .kp-head-txt { grid-column: 1 }

/* =====================================================================
   Cadre identique à Accueil / À traiter : mêmes couleurs, même menu, mêmes marges
   ===================================================================== */
:root.squir, :root.squir:not([data-theme]) {
  --sidebar: 272px !important;
  --bg: #0f1012; --bg-2: #0f1012; --panel: #15161a; --panel-2: #1a1b20; --panel-3: #212228;
  --border: #222329; --border-2: #2c2d35; --text: #ececf1; --muted: #9c9cab; --dim: #686876;
}
:root.squir:not([data-theme]) body, :root.squir:not([data-theme]) body:has(.app.kp) { background: #0f1012 !important; font: 15px/1.55 'Inter', system-ui, sans-serif; color: #ececf1 }
:root.squir .app.kp, :root.squir .app.kp > .main, :root.squir .kp .content { background: #0f1012 !important }
:root.squir:not([data-theme]) .kp .sidebar.sqs { width: 272px !important; background: #121316 !important; border-right: 1px solid #222329 !important; padding: 22px 16px 14px !important; gap: 0 !important }
:root.squir .kp .kp-resizer { display: none !important }
/* Zone de droite : mêmes marges que .main des pages Squir (0 44px 60px), fil d'Ariane de 72px non collant */
:root.squir .app.kp > .main { padding: 0 44px 60px !important }
:root.squir .kp .topbar { position: static !important; height: 72px !important; min-height: 72px; padding: 0 !important; border: 0 !important; background: none !important; backdrop-filter: none !important; color: #9c9cab; font-size: 14px }
:root.squir .kp .topbar .crumbs { font-size: 14px; color: #9c9cab } :root.squir .kp .topbar .crumbs b { color: #ececf1; font-weight: 400 }
:root.squir .kp .topbar .menu-btn { display: none } @media (max-width: 900px) { :root.squir .kp .topbar .menu-btn { display: grid } :root.squir .app.kp > .main { padding: 0 16px 80px !important } }
:root.squir .kp .content { padding: 0 !important; max-width: none !important; margin: 0 !important }
:root.squir .kp .content > *, :root.squir .kp .content > * > .kp-head, :root.squir .kp .kf-wrap, :root.squir .kp .kp-page, :root.squir .kp .module-form { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important }
:root.squir .kp .kp-gnotice { margin: 0 0 16px !important }
/* Cartes des pages « kf » (Signalements, Tickets…) : mêmes couleurs que les cartes de l'accueil */
:root.squir .kp .content .kp-card, :root.squir .kp .content .kf-card { background: #15161a !important; border: 1px solid #222329 !important; border-radius: 16px !important; box-shadow: none !important }
:root.squir .kp .content .kf-head { border-bottom: 1px solid #222329 } :root.squir .kp .content .kf-head h2 { font: 600 15.5px 'Inter', system-ui, sans-serif !important; letter-spacing: 0 }
:root.squir .sqs .brand { height: 34px; line-height: 1 } :root.squir .kp .content .kf-wrap { padding: 0 !important }

/* ---------- Corrections du 14/11 ---------- */
/* Cartes sans barre de titre (Collaborateurs, Calendrier, Modèles…) : marges normales, rien ne colle au bord */
:root.squir .kp .content .card:not(:has(> .card-title, > .card-head)) { padding: 22px 24px !important; overflow: visible }
:root.squir .kp .content .card:not(:has(> .card-title, > .card-head)) > * { margin-left: 0; margin-right: 0 }
:root.squir .kp .content .card:not(:has(> .card-title, > .card-head)) > :last-child { margin-bottom: 0 }
:root.squir .kp .content [class*="-card"]:not(.card):not(.kp-demo-card) { overflow: visible }
body.adm-body.sqa .adm-main .card:not(:has(> .card-title, > .card-head)) { padding: 20px 22px !important }
body.adm-body.sqa .adm-main .card:not(:has(> .card-title, > .card-head)) > * { margin-left: 0; margin-right: 0 }
body.adm-body.sqa .adm-main .card:not(:has(> .card-title, > .card-head)) > :last-child { margin-bottom: 0 }
/* Blocs repliables dans une carte (messages épinglés, rappels, formulaires…) */
:root.squir .kp .content .row-item { background: #121316 !important; border: 1px solid #222329 !important; border-radius: 14px !important; overflow: hidden }
:root.squir .kp .content .row-head { padding: 14px 18px; gap: 12px; font-weight: 600 } :root.squir .kp .content .row-head > svg { width: 17px; height: 17px; color: #9c9cab }
:root.squir .kp .content .row-body { padding: 18px; gap: 16px; border-top: 1px solid #222329 !important; background: #15161a }
:root.squir .kp .content .row-body .field-inline { background: none !important; border: 0 !important; padding: 4px 0 !important }
:root.squir .kp .content .row-list { gap: 12px }
/* Pastilles à cocher (commandes désactivées, salons autorisés, rôles…) */
:root.squir .kp .content .chips { gap: 8px }
:root.squir .kp .content .chips .chip, :root.squir .kp .content label.chip { padding: 7px 12px !important; border-radius: 999px !important; border: 1px solid #2c2d35 !important; background: #15161a !important; color: #9c9cab !important; font: 500 13px 'Inter', system-ui, sans-serif !important; transition: border-color .15s, color .15s, background .15s; cursor: pointer }
:root.squir .kp .content .chips .chip:hover, :root.squir .kp .content label.chip:hover { color: #ececf1 !important; border-color: #3a3b45 !important }
:root.squir .kp .content .chips .chip:has(input:checked), :root.squir .kp .content label.chip:has(input:checked) { border-color: rgba(255, 90, 31, .6) !important; background: rgba(255, 90, 31, .1) !important; color: #ff9c70 !important }
/* Sélecteur de couleur : pastille ronde au lieu du carré */
:root.squir input[type=color] { -webkit-appearance: none; appearance: none; width: 34px !important; height: 34px !important; min-width: 34px; padding: 0 !important; border: 2px solid #2c2d35 !important; border-radius: 50% !important; background: none !important; cursor: pointer; overflow: hidden }
:root.squir input[type=color]::-webkit-color-swatch-wrapper { padding: 0 } :root.squir input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50% }
:root.squir input[type=color]:hover { border-color: #ff7b42 !important }
/* Panel admin : même largeur et mêmes marges que le dashboard (plus de colonne centrée) */
.sqa .adm-main { max-width: none !important; margin: 0 !important; padding: 28px 44px 64px !important }
@media (max-width: 900px) { .sqa .adm-main { padding: 18px 14px 70px !important } }

/* ---------- Tickets : pleine largeur, onglets sans molette, transcripts ---------- */
:root.squir .kp .tk-narrow { max-width: none !important }
:root.squir .kp .tk-tabs, :root.squir .kp .content nav[class*="tabs"] { overflow-y: hidden !important; scrollbar-width: none } :root.squir .kp .tk-tabs::-webkit-scrollbar, :root.squir .kp .content nav[class*="tabs"]::-webkit-scrollbar { display: none }
:root.squir .kp .tk-quota { margin: 6px 0 14px }
:root.squir .kp .content .kp-card-head { padding: 16px 20px; border-bottom: 1px solid #222329 } :root.squir .kp .content .kp-card-head h2 { font: 600 15.5px 'Inter', system-ui, sans-serif !important; letter-spacing: 0 }
/* Carte à barre de titre : un élément placé avant le titre garde une marge en haut */
:root.squir .kp .content .card:has(> .card-title, > .card-head) > :first-child:not(.card-title):not(.card-head) { margin-top: 16px }

/* ---------- Corrections du 15/11 ---------- */
/* Champs de recherche : un seul cadre (le champ à l'intérieur n'a ni bord ni fond) */
:root.squir .kp [class*="search"] input, :root.squir .kp label[class*="search"] input, :root.squir .kp .pt-search input, :root.squir .kp .cc-search input, :root.squir .kp [class*="filter"] > input[type=search], :root.squir .kp [class*="-q"] input {
  border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important; padding-left: 0 !important }
:root.squir .kp [class*="search"]:has(> input), :root.squir .kp label[class*="search"] { background: #0f1012 !important; border: 1px solid #2c2d35 !important; border-radius: 11px !important }
:root.squir .kp [class*="search"]:has(> input):focus-within { border-color: rgba(255, 90, 31, .5) !important }
/* Boutons d'action (Générer un lien, Réserver, Enregistrer…) : orange plein, lisibles */
:root.squir .kp .content .btn-red:not(.savebar .btn-red), :root.squir .kp-dialog .btn-red, :root.squir dialog .btn-red, :root.squir .modal .btn-red { background: #ff5a1f !important; border: 1px solid #ff5a1f !important; color: #fff !important }
:root.squir .kp .content .btn-red:not(.savebar .btn-red):hover, :root.squir .kp-dialog .btn-red:hover { background: #ff7b42 !important; border-color: #ff7b42 !important }
:root.squir .kp .content .console-cta .btn-red { background: #1a1b20 !important; border-color: #2c2d35 !important }
/* Cases à cocher en pastille, partout (y compris dans les fenêtres) : plus de gros bloc orange */
:root.squir label.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px !important; border-radius: 999px !important; border: 1px solid #2c2d35 !important; background: #15161a !important; color: #9c9cab !important; font: 500 13px 'Inter', system-ui, sans-serif !important; cursor: pointer; width: auto !important }
:root.squir label.chip:has(input:checked) { border-color: rgba(255, 90, 31, .6) !important; background: rgba(255, 90, 31, .1) !important; color: #ff9c70 !important }
:root.squir label.chip input[type=checkbox] { accent-color: #ff5a1f; width: 14px; height: 14px; margin: 0 }

/* Menu : recherche et favoris */
.sqs .sq-search { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 9px 11px; border-radius: 11px; border: 1px solid #2c2d35; background: #0f1012; color: #686876; cursor: text }
.sqs .sq-search:focus-within { border-color: rgba(255, 90, 31, .5) }
.sqs .sq-search svg { width: 15px; height: 15px; flex-shrink: 0 }
.sqs .sq-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; outline: none !important; box-shadow: none !important; padding: 0 !important; color: #ececf1; font: 14px 'Inter', system-ui, sans-serif; height: auto !important; border-radius: 0 !important }
.sqs .sq-search input::-webkit-search-cancel-button { display: none }
.sqs .sq-search kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid #2c2d35; font: 11px ui-monospace, monospace; color: #686876 }
.sqs .sq-favs { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #222329 } .sqs .sq-favs .sn-h { margin-top: 4px }
.sqs .sq-favs[hidden], .sqs .sq-none[hidden], .sqs .side-nav [hidden] { display: none !important }
.sqs .sq-none { margin: 10px 12px; color: #686876; font-size: 13.5px }
.sq-ctx { position: fixed; z-index: 400; min-width: 210px; padding: 6px; border-radius: 12px; border: 1px solid #2c2d35; background: #15161a; box-shadow: 0 18px 40px rgba(0, 0, 0, .6) }
.sq-ctx button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 8px; background: none; color: #ececf1; font: 500 13.5px 'Inter', system-ui, sans-serif; text-align: left; cursor: pointer } .sq-ctx button:hover { background: #1f2026 }

/* Mode simple du menu : seulement les modules essentiels et ceux déjà activés (une recherche montre tout) */
.sqs .side-nav.simple:not(.searching) .sn-sub a.snv:not([data-simple]) { display: none }
.sqs .side-nav.simple:not(.searching) details.sn-g:not([data-group="settings"]):not(:has(a.snv[data-simple])) { display: none }
.sqs .sq-simple-btn { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 0; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left }
.sqs .sq-simple-btn:hover { color: var(--text); border-color: var(--muted) }
.sqs .sq-simple-btn svg { width: 15px; height: 15px; flex-shrink: 0 }

/* Recherche du menu : pourquoi une page sort (mot-clé), et bouton « chercher partout » */
.snv .snv-why { display: block; flex-basis: 100%; margin: 2px 0 0 28px; font-size: 11.5px; line-height: 1.35; color: #8b8b98; font-weight: 400; white-space: normal }
.side-nav.searching a.snv:has(.snv-why) { flex-wrap: wrap; height: auto; padding-top: 7px; padding-bottom: 7px }
.sq-none button { display: flex; align-items: center; gap: 8px; margin-top: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #e6e6ea; font: inherit; font-size: 13px; cursor: pointer }
.sq-none button:hover { background: rgba(255,90,31,.12); border-color: rgba(255,90,31,.4) }
.sq-none button svg { width: 15px; height: 15px }
