/* ==========================================================================
   ridici.icecoldtrans.cz — portál řidiče ICECOLD Trans
   Tmavý inkoustový podklad, ledově modrý akcent, velké karty a čitelné
   informace pro telefon i stolní počítač.
   ========================================================================== */

:root {
  --bg: #040b13;
  --bg-2: #07131f;
  --panel: rgba(12, 26, 41, .82);
  --panel-solid: #0b1826;
  --panel-2: #0e2032;
  --line: rgba(146, 184, 219, .14);
  --line-strong: rgba(146, 184, 219, .24);
  --text: #eaf4ff;
  --text-2: #a7bed2;
  --text-3: #6f879b;
  --brand: #3b9bff;
  --brand-2: #6fd6ff;
  --ice: #a8ecff;
  --ok: #34d6a3;
  --ok-soft: rgba(52, 214, 163, .12);
  --warn: #ffb454;
  --warn-soft: rgba(255, 180, 84, .12);
  --danger: #ff7b7b;
  --danger-soft: rgba(255, 123, 123, .12);
  --focus: #8fd3ff;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-m: 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-l: 0 40px 90px -50px rgba(0, 0, 0, .9);
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --radius-xl: 32px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(59, 155, 255, .18), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, rgba(111, 214, 255, .1), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(20, 74, 120, .22), transparent 65%),
    linear-gradient(180deg, #040b13 0%, #050f1a 45%, #04101b 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 190, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 230, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; }

p { margin: 0; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; }

img { max-width: 100%; }

[hidden] { display: none !important; }

::selection { background: rgba(59, 155, 255, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- obecné UI */

.rd-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6fbfe8;
}

.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.rd-btn svg { width: 18px; height: 18px; flex: none; }
.rd-btn:hover { transform: translateY(-1px); }
.rd-btn:active { transform: translateY(0); }
.rd-btn--block { width: 100%; }
.rd-btn--primary {
  background: linear-gradient(102deg, #1e7be0 0%, #38a8ff 55%, #6fd6ff 100%);
  color: #03131f;
  border-color: transparent;
  box-shadow: 0 14px 30px -16px rgba(56, 168, 255, .9);
}
.rd-btn--primary:hover { box-shadow: 0 18px 36px -16px rgba(56, 168, 255, .95); }
.rd-btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
  color: var(--text);
}
.rd-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.rd-btn[disabled] { cursor: default; opacity: .82; transform: none; }
.rd-btn.is-loading { pointer-events: none; opacity: .75; }
.rd-btn.is-loading::after {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: rd-spin .7s linear infinite;
}

.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rd-badge--ok { color: #7cf0c6; border-color: rgba(52, 214, 163, .32); background: var(--ok-soft); }
.rd-badge--warn { color: #ffcb87; border-color: rgba(255, 180, 84, .32); background: var(--warn-soft); }
.rd-badge--ice { color: #a8ecff; border-color: rgba(111, 214, 255, .32); background: rgba(111, 214, 255, .1); }
.rd-badge--soft { color: #a8ecff; border-color: rgba(111, 214, 255, .26); background: rgba(111, 214, 255, .08); }

.rd-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(111, 214, 255, .12);
  border: 1px solid rgba(111, 214, 255, .24);
  color: #b6ecff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.rd-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 123, 123, .3);
  border-radius: 12px;
  background: var(--danger-soft);
  color: #ffc0c0;
  font-size: 13.5px;
  line-height: 1.45;
}
.rd-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.rd-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, rgba(15, 32, 50, .82), rgba(8, 20, 32, .88));
  box-shadow: var(--shadow-m);
  backdrop-filter: blur(10px);
}
.rd-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.rd-panel__head h2 { font-size: 20px; }
.rd-panel__sub { margin-top: 5px; color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------------ splash */

.rd-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: #040b13;
  transition: opacity .4s ease, visibility .4s ease;
}
.rd-splash img {
  width: 190px;
  height: auto;
  padding: 14px 20px;
  border-radius: 14px;
  background: #ffffff;
}
.rd-splash small { color: var(--text-3); font-size: 12.5px; letter-spacing: .04em; }
.rd-splash.is-done { opacity: 0; visibility: hidden; }
.rd-splash__bar {
  width: 150px; height: 3px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
}
.rd-splash__bar i {
  display: block;
  width: 42%; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2f8fff, #8ce6ff);
  animation: rd-slide 1.15s ease-in-out infinite;
}

/* --------------------------------------------------------------- přihlášení */

.rd-login {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  min-height: 100vh;
}

.rd-login__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(26px, 4vw, 56px);
  overflow: hidden;
  color: #dcecf9;
  background:
    radial-gradient(120% 90% at 10% 0%, #0d3a56 0%, transparent 58%),
    radial-gradient(110% 90% at 100% 100%, #123c66 0%, transparent 60%),
    linear-gradient(158deg, #04101a 0%, #061c2b 55%, #04111c 100%);
  border-right: 1px solid var(--line);
}

.rd-login__glow {
  position: absolute;
  right: -180px; top: -200px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 190, 255, .26), transparent 66%);
  pointer-events: none;
}
.rd-login__ring {
  position: absolute;
  border: 1px solid rgba(123, 205, 255, .14);
  border-radius: 50%;
  pointer-events: none;
}
.rd-login__ring--a { width: 560px; height: 560px; right: -190px; bottom: -230px; }
.rd-login__ring--b { width: 380px; height: 380px; right: -100px; bottom: -140px; border-color: rgba(123, 205, 255, .1); }

.rd-login__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rd-logo {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .9);
}
.rd-logo img { display: block; height: 24px; width: auto; }
.rd-pill {
  margin-left: auto;
  padding: 6px 13px;
  border: 1px solid rgba(143, 211, 255, .26);
  border-radius: 999px;
  background: rgba(143, 211, 255, .08);
  color: #bfe6ff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rd-login__copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin-top: auto;
}
.rd-login__copy .rd-kicker { margin-bottom: 16px; }
.rd-login__copy h1 {
  font-size: clamp(2.15rem, 3.9vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
}
.rd-login__copy h1 em {
  font-style: normal;
  background: linear-gradient(94deg, #8fd3ff 0%, #c8f1ff 60%, #8ce6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rd-lede {
  max-width: 470px;
  margin-top: 20px;
  color: #a5c0d6;
  font-size: 15px;
  line-height: 1.68;
}

.rd-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.rd-features li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 14px;
  border: 1px solid rgba(143, 211, 255, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}
.rd-features__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(59, 155, 255, .16);
  color: #8fd3ff;
}
.rd-features__icon svg { width: 19px; height: 19px; }
.rd-features b { display: block; font-size: 13px; color: #eaf6ff; }
.rd-features small { display: block; margin-top: 3px; color: #8aa6bd; font-size: 11.5px; line-height: 1.4; }

.rd-login__brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 22px;
  margin-top: auto;
  border-top: 1px solid rgba(143, 211, 255, .12);
}
.rd-login__brand-foot b { display: block; font-size: 12.5px; color: #eaf6ff; }
.rd-login__brand-foot span { font-size: 11.5px; color: #83a0b7; }

.rd-login__panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 52px);
  background: linear-gradient(180deg, #06121d, #040d16);
}
.rd-login__card { width: 100%; max-width: 404px; }
.rd-login__card h2 {
  margin-top: 16px;
  font-size: clamp(1.7rem, 2.3vw, 2.05rem);
  letter-spacing: -.03em;
}
.rd-login__sub { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.rd-login__card form { margin-top: 26px; display: grid; gap: 16px; }

.rd-field { display: grid; gap: 7px; }
.rd-field > span:first-child {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-2);
}
.rd-field input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rd-field input::placeholder { color: #5f778c; }
.rd-field input:hover { border-color: rgba(160, 205, 240, .34); }
.rd-field input:focus {
  outline: none;
  border-color: var(--focus);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(143, 211, 255, .12);
}
.rd-field__pass { position: relative; display: block; }
.rd-field__pass input { padding-right: 48px; }
.rd-field__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.rd-field__eye:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.rd-field__eye svg { width: 19px; height: 19px; }
.rd-login__card form .rd-btn { margin-top: 4px; height: 50px; font-size: 15px; }

.rd-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.6;
}
.rd-note a { color: #a8ecff; }

.rd-login__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  font-size: 12.5px;
}
.rd-login__foot a { color: var(--text-3); }
.rd-login__foot a:hover { color: var(--text); }

/* ------------------------------------------------------------------ aplikace */

.rd-app { min-height: 100vh; padding-bottom: 10px; }

.rd-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 11, 19, .78);
  backdrop-filter: blur(16px) saturate(140%);
}
.rd-topbar__left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rd-topbar__divider { width: 1px; height: 24px; margin-left: 2px; background: var(--line-strong); }
.rd-topbar__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.rd-topbar__right { display: flex; align-items: center; gap: 16px; }
.rd-topbar__depot {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.rd-user { display: flex; align-items: center; gap: 10px; }
.rd-avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e7be0, #6fd6ff);
  color: #03131f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.rd-user__text { display: grid; line-height: 1.25; }
.rd-user__text b { font-size: 13.5px; }
.rd-user__text small { color: var(--text-3); font-size: 11px; }
.rd-icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rd-icon-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; border-color: var(--line-strong); }
.rd-icon-btn svg { width: 19px; height: 19px; }

.rd-main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 40px) clamp(18px, 4vw, 44px) 40px;
  display: grid;
  gap: 24px;
}

/* --------------------------------------------------------------------- hero */

.rd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid rgba(120, 190, 240, .18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(77, 184, 255, .3), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(21, 96, 150, .34), transparent 60%),
    linear-gradient(140deg, #0a2b43 0%, #071c2c 48%, #06131f 100%);
  box-shadow: var(--shadow-l);
}
.rd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .05) 45%, transparent 60%);
  transform: translateX(-20%);
  pointer-events: none;
}
.rd-hero__glow {
  position: absolute;
  right: -120px; top: -160px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 230, 255, .26), transparent 65%);
  pointer-events: none;
}
.rd-hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rd-hero__intro h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  letter-spacing: -.04em;
}
.rd-hero__date {
  margin-top: 8px;
  color: #a8c9df;
  font-size: 14.5px;
}
.rd-departure {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 16px 22px;
  border: 1px solid rgba(143, 211, 255, .2);
  border-radius: 20px;
  background: rgba(4, 15, 25, .42);
  backdrop-filter: blur(6px);
  min-width: 168px;
}
.rd-departure__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7fb3d3;
}
.rd-departure strong {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #fff;
}
.rd-departure__note { font-size: 12px; color: #8fb8d4; }

.rd-hero__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(143, 211, 255, .14);
}
.rd-hero__tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rd-hero__route { color: #a9c6da; font-size: 13.5px; }
.rd-hero__stats { display: flex; align-items: center; gap: 10px; }
.rd-hero__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(143, 211, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.rd-hero__stat strong { font-size: 16px; font-family: var(--mono); color: #fff; }
.rd-hero__stat span { font-size: 11.5px; color: #93b6cd; }

.rd-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(143, 211, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #cfe8f8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.rd-refresh:hover { background: rgba(255, 255, 255, .1); border-color: rgba(143, 211, 255, .4); }
.rd-refresh svg { width: 15px; height: 15px; }
.rd-refresh.is-spinning svg { animation: rd-spin .8s linear infinite; }

/* ------------------------------------------------------------------- layout */

.rd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
  gap: 22px;
  align-items: start;
}

.rd-side { display: grid; gap: 22px; }

/* -------------------------------------------------------------------- trasa */

.rd-route { padding-bottom: 14px; }

.rd-stops {
  position: relative;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.rd-stops::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(111, 214, 255, .55), rgba(111, 214, 255, .12));
}
.rd-stop {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px 16px 15px 0;
  border-radius: 16px;
  transition: background .18s ease;
  animation: rd-rise .35s ease both;
}
.rd-stop:hover { background: rgba(255, 255, 255, .035); }
.rd-stop__num {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid rgba(111, 214, 255, .4);
  background: #0a1f31;
  color: #b6ecff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}
.rd-stop.is-done .rd-stop__num {
  border-color: rgba(52, 214, 163, .5);
  background: rgba(52, 214, 163, .14);
  color: #7cf0c6;
}
.rd-stop__body { min-width: 0; }
.rd-stop__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rd-stop__window {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #a8ecff;
}
.rd-stop__window.is-empty { color: var(--text-3); }
.rd-stop__company {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: #f0f8ff;
}
.rd-stop__address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 13.5px;
}
.rd-stop__address svg { width: 14px; height: 14px; flex: none; color: #6fa8c9; }
.rd-stop__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.rd-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
}
.rd-tag--chilled { color: #9fdcff; border-color: rgba(111, 214, 255, .24); background: rgba(111, 214, 255, .08); }
.rd-tag--frozen { color: #b9d4ff; border-color: rgba(126, 160, 255, .26); background: rgba(99, 124, 255, .1); }
.rd-tag--done { color: #7cf0c6; border-color: rgba(52, 214, 163, .3); background: var(--ok-soft); }
.rd-stop__note {
  margin-top: 9px;
  padding: 8px 11px;
  border-left: 2px solid rgba(255, 180, 84, .5);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 180, 84, .07);
  color: #e9cfa9;
  font-size: 12.5px;
}
.rd-stop__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: center;
  min-width: 108px;
}
.rd-stop__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rd-stop__actions a:hover {
  text-decoration: none;
  background: rgba(111, 214, 255, .1);
  border-color: rgba(111, 214, 255, .32);
  color: #d6f4ff;
}
.rd-stop__actions svg { width: 14px; height: 14px; }

/* prázdný stav */

.rd-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 24px 36px;
  text-align: center;
}
.rd-empty__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(111, 214, 255, .07);
  color: #8fd3ff;
}
.rd-empty__icon svg { width: 27px; height: 27px; }
.rd-empty h3 { font-size: 17px; }
.rd-empty p { max-width: 430px; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
.rd-empty .rd-btn { margin-top: 8px; }

/* ------------------------------------------------------------------- vozidlo */

.rd-vehicle {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 190, 240, .2);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, #0c2233 0%, #0a1a29 55%, #071420 100%);
  box-shadow: var(--shadow-m);
}
.rd-vehicle__body { position: relative; padding: 22px; }
.rd-vehicle__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.rd-plate {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px 0 34px;
  position: relative;
  border: 1.5px solid #cfdbe8;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fcff, #dde8f3);
  color: #0a2337;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .14em;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.rd-plate::before {
  content: "CZ";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: grid;
  place-items: center;
  width: 25px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, #1b4fa8, #123b82);
  color: #ffd95e;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}
.rd-vehicle h2 {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -.025em;
}
.rd-vehicle__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.rd-vehicle__meta dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rd-vehicle__meta dd { margin: 4px 0 0; font-size: 13.5px; color: #d8ecfb; }
.rd-btn--confirm {
  margin-top: 18px;
  background: rgba(52, 214, 163, .12);
  border: 1px solid rgba(52, 214, 163, .35);
  color: #8ff5d0;
}
.rd-btn--confirm:hover { background: rgba(52, 214, 163, .19); }
.rd-btn--confirm.is-confirmed {
  background: rgba(52, 214, 163, .18);
  border-color: rgba(52, 214, 163, .5);
  color: #a9ffe1;
}
.rd-vehicle__note {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 11.5px;
  text-align: center;
}

/* --------------------------------------------------------------------- směna */

.rd-shift {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rd-shift__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.rd-shift-form { display: grid; gap: 12px; }

.rd-field--sm { gap: 5px; }
.rd-field--sm > span:first-child { font-size: 11.5px; }
.rd-field--sm input {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

.rd-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rd-btn--sm { min-height: 42px; padding: 8px 13px; font-size: 12.5px; border-radius: 10px; }
.rd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rd-btn--dangersoft {
  background: rgba(255, 123, 123, .09);
  border: 1px solid rgba(255, 123, 123, .3);
  color: #ffc2c2;
}
.rd-btn--dangersoft:hover { background: rgba(255, 123, 123, .16); }

.rd-shift__last {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}
.rd-shift__last b { color: var(--text-2); font-weight: 600; }

.rd-shift__hint {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.rd-shift__error {
  padding: 9px 11px;
  border: 1px solid rgba(255, 123, 123, .3);
  border-radius: 9px;
  background: var(--danger-soft);
  color: #ffc0c0;
  font-size: 11.5px;
  line-height: 1.45;
}

/* fotky vozu */

.rd-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rd-photos--single { grid-template-columns: 1fr; }
.rd-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 8px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-3);
  font-size: 11.5px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.rd-photo:hover { border-color: rgba(143, 211, 255, .45); background: rgba(143, 211, 255, .06); }
.rd-photo input[type=file] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rd-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.rd-photo__empty { padding: 0 4px; line-height: 1.35; }
.rd-photo__label {
  position: absolute;
  left: 6px; bottom: 6px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(4, 11, 19, .75);
  color: #dcefff;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.rd-photo.is-filled { border-style: solid; border-color: rgba(52, 214, 163, .45); }
.rd-photo.is-filled .rd-photo__empty { display: none; }
.rd-photo.is-filled .rd-photo__label { background: rgba(4, 11, 19, .8); }
.rd-photo.is-loading::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rd-spin .7s linear infinite;
}
.rd-photo.is-loading img { opacity: .4; }
.rd-photos--single .rd-photo { min-height: 64px; }

/* průběh směny */

.rd-shift__live {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(52, 214, 163, .24);
  border-radius: 12px;
  background: rgba(52, 214, 163, .07);
}
.rd-pulse {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 214, 163, .16);
  animation: rd-pulse 1.8s ease-in-out infinite;
}
.rd-shift__live-text { display: grid; line-height: 1.3; }
.rd-shift__live-text b { font-size: 12.5px; color: #a9ffe1; }
.rd-shift__live-text small { font-size: 10.5px; color: #82a89c; }
.rd-shift__startkm { margin-left: auto; text-align: right; line-height: 1.2; }
.rd-shift__startkm strong { display: block; font-family: var(--mono); font-size: 13px; color: #dffcf2; }
.rd-shift__startkm span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #7f9d93; }

.rd-photo-strip { display: flex; gap: 6px; margin-top: 10px; }
.rd-photo-thumb {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.rd-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rd-photo-thumb span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2px 4px;
  background: linear-gradient(transparent, rgba(4, 11, 19, .88));
  color: #cfe6f6;
  font-size: 8.5px;
  text-align: center;
}
.rd-photo-thumb:hover { border-color: rgba(143, 211, 255, .5); }

.rd-shift__section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.rd-shift__section > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  list-style: none;
  color: #dcefff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.rd-shift__section > summary::-webkit-details-marker { display: none; }
.rd-shift__section > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 15px;
}
.rd-shift__section[open] > summary::after { content: "–"; }
.rd-shift__count {
  display: inline-grid;
  place-items: center;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(111, 214, 255, .12);
  color: #a8ecff;
  font-family: var(--mono);
  font-size: 10px;
}
.rd-shift__section .rd-shift-form { padding: 0 12px 12px; }

.rd-fuel-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}
.rd-fuel-list li {
  position: relative;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  font-size: 11.5px;
}
.rd-fuel-list__main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rd-fuel-list__main b { font-family: var(--mono); font-size: 12.5px; color: #eaf6ff; }
.rd-fuel-list__main span { color: var(--text-2); }
.rd-fuel-list small { display: block; margin-top: 2px; color: var(--text-3); font-size: 10.5px; }
.rd-fuel-list li a { position: absolute; right: 10px; bottom: 7px; font-size: 10px; color: #8fd3ff; }
.rd-fuel-list__empty { color: var(--text-3); text-align: center; }

@keyframes rd-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 214, 163, .12); }
  50% { box-shadow: 0 0 0 6px rgba(52, 214, 163, .04); }
}

/* ---------------------------------------------------------------------- help */

.rd-help h2 { font-size: 18px; }
.rd-help > p { margin-top: 5px; color: var(--text-3); font-size: 13px; }
.rd-help__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  transition: background .15s ease, border-color .15s ease;
}
.rd-help__row:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-strong);
}
.rd-help__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(59, 155, 255, .12);
  color: #8fd3ff;
}
.rd-help__icon svg { width: 18px; height: 18px; }
.rd-help__row b { display: block; font-size: 13.5px; }
.rd-help__row small { display: block; color: var(--text-3); font-size: 11.5px; }

/* -------------------------------------------------------------------- stažení */

.rd-download {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(59, 155, 255, .14), transparent 60%),
    linear-gradient(160deg, rgba(12, 30, 46, .9), rgba(6, 17, 27, .92));
  box-shadow: var(--shadow-m);
}
.rd-download__head { max-width: 620px; }
.rd-download__head h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  letter-spacing: -.03em;
}
.rd-download__head p:last-child { margin-top: 8px; color: var(--text-2); font-size: 14px; }

.rd-download__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.rd-app-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
}
.rd-app-card--apk {
  border-color: rgba(111, 214, 255, .22);
  background: linear-gradient(155deg, rgba(24, 79, 122, .4), rgba(10, 25, 39, .55));
}
.rd-app-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(59, 155, 255, .14);
  color: #8fd3ff;
}
.rd-app-card__icon--ice { background: rgba(111, 214, 255, .1); color: #a8ecff; }
.rd-app-card__icon svg { width: 26px; height: 26px; }
.rd-app-card__body { min-width: 0; }
.rd-app-card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-app-card__title h3 { font-size: 18px; }
.rd-app-card__body p { margin-top: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.rd-app-card__list,
.rd-app-card__steps {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.rd-app-card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 12.5px;
}
.rd-app-card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(111, 214, 255, .8);
}
.rd-app-card__steps { counter-reset: rd-step; }
.rd-app-card__steps li {
  counter-increment: rd-step;
  position: relative;
  padding-left: 24px;
  color: var(--text-2);
  font-size: 12.5px;
}
.rd-app-card__steps li::before {
  content: counter(rd-step);
  position: absolute;
  left: 0; top: 1px;
  display: grid;
  place-items: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #9fc6e0;
  font-size: 10px;
  font-weight: 700;
}
.rd-app-card__steps b { color: #dcefff; }
.rd-app-card__action {
  grid-column: 2;
  align-self: end;
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.rd-app-card__action .rd-btn { justify-self: start; }
.rd-app-card__action small { color: var(--text-3); font-size: 11px; }

/* -------------------------------------------------------------------- footer */

.rd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 4px 0;
  color: var(--text-3);
  font-size: 12px;
}
.rd-footer__brand { display: flex; align-items: center; gap: 14px; }
.rd-footer__brand img {
  height: 22px;
  width: auto;
  padding: 5px 8px;
  border-radius: 7px;
  background: #ffffff;
}
.rd-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.rd-footer__links a { color: var(--text-3); }
.rd-footer__links a:hover { color: var(--text); }
.rd-footer__copy { width: 100%; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; }

/* -------------------------------------------------------------------- dialog */

.rd-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0b1a28;
  color: var(--text);
  box-shadow: var(--shadow-l);
}
.rd-dialog::backdrop { background: rgba(2, 7, 12, .72); backdrop-filter: blur(4px); }
.rd-dialog h2 { font-size: 20px; }
.rd-dialog p { margin-top: 8px; color: var(--text-2); font-size: 13.5px; }
.rd-dialog ol { margin: 16px 0 20px; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 13px; }
.rd-dialog b { color: var(--text); }

/* ---------------------------------------------------------------- animace */

@keyframes rd-spin { to { transform: rotate(360deg); } }
@keyframes rd-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
@keyframes rd-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- responzivní */

@media (max-width: 1120px) {
  .rd-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); }
  .rd-topbar__depot { display: none; }
}

@media (max-width: 940px) {
  .rd-login { grid-template-columns: 1fr; }
  .rd-login__brand {
    min-height: auto;
    padding: 22px 24px 26px;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rd-login__copy { margin-top: 26px; }
  .rd-login__copy h1 { font-size: 1.85rem; }
  .rd-login__copy .rd-kicker { margin-bottom: 10px; font-size: 10.5px; }
  .rd-lede, .rd-features, .rd-login__brand-foot { display: none; }
  .rd-login__panel { padding: 30px 24px 48px; }
  .rd-login__card { max-width: 460px; }
  .rd-login__card h2 { margin-top: 12px; }

  .rd-layout { grid-template-columns: 1fr; }
  .rd-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .rd-features { grid-template-columns: 1fr; }
  .rd-features li { flex-direction: row; align-items: center; }
  .rd-login__brand-foot { gap: 18px; }
  .rd-login__brand-foot div { min-width: 40%; }

  .rd-topbar { padding: 12px 16px; gap: 10px; }
  .rd-topbar__divider, .rd-topbar__title { display: none; }
  .rd-topbar__right { gap: 10px; }
  .rd-user__text { display: none; }
  .rd-main { padding: 18px 14px 30px; gap: 18px; }

  .rd-hero { border-radius: 24px; padding: 22px 20px; }
  .rd-hero__top { align-items: flex-start; }
  .rd-departure { justify-items: start; min-width: 0; padding: 12px 16px; }
  .rd-departure strong { font-size: 1.9rem; }
  .rd-hero__bar { margin-top: 20px; }
  .rd-hero__stats { width: 100%; }
  .rd-refresh span { display: none; }
  .rd-refresh { padding: 0 11px; }

  .rd-panel { padding: 18px; border-radius: 20px; }
  .rd-route { padding-bottom: 8px; }
  .rd-stop { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px 8px 12px 0; }
  .rd-stop__num { margin-left: 2px; width: 30px; height: 30px; }
  .rd-stops::before { left: 17px; }
  .rd-stop__actions { grid-column: 2; flex-direction: row; min-width: 0; margin-top: 4px; }
  .rd-stop__actions a { flex: 1; }

  .rd-side { grid-template-columns: 1fr; }
  .rd-download { border-radius: 24px; padding: 22px 18px; }
  .rd-download__grid { grid-template-columns: 1fr; }
  .rd-app-card { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .rd-app-card__icon { width: 44px; height: 44px; border-radius: 12px; }
  .rd-app-card__icon svg { width: 22px; height: 22px; }
  .rd-app-card__action { grid-column: 1 / -1; }
  .rd-app-card__action .rd-btn { width: 100%; }
  .rd-footer { gap: 12px; }
}

@media (max-width: 460px) {
  .rd-hero__intro h1 { font-size: 1.85rem; }
  .rd-hero__date { font-size: 13px; }
  .rd-hero__stat { padding: 6px 11px; }
  .rd-hero__route { font-size: 12.5px; }
  .rd-login__brand { padding: 22px 18px 32px; }
  .rd-login__copy h1 { font-size: 2rem; }
  .rd-login__card h2 { font-size: 1.65rem; }
  .rd-vehicle__meta { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ zprávy a notifikace */

.rd-bell { position: relative; }
.rd-bell__count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #050d16;
  border-radius: 999px;
  background: #ff6161;
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}
.rd-bell__count[hidden] { display: none; }

.rd-msg-panel {
  position: fixed;
  z-index: 60;
  top: 78px;
  right: clamp(14px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 110px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0b1a28, #08131e);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}
.rd-msg-panel[hidden] { display: none; }
.rd-msg-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.rd-msg-panel__head h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.01em; }
.rd-msg-panel__list { display: grid; gap: 8px; padding: 12px; overflow-y: auto; }
.rd-msg {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}
.rd-msg.is-unread {
  border-color: rgba(111, 214, 255, .35);
  background: rgba(111, 214, 255, .07);
  box-shadow: inset 3px 0 0 #6fd6ff;
}
.rd-msg header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rd-msg header b { font-size: 12.5px; color: #eaf6ff; }
.rd-msg header span { flex: none; color: var(--text-3); font-size: 9.5px; }
.rd-msg p {
  margin: 5px 0 0;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.rd-msg small { display: block; margin-top: 6px; color: var(--text-3); font-size: 9.5px; }
.rd-msg-empty { margin: 0; padding: 22px 8px; color: var(--text-3); font-size: 12px; text-align: center; }
.rd-msg-panel__push {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.rd-msg-panel__push p { flex: 1 1 100%; margin: 0; color: var(--text-3); font-size: 10px; line-height: 1.4; }
.rd-msg-panel__push .rd-btn { flex: 0 1 auto; }

.rd-msg-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(111, 214, 255, .28);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(111, 214, 255, .12), rgba(111, 214, 255, .04));
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rd-msg-banner[hidden] { display: none; }
.rd-msg-banner:hover { border-color: rgba(111, 214, 255, .5); }
.rd-msg-banner__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(111, 214, 255, .14);
  color: #a8ecff;
}
.rd-msg-banner__icon svg { width: 19px; height: 19px; }
.rd-msg-banner__text { display: grid; min-width: 0; line-height: 1.35; }
.rd-msg-banner__text b { font-size: 12.5px; color: #eaf6ff; }
.rd-msg-banner__text small { overflow: hidden; color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rd-msg-banner__more { margin-left: auto; color: #a8ecff; font-size: 20px; line-height: 1; }

.rd-gps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}
.rd-gps__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #8095a8;
}
.rd-gps[data-state="ok"] .rd-gps__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 214, 163, .14); }
.rd-gps[data-state="wait"] .rd-gps__dot { background: #f0b34a; animation: rd-pulse 1.6s ease-in-out infinite; }
.rd-gps[data-state="error"] .rd-gps__dot { background: #ff7b7b; }
.rd-gps__text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.rd-gps__text b { font-size: 11.5px; color: #e2f1ff; }
.rd-gps__text small { margin-top: 1px; color: var(--text-3); font-size: 10px; }
.rd-gps .rd-btn { flex: none; }
#gpsBtn[hidden] { display: none; }

@media (max-width: 640px) {
  .rd-msg-panel {
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 84px);
  }
  .rd-msg-banner { padding: 11px 13px; }
  .rd-msg-banner__text small { font-size: 10.5px; }
}
