:root { --navy: #051C6B; --red: #EB3323; --bg: #F3F5F9; --line: #E1E5EE; --grey: #5F6B85; --green: #17803D; --orange: #C25E00; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--navy); background: #DCE2EE; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.big { width: 48px; height: 48px; }

.stage { display: flex; gap: 56px; align-items: center; justify-content: center; min-height: 100%; padding: 32px; }
.side { max-width: 420px; }
.side h2 { font-size: 30px; line-height: 1.15; margin: 4px 0 12px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--grey); margin: 0; }
.get { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 16px; margin: 20px 0; }
.get p { margin: 0 0 10px; }
.small { font-size: 13px; color: var(--grey); }
.facts { padding-left: 18px; color: var(--grey); }
.facts li { margin: 6px 0; }
.phone { width: 400px; height: min(860px, calc(100vh - 64px)); border-radius: 44px; background: #0B1530; padding: 12px; box-shadow: 0 30px 60px rgba(5, 28, 107, .25); flex: none; }
.phone .app { border-radius: 34px; }
.mobilebar { display: none; }

@media (max-width: 860px) {
  body { background: var(--bg); }
  .stage { display: block; padding: 0; }
  .side { display: none; }
  .phone { width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone .app { border-radius: 0; }
  .mobilebar { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 5; font-size: 13px; text-align: center; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; background: #FFF4D6; color: #6B4A00; }
  .mobilebar a { color: inherit; font-weight: 600; }
  .phone { padding-top: calc(env(safe-area-inset-top) + 26px); }
  @media (display-mode: standalone) { .mobilebar { display: none; } .phone { padding-top: env(safe-area-inset-top); } }
}

.app { height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; background: #fff; border-bottom: 1px solid var(--line); min-height: 56px; }
header h1 { font-size: 20px; margin: 0; }
.iconbtn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 24px; margin: -8px; }
.iconbtn:active { background: var(--bg); }
main { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; }
nav { display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav button { flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--grey); }
nav button.on { color: var(--navy); font-weight: 700; }
.nic { position: relative; display: block; height: 24px; }
.dot { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font: 700 10px/16px system-ui, sans-serif; font-style: normal; text-align: center; }

.row { display: flex; gap: 8px; margin: 0 0 10px; }
.scroll { overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 6px 10px; border-radius: 14px; line-height: 1.15; }
.chip.day b { font-size: 13px; text-transform: capitalize; }
.chip.day span { font-size: 13px; font-weight: 400; }
.od { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 14px 16px; margin: 0 0 10px; }
.odt { font-size: 20px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.arrow { color: var(--red); }
.pick { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #E6EBFA; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: 15px; }
.link { min-height: 44px; font-weight: 700; color: var(--navy); }
.link.red { color: var(--red); }
.banner { display: flex; gap: 10px; align-items: flex-start; width: 100%; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #FFF4D6; color: #6B4A00; }
.banner.red { background: #FDE7E5; color: #9B1C10; }
.banner b { display: block; }
.banner small { display: block; margin-top: 2px; }
.status { font-size: 13px; color: var(--grey); margin: 2px 0 8px; min-height: 18px; }
.status.warn { color: var(--orange); }
.empty { display: block; width: 100%; text-align: center; color: var(--grey); padding: 32px 12px; }

.card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; width: 100%; background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); }
.card:active:not(.past) { background: #EEF1F8; }
.card.past { opacity: .55; cursor: default; }
.times b { font-size: 26px; display: block; line-height: 1.1; }
.times span { font-size: 14px; color: var(--grey); }
.info { min-width: 0; }
.ship { display: flex; gap: 4px; align-items: center; font-size: 14px; color: var(--grey); }
.pl { font-weight: 700; margin-top: 2px; }
.pl.ok { color: var(--green); }
.pl.hot { color: var(--orange); }
.pl.full { color: var(--red); }
.ex { font-size: 14px; color: var(--grey); }
.etat { display: flex; gap: 4px; align-items: center; color: var(--orange); font-size: 14px; font-weight: 600; margin-top: 2px; }
.go { grid-column: 1 / -1; text-align: right; font-weight: 700; color: var(--red); font-size: 15px; }

.alert { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; border-left: 5px solid var(--navy); }
.alert.red { border-left-color: var(--red); }
.alert.orange { border-left-color: var(--orange); }
.alert h3 { margin: 6px 0; font-size: 17px; }
.alert p { margin: 0; white-space: pre-line; color: #28324D; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 700; background: var(--bg); border-radius: 6px; padding: 2px 8px; }
.src { font-size: 13px; color: var(--grey); text-align: center; margin-top: 12px; }

.note { background: #fff; border-radius: 16px; padding: 24px 20px; text-align: center; margin-top: 8px; }
.note h3 { margin: 10px 0 8px; }
.note p { color: #28324D; }
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; border-radius: 24px; padding: 12px 20px; min-height: 48px; }
.side .btn { padding: 10px 16px; min-height: 0; font-size: 15px; }
