/* AstroNight — nocturne, sobre ; mode rouge pour préserver la vision de nuit. Typographie système uniquement. */
:root {
  --bg: #070a16; --bg2: #0b1022; --card: #0f1530; --ink: #e6e9f7; --mute: #9aa3c4; --line: #222b4d; --field: #0a0f24; --soft: #161e3e;
  --accent: #a597ff; --accent-2: #6fa8ff; --accent-ink: #0b0820; --res: #c9bfff; --ok: #6fd7a8; --warn: #ffc27a; --warn-bg: #2a1d10;
  --ph-day: #3d5f98; --ph-civil: #2d4479; --ph-naut: #1e2d5a; --ph-astro: #131c3f; --ph-night: #04060f; --moon: #f1e6c4; --gc: #b69cff; --gc-area: #b69cff26; --win: #6fd7a8;
  --focus: #8fb6ff; --radius: 14px; --shadow: 0 1px 0 #ffffff08 inset, 0 8px 28px #00000040;
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px); --sa-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
:root[data-theme="red"] {
  --bg: #050000; --bg2: #090101; --card: #110202; --ink: #e04a3c; --mute: #a3392e; --line: #3a0d09; --field: #0b0101; --soft: #1c0503;
  --accent: #ff4b3a; --accent-2: #d63a2c; --accent-ink: #0d0000; --res: #ff6a5a; --ok: #ff6a5a; --warn: #ff7b5c; --warn-bg: #1d0402;
  --ph-day: #5a0f0a; --ph-civil: #440b07; --ph-naut: #300805; --ph-astro: #1d0403; --ph-night: #070000; --moon: #ff6a5a; --gc: #e04a3c; --gc-area: #e04a3c22; --win: #ff6a5a;
  --focus: #ff6a5a; --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; background: var(--bg); }
button, a, input, select, summary, label, textarea, .seg, .chips { touch-action: manipulation; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: radial-gradient(1200px 500px at 70% -10%, #1a1f4a55, transparent 70%), var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; padding-bottom: calc(76px + var(--sa-b)); }
:root[data-theme="red"] body { background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--accent-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: calc(8px + var(--sa-l)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
h2 { font-size: 1rem; margin: 0; letter-spacing: .01em; }
h3 { font-size: .95rem; margin: 18px 0 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: calc(6px + var(--sa-t)) calc(10px + var(--sa-r)) 6px calc(10px + var(--sa-l)); }
.top-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.08rem; white-space: nowrap; min-height: 44px; }
.brand b { color: var(--accent); }
:root[data-theme="red"] .brand img { filter: grayscale(1) sepia(1) saturate(8) hue-rotate(-50deg) brightness(.75); }
.session-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; text-align: left; color: var(--mute); }
.sb-txt { display: grid; min-width: 0; }
.sb-txt b, .sb-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-txt b { color: var(--ink); font-size: .95rem; }
.sb-txt small { font-size: .74rem; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.pill { font-size: .72rem; color: var(--warn); border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; max-width: 150px; line-height: 1.2; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--mute); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.red-btn[aria-pressed="true"] { color: var(--accent); background: var(--soft); }

/* Date */
.datebar { padding: 8px calc(10px + var(--sa-r)) 0 calc(10px + var(--sa-l)); }
.db-in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.db-in input[type="date"] { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); padding: 0 10px; font-size: 16px; color-scheme: dark; }
:root[data-theme="red"] .db-in input[type="date"] { color-scheme: dark; }
.db-night { flex-basis: 100%; margin: 2px 0 0; font-size: .85rem; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); cursor: pointer; font-size: .9rem; color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--soft); }

/* Synthèse */
.summary { padding: 10px calc(10px + var(--sa-r)) 0 calc(10px + var(--sa-l)); }
.sum-in { max-width: 1200px; margin: 0 auto; background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.sum-item { display: grid; }
.sum-item.wide { grid-column: 1 / -1; }
.sum-l { font-size: .74rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.sum-item b { font-size: 1.02rem; font-weight: 650; }
.sum-reco { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .92rem; }
.sum-reco.ok { color: var(--res); }
@media (min-width: 700px) { .sum-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sum-item.wide { grid-column: span 2; } }
@media (min-width: 1100px) { .sum-grid { grid-template-columns: repeat(7, auto); justify-content: space-between; } .sum-item.wide { grid-column: auto; } }

/* Onglets : barre basse au pouce sur mobile, barre horizontale sur grand écran */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(6, 1fr); background: color-mix(in srgb, var(--bg2) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px calc(4px + var(--sa-r)) calc(4px + var(--sa-b)) calc(4px + var(--sa-l)); }
.tabs button { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 6px 2px; border: 0; background: transparent; color: var(--mute); border-radius: 10px; cursor: pointer; font-size: .68rem; font-weight: 600; }
.tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabs button[aria-selected="true"] { color: var(--accent); background: var(--soft); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabs { position: sticky; top: calc(57px + var(--sa-t)); bottom: auto; max-width: 1200px; margin: 12px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: var(--card); }
  .tabs button { grid-auto-flow: column; gap: 8px; min-height: 44px; font-size: .9rem; align-items: center; justify-content: center; }
}

/* Panneau */
.panel { max-width: 1200px; margin: 0 auto; padding: 12px calc(10px + var(--sa-r)) 12px calc(10px + var(--sa-l)); outline: none; scroll-margin-top: 70px; }
.cols { display: grid; gap: 12px; }
.col-in, .col-out { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); align-items: start; } .col-in { position: sticky; top: 130px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 2px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; box-shadow: var(--shadow); }
.card > * + * { margin-top: 10px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
details.card > summary { cursor: pointer; font-weight: 650; min-height: 32px; display: flex; align-items: center; }
details > summary::marker { color: var(--mute); }
.kind { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; border: 1px solid currentColor; white-space: nowrap; }
.k-astro { color: var(--accent-2); } .k-photo { color: var(--accent); } .k-tip { color: var(--warn); } .k-user { color: var(--mute); }
.result { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card)); }
.result.muted { opacity: .75; }
.r-big { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 750; line-height: 1.1; color: var(--res); margin: 6px 0 0; letter-spacing: -.01em; }
.r-mid { font-size: 1.2rem; font-weight: 650; color: var(--res); margin: 0; }
.r-sub { margin: 4px 0 0; color: var(--mute); font-size: .92rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--field); font-size: .9rem; }
.opt b { font-size: .78rem; color: var(--mute); font-weight: 650; }
.opt.good { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.opt.risk { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.note { font-size: .86rem; color: var(--mute); margin: 0; }
.col-out > .note { padding: 0 4px; }
.note.warn { color: var(--warn); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); border-radius: 10px; padding: 10px 12px; }
.kv { margin: 0; display: grid; gap: 6px; }
.kv div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--mute); font-size: .88rem; }
.kv dd { margin: 0; font-size: .92rem; }
.tips { margin: 6px 0 0; padding-left: 20px; font-size: .9rem; display: grid; gap: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.tbl thead th { color: var(--mute); font-weight: 600; font-size: .78rem; }
.tbl tr.on { color: var(--res); font-weight: 650; }
.tbl tr.dim { color: var(--mute); opacity: .7; }
.tbl.compact td, .tbl.compact th { padding: 4px 6px; }

/* Champs */
.fld { display: grid; gap: 4px; min-width: 0; }
.fld.wide, .grid2 > .wide { grid-column: 1 / -1; }
.f-lab { font-size: .84rem; color: var(--mute); font-weight: 600; }
.f-box { display: flex; align-items: center; background: var(--field); border: 1px solid var(--line); border-radius: 10px; min-height: 46px; }
.f-box:focus-within { border-color: var(--focus); }
.f-box input, .f-box select { flex: 1 1 auto; width: 0; min-width: 0; border: 0; background: transparent; min-height: 44px; padding: 0 10px; font-size: 16px; outline: none; }
.f-box select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--mute) 50%) calc(100% - 16px) 50% / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--mute) 50%) calc(100% - 10px) 50% / 6px 6px no-repeat; padding-right: 26px; }
.f-box select option { background: var(--card); color: var(--ink); }
.f-unit { padding: 0 10px; color: var(--mute); font-size: .88rem; }
.f-hint { font-size: .78rem; color: var(--mute); }
.f-err { font-size: .8rem; color: var(--warn); min-height: 0; margin: 0; }
.f-err:empty { display: none; }
input[aria-invalid="true"] { color: var(--warn); }
textarea { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 16px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.row > .fld { flex: 1 1 200px; }
.seg { display: flex; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--mute); cursor: pointer; font-weight: 600; font-size: .9rem; padding: 0 8px; }
.seg button.on { background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.chk { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.chk small { display: block; color: var(--mute); font-size: .78rem; }
.checks { display: grid; gap: 0; }
.checks .chk { border-bottom: 1px dashed var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: transparent; }
.linklike { border: 0; background: none; padding: 4px 0; color: var(--accent-2); text-decoration: underline; cursor: pointer; font-size: inherit; text-align: left; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ts input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
.ts-val { color: var(--res); font-weight: 700; }
.ts-ends { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--mute); }

/* Visualisations */
.timeline { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; }
.ph-day { fill: var(--ph-day); } .ph-civil { fill: var(--ph-civil); } .ph-naut { fill: var(--ph-naut); } .ph-astro { fill: var(--ph-astro); } .ph-night { fill: var(--ph-night); }
.tl-moon { fill: var(--moon); } .tl-win { fill: var(--win); }
.tl-hz { stroke: var(--mute); stroke-width: 1; }
.tl-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.tl-gc { fill: none; stroke: var(--gc); stroke-width: 2.2; stroke-linejoin: round; }
.tl-gc.c-moon { stroke: var(--moon); }
.tl-gc-area { fill: var(--gc-area); } .tl-gc-area.c-moon { fill: color-mix(in srgb, var(--moon) 14%, transparent); }
.tl-tick { stroke: var(--line); } .tl-tick.major { stroke: color-mix(in srgb, var(--mute) 45%, transparent); }
.tl-hour, .tl-lab, .pl-lab, .fr-lab { fill: var(--mute); font-size: 11px; font-family: inherit; }
.tl-hour { text-anchor: middle; }
.tl-lab.end { text-anchor: end; }
.tl-sel { stroke: var(--ink); stroke-width: 1.5; }
.tl-sel-lab { fill: var(--ink); font-size: 11px; font-weight: 700; text-anchor: middle; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: var(--mute); }
.legend i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line); }
.legend i.ph-day { background: var(--ph-day); } .legend i.ph-civil { background: var(--ph-civil); } .legend i.ph-naut { background: var(--ph-naut); } .legend i.ph-astro { background: var(--ph-astro); } .legend i.ph-night { background: var(--ph-night); } .legend i.tl-moon { background: var(--moon); } .legend i.tl-win { background: var(--win); }
.polar-wrap { display: grid; place-items: center; }
.polar { width: 100%; max-width: 380px; height: auto; }
.pl-sky { fill: var(--ph-night); stroke: none; }
.pl-grid { fill: none; stroke: var(--line); }
.pl-hz { fill: none; stroke: var(--mute); stroke-width: 1.5; }
.pl-card { fill: var(--ink); font-size: 14px; font-weight: 700; text-anchor: middle; }
.pl-card.n { fill: var(--accent); }
.pl-gc-path { fill: none; stroke: var(--gc); stroke-width: 2.5; stroke-linecap: round; }
.pl-moon-path { fill: none; stroke: var(--moon); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .8; }
.pl-dot { fill: var(--gc); }
.pl-gc { fill: var(--gc); stroke: var(--ink); stroke-width: 2; }
.pl-moon { fill: var(--moon); stroke: var(--bg); stroke-width: 2; }
.pl-heading { stroke: var(--warn); stroke-width: 2.5; stroke-linecap: round; }
.pl-heading-dot { fill: var(--warn); }
.moon-head { display: flex; gap: 14px; align-items: center; }
.moon-head .r-big { font-size: 1.6rem; }
.phase { flex: none; }
.ph-dark { fill: #1a1d2c; } .ph-lit { fill: var(--moon); } .ph-rim { fill: none; stroke: var(--line); }
:root[data-theme="red"] .ph-dark { fill: #1a0302; }
.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.fr-fig { margin: 0; display: grid; gap: 4px; }
.fr-fig figcaption { font-size: .82rem; color: var(--mute); }
.frame { width: 100%; height: auto; max-height: 340px; }
.fr-rect { fill: var(--ph-night); stroke: var(--mute); stroke-width: 1.5; }
.fr-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.fr-moon { fill: var(--moon); }
.fr-lab { text-anchor: middle; font-size: 12px; }
.wins { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wins li { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--field); }
.wins b { color: var(--res); font-size: 1.05rem; }
.wins span { color: var(--mute); }
.sheet { white-space: pre-wrap; word-break: break-word; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: .84rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 60vh; overflow: auto; }

/* Modales, lieux, profils */
dialog.modal { border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 30px - var(--sa-t) - var(--sa-b)); }
dialog.modal.wide { width: min(760px, calc(100vw - 20px)); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #000000b0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 6px 16px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 14px 16px; overflow: auto; display: grid; gap: 10px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 16px calc(12px + var(--sa-b) * .4); border-top: 1px solid var(--line); }
.place, .settings { display: grid; gap: 10px; }
.favs, .profiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.favs li, .profiles li { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 2px 4px 2px 10px; background: var(--field); }
.profiles li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav { flex: 1; text-align: left; border: 0; background: none; display: grid; min-height: 44px; cursor: pointer; padding: 4px 0; }
.fav small { color: var(--mute); }

/* Pied, bandeau de mise à jour, messages */
.foot { max-width: 1200px; margin: 10px auto 0; padding: 8px calc(14px + var(--sa-r)) 20px calc(14px + var(--sa-l)); font-size: .8rem; color: var(--mute); }
.foot p { margin: 6px 0; }
.update-bar { position: fixed; z-index: 40; left: calc(10px + var(--sa-l)); right: calc(10px + var(--sa-r)); bottom: calc(82px + var(--sa-b)); max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px #000a; }
.update-bar > span { flex: 1 1 200px; display: grid; }
.update-bar small { color: var(--mute); }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--sa-b)); max-width: calc(100vw - 30px); background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .9rem; box-shadow: 0 8px 24px #000a; }
@media (min-width: 900px) { .update-bar { bottom: 20px; } .toast { bottom: 24px; } }
.noscript { padding: 20px; text-align: center; }
@media print { .tabs, .top, .datebar, .update-bar, .col-in, .foot { display: none !important; } body { background: #fff; color: #000; padding: 0; } .card { border-color: #999; box-shadow: none; background: #fff; } }
.update-bar[hidden], .toast[hidden], .pill[hidden] { display: none; }
.tabs .tl-short { display: none; }
@media (max-width: 520px) { .tabs .tl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .tabs .tl-short { display: block; } }
.f-box { min-width: 0; overflow: hidden; } .f-box select { max-width: 100%; text-overflow: ellipsis; }
.to-trails { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .86rem; color: var(--mute); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.to-trails .btn { min-height: 40px; }
.trail-bar { position: relative; height: 34px; border: 1px solid var(--mute); border-radius: 4px; background: var(--ph-night); overflow: hidden; }
.trail-bar i { position: absolute; left: 50%; top: 50%; height: 3px; border-radius: 2px; background: var(--moon); transform: translate(-50%, -50%); box-shadow: 0 0 6px var(--moon); }
