@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
@import url("https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css");
@import url("https://unpkg.com/@phosphor-icons/web@2.1.1/src/fill/style.css");

/*
 * Partner Hub (hub.zaacom.fr — iso=4) — charte methodz sombre.
 * Design system bespoke (maquette validée _hub-ui-preview.html), chargé en dernier
 * dans template.php UNIQUEMENT quand l'espace résolu est `hub`.
 * Plaque le layout SPA de la maquette sur la structure server-rendered de Station :
 *   .sidebar (spaces/hub/block-left.php, fixe) + .hub-topbar (block-top.php, fixe)
 *   + #block_right = zone de contenu principale (rôle .main de la maquette).
 */

:root {
    --bg: #141414;
    --panel: #1B1A18;
    --panel-2: #222120;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --txt: #F5F2EC;
    --txt-2: #9C948B;
    --txt-3: #655E57;
    --brand: #CF4306;
    --brand-bright: #E85A1C;
    --brand-soft: rgba(207, 67, 6, .14);
    --green: #5FBF8E;
    --green-soft: rgba(95, 191, 142, .12);
    --blue: #5BA3E0;
    --blue-soft: rgba(91, 163, 224, .12);
    --amber: #E0A23C;
    --amber-soft: rgba(224, 162, 60, .13);
    --red: #E0654A;
    --rad: 14px;
    --rad-sm: 8px;
    --sb: 248px;
    --maxw: 1280px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- base (le thème ne charge que sur hub, on peut imposer le dark globalement) ---- */
/*
 * Station (common.css) applique `body { background: var(--color--background--principal) !important }`
 * et colore #block_right via les tokens de var.css. On NE peut pas gagner contre le !important
 * en redéclarant background ; on RÉ-ÉCRIT donc les tokens var.css de Station vers nos valeurs
 * sombres (scopés à body.hub). Tout l'habillage Station hérité passe alors en sombre.
 */
/* hub.css n'est servi que sur le hub → on peut styler html sans risque pour Station.
   Évite la bande claire (html blanc) sous le body en height:100vh au scroll. */
html {
    background: #141414;
}

body.hub {
    --color--background--principal: var(--bg);
    --color--background--second: var(--panel);
    --color--background--input: #1C1B19;
    --color--text: var(--txt);
    --color--blue--dark: var(--bg);

    background: var(--bg);
    color: var(--txt);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -.006em;
    -webkit-font-smoothing: antialiased;
}

/* Zone de contenu : fond transparent (laisse voir le body sombre) + texte clair. */
body.hub #block_right,
body.hub .block_right {
    background: transparent;
    color: var(--txt);
}

body.hub * {
    box-sizing: border-box;
}

body.hub ::selection {
    background: var(--brand);
    color: #fff;
}

body.hub a {
    color: inherit;
    text-decoration: none;
}

/* Champs de saisie : fond sombre + texte clair. Sans ça, le texte sombre hérité de
   Station (var.css/common.css) est illisible sur le fond sombre du hub. Scopé body.hub
   (n'affecte pas l'espace clients clair). On exclut submit/button/checkbox/radio/file
   et la recherche topbar (qui a son propre style pill). */
body.hub input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="search"]),
body.hub textarea,
body.hub select {
    background: var(--color--background--input);
    color: var(--txt);
    border-color: var(--line);
}

body.hub input::placeholder,
body.hub textarea::placeholder {
    color: var(--txt-3);
    opacity: 1;
}

body.hub h1,
body.hub h2,
body.hub h3 {
    font-weight: 300;
    letter-spacing: -.025em;
    margin: 0;
}

body.hub::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(120% 100% at 80% -20%, rgba(207, 67, 6, .10), transparent 60%);
}

.mono {
    font-family: "JetBrains Mono", monospace;
}

.eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--txt-3);
}

/* ---- sidebar (block-left) ---- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sb);
    z-index: 30;
    background: #101010;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 28px 16px 18px;
}

.sidebar .brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 8px 6px;
}

.sidebar .brand .logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sidebar .brand .logo img {
    height: 21px;
    width: auto;
    display: block;
}

.sidebar .brand .tag {
    display: inline-flex;
    align-items: center;
    font-family: "JetBrains Mono";
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--brand);
    background: var(--brand-soft);
    border: 0;
    padding: 4px 9px;
    border-radius: 6px;
}

.sb-scroll {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: auto;
}

.sb-grp .lbl {
    font-family: "JetBrains Mono";
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--txt-3);
    padding: 0 10px 11px;
}

.sidebar .nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 11px;
    border-radius: 9px;
    color: var(--txt-2);
    font-size: 14px;
    position: relative;
    transition: .18s var(--ease);
    cursor: pointer;
}

.sidebar .nav a i {
    font-size: 18px;
    transition: .18s;
}

.sidebar .nav a .ct {
    margin-left: auto;
    font-family: "JetBrains Mono";
    font-size: 11px;
    color: var(--txt-3);
}

.sidebar .nav a:hover {
    color: var(--txt);
}

.sidebar .nav a:hover i {
    color: var(--txt);
}

.sidebar .nav a.on {
    color: #fff;
    background: var(--brand-soft);
}

.sidebar .nav a.on i {
    color: var(--brand);
}

.sidebar .nav a.on::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--brand);
}

.sidebar .nav a.on .ct {
    color: #fff;
}

.sb-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 8px 2px;
    border-top: 1px solid var(--line);
}

.sb-user img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.sb-user .u b {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.sb-user .u span {
    font-family: "JetBrains Mono";
    font-size: 9.5px;
    color: var(--txt-3);
    letter-spacing: .06em;
}

.sb-user .more {
    margin-left: auto;
    color: var(--txt-3);
    font-size: 17px;
}

/* ---- main content area (= #block_right de template.php) ---- */
body.hub #block_right,
body.hub .main {
    margin-left: var(--sb);
    /* Station (common.css) pose margin-top:111px + height:calc(100vh-111px) pour sa grande
       barre du haut ; la topbar hub fait 66px et est dégagée par padding-top → on annule le
       margin/height de Station (sinon gros trou en haut + bas) et le bloc suit le contenu. */
    margin-top: 0;
    position: relative;
    z-index: 1;
    padding-top: 66px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 44px;
}

/* ---- topbar (block-top) : fixe, décalée de la sidebar ---- */
.hub-topbar {
    position: fixed;
    top: 0;
    left: var(--sb);
    right: 0;
    z-index: 20;
    height: 66px;
    background: rgba(20, 20, 20, .72);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
}

.hub-topbar .wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.crumb {
    font-family: "JetBrains Mono";
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.crumb b {
    color: var(--txt);
    font-weight: 400;
}

.hub-topbar .sp {
    flex: 1;
}

.tsearch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 12px;
    width: 260px;
    color: var(--txt-3);
    transition: .18s;
}

.tsearch:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.tsearch input {
    border: 0;
    outline: 0;
    background: none;
    font: inherit;
    width: 100%;
    color: var(--txt) !important;
}

.tsearch-wrap {
    position: relative;
}

.tsearch-res {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    z-index: 50;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.tsearch-res a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--txt);
    text-decoration: none;
    font-size: 13px;
}

.tsearch-res a:hover {
    background: var(--line);
}

.tsearch-res .tsr-client {
    font-weight: 600;
}

.tsearch-res .tsr-site {
    padding-left: 26px;
    color: var(--txt-2);
    font-size: 12px;
}

.tsearch-res .tsr-site i {
    color: var(--txt-3);
}

.tsearch-res a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tsearch-res .tsr-empty {
    padding: 10px;
    color: var(--txt-3);
    font-size: 12.5px;
}

.tbtn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #1C1B19;
    display: grid;
    place-items: center;
    color: var(--txt-2);
    font-size: 18px;
    position: relative;
    cursor: pointer;
    transition: .18s;
}

.tbtn:hover {
    border-color: var(--line-2);
    color: var(--txt);
}

.tbtn .d {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 2px var(--bg);
}

/* ---- page header ---- */
.phead {
    padding-top: 38px;
    padding-bottom: 6px;
}

.phead .eyebrow {
    display: block;
    margin-bottom: 14px;
}

.phead .row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.phead h1 {
    font-size: 46px;
    line-height: 1.02;
}

.phead h1 .accent {
    color: var(--brand);
    font-size: 1.15em;
    font-weight: 700;
}

.phead .sub {
    margin-top: 13px;
    color: var(--txt-2);
    font-size: 15px;
    max-width: 54ch;
}

.phead .sub b {
    color: var(--txt);
    font-weight: 500;
}

/* ---- buttons ---- */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 50px;
    white-space: nowrap;
    transition: .2s var(--ease);
    cursor: pointer;
    border: 0;
}

.cta i {
    font-size: 17px;
}

.cta:hover {
    background: var(--brand-bright);
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Hanken Grotesk";
    font-size: 13px;
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--txt);
    cursor: pointer;
    transition: .15s;
}

.btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn.sm {
    padding: 6px 11px;
    font-size: 12px;
}

/* ---- slim banner stats ---- */
.banner {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
}

.banner .b {
    padding: 18px 24px;
    border-left: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.banner .b:first-child {
    border-left: 0;
}

.banner .b .l {
    font-family: "JetBrains Mono";
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.banner .b .v {
    font-weight: 300;
    font-size: 24px;
    letter-spacing: -.02em;
    margin-left: auto;
}

/* ---- commission state cards ---- */
.ccards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ccard {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 22px 24px;
    cursor: pointer;
    transition: .18s var(--ease);
    position: relative;
    overflow: hidden;
}

.ccard:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
}

.ccard::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.ccard.attente::before {
    background: var(--amber);
}

.ccard.reverser::before {
    background: var(--brand);
}

.ccard.acquises::before {
    background: var(--green);
}

.cc-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.cc-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.ccard.attente .cc-ico {
    background: var(--amber-soft);
    color: var(--amber);
}

.ccard.reverser .cc-ico {
    background: var(--brand-soft);
    color: var(--brand);
}

.ccard.acquises .cc-ico {
    background: var(--green-soft);
    color: var(--green);
}

.cc-lbl {
    font-family: "JetBrains Mono";
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-2);
}

.cc-amt {
    font-weight: 300;
    font-size: 32px;
    letter-spacing: -.03em;
}

.cc-amt .ht {
    font-size: 14px;
    color: var(--txt-3);
    font-family: "JetBrains Mono";
}

.cc-sub {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "JetBrains Mono";
    font-size: 11px;
    color: var(--txt-3);
}

.ccard:hover .cc-go {
    color: var(--brand);
}

/* ---- layout grids ---- */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    margin-top: 26px;
    padding-bottom: 64px;
}

.stack {
    margin-top: 26px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 16px;
}

.section-head h2 {
    font-size: 20px;
}

.section-head .sp {
    flex: 1;
}

.seg {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.seg button,
.seg a {
    border: 0;
    background: none;
    font-family: "JetBrains Mono";
    font-size: 11px;
    color: var(--txt-3);
    padding: 7px 14px;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
}

.seg button.on,
.seg a.on {
    background: #fff;
    color: #141414;
}

.linkx {
    font-family: "JetBrains Mono";
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--txt-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: .15s;
}

.linkx:hover {
    color: var(--brand);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    overflow: hidden;
}

.panel .pnh {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
}

.panel .pnh h2,
.panel .pnh h3 {
    font-size: 16px;
}

.panel .pnh .sp {
    flex: 1;
}

.panel .pb {
    padding: 22px;
}

.empty {
    color: var(--txt-3);
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

/* ---- client rows (dashboard) ---- */
.crow {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    cursor: pointer;
    transition: .18s var(--ease);
}

.crow:first-child {
    border-top: 0;
}

.crow:hover {
    background: var(--panel-2);
}

.crow .idx {
    font-family: "JetBrains Mono";
    font-size: 12px;
    color: var(--txt-3);
}

.crow:hover .idx {
    color: var(--brand);
}

.crow .nm {
    font-size: 16px;
}

.crow .meta {
    font-family: "JetBrains Mono";
    font-size: 10.5px;
    color: var(--txt-3);
    margin-top: 5px;
}

.cside {
    display: flex;
    align-items: center;
    gap: 26px;
}

.cnum {
    text-align: right;
}

.cnum .l {
    font-family: "JetBrains Mono";
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.cnum .v {
    font-weight: 300;
    font-size: 18px;
    margin-top: 4px;
}

.delta-pos {
    color: var(--green);
}

.go {
    color: var(--txt-3);
    font-size: 20px;
    transition: .2s var(--ease);
    transform: translateX(-5px);
    opacity: 0;
}

.crow:hover .go {
    opacity: 1;
    transform: none;
    color: var(--brand);
}

.pill {
    font-family: "JetBrains Mono";
    font-size: 9.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
}

.pill.ok {
    color: var(--green);
    background: var(--green-soft);
}

.pill.pause {
    color: var(--txt-2);
    background: rgba(255, 255, 255, .06);
}

.avs {
    display: flex;
}

.avs img {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 2px solid var(--panel);
    margin-left: -9px;
    object-fit: cover;
}

.avs img:first-child {
    margin-left: 0;
}

.tagrow {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-family: "JetBrains Mono";
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--txt-2);
    border: 1px solid var(--line-2);
    padding: 2px 7px;
    border-radius: 4px;
}

/* ---- commissions list ---- */
.csum {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 18px 24px;
    margin-bottom: 6px;
}

.csum .v {
    font-weight: 300;
    font-size: 30px;
    letter-spacing: -.03em;
}

.csum .v .ht {
    font-size: 14px;
    color: var(--txt-3);
    font-family: "JetBrains Mono";
}

.csum .l {
    font-family: "JetBrains Mono";
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-2);
}

.cgroup {
    margin-top: 22px;
}

.cgroup .gh {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.cgroup .gh .gn {
    font-size: 16px;
}

.cgroup .gh .gt {
    margin-left: auto;
    font-family: "JetBrains Mono";
    font-size: 11px;
    color: var(--txt-3);
}

.cline {
    display: grid;
    grid-template-columns: 1fr 110px 200px 150px;
    gap: 20px;
    align-items: center;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
}

.cline:first-child {
    border-top: 0;
}

.cline:hover {
    background: var(--panel-2);
}

.cline .presta {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

.cline .label {
    font-family: "JetBrains Mono";
    font-size: 10.5px;
    color: var(--txt-3);
    margin-top: 6px;
    line-height: 1.5;
}

.cline .cdate {
    font-family: "JetBrains Mono";
    font-size: 11px;
    color: var(--txt-2);
}

.cline .camt {
    text-align: right;
    font-size: 12.5px;
    color: var(--txt-2);
}

.cline .camt b {
    color: var(--txt);
    font-weight: 500;
}

.cline .camt .com {
    color: var(--brand);
}

.cline .cact {
    text-align: right;
}

.cbadge {
    font-family: "JetBrains Mono";
    font-size: 9.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.cbadge.amber {
    color: var(--amber);
    background: var(--amber-soft);
}

.cbadge.green {
    color: var(--green);
    background: var(--green-soft);
}

.cbadge.brand {
    color: var(--brand);
    background: var(--brand-soft);
}

/* ---- projects grouped by client ---- */
.clientblock {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    overflow: hidden;
}

.ch-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(90deg, rgba(207, 67, 6, .10), transparent);
    border-bottom: 1px solid var(--line);
}

.ch-head .cn {
    font-size: 19px;
}

.ch-head .comm {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.ch-head .comm .r {
    font-family: "JetBrains Mono";
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.ch-head .comm .n {
    font-size: 13px;
    color: var(--txt);
}

.ch-head .comm img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.sitecard {
    padding: 18px 24px;
    border-top: 1px solid var(--line);
}

.sitecard:first-of-type {
    border-top: 0;
}

.sitecard .st-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sitecard .su {
    font-size: 16px;
    font-weight: 500;
}

.gests {
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.gest {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gest img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.gest .gi .r {
    font-family: "JetBrains Mono";
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.gest .gi .n {
    font-size: 12.5px;
}

.qbtns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--txt-2);
    background: #201E1C;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    transition: .15s;
}

.qbtn i {
    font-size: 14px;
}

.qbtn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

/* ---- charts ---- */
.chart {
    width: 100%;
    min-height: 260px;
}

/* ---- tables ---- */
table.tbl {
    width: 100%;
    border-collapse: collapse;
}

/* Station (common.css) applique `table tr { background:#fff }` -> fond blanc des lignes.
   On le neutralise : lignes/cellules transparentes pour laisser voir le .panel sombre. */
table.tbl tr,
table.tbl thead tr,
table.tbl tbody tr {
    background: transparent;
}

table.tbl th {
    font-family: "JetBrains Mono";
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-3);
    text-align: left;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    background: transparent;
}

table.tbl td {
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    background: transparent;
}

table.tbl tr:last-child td {
    border-bottom: 0;
}

table.tbl tbody tr {
    transition: .15s;
}

table.tbl tbody tr.clk {
    cursor: pointer;
}

table.tbl tbody tr:hover {
    background: var(--panel-2);
}

.num {
    font-family: "JetBrains Mono";
}

/* ---- zRank : mot-clé + badge de rang + deltas (maquette _hub-ui-preview.html) ---- */
.kw {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank {
    font-family: "JetBrains Mono";
    font-size: 12px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .05);
    flex: none;
}

.rank.top {
    background: var(--brand-soft);
    color: var(--brand);
}

.delta-pos2 {
    color: var(--green);
    font-family: "JetBrains Mono";
    font-size: 12px;
}

.delta-neg {
    color: var(--red);
    font-family: "JetBrains Mono";
    font-size: 12px;
}

/* ---- task status pills + priority ---- */
.st {
    font-family: "JetBrains Mono";
    font-size: 9.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.st.s2 {
    color: var(--amber);
    background: var(--amber-soft);
}

.st.s3 {
    color: var(--blue);
    background: var(--blue-soft);
}

.st.s4 {
    color: var(--green);
    background: var(--green-soft);
}

.st.s9 {
    color: var(--red);
    background: rgba(224, 101, 74, .13);
}

.prio {
    font-family: "JetBrains Mono";
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prio::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.prio.h {
    color: var(--red);
}

.prio.h::before {
    background: var(--red);
}

.prio.n {
    color: var(--txt-2);
}

.prio.n::before {
    background: var(--amber);
}

.prio.l {
    color: var(--txt-3);
}

.prio.l::before {
    background: var(--green);
}

/* ---- task list items ---- */
.task {
    display: flex;
    gap: 13px;
    padding: 15px 22px;
    border-top: 1px solid var(--line);
    align-items: center;
    transition: .15s;
    cursor: pointer;
}

.task:first-child {
    border-top: 0;
}

.task:hover {
    background: var(--panel-2);
}

.task .ck {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--txt-3);
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0;
}

.task .ck:hover {
    border-color: var(--brand);
}

.task.done .ck {
    background: var(--brand);
    border-color: var(--brand);
    font-size: 12px;
}

.task .tt {
    flex: 1;
}

.task .tt b {
    font-weight: 500;
    font-size: 13.5px;
}

.task.done .tt b {
    text-decoration: line-through;
    color: var(--txt-3);
}

.task .tt .sub {
    font-family: "JetBrains Mono";
    font-size: 10px;
    color: var(--txt-3);
    margin-top: 4px;
}

/* ---- status selector (interactif — seule action write du hub) ---- */
.status-select {
    font-family: "JetBrains Mono";
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--txt);
    background: #1C1B19;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    outline: 0;
    transition: .15s;
}

.status-select:hover,
.status-select:focus {
    border-color: var(--brand);
}

.status-select.s2 {
    color: var(--amber);
}

.status-select.s3 {
    color: var(--blue);
}

.status-select.s4 {
    color: var(--green);
}

.status-select.saving {
    opacity: .5;
    pointer-events: none;
}

/* ---- project detail header + tabs ---- */
.pdhead {
    padding-top: 34px;
}

.pdhead .back {
    margin-bottom: 16px;
}

.pdhead .titlerow {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdhead h1 {
    font-size: 36px;
}

.fav {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 500;
}

.tabs {
    display: flex;
    gap: 2px;
    margin-top: 24px;
    border-bottom: 1px solid var(--line);
    overflow: auto;
}

.tabs a {
    font-size: 13.5px;
    color: var(--txt-2);
    padding: 12px 14px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: .15s;
}

.tabs a:hover {
    color: var(--txt);
}

.tabs a.on {
    color: var(--txt);
    border-bottom-color: var(--brand);
}

/* ---- task detail ---- */
.tdgrid {
    display: grid;
    grid-template-columns: 1fr 372px;
    gap: 22px;
    align-items: start;
}

.tdhead {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.tdhead h1 {
    font-size: 30px;
    flex: 1;
    min-width: 280px;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 26px;
}

.mi .l {
    font-family: "JetBrains Mono";
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-3);
    margin-bottom: 7px;
}

.mi .v {
    font-size: 14px;
}

.desc {
    color: var(--txt-2);
    line-height: 1.7;
}

.desc p {
    margin-bottom: 10px;
}

.msgs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    max-height: 360px;
    overflow: auto;
}

.msg {
    display: flex;
    gap: 10px;
    max-width: 90%;
}

.msg img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: none;
}

.msg .body {
    background: #232120;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 13px;
}

.msg .who {
    font-size: 11px;
    color: var(--txt-3);
    font-family: "JetBrains Mono";
    margin-bottom: 5px;
}

.msg .c {
    font-size: 13px;
}

.msg.mine {
    flex-direction: row-reverse;
    margin-left: auto;
}

.msg.mine .body {
    background: var(--brand-soft);
    border-color: transparent;
}

.composer {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.composer input {
    flex: 1;
    background: #1C1B19;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 13px;
    color: var(--txt);
    font: inherit;
    outline: 0;
}

.composer .send {
    width: 40px;
    border-radius: 9px;
    border: 0;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.tl {
    padding: 6px 0 6px 8px;
}

.tl .e {
    position: relative;
    padding: 0 0 18px 22px;
    border-left: 1px solid var(--line);
}

.tl .e:last-child {
    border-left-color: transparent;
}

.tl .e::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--panel);
}

.tl .e .w {
    font-size: 13px;
}

.tl .e .t {
    font-family: "JetBrains Mono";
    font-size: 10px;
    color: var(--txt-3);
    margin-top: 3px;
}

/* ---- stats blocks ---- */
.statline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.statline.q4 {
    grid-template-columns: repeat(4, 1fr);
}

.bigstat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 20px 22px;
}

.bigstat .l {
    font-family: "JetBrains Mono";
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.bigstat .v {
    font-weight: 300;
    font-size: 34px;
    letter-spacing: -.03em;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.bigstat .v.pos {
    color: var(--green);
}

.bigstat .s {
    font-family: "JetBrains Mono";
    font-size: 10.5px;
    color: var(--txt-3);
    margin-top: 6px;
}

.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 16px 18px;
}

.stat .l {
    font-family: "JetBrains Mono";
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.stat .v {
    font-weight: 300;
    font-size: 26px;
    margin-top: 8px;
}

/* ---- forms / settings ---- */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 680px;
}

.fld {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fld.full {
    grid-column: 1 / -1;
}

.fld label {
    font-family: "JetBrains Mono";
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-3);
}

.fld input {
    background: #1C1B19;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 14px;
    color: var(--txt);
    font: inherit;
    outline: 0;
    transition: .15s;
}

.fld input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ---- shared docs ---- */
.doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    border-top: 1px solid var(--line);
    transition: .15s;
    cursor: pointer;
}

.doc:first-of-type {
    border-top: 0;
}

.doc:hover {
    background: var(--panel-2);
}

.doc .ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
    display: grid;
    place-items: center;
    color: var(--txt-2);
    font-size: 18px;
}

.doc .meta {
    margin-left: auto;
    font-family: "JetBrains Mono";
    font-size: 10.5px;
    color: var(--txt-3);
}

/* ---- login (body.hub.login) ---- */
.hub-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}

.hub-login .card {
    width: 380px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 34px;
}

.hub-login .logo img {
    height: 26px;
}

.hub-login h2 {
    font-size: 22px;
    margin-top: 26px;
}

.hub-login p {
    color: var(--txt-2);
    margin-top: 6px;
    font-size: 13.5px;
}

.hub-login .fld {
    margin-top: 18px;
}

.hub-login .cta {
    width: 100%;
    justify-content: center;
    margin-top: 22px;
}

/* ---- login : restyle du formulaire Station (login-form.php) dans le card methodz ---- */
/* Tue le fond bleu géométrique de Station (login.css .gif) sur l'écran de login hub. */
body.hub.login,
body.hub.login #app,
body.hub.login #main {
    background: var(--bg) !important;
    background-image: none !important;
}

.hub-login #logo {
    display: none;
}

.hub-login #form_connect,
.hub-login .normal-connexion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.hub-login .normal-connexion input.text,
.hub-login .normal-connexion input.password,
.hub-login input[type="email"],
.hub-login input[type="password"] {
    width: 100%;
    /* !important : login.css cible #form_connect input.text (sélecteur ID, spécificité
       1,1,1) qui bat sinon nos règles et garde le texte sombre illisible. */
    background: #1C1B19 !important;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    color: var(--txt) !important;
    font: inherit;
    outline: 0;
    transition: .15s;
}

.hub-login .normal-connexion input.text::placeholder,
.hub-login input[type="email"]::placeholder,
.hub-login input[type="password"]::placeholder {
    color: var(--txt-3);
    opacity: 1;
}

.hub-login input[type="email"]:focus,
.hub-login input[type="password"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.hub-login .normal-connexion input[type="submit"] {
    width: 100%;
    border: 0;
    cursor: pointer;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    border-radius: 50px;
    padding: 14px;
    margin-top: 4px;
    transition: .2s var(--ease);
}

.hub-login .normal-connexion input[type="submit"]:hover {
    background: var(--brand-bright);
}

.hub-login .lost_password {
    text-align: center;
    color: var(--txt-3);
    font-family: "JetBrains Mono";
    font-size: 11px;
    margin-top: 14px;
    cursor: pointer;
}

.hub-login .lost_password:hover {
    color: var(--brand);
}

.hub-login .title {
    color: var(--txt-2);
    font-size: 13.5px;
    margin-bottom: 6px;
}

.hub-login #version {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--txt-3);
    font-family: "JetBrains Mono";
    font-size: 10px;
}

/* ---- switches (Paramètres) ---- */
.switchline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.switchline:first-child {
    border-top: 0;
}

.sw {
    width: 42px;
    height: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    position: relative;
    cursor: pointer;
    transition: .2s;
    flex: none;
}

.sw.on {
    background: var(--brand);
}

.sw::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
}

.sw.on::after {
    left: 21px;
}

/* ---- responsive ---- */
@media (max-width: 1080px) {

    .grid2,
    .tdgrid {
        grid-template-columns: 1fr;
    }

    .banner,
    .ccards,
    .statline,
    .statline.q4,
    .meta-grid,
    .form {
        grid-template-columns: repeat(2, 1fr);
    }

    .cline {
        grid-template-columns: 1fr auto;
    }

    .cline .cdate,
    .cline .camt {
        display: none;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

body.hub #block_right > * {
    animation: rise .5s var(--ease);
}
