/* TrackMarshall — feuille de style commune (vitrine, application, desk).
   Couleurs et typographie : docs/charte/tokens.json */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400 600; font-display: swap; src: url("/fonts/ibm-plex-sans.woff2") format("woff2"); }

:root {
  --paper: #F4F3EF; --surface: #FFFFFF; --surface-sunken: #F7F6F2;
  --asphalt: #16181D; --asphalt-muted: #4B5059;
  --panel: #16181D; --on-panel: #F4F3EF; --on-panel-muted: #C9CCD2; --panel-active: #2C3038;
  --line: #E7E5DF; --line-strong: #8A8F98;
  --signal: #EA580C; --signal-strong: #C2410C; --on-signal: #FFFFFF; --signal-soft: #FFF1E8; --signal-ink: #9A3412;
  --dispo: #15803D; --dispo-soft: #DCFCE7; --dispo-ink: #14532D;
  --si-besoin: #D97706; --si-besoin-soft: #FEF3C7; --si-besoin-ink: #78350F;
  --trou: #B91C1C; --trou-soft: #FEE2E2; --trou-ink: #7F1D1D;
  --equipe-a: #1E3A8A; --equipe-b: #0F766E; --equipe-c: #475569;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--asphalt); font: 15px/1.5 var(--sans); }
img { max-width: 100%; }
a { color: var(--signal-strong); }
a:hover { color: var(--signal-ink); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--signal-strong); outline-offset: 2px; }
[hidden] { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--asphalt-muted); }
.small { font-size: 13px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--asphalt-muted); }
.display { font-family: var(--display); font-weight: 700; line-height: 1; }
.code { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--asphalt); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--asphalt); background: var(--surface-sunken); }
.btn-primary { background: var(--signal-strong); border-color: var(--signal-strong); color: var(--on-signal); font-weight: 600; }
.btn-primary:hover { background: var(--signal-ink); color: var(--on-signal); }
.btn-soft { background: var(--signal-soft); border: 2px solid var(--signal-strong); color: var(--signal-ink); font-weight: 600; }
.btn-soft:hover { background: #FFE4D2; color: var(--signal-ink); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--asphalt-muted); }
.btn-danger { border-color: transparent; background: transparent; color: var(--trou); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.inline-form { display: inline; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .field-label { font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea {
  min-height: 42px; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--asphalt); font: 15px var(--sans); width: 100%; }
select.time { width: auto; min-width: 96px; font-variant-numeric: tabular-nums; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 14px; }
.check:has(input:checked) { background: var(--asphalt); border-color: var(--asphalt); color: #FFFFFF; }
.check input { accent-color: var(--signal-strong); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.error { color: var(--trou-ink); font-size: 13px; }

/* Cartes, badges, alertes */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--dispo-soft); color: var(--dispo-ink); }
.badge-warn { background: var(--si-besoin-soft); color: var(--si-besoin-ink); }
.badge-bad { background: var(--trou-soft); color: var(--trou-ink); }
.badge-neutral { background: var(--line); color: var(--asphalt); }
.badge-dark { background: var(--asphalt); color: #FFFFFF; }
.alert { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; }
.alert-ok { background: var(--dispo-soft); color: var(--dispo-ink); }
.alert-bad { background: var(--trou-soft); color: var(--trou-ink); }
.alert-warn { background: var(--si-besoin-soft); color: var(--si-besoin-ink); }
.alert-signal { background: var(--signal-soft); color: var(--signal-ink); }
.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px;
  color: #FFFFFF; font: 700 14px/1 var(--display); flex-shrink: 0; }
.poste-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px;
  background: var(--asphalt); color: #FFFFFF; font: 700 20px/1 var(--display); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 17px; background: var(--line); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.empty { padding: 28px; text-align: center; color: var(--asphalt-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--asphalt-muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* Mise en page de l'application et de desk */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; background: var(--panel); color: var(--on-panel); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--on-panel); text-decoration: none; }
.sidebar .brand img { height: 26px; width: auto; }
.sidebar .tag { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--signal); color: var(--asphalt); }
.event-switch { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid #3A3E46; background: #22252B; color: var(--on-panel); text-decoration: none; }
.event-switch:hover { color: var(--on-panel); background: #2A2D34; }
.event-switch strong { display: block; font-size: 14px; }
.event-switch span { font-size: 12px; color: var(--on-panel-muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--on-panel-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: #FFFFFF; background: #22252B; }
.nav a[aria-current="page"] { background: var(--panel-active); color: #FFFFFF; font-weight: 600; }
.nav a[aria-current="page"] svg { color: #FDBA74; }
.nav-title { padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A8F98; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--panel-active); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--on-panel-muted); }
.sidebar-foot .who { color: var(--on-panel); font-size: 14px; }
.sidebar-foot button { background: none; border: 0; padding: 0; color: var(--on-panel-muted); font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 68px; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar h1 { font-family: var(--display); font-size: 30px; line-height: 1; }
.content { padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--paper); }
.tabs a { padding: 6px 12px; border-radius: 8px; color: var(--asphalt); text-decoration: none; font-size: 13px; }
.tabs a[aria-current="page"] { background: var(--asphalt); color: #FFFFFF; font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.mobile-bar { display: none; }
@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .sidebar { display: none; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--panel); color: var(--on-panel); position: sticky; top: 0; z-index: 5; }
  .mobile-bar img { height: 24px; }
  .mobile-bar details { margin-left: auto; }
  .mobile-bar summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid #3A3E46; border-radius: 10px; }
  .mobile-bar .nav { position: absolute; right: 16px; top: 56px; background: var(--panel); padding: 8px; border-radius: 12px; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 32px; }
}

/* Frise horaire */
.timeline { --hours: 12; display: flex; flex-direction: column; gap: 6px; }
.tl-row { display: flex; align-items: center; min-height: 40px; gap: 0; }
.tl-label { width: 210px; flex-shrink: 0; padding-right: 12px; font-size: 13px; }
.tl-track { position: relative; flex: 1; height: 36px; border-radius: 8px; background-color: var(--surface-sunken);
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--hours)) 100%; }
.tl-hours { display: grid; grid-template-columns: repeat(var(--hours), minmax(0, 1fr)); font-size: 11px; color: var(--asphalt-muted); }
.tl-hours span { border-left: 1px solid var(--line-strong); padding-left: 3px; }
.tl-bar { position: absolute; top: 3px; bottom: 3px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 6px; padding: 0 8px;
  overflow: hidden; white-space: nowrap; font-size: 12px; color: #FFFFFF; text-decoration: none; }
.tl-bar.team-0 { background: var(--equipe-a); } .tl-bar.team-1 { background: var(--equipe-b); } .tl-bar.team-2 { background: var(--equipe-c); }
.tl-bar.team-none { background: var(--asphalt); }
.tl-bar.gap { background: var(--trou-soft); border: 1px dashed var(--trou); color: var(--trou-ink); font-weight: 600; justify-content: center; }
.tl-bar.gap.selected { border: 2px solid var(--trou); }
.tl-bar.gap:hover { color: var(--trou-ink); background: #FDD; }
.tl-bar.dispo { background: var(--dispo); }
.tl-bar.si_besoin { background: var(--si-besoin-soft); border: 1px solid var(--si-besoin); color: var(--si-besoin-ink); }
.tl-bar.window { background: transparent; border: 2px solid var(--asphalt-muted); border-style: dashed; }
.tl-group { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.coverage { display: grid; grid-template-columns: repeat(var(--hours), minmax(0, 1fr)); gap: 3px; flex: 1; }
.coverage span { height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

/* Séances du programme */
.seance-briefing { background: var(--dispo-soft); color: var(--dispo-ink); }
.seance-essais { background: var(--line); color: var(--asphalt); }
.seance-qualifs { background: var(--signal-soft); color: var(--signal-ink); border: 1px solid var(--signal-strong); }
.seance-course { background: var(--asphalt); color: #FFFFFF; }
.seance-pause { background: var(--surface); color: var(--asphalt-muted); border: 1px dashed var(--line-strong); }
.seance-animation { background: #E0E7FF; color: #1E3A8A; }
.seance-repere { background: var(--paper); color: var(--asphalt-muted); }
.tl-track .tl-bar[class*="seance-"] { justify-content: center; font-weight: 600; font-size: 11px; }

/* Pages d'accès (connexion, inscription, rejoindre) */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--panel); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-logo { height: 36px; width: auto; align-self: flex-start; margin-bottom: 20px; }
.auth-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 440px; }

/* Site vitrine */
.v-header { background: var(--panel); color: var(--on-panel); }
.v-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.v-nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.v-nav img { height: 30px; width: auto; }
.v-nav .links { display: flex; gap: 24px; flex: 1; }
.v-nav .links a, .v-nav .login { color: #E7E5DF; text-decoration: none; }
.v-hero { background: var(--panel); color: var(--on-panel); text-align: center; padding: 64px 0 0; }
.v-hero h1 { font-family: var(--display); font-size: clamp(44px, 7vw, 80px); line-height: .98; max-width: 1000px; margin: 16px auto; }
.v-hero p { max-width: 760px; margin: 0 auto 28px; font-size: 19px; color: var(--on-panel-muted); }
.v-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #FDBA74; }
.v-shot { margin: 40px auto 0; max-width: 1120px; border-radius: 16px 16px 0 0; overflow: hidden; border: 1px solid #3A3E46; border-bottom: 0; background: #22252B; }
.v-shot img { display: block; width: 100%; }
.v-section { padding: 72px 0 24px; }
.v-section h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); line-height: 1; margin-bottom: 28px; }
.v-step { background: var(--surface); border-radius: 16px; padding: 24px; }
.v-step .n { font-family: var(--display); font-size: 44px; color: var(--signal-strong); line-height: 1; }
.v-feature { border-top: 3px solid var(--asphalt); padding-top: 16px; }
.v-plan { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.v-plan.hl { background: var(--panel); color: var(--on-panel); }
.v-plan .price { font-family: var(--display); font-size: 44px; }
.v-plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.v-cta { margin: 56px auto 0; background: var(--signal-strong); color: #FFFFFF; border-radius: 24px; padding: 48px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.v-cta h2 { font-family: var(--display); font-size: 44px; line-height: 1; flex: 1; min-width: 280px; margin: 0; }
.v-footer { margin-top: 56px; background: var(--panel); color: var(--on-panel-muted); padding: 28px 0; font-size: 14px; }
.v-footer .v-container { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.v-footer a { color: var(--on-panel-muted); }
.v-prose { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.v-prose h1 { font-family: var(--display); font-size: 48px; margin-bottom: 20px; }
@media (max-width: 820px) { .v-nav .links { display: none; } .v-cta { padding: 28px; } }

/* Petits écrans : la frise défile horizontalement plutôt que d'être écrasée. */
.topbar .code { word-break: break-all; }
@media (max-width: 820px) {
  .timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .timeline > * { min-width: 980px; }
  .tl-label { width: 120px; }
  .topbar .join-link { display: none; }
}
.split > *, .stack > *, .main { min-width: 0; }

/* Plages de disponibilité fixées par le chef de poste (prioritaires). */
.tl-bar.by-chef { box-shadow: inset 0 0 0 2px var(--asphalt); }
.badge.by-chef-legend { background: transparent; color: var(--asphalt); box-shadow: inset 0 0 0 2px var(--asphalt); }
.tl-row.is-selected .tl-label strong { color: var(--signal-strong); }

/* ——— Planning interactif ——— */
.tl-bar[data-id] { cursor: grab; touch-action: pan-y; user-select: none; }
.tl-bar[data-id]:focus-visible, .tl-bar.is-selected { outline: 2px solid var(--signal); outline-offset: 1px; z-index: 2; }
.tl-bar.dragging { cursor: grabbing; opacity: .9; z-index: 3; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.tl-bar .h { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.tl-bar .h-l { left: 0; } .tl-bar .h-r { right: 0; }
.tl-bar[data-id]:hover .h { background: rgba(255,255,255,.25); }
.tl-track.drop-target { box-shadow: inset 0 0 0 2px var(--signal); }

.tm-menu { position: fixed; z-index: 60; min-width: 250px; max-width: 360px; max-height: 70vh; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(22,24,29,.22); font-size: 14px; }
.tm-menu button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--asphalt); font: inherit; text-align: left; cursor: pointer; }
.tm-menu button small { color: var(--asphalt-muted); font-size: 12px; }
.tm-menu button:hover:not(:disabled), .tm-menu button:focus-visible, .tm-menu button.open { background: var(--surface-sunken); outline: none; }
.tm-menu button:disabled { opacity: .45; cursor: default; }
.tm-menu button.has-sub { flex-direction: row; justify-content: space-between; }
.tm-menu button.has-sub::after { content: '›'; font-size: 18px; line-height: 1; color: var(--asphalt-muted); }
.tm-menu button.danger { color: var(--trou-ink); }
.tm-menu-header { padding: 6px 10px 8px; font-size: 12px; font-weight: 600; color: var(--asphalt-muted); }
.tm-sep { height: 1px; margin: 4px 6px; background: var(--line); }

.tm-toast { position: fixed; z-index: 70; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: var(--panel); color: var(--on-panel);
  box-shadow: 0 10px 28px rgba(0,0,0,.3); font-size: 14px; }
.tm-toast.is-error { background: var(--trou-ink); }
.tm-toast button { border: 0; background: none; color: #FDBA74; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

.tm-dialog { border: 0; border-radius: 16px; padding: 22px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 48px rgba(0,0,0,.3); }
.tm-dialog::backdrop { background: rgba(22,24,29,.45); }
.planning-help { font-size: 13px; color: var(--asphalt-muted); margin: 0 0 10px; }
@media (hover: none) { .planning-help .mouse { display: none; } }
@media (hover: hover) { .planning-help .touch { display: none; } }

/* Frise seule (sans lignes) : la piste garde sa hauteur. */
.timeline > .tl-track { flex: none; }
/* Formulaires en ligne (créneaux…) : les listes gardent leur largeur naturelle. */
.row select { width: auto; }
.creneau-row { padding: 4px 0; border-bottom: 1px solid var(--line); }
.rotation-form { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 14px; }
details > summary { cursor: pointer; color: var(--signal-strong); font-weight: 600; margin: 2px 0 6px; }

/* ——— Pages de poste ——— */
.poste-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%; }
.poste-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; }
.poste-tabs a { padding: 10px 14px; color: var(--asphalt-muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.poste-tabs a[aria-current="page"] { color: var(--asphalt); border-bottom-color: var(--signal); }
.poste-tabs a .n { font-weight: 500; color: var(--asphalt-muted); margin-left: 4px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
input[type=search] { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.pick-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.pick-list .table { margin: 0; }
.pick-list tr[data-text] { cursor: pointer; }
.pick-list tr[data-text]:hover { background: var(--surface-sunken); }
.role-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--asphalt); color: #fff; margin-left: 4px; vertical-align: 1px; }
.role-tag.equipe { background: var(--equipe-a); }
.readonly-note { font-size: 13px; color: var(--asphalt-muted); background: var(--surface-sunken); border-radius: var(--radius-sm); padding: 8px 12px; }
.tm-dialog .field { margin-bottom: 0; }

/* ——— Cartes ——— */
.map { height: 560px; border-radius: var(--radius-md); overflow: hidden; background: #DDE3E6; z-index: 0; }
.map.map-sm { height: 380px; }
.map.is-placing, .map.is-placing .leaflet-interactive { cursor: crosshair; }
.map-poste { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--asphalt); color: #fff;
  font: 700 13px/1 var(--display); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-poste.is-mine { background: var(--signal); width: 38px; height: 38px; margin: -4px; font-size: 16px; box-shadow: 0 0 0 4px rgba(234,88,12,.35), 0 2px 6px rgba(0,0,0,.35); }
.map-poste.is-muted { opacity: .55; }
.map-sp { display: inline-block; min-width: 34px; padding: 2px 4px; border-radius: 9px; color: #fff; font: 700 11px/14px var(--sans); text-align: center; border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.map-links { display: flex; gap: 10px; margin-top: 6px; }
.map-links a { font-weight: 600; }
.leaflet-container { font-family: var(--sans); }
@media (max-width: 820px) { .map { height: 420px; } }
