/* Module Voyages & dépenses (fusion Tripcount) */
.tabbar { grid-template-columns: repeat(6, 1fr) !important; }
.tabbar button span { font-size: 11px; }
#list-tabs [data-tab=trips] { display: none; }

.tc-hero { background: linear-gradient(135deg, #264653, #2a6f6b 60%, #2b8a7f); color: #fff; border-radius: 22px; padding: 18px; position: relative; overflow: hidden; }
.tc-hero:after { content: "✈"; position: absolute; right: -8px; top: -22px; font-size: 120px; opacity: .08; transform: rotate(-20deg); }
.tc-hero .lbl { opacity: .85; font-size: 13px; }
.tc-hero .big { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 2px 0; }
.tc-hero .tc-hrow { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.tc-hero .tc-hrow div { font-size: 12px; opacity: .9; }
.tc-hero .tc-hrow b { display: block; font-size: 17px; }

.tc-nag { display: flex; align-items: center; gap: 10px; background: var(--wish-soft); border-radius: 14px; padding: 10px 12px; margin-top: 12px; font-size: 13px; }
.tc-nag .btn { padding: 8px 12px; font-size: 13px; flex: none; margin: 0 0 0 auto; width: auto; }
.tc-nag > span { flex: 1; }

.tc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; }
.tc-chips::-webkit-scrollbar { display: none; }
.tc-chips.wrap { flex-wrap: wrap; overflow: visible; padding-top: 4px; }
.tc-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; white-space: nowrap; font-size: 13px; color: var(--ink); }
.tc-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tc-sum { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; margin-top: 6px; font-size: 14px; }
.tc-sum > div { flex: 1; }
.tc-sum .btn { padding: 8px 12px; font-size: 13px; flex: none; width: auto; margin: 0; }

.tc-year { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 18px 4px 8px; display: flex; justify-content: space-between; }
.tc-trip { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 16px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); color: var(--ink); }
.tc-flag { min-width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; gap: 2px; flex: none; padding: 0 6px; }
.tc-flag.big { min-width: 54px; height: 54px; }
.tc-flag img.flag { width: 22px; height: 16px; }
.tc-mid { flex: 1; min-width: 0; }
.tc-nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-dt { font-size: 12px; color: var(--muted); }
.tc-amt { text-align: right; font-weight: 800; font-size: 15px; }
.tc-amt small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.tc-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; display: flex; margin-top: 7px; }
.tc-bar span { display: block; height: 100%; }
.tc-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.tc-badge.todo { background: #ffe7df; color: #c8553a; }
.tc-badge.live { background: #dff5ea; color: #2e9d6a; }
.tc-badge.tag { background: var(--bg); padding: 1px 5px; }

.tc-fab { position: absolute; right: 10px; bottom: calc(var(--tb, 54px) + 10px); z-index: 6; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--visited); color: #fff; font-size: 34px; line-height: 1; box-shadow: 0 6px 18px rgba(231,111,81,.45); display: none; }
.tc-fab.on { display: block; }
#tc-trips-body { padding-bottom: 96px; }

.tc-sh-head { display: flex; gap: 12px; align-items: center; }
.tc-icon { border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 12px; font-size: 18px; flex: none; }
.tc-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.tc-kpi { background: var(--card); border-radius: 14px; padding: 10px 12px; }
.tc-kpi .v { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.tc-kpi .l { font-size: 12px; color: var(--muted); }
.tc-donut { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--ink); }
.tc-donut svg { flex: none; }
.tc-legend { flex: 1; min-width: 150px; display: grid; gap: 5px; font-size: 13px; }
.tc-legend div { display: flex; align-items: center; gap: 6px; }
.tc-legend b { margin-left: auto; }
.tc-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.tc-tip { background: var(--wish-soft); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin: 10px 0; line-height: 1.45; }
.tc-it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--ink); font-size: 14px; }
.tc-it:last-child { border-bottom: 0; }
.tc-it .x { flex: 1; min-width: 0; }
.tc-it .x div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ci { font-size: 20px; }
.tc-x { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 4px 6px; }
.tc-rank { width: 24px; height: 24px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.tc-cities { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.tc-facts { display: grid; gap: 8px; }
.tc-fact { display: flex; gap: 12px; align-items: center; margin-top: 0; }
.tc-fact i { font-style: normal; font-size: 26px; }
.tc-lbl { display: block; font-size: 12px; color: var(--muted); margin: 12px 2px 5px; font-weight: 600; }
.tc-amount { font-size: 36px !important; font-weight: 800; text-align: center; }
.tc-catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tc-cat { border: 2px solid transparent; background: var(--card); border-radius: 14px; padding: 8px 2px; font-size: 11px; color: var(--ink); }
.tc-cat i { display: block; font-style: normal; font-size: 22px; }
.tc-cat.on { border-color: var(--visited); background: var(--visited-soft); }
.tc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-newtag { display: flex; gap: 6px; margin-top: 8px; }
.tc-newtag .btn { flex: none; padding: 0 14px; width: auto; margin: 0; }
.tc-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.tc-check input { width: 20px; height: 20px; accent-color: var(--visited); }
.tc-imp { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tc-imp:last-child { border-bottom: 0; }
.tc-imp.off { opacity: .45; }
.tc-imp .x { flex: 1; min-width: 0; }
.tc-imp .x div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-imp select { border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: var(--card); color: var(--ink); font-size: 12px; max-width: 108px; }
.tc-imp input { width: 20px; height: 20px; accent-color: var(--visited); flex: none; }
.tc-set { padding-bottom: 0 !important; }
.tc-set .card { margin-top: 0; }

#tc-mapbanner { position: absolute; top: calc(var(--hh, 50px) + 52px); left: 50%; transform: translateX(-50%); z-index: 600; display: none; align-items: center; gap: 8px; background: #ff6b4a; color: #fff; padding: 8px 8px 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: calc(100% - 24px); }
#tc-mapbanner.on { display: flex; }
#tc-mapbanner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tc-mapbanner button { border: 0; background: rgba(255,255,255,.25); color: #fff; width: 26px; height: 26px; border-radius: 50%; flex: none; }

.tc-sh-head h3 { font-size: 19px; }
.btn-row .btn { margin-top: 0; }

.tc-tagrow { display: flex; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tc-tagrow:last-child { border-bottom: 0; }
.tc-tagrow input[data-ti] { width: 52px; text-align: center; flex: none; padding: 9px 4px; }
.tc-tagrow input[data-tn] { flex: 1; }

.tc-stchips { margin: 0 16px; padding-top: 14px; }
.tc-stchips + #stats-body { padding-top: 6px; }
#tc-stats { padding-top: 6px; }

.tc-yd > summary { list-style: none; cursor: pointer; }
.tc-yd > summary::-webkit-details-marker { display: none; }
.tc-yd > summary span:first-child::before { content: "▸ "; display: inline-block; transition: transform .15s; }
.tc-yd[open] > summary span:first-child::before { transform: rotate(90deg); }
.tc-yd > summary small { font-weight: 500; color: var(--muted); }
.tc-yall { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 -4px; }
.tc-money { border: 2px solid var(--visited-soft); }
.tc-mh { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.tc-mh b { margin-right: 4px; }
.tc-mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tc-mrow .v { font-size: 18px; font-weight: 800; }
.tc-mrow .l { font-size: 11.5px; color: var(--muted); }
.tc-mcats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.tc-money .btn-row .btn:last-child { flex: none; width: 52px; }

.tc-glow { pointer-events: auto; }
.tc-glow i { position: absolute; left: 22px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7cf 0 18%, #ffd84a 40%, #ff8a3d 100%);
  box-shadow: 0 0 6px 2px rgba(255,216,74,.9), 0 0 18px 6px rgba(255,120,60,.55); animation: tcCore 1s ease-in-out infinite; will-change: transform, opacity; }
.tc-glow b { position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,80,0) 35%, rgba(255,170,60,.35) 55%, rgba(255,107,74,0) 70%);
  border: 1.5px solid rgba(255,140,60,.55); transform: scale(.15); opacity: 0; animation: tcWave 2.7s cubic-bezier(.2,.6,.3,1) infinite; }
.tc-glow b:nth-child(2) { animation-delay: .9s; }
.tc-glow b:nth-child(3) { animation-delay: 1.8s; }
@keyframes tcWave { 0% { transform: scale(.15); opacity: .95; } 70% { opacity: .35; } 100% { transform: scale(1); opacity: 0; } }
@keyframes tcBlink { 0%, 100% { opacity: 1; filter: brightness(1.15); } 55% { opacity: .15; filter: brightness(.8); } }
@keyframes tcCore { 0%, 100% { transform: scale(1.3); opacity: 1; filter: brightness(1.25); box-shadow: 0 0 10px 4px rgba(255,216,74,1), 0 0 26px 10px rgba(255,120,60,.7); } 50% { transform: scale(.7); opacity: .1; filter: brightness(.8); box-shadow: 0 0 0 0 rgba(255,216,74,0), 0 0 0 0 rgba(255,120,60,0); } }
@keyframes tcBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
#tc-mapbanner.back .tc-bl { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { .tc-glow b, .tc-glow i { animation: none; } .tc-glow b { opacity: .4; transform: scale(.6); } }


/* Listes et Jeu : mêmes pastilles que Voyages et Stats */
#list-tabs, #game-tabs { display: flex; gap: 8px; background: none; padding: 2px 2px 6px; border-radius: 0; overflow-x: auto; scrollbar-width: none; }
#list-tabs::-webkit-scrollbar, #game-tabs::-webkit-scrollbar { display: none; }
#list-tabs { margin: 14px 16px 0; }
#list-tabs button, #game-tabs button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; white-space: nowrap; font-size: 13px; color: var(--ink); box-shadow: none; font-weight: 400; }
#list-tabs button.on, #game-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 400; box-shadow: none; }
#list-tabs [data-tab=countries]::before { content: "🏳️ "; }
#list-tabs [data-tab=cities]::before { content: "🏙️ "; }
#list-tabs [data-tab=wish]::before { content: "🌟 "; }
#game-tabs [data-gt=quests]::before { content: "🎯 "; }
#game-tabs [data-gt=badges]::before { content: "🏅 "; }
#game-tabs [data-gt=passport]::before { content: "🛂 "; }
#game-tabs [data-gt=friends]::before { content: "👥 "; }
html.dark #list-tabs button, html.dark #game-tabs button { background: var(--card); }
html.dark #list-tabs button.on, html.dark #game-tabs button.on { background: var(--ink); color: var(--bg); }

.tc-eye { position: absolute; top: 12px; right: 12px; z-index: 1; border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; }
.tc-hero > .lbl:first-of-type { padding-right: 130px; }

.tc-improw { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 0; color: var(--ink); }
.tc-improw:last-child { border-bottom: 0; }
.tc-improw > span { font-size: 22px; width: 30px; text-align: center; flex: none; }
.tc-improw > div { flex: 1; min-width: 0; }
.tc-improw b { display: block; font-size: 15px; }
.tc-improw small { display: block; font-size: 12.5px; color: var(--muted); }
.tc-improw > i { font-style: normal; color: var(--muted); font-size: 20px; }
.tc-set .card + .card { margin-top: 14px; }

.tc-costbtn { margin-top: 12px; border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.tc-shortln { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 4px 4px 0; }
.tc-cleg { display: inline-flex; gap: 2px; margin: 0 2px; flex: none; }
.tc-cleg i { width: 14px; height: 10px; border-radius: 2px; display: block; }
#tc-mapbanner .tc-bsw { width: auto; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 700; }
.tc-bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-bdg { background: var(--bg); border-radius: 14px; padding: 10px; opacity: .6; display: flex; flex-direction: column; gap: 3px; }
.tc-bdg.got { opacity: 1; background: var(--visited-soft); }
.tc-bdg i { font-style: normal; font-size: 26px; filter: grayscale(1); }
.tc-bdg.got i { filter: none; }
.tc-bdg b { font-size: 14px; }
.tc-bdg small { font-size: 11.5px; color: var(--muted); }
#tc-badges { margin: 12px 0; }
#tc-badges h3 small { font-weight: 400; font-size: 13px; }
.tc-od { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tc-od .btn-row { margin-top: 8px; }

#tc-mapbanner.cost .tc-bl { flex: none; }
#tc-mapbanner.cost { max-width: calc(100% - 70px); left: 12px; transform: none; }

/* ======================= Mise en page ordinateur (écran large) ======================= */
@media (min-width: 1000px) {
  html { --tb: 0px !important; }
  html, body { background: var(--bg); }
  #app { max-width: none; box-shadow: none; }
  /* barre d'onglets → menu à gauche */
  .tabbar { top: 0; bottom: 0; right: auto; width: 210px; display: flex !important; flex-direction: column; gap: 4px;
    padding: calc(var(--hh, 50px) + 18px) 12px 16px; background: var(--card); border-right: 1px solid var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar button { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; font-size: 15px; border-radius: 12px; }
  .tabbar button span { font-size: 15px; }
  .tabbar button svg { width: 44px; height: 30px; padding: 3px 11px; flex: none; }
  .tabbar button:hover { background: var(--bg); }
  .topbar { left: 0; padding-left: 20px; padding-right: 20px; }
  main { left: 210px; }
  .view { padding-bottom: 24px; }
  .fab { bottom: 24px !important; right: 24px; width: 56px; height: 56px; font-size: 32px; }
  .tc-fab { bottom: 24px !important; right: 24px; }
  .legend { bottom: 16px !important; }
  /* contenu centré et plus large */
  #tc-trips-body, #tc-stseg, #stats-body, #tc-stats, #list-tabs, #list-search, #list-body, #badges-body, #settings-body, #tc-settings { max-width: 1160px; margin-left: auto !important; margin-right: auto !important; }
  #tc-trips-body, #tc-stats, #list-body, #badges-body, #settings-body, #tc-settings { padding-left: 28px; padding-right: 28px; }
  #list-search { display: block; width: calc(100% - 56px); max-width: 1104px; }
  /* Voyages : cartes sur 2 colonnes */
  .tc-ygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .topbar { z-index: 720; }
  .tabbar { z-index: 715; }
  .tc-hero { padding: 24px 28px; }
  .tc-hero .big { font-size: 40px; }
  /* Stats : deux colonnes */
  #stats-body { columns: 2; column-gap: 22px; }
  #stats-body > *, #stats-body > .sec > * { break-inside: avoid; }
  #stats-body > .sec:first-child > *, #stats-body > :first-child { column-span: all; }
  #tc-stats { columns: 2; column-gap: 22px; }
  #tc-stats > * { break-inside: avoid; }
  #tc-stats > .tc-kpis, #tc-stats > #tc-costmap { column-span: all; }
  #tc-stats .tc-kpis { grid-template-columns: repeat(4, 1fr); }
  #tc-stats .group-title { break-after: avoid; }
  /* Listes, Jeu, Réglages : grilles */
  #settings-body { columns: 2; column-gap: 22px; }
  #settings-body > * { break-inside: avoid; }
  #tc-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #tc-settings .card + .card { margin-top: 0; }
  .tc-bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* fiches : panneau à droite au lieu d'une feuille en bas */
  .sheet { left: auto; top: 0; right: 0; bottom: 0; width: min(520px, 42vw); max-height: none; border-radius: 22px 0 0 22px;
    transform: translateX(105%); padding: 18px 26px 26px; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
  .sheet.on { transform: translateX(0); }
  .sheet .grip { display: none; }
  .sheet-backdrop.on { background: rgba(20, 40, 48, .18); }
  #tc-mapbanner { top: calc(var(--hh, 50px) + 14px); }
}
@media (min-width: 1000px) {
  /* Listes : lignes sur plusieurs colonnes */
  #list-body .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  #list-body .rows > * { min-width: 0; }
  #list-search { margin-top: 10px !important; }
  /* Jeu : blocs sur deux colonnes */
  #game-body { columns: 2; column-gap: 22px; }
  #game-body > *, #game-body > .sec > * { break-inside: avoid; }
  #game-body > .ly-edit { column-span: all; }
  #lvl-card, #game-tabs, #tc-badges { max-width: 1104px; margin-left: auto; margin-right: auto; }
  #badges-body { padding-top: 14px; }
  /* menu : un peu plus de relief */
  .tabbar button.on { background: var(--visited-soft); }
  .tabbar button.on svg { background: transparent; }
  .summary { font-size: 13px; padding: 6px 14px; }
  /* fiches et formulaires plus aérés */
  .sheet h2 { font-size: 26px; }
  .tc-catgrid { grid-template-columns: repeat(7, 1fr); }
  .tc-kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1500px) {
  #list-body .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-ygrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #stats-body, #tc-stats, #settings-body { columns: 3; }
}

.tc-wtools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }

.tc-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; }
.tc-fold > summary::-webkit-details-marker { display: none; }
.tc-fold > summary::after { content: "▸"; transition: transform .15s; }
.tc-fold[open] > summary::after { transform: rotate(90deg); }
.tc-winfo p{margin:6px 0 8px;line-height:1.45}
.tc-winfo .tc-wh{font-size:1.05em}
.tc-wtips{margin:8px 0;display:grid;gap:4px;font-size:.93em}
.tc-wlinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
.tc-wlinks a{padding:6px 10px;border-radius:999px;background:rgba(42,157,143,.12);text-decoration:none;color:inherit;font-size:.9em}
.tc-winfo .muted{opacity:.6}
#tc-srx{margin-top:10px}
.tc-mh{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.tc-mh .l{font-size:.85em;opacity:.7}
.tc-estg{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:8px}
.tc-estg>div{background:rgba(42,157,143,.1);border-radius:10px;padding:7px 2px;text-align:center;display:flex;flex-direction:column;gap:2px}
.tc-estg b{font-size:.8em;opacity:.75}
.tc-estg span{font-weight:700;font-size:.92em;white-space:nowrap}
#list-body.tc-selmode [data-pin],#list-body.tc-selmode [data-country]{position:relative;padding-left:44px}
#list-body.tc-selmode [data-pin]::before,#list-body.tc-selmode [data-country]::before{content:"";position:absolute;left:12px;top:50%;width:20px;height:20px;margin-top:-10px;border-radius:6px;border:2px solid #9aa9ae;background:#fff}
#list-body.tc-selmode .tc-picked{background:rgba(42,157,143,.12)}
#list-body.tc-selmode .tc-picked::before{background:#2a9d8f;border-color:#2a9d8f;content:"✓";color:#fff;font-size:14px;line-height:16px;text-align:center}
#tc-selbar{position:fixed;left:8px;right:8px;bottom:calc(var(--tb,64px) + 10px + env(safe-area-inset-bottom));z-index:700;background:#264653;color:#fff;border-radius:16px;padding:10px 12px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
#tc-selbar button{border:0;border-radius:999px;padding:7px 11px;font:inherit;font-size:.88em;background:rgba(255,255,255,.15);color:#fff;cursor:pointer}
#tc-selbar button.danger{background:#e76f51}
.tc-selh{display:flex;gap:8px;align-items:center;margin-bottom:8px}.tc-selh b{flex:1}
.tc-sela{display:flex;gap:6px;flex-wrap:wrap}
.tc-sela .help{color:#dfe8ea}
@media (min-width:1000px){#tc-selbar{left:calc(210px + 24px);right:auto;width:min(640px,60vw);bottom:20px}}
#list-body [data-pin],#list-body [data-country]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#list-body.tc-selmode [data-pin],#list-body.tc-selmode [data-country]{transition:background .15s}
#list-tabs{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
#list-tabs::-webkit-scrollbar{display:none}
#list-tabs button{flex:0 0 auto;white-space:nowrap}
.tc-lhead{margin-bottom:10px}.tc-lhead .tc-wtools{margin:10px 0 0}
.tc-donebtn{flex:0 0 auto;width:30px;height:30px;border-radius:50%;border:2px solid #b9c6ca;color:transparent;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;margin-left:6px;cursor:pointer}
.tc-donebtn:hover{border-color:#2a9d8f;color:#2a9d8f}
.tc-donebtn.on{background:#2a9d8f;border-color:#2a9d8f;color:#fff}
details[data-g="w:done"] .row .title{text-decoration:line-through;text-decoration-color:rgba(42,157,143,.6)}
.tc-lhead .tc-kpis{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));margin-top:0}.tc-lhead .tc-kpis>div{text-align:center;display:flex;flex-direction:column}.tc-lhead .tc-kpis b{font-size:1.4em}.tc-lhead .tc-kpis span{font-size:.8em;opacity:.7}
.tc-wishgt{color:#b8892a}
.tc-wishrows{border:2px dashed #e9c46a;border-radius:14px;background:rgba(233,196,106,.10)}
.tc-wishrows .row{background:transparent}
/* calques */
#tc-laybtn{position:relative}#tc-laybtn .tc-laydot{display:none;position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:#e76f51}#tc-laybtn.tc-layoff .tc-laydot{display:block}
.tc-layrow{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid rgba(0,0,0,.06);cursor:pointer}
.tc-layrow .ic{font-size:22px;width:30px;text-align:center}.tc-layrow div{flex:1;display:flex;flex-direction:column}.tc-layrow small{opacity:.65}
.tc-layrow input{width:22px;height:22px;accent-color:#2a9d8f}
.tc-lic span{display:flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;font-size:14px;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.3)}
/* souvenir */
#tc-souv{position:absolute;left:10px;right:62px;top:calc(var(--top,64px) + 8px);z-index:600;background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.2);padding:10px 10px 10px 12px;display:flex;gap:10px;align-items:center;transform:translateY(-20px);opacity:0;transition:.35s}
#tc-souv.on{transform:none;opacity:1}
#tc-souv .ic{font-size:26px}#tc-souv>div{flex:1;font-size:.93em;line-height:1.3}#tc-souv small{display:block;color:#e76f51;font-weight:700;margin-bottom:2px}
#tc-souv button{border:0;background:#264653;color:#fff;border-radius:999px;padding:7px 12px;font:inherit;font-size:.85em;cursor:pointer}
#tc-souv button[data-s=x]{background:transparent;color:#6b7a80;padding:6px}
@media (min-width:1000px){#tc-souv{left:auto;right:70px;width:420px}}
/* prochain voyage */
.tc-next{display:flex;align-items:center;gap:12px;width:100%;border:0;text-align:left;background:linear-gradient(135deg,#264653,#2a9d8f);color:#fff;border-radius:16px;padding:12px 14px;margin:10px 0;font:inherit;cursor:pointer}
.tc-next .ic{font-size:26px}.tc-next div{flex:1;display:flex;flex-direction:column}.tc-next small{opacity:.8}
.tc-next .n{display:flex;flex-direction:column;align-items:center;font-size:.75em}.tc-next .n b{font-size:2em;line-height:1}
.tc-cd{margin-top:8px;padding:8px 10px;border-radius:10px;background:rgba(42,157,143,.12)}
.tc-with{display:block;width:100%;text-align:left;border:0;background:rgba(38,70,83,.06);border-radius:10px;padding:8px 10px;margin-top:8px;font:inherit;color:inherit;cursor:pointer}
.tc-split .tc-tr{padding:6px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.tc-bals{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.tc-bals span{background:rgba(0,0,0,.05);border-radius:999px;padding:4px 10px;font-size:.88em}.tc-bals .pos{background:rgba(42,157,143,.15)}.tc-bals .neg{background:rgba(231,111,81,.15)}
.tc-live{background:linear-gradient(135deg,#e76f51,#f4a261);color:#fff;border-radius:16px;padding:12px 14px;margin:10px 0}
.tc-lh{display:flex;justify-content:space-between;align-items:center}
.tc-lrow{display:flex;gap:8px;margin:10px 0}.tc-lrow div{flex:1;background:rgba(255,255,255,.18);border-radius:10px;padding:8px;display:flex;flex-direction:column}.tc-lrow b{font-size:1.2em}.tc-lrow small{opacity:.85;font-size:.75em}
.tc-lrow2{display:flex;gap:8px;align-items:center}
.tc-lbtn{border:0;background:rgba(255,255,255,.25);color:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.tc-lbtn.big{background:#fff;color:#e76f51;padding:9px 14px}
.tc-conv{flex:1;display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.18);border-radius:999px;padding:3px 10px}.tc-conv input{width:80px;border:0;background:transparent;color:#fff;font:inherit;outline:0}.tc-conv input::placeholder{color:rgba(255,255,255,.8)}
#tc-livemap{position:absolute;left:10px;right:62px;bottom:calc(var(--tb,64px) + 54px);z-index:550}#tc-livemap .tc-live{margin:0;box-shadow:0 8px 24px rgba(0,0,0,.25)}
@media (min-width:1000px){#tc-livemap{left:auto;width:420px;bottom:24px}}
.tc-cklist{display:block!important}.tc-cklist summary{display:flex;justify-content:space-between;cursor:pointer;list-style:none}.tc-cklist summary::-webkit-details-marker{display:none}
.tc-ci{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.05);cursor:pointer}.tc-ci input{width:20px;height:20px;accent-color:#2a9d8f;flex:0 0 auto}.tc-ci.on span{opacity:.55;text-decoration:line-through}
.tc-ci span{display:flex;flex-direction:column}.tc-ci small{opacity:.6}
.tc-goal{margin:10px 0}.tc-goal>div:first-child{display:flex;justify-content:space-between;margin-bottom:4px}.tc-goal.ok b{color:#2a9d8f}
.tc-wrs{display:grid;gap:10px;margin-top:10px}
.tc-wr{border-radius:18px;padding:18px 16px;color:#fff;display:flex;flex-direction:column;gap:4px;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.tc-wr b{font-size:2.2em;line-height:1.05}.tc-wr span{font-size:1.05em}.tc-wr span b{font-size:1em}.tc-wr small{opacity:.9;line-height:1.4}
@media (min-width:1000px){.tc-wrs{grid-template-columns:1fr 1fr}}
.tc-mail{padding:10px}.tc-mail .tc-row2{margin:6px 0}
.tc-hbtns{display:flex;gap:8px;flex-wrap:wrap}.tc-hbtns .tc-costbtn{flex:1}

.tc-live.mini{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 12px}.tc-lmini{flex:1;border:0;background:transparent;color:#fff;text-align:left;font:inherit;font-size:.9em;cursor:pointer;line-height:1.3}.tc-live.mini .tc-lbtn.big{padding:6px 12px;font-size:1.2em}
/* logos & tableau de bord matchs */
.tc-logo{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;background:hsl(var(--h,200) 45% 42%) center/contain no-repeat;letter-spacing:-.3px}
.tc-logo.img{background-color:transparent;border-radius:6px}
.tc-logo.big{width:64px;height:64px;font-size:20px}
.tc-mteams{display:flex;align-items:center;gap:8px;font-weight:600}.tc-mteams .tn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tc-mteams .tn.r{text-align:right}
.tc-mteams .sc{flex:0 0 auto;background:#264653;color:#fff;border-radius:8px;padding:3px 8px;font-size:.92em}
.tc-mrow .sub{margin-top:4px;text-align:center}
.tc-fdash{background:transparent;color:var(--ink);padding:0;margin-bottom:6px}
.tc-fgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tc-ft{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:0 1px 3px rgba(38,70,83,.06);padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:2px}
.tc-ft b{font-size:2em;line-height:1.1;color:var(--visited);font-weight:700}.tc-ft span{font-size:.78em;color:var(--ink-2);text-align:center}
.tc-fcard{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);box-shadow:0 1px 3px rgba(38,70,83,.06);color:var(--ink);padding:12px 14px;margin-top:8px;font:inherit}
.tc-fcard.row{flex-direction:row;align-items:center;gap:14px;cursor:default}button.tc-fcard{cursor:pointer}
.tc-fcard small{color:var(--muted);letter-spacing:.3px;font-size:.75em}.tc-fcard b{font-size:1.15em;font-weight:600}.tc-fcard .acc{color:var(--visited);font-weight:700}.tc-fcard div{display:flex;flex-direction:column;gap:2px;min-width:0}
.tc-stimg{flex:0 0 auto;width:64px;height:64px;border-radius:50%;background:var(--visited-soft) center/cover;display:flex;align-items:center;justify-content:center;font-size:26px}
.tc-ftop{margin-top:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--ink);padding:10px 14px}.tc-ftop summary{cursor:pointer;font-weight:600}
.tc-frank{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid var(--line)}.tc-frank span:first-child{width:18px;opacity:.6;text-align:right}.tc-frank b{flex:1;font-weight:500}.tc-frank em{font-style:normal;color:var(--visited);font-weight:700}
@media (min-width:1000px){.tc-fgrid{grid-template-columns:repeat(6,1fr)}}
.tc-mrow{display:block!important;width:100%}.tc-mrow .main{width:100%;min-width:0}.tc-mteams{width:100%}
.tc-mcard{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:10px}
.tc-mch{display:flex;align-items:center;justify-content:space-between;gap:10px}.tc-mcs{display:flex;flex-direction:column;align-items:center}.tc-mcs b{font-size:2.2em;color:var(--visited);font-weight:600}.tc-mcs small{opacity:.75}
.tc-mcn{display:flex;justify-content:space-between;font-weight:600;margin-top:6px}.tc-mcn span:last-child{text-align:right}
.tc-mci{display:flex;flex-direction:column;gap:4px;margin-top:12px;font-size:.92em;opacity:.9}
.tc-mgoals{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:.92em}

.tc-flytip{background:var(--visited);color:#fff;border:0;border-radius:10px;font-weight:700;padding:4px 10px;box-shadow:0 2px 8px rgba(0,0,0,.25)}.tc-flytip:before{border-top-color:var(--visited)!important}

.tc-mailchip{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tb,54px) + var(--safe-b,0px) + 14px);z-index:900;border:0;border-radius:22px;background:var(--accent);color:#fff;font:inherit;font-weight:600;padding:12px 18px;box-shadow:0 4px 16px rgba(0,0,0,.2);cursor:pointer}

.tc-lock{position:fixed;inset:0;z-index:99999;background:var(--bg);display:flex;align-items:center;justify-content:center}
.tc-lockbox{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:24px;color:var(--ink)}
.tc-lockbox b{font-size:1.4em}.tc-lockbox span{color:var(--muted);font-size:.92em}.tc-lockbox .btn{margin-top:10px;min-width:220px}
.tc-lockic{font-size:46px}
