:root {
  --bg: #eef3f8;
  --panel: #fff;
  --line: #d7e0ec;
  --text: #172033;
  --muted: #68768b;
  --blue: #1463d8;
  --red: #c93b4a;
  --shadow: 0 12px 34px rgba(24, 39, 66, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #e7eef8 0, var(--bg) 260px);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; }
textarea { font: inherit; }

.landing-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(0, 166, 118, .14), transparent 32vw),
    radial-gradient(circle at top left, rgba(20, 99, 216, .13), transparent 36vw),
    linear-gradient(180deg, #f8fbff 0, #eef3f8 58%, #e8eef7 100%);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 58px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(215,224,236,.86);
  backdrop-filter: blur(14px);
}

.landing-nav strong {
  font-size: 20px;
  color: #10213c;
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-nav a {
  color: #284467;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.landing-nav a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.seo-summary-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.seo-summary-section article,
.seo-summary-grid a {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  border-radius: 14px;
}

.seo-summary-section article {
  padding: clamp(24px, 4vw, 42px);
}

.seo-summary-section article span,
.seo-page-shell span {
  display: inline-block;
  color: #60a5fa;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 14px;
}

.seo-summary-section article h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.03;
}

.seo-summary-section article p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.seo-summary-grid {
  display: grid;
  gap: 14px;
}

.seo-summary-grid a {
  display: block;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.seo-summary-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.62);
  background: rgba(37,99,235,.14);
}

.seo-summary-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.seo-summary-grid span {
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}

.seo-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 34vw),
    radial-gradient(circle at bottom left, rgba(16,185,129,.13), transparent 32vw),
    #08070b;
  color: #fff;
}

.seo-page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 96px) 0;
}

.seo-hero {
  max-width: 920px;
  margin-bottom: clamp(34px, 7vw, 80px);
}

.seo-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .98;
  letter-spacing: 0;
}

.seo-hero p {
  max-width: 780px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.76);
  font-size: 19px;
  line-height: 1.65;
}

.seo-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  margin-bottom: 28px;
}

.seo-two-column article,
.seo-feature-list,
.seo-card-grid article {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.seo-two-column h2,
.seo-card-grid h3 {
  margin: 0 0 14px;
  color: #fff;
}

.seo-two-column p,
.seo-feature-list li,
.seo-card-grid p {
  color: rgba(255,255,255,.76);
  line-height: 1.65;
}

.seo-feature-list ul {
  margin: 0;
  padding-left: 20px;
}

.seo-feature-list li + li {
  margin-top: 10px;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-card-grid article {
  min-height: 190px;
}

.seo-faq-section,
.seo-link-strip {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.seo-faq-section h2,
.seo-link-strip h2 {
  margin: 0 0 18px;
  color: #fff;
}

.seo-faq-list {
  display: grid;
  gap: 12px;
}

.seo-faq-item {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
  border-radius: 12px;
  padding: 16px 18px;
}

.seo-faq-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
}

.seo-faq-item p {
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.65;
}

.seo-link-strip p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.74);
  line-height: 1.65;
}

.seo-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 999px;
  padding: 0 16px;
  color: #dbeafe;
  background: rgba(37,99,235,.12);
  font-weight: 800;
  text-decoration: none;
}

.seo-link-grid a:hover {
  border-color: rgba(96,165,250,.5);
  background: rgba(37,99,235,.22);
}

.hero-section,
.landing-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 54px 0 42px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #1463d8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1,
.landing-section h2 {
  margin: 0;
  color: #111c31;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .98;
}

.hero-copy p,
.landing-section p,
.problem-list {
  color: #526176;
  font-size: 17px;
  line-height: 1.6;
}

.hero-copy .hero-note {
  max-width: 650px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #c9d8ed;
  border-left: 4px solid #1463d8;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #334155;
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.hero-product-preview {
  display: grid;
  gap: 16px;
}

.hero-board {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(24, 39, 66, .16);
  transform: translateY(8px);
  transform-origin: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.hero-board:hover {
  border-color: #b8c9df;
  box-shadow: 0 30px 86px rgba(24, 39, 66, .2);
  transform: translateY(2px) scale(1.018);
}

.hero-plan {
  transform: translateY(0);
  box-shadow: 0 18px 48px rgba(24, 39, 66, .13);
}

.hero-plan:hover {
  transform: translateY(-3px) scale(1.018);
}

.mini-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #10213c;
  color: #fff;
}

.mini-board-head strong {
  font-size: 14px;
}

.mini-board-head span {
  color: #c8d7ed;
  font-size: 12px;
  font-weight: 800;
}

.mini-group {
  border-top: 1px solid var(--line);
}

.mini-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f8fc;
  border-left: 4px solid #94a3b8;
  color: #17233a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-group-title strong {
  display: inline-grid;
  min-width: 26px;
  min-height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: #10213c;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mini-group-empty .mini-group-title {
  border-left-color: #2f80ed;
}

.mini-group-pl .mini-group-title {
  border-left-color: #06945d;
}

.mini-group-foreign .mini-group-title {
  border-left-color: #8b5cf6;
}

.mini-group-repair .mini-group-title {
  border-left-color: #df3446;
}

.mini-table {
  display: grid;
  grid-template-columns: .86fr .9fr 1fr .94fr .94fr .82fr .96fr;
  align-items: center;
}

.mini-table-empty {
  grid-template-columns: .9fr 1.15fr 1.15fr .95fr;
}

.mini-table > * {
  min-height: 38px;
  padding: 8px 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.mini-table > strong,
.mini-table > :nth-child(7n + 1) {
  white-space: nowrap;
}

.mini-table:not(.mini-table-empty) > :nth-child(-n+7) {
  background: #eef3f9;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-table-empty > :nth-child(-n+4) {
  background: #eef3f9;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
.chip.status-blue { background: #0087c7; }
.chip.status-green { background: #059669; }
.chip.status-violet { background: #7c3aed; }
.chip.status-red { background: #d23b3b; }
.chip.status-brown { background: #91563c; }
.chip.driver-gold { background: #d89b18; color: #10213c; }
.chip.driver-teal { background: #12a6a6; }
.chip.driver-violet { background: #7c3aed; }
.muted-chip {
  background: #eef3f9;
  color: #334155;
  font-weight: 800;
  text-align: center;
}

.mini-plan-grid {
  display: grid;
  grid-template-columns: 1.02fr repeat(4, minmax(0, 1fr));
}

.mini-plan-grid > * {
  min-height: 44px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mini-plan-head {
  background: #eef3f9;
  color: #334155;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-plan-person {
  display: grid;
  gap: 4px;
  background: #f8fbff;
}

.mini-plan-person strong {
  color: #10213c;
  font-size: 12px;
  text-transform: uppercase;
}

.mini-plan-person span,
.mini-plan-task small,
.mini-plan-off span {
  color: #526176;
  font-size: 10px;
  font-weight: 800;
}

.mini-plan-task {
  border-left: 4px solid #1463d8;
  background: #f2f7ff;
}

.mini-plan-load {
  border-left-color: #e0a313;
  background: #fff8e1;
}

.mini-plan-return {
  border-left-color: #00a676;
  background: #effff6;
}

.mini-plan-task strong,
.mini-plan-task span,
.mini-plan-task small,
.mini-plan-off strong,
.mini-plan-off span {
  display: block;
}

.mini-plan-task strong {
  color: #0f5fbb;
  font-size: 10px;
}

.mini-plan-task span {
  margin-top: 2px;
  color: #10213c;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.18;
}

.mini-plan-off {
  border-left: 4px solid #111827;
  background: #f8fafc;
}

.mini-plan-off strong {
  color: #111827;
  font-size: 11px;
}

.mini-plan-empty {
  display: grid;
  place-items: center;
  color: #1463d8;
  font-size: 16px;
  font-weight: 950;
  background: #fff;
}

.module-section {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.board-showcase {
  align-items: start;
}

.module-copy p {
  margin-bottom: 0;
}

.module-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.module-points span,
.integration-card {
  border: 1px solid #cddced;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 26px rgba(24, 39, 66, .07);
}

.module-points span {
  padding: 11px 12px;
  color: #20324d;
  font-size: 13px;
  font-weight: 900;
}

.planner-showcase-card,
.board-showcase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 39, 66, .14);
  transform-origin: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.planner-showcase-card:hover,
.board-showcase-card:hover {
  border-color: #b8c9df;
  box-shadow: 0 30px 84px rgba(24, 39, 66, .18);
  transform: translateY(-4px) scale(1.012);
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #f5f8fc;
  border-bottom: 1px solid var(--line);
  color: #10213c;
}

.showcase-toolbar.dark {
  background: #10213c;
  color: #fff;
}

.showcase-toolbar span {
  color: #526176;
  font-size: 12px;
  font-weight: 800;
}

.showcase-toolbar.dark span {
  color: #c8d7ed;
}

.showcase-plan-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(5, minmax(95px, 1fr));
}

.showcase-plan-grid > * {
  min-height: 58px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.showcase-head {
  display: grid;
  place-items: center;
  background: #eaf1f9;
  color: #20324d;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.showcase-head.is-today {
  background: #dcebff;
  color: #0453b5;
  box-shadow: inset 0 -3px 0 #1463d8;
}

.showcase-person {
  display: grid;
  align-content: center;
  gap: 4px;
  background: #f8fbff;
}

.showcase-person strong {
  color: #10213c;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.showcase-person span {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 5px;
  background: #e8eef6;
  color: #10213c;
  font-size: 12px;
  font-weight: 950;
}

.showcase-task {
  border-left: 4px solid #1463d8;
  background: #f3f7ff;
}

.showcase-task.load {
  border-left-color: #e0a313;
  background: #fff8e3;
}

.showcase-task.unload {
  border-left-color: #00a676;
  background: #effff6;
}

.showcase-task.loop {
  border-left-color: #8b5cf6;
  background: #f5f1ff;
}

.showcase-task strong,
.showcase-task span,
.showcase-off strong,
.showcase-off span {
  display: block;
}

.showcase-task strong {
  color: #10213c;
  font-size: 12px;
  line-height: 1.18;
}

.showcase-task span {
  margin-top: 4px;
  color: #526176;
  font-size: 11px;
  font-weight: 800;
}

.showcase-off {
  border-left: 4px solid #111827;
  background: #f8fafc;
}

.showcase-off.workshop {
  border-left-color: #df3446;
}

.showcase-off strong {
  color: #111827;
  font-size: 12px;
}

.showcase-off span {
  margin-top: 4px;
  color: #526176;
  font-size: 11px;
  font-weight: 800;
}

.showcase-empty {
  display: grid;
  place-items: center;
  color: #1463d8;
  font-size: 18px;
  font-weight: 950;
  background: #fff;
}

.integration-card {
  margin-top: 20px;
  padding: 16px;
}

.integration-card strong {
  color: #10213c;
  font-size: 16px;
}

.integration-card p {
  margin-top: 8px;
  font-size: 14px;
}

.showcase-board-grid {
  display: grid;
}

.board-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f5f8fc;
  border-left: 4px solid #94a3b8;
  color: #10213c;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.board-group-title.pl {
  border-left-color: #91563c;
}

.board-group-title.empty {
  border-left-color: #2f80ed;
}

.board-group-title.foreign {
  border-left-color: #8b5cf6;
}

.board-group-title strong {
  display: inline-grid;
  min-width: 26px;
  min-height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.board-row {
  display: grid;
  grid-template-columns: .8fr 1.35fr 1fr .9fr .9fr 1fr;
  align-items: stretch;
}

.board-row > * {
  min-height: 44px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.board-row.head > * {
  min-height: 34px;
  background: #eaf1f9;
  color: #334155;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.board-row .chip {
  min-height: 44px;
}

.landing-section {
  padding: 50px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 22px;
}

.landing-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.demo-card,
.legal-section details {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-grid article {
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-grid article:hover {
  border-color: #b8c9df;
  box-shadow: 0 16px 38px rgba(24, 39, 66, .12);
  transform: translateY(-3px);
}

.feature-grid h3 {
  margin: 0 0 8px;
}

.feature-grid p {
  margin: 0;
  font-size: 14px;
}

.split-section,
.demo-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}

.problem-list {
  margin: 0;
  padding: 20px 24px;
  background: #10213c;
  color: #e7eef8;
  border-radius: 8px;
}

.problem-list li + li {
  margin-top: 10px;
}

.demo-benefits {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.demo-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #20324d;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(24,39,66,.06);
}

.demo-benefits span::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00a676;
}

.demo-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.demo-card h3 {
  margin: 0;
  font-size: 22px;
  color: #10213c;
}

.form-note {
  margin: -2px 0 4px;
  padding: 12px;
  border: 1px solid #c9d8ed;
  border-radius: 8px;
  background: #f5f9ff;
  color: #526176;
  font-size: 14px;
  line-height: 1.45;
}

.demo-form-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
}

.demo-form-group > span {
  color: #1463d8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.demo-card input,
.demo-card textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.demo-card textarea {
  min-height: 96px;
  resize: vertical;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: #526176;
  font-size: 13px;
  line-height: 1.4;
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #10213c;
  border-radius: 10px;
  color: #eef5ff;
  box-shadow: 0 24px 70px rgba(24, 39, 66, .18);
}

.pricing-card h3 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.pricing-card p {
  margin: 0;
  color: #cbd8ea;
}

.pricing-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #cfe3ff;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.price-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fff;
  border-radius: 8px;
  color: var(--text);
}

.price-box strong {
  font-size: 24px;
}

.price-box span {
  color: var(--muted);
  font-weight: 800;
}

.price-box small {
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.legal-section details {
  padding: 16px 18px;
  margin-bottom: 10px;
}

.legal-section summary {
  cursor: pointer;
  font-weight: 900;
}

.mail-details {
  white-space: pre-wrap;
  margin: 0;
  font: inherit;
  font-size: 12px;
  color: #334155;
}

.demo-account-banner {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 20px 0;
  padding: 14px 16px;
  background: #fff7dc;
  border: 1px solid #f0d47a;
  border-left: 6px solid #f3a51c;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-account-banner strong {
  display: block;
  color: #624800;
}

.demo-account-banner p {
  margin: 4px 0 0;
  color: #6d5000;
  font-size: 13px;
  font-weight: 700;
}

.activation-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 20px 0;
  padding: 14px 16px;
  border: 1px solid #c9d8ed;
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: var(--shadow);
}

.activation-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #10213c;
}

.activation-notice p {
  margin: 0;
  color: #526176;
  font-size: 13px;
  font-weight: 700;
}

.activation-notice a {
  color: #1463d8;
  font-weight: 900;
  text-decoration: none;
}

.welcome-help-notice {
  border-left-color: #00a676;
}

.demo-data-setup-banner {
  border-left-color: #8b5cf6;
  background: linear-gradient(135deg, #f8fbff, #f5f1ff);
}

.demo-data-setup-banner .primary-btn {
  white-space: nowrap;
}

.demo-data-modal {
  width: min(980px, 100%);
}

.demo-data-modal .section-head {
  align-items: flex-start;
  padding-right: 96px;
}

.demo-data-modal #closeDemoDataSetupBtn {
  position: absolute;
  top: 16px;
  right: 16px;
}

.demo-data-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.demo-data-steps article,
.demo-data-manual {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.demo-data-steps article {
  grid-template-rows: minmax(0, 1fr) auto;
}

.demo-data-steps article > button {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  white-space: normal;
}

.demo-data-steps strong,
.demo-data-manual strong {
  display: block;
  margin-bottom: 8px;
  color: #10213c;
  font-size: 15px;
}

.demo-data-steps p,
.demo-data-manual p {
  margin: 0;
  color: #526176;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.excel-preview {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid #cddced;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.excel-preview.is-two-col {
  grid-template-columns: 1fr 1fr;
}

.excel-preview span {
  min-height: 30px;
  padding: 7px 9px;
  border-right: 1px solid #d7e2ef;
  border-bottom: 1px solid #d7e2ef;
  color: #10213c;
  font-size: 12px;
  font-weight: 850;
}

.excel-preview.is-two-col span:nth-child(-n + 2),
.excel-preview:not(.is-two-col) span:first-child {
  background: #eaf1f9;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.demo-data-manual {
  margin-top: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.demo-data-manual p + p {
  margin-top: 8px;
}

.demo-data-manual a {
  color: #1463d8;
  font-weight: 900;
  text-decoration: none;
}

.pricing-view-panel {
  padding: 22px;
}

.pricing-view-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  color: #10213c;
}

.app-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.app-price-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24,39,66,.08);
}

.app-price-card.is-featured {
  border-color: #1463d8;
  box-shadow: 0 16px 36px rgba(20,99,216,.16);
}

.app-price-card span {
  color: #1463d8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-price-card strong {
  color: #10213c;
  font-size: 30px;
  line-height: 1.05;
}

.app-price-card p {
  margin: 0;
  color: #526176;
  font-size: 14px;
}

.pricing-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #c9d8ed;
  border-left: 5px solid #1463d8;
  border-radius: 10px;
  background: #f8fbff;
}

.pricing-note strong {
  display: block;
  margin-bottom: 4px;
  color: #10213c;
}

.help-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  color: #10213c;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.help-grid article,
.onboarding-help {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #c9d8ed;
  border-radius: 10px;
  background: #f8fbff;
}

.help-grid strong,
.onboarding-help strong {
  color: #10213c;
}

.help-grid a,
.onboarding-help a {
  color: #1463d8;
  font-weight: 900;
  text-decoration: none;
}

.onboarding-help {
  border-left: 5px solid #1463d8;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}
.login-card {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.auth-shell {
  background:
    radial-gradient(circle at top left, rgba(20, 99, 216, .18), transparent 32vw),
    linear-gradient(135deg, #101827 0%, #233e61 100%);
}
.auth-shell .login-card {
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}
.login-card h1 { margin: 0; }
.login-card p { margin: 0 0 8px; color: var(--muted); }
.login-card input, .inline-form input, .inline-form select, .toolbar input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #101827 0%, #1f334f 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.topbar h1 { margin: 0; font-size: 23px; }
.topbar p { margin: 4px 0 0; color: #b8c7dc; font-size: 13px; }
.topbar-actions, .toolbar, .section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-more {
  position: relative;
}

.topbar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.topbar-menu[hidden] {
  display: none;
}

.menu-btn {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  background: transparent;
  color: #13233c;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.menu-btn:hover,
.menu-btn.is-active {
  background: #edf5ff;
  color: #0f56b3;
}

.menu-btn[hidden] {
  display: none;
}

.view { padding: 18px 20px 24px; }

.primary-btn, .ghost-btn, .danger-btn {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 13px;
  cursor: pointer;
  font-weight: 700;
}
.primary-btn { background: linear-gradient(180deg, #1f7af2, var(--blue)); color: #fff; }
.ghost-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #eef5ff; }
.ghost-btn.is-active { background: #fff; color: #12365f; }
.light-btn { background: #fff; border-color: var(--line); color: var(--text); }
.danger-btn { background: #fff1f3; border-color: #f0b8bf; color: #9d2430; }
.error-text { color: var(--red); min-height: 20px; font-weight: 700; }
.info-text { color: #0f7a4b; min-height: 20px; font-weight: 700; }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  padding: 4px;
}
.file-btn input { display: none; }

.toolbar, .panel {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.toolbar { margin-bottom: 12px; padding: 12px; }
.panel { margin-bottom: 16px; padding: 16px; }
.sync-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 12px;
  padding: 10px 12px;
  background: #fff7dc;
  border: 1px solid #f0d47a;
  border-radius: 8px;
  color: #6d5000;
  font-weight: 700;
}
/* Ostrzeżenie o KOLIZJI tego samego pola po scaleniu (409 / powrót z offline). */
.merge-conflict-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 12px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #991b1b;
  font-weight: 700;
}
.merge-conflict-notice span { line-height: 1.4; }
.panel h2 { margin: 0 0 4px; }
.panel h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}
.panel p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

.driver-plan-panel {
  position: relative;
  background: #f8fbff;
}

.driver-plan-panel > .section-head {
  padding-right: 150px;
}

.driver-plan-fullscreen-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
}

.week-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.week-controls input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
}

.driver-plan-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.driver-plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #45566f;
  font-size: 12px;
  font-weight: 800;
}

.driver-plan-legend strong {
  color: #10213c;
}


.driver-plan-tlc-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.driver-plan-tlc-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #c8d8ec;
  border-radius: 999px;
  background: #fff;
  color: #31445f;
  font-size: 12px;
  font-weight: 800;
}

.driver-plan-tlc-strip strong {
  color: #0f4fb3;
  font-weight: 950;
}

.driver-plan-tlc-note.is-error {
  border-color: #f2b7b7;
  background: #fff5f5;
  color: #9b1c1c;
}

.driver-tlc-badge {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.driver-tlc-badge.is-ready {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.driver-tlc-badge.is-current {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.driver-tlc-badge.is-rest {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.driver-tlc-badge.is-wait {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.driver-tlc-badge.is-muted {
  background: #f1f5f9;
  color: #64748b;
  border-color: #d6e0eb;
}

.driver-tlc-card {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 5px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font-size: 10px;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.driver-tlc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.driver-tlc-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
  text-transform: uppercase;
}

.driver-tlc-card small {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
}

.driver-tlc-card.is-current {
  background: #eff6ff;
  border-color: #93c5fd;
}

.driver-tlc-card.is-ready {
  background: #ecfdf5;
  border-color: #86efac;
}

.driver-tlc-card.is-rest {
  background: #fffbeb;
  border-color: #fcd34d;
}

.driver-tlc-card.is-wait {
  background: #fef2f2;
  border-color: #fca5a5;
}

.driver-tlc-card.is-muted {
  background: #f8fafc;
  border-color: #d6e0eb;
  color: #64748b;
}

.driver-tlc-card.is-stale-data {
  outline: 1px dashed #f97316;
  outline-offset: 1px;
}

.driver-tlc-open {
  flex: 0 0 auto;
  width: 25px;
  height: 20px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #fff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.driver-tlc-open:hover {
  background: #dbeafe;
}

.driver-tlc-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 50;
  display: none;
  width: 260px;
  padding: 9px 10px;
  border: 1px solid #c8d8ec;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  text-transform: none;
}

.driver-tlc-card:hover .driver-tlc-tooltip {
  display: none;
}

.driver-tlc-tooltip-portal {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 4px;
  width: min(300px, calc(100vw - 24px));
  padding: 10px 11px;
  border: 1px solid #c8d8ec;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
  pointer-events: none;
  text-transform: none;
}

.driver-tlc-tooltip-portal[hidden] {
  display: none;
}

.driver-tlc-tooltip strong,
.driver-tlc-tooltip-portal strong {
  color: #0f4fb3;
  font-size: 12px;
}

.driver-tlc-tooltip span,
.driver-tlc-tooltip em,
.driver-tlc-tooltip-portal span,
.driver-tlc-tooltip-portal em {
  color: #334155;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.driver-tlc-tooltip em,
.driver-tlc-tooltip-portal em {
  margin-top: 3px;
  color: #9a3412;
}

.driver-plan-table-wrap {
  max-height: calc(100vh - 220px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(15, 23, 42, .08);
}

body.driver-plan-fullscreen-active {
  overflow: hidden;
}

#driverPlanView.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: block;
  padding: 10px;
  background: #eaf1f9;
}

#driverPlanView.is-fullscreen .driver-plan-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 20px);
  margin: 0;
}

#driverPlanView.is-fullscreen .driver-plan-fullscreen-btn {
  top: 14px;
  right: 14px;
}

#driverPlanView.is-fullscreen .driver-plan-table-wrap {
  flex: 1;
  max-height: none;
}

.driver-plan-table {
  width: max(100%, 930px);
  min-width: 930px;
  table-layout: fixed;
}

.driver-plan-person-col {
  width: 142px;
}

.driver-plan-date-col {
  width: calc((100% - 142px) / 6);
}

.driver-plan-table th,
.driver-plan-table td {
  height: auto;
  vertical-align: top;
}

.driver-plan-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 9px 8px;
  background: #eaf1f9;
  color: #14233b;
}

.driver-plan-table th strong {
  display: block;
  margin-top: 3px;
  color: #1463d8;
  font-size: 13px;
}

.driver-plan-table th.is-today {
  background: #dbeafe;
  box-shadow: inset 0 -3px 0 #1463d8;
}

.driver-plan-table th.is-today strong {
  color: #0f4fb3;
}

.driver-plan-holidays {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 5px;
}

.driver-plan-holidays span {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a4b00;
  border: 1px solid #f0d48a;
  font-size: 10px;
  font-weight: 950;
}

.driver-plan-person {
  width: 142px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

th.driver-plan-person {
  top: 0;
  z-index: 8;
  background: #eaf1f9;
}

.driver-plan-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.driver-plan-order-btn {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #b7c8de;
  border-radius: 50%;
  background: #fff;
  color: #1463d8;
  cursor: pointer;
  font-weight: 900;
}

.driver-plan-table td.driver-plan-person {
  padding: 4px 5px;
}

.driver-plan-driver,
.driver-plan-tractor {
  display: block;
  width: 100%;
  border-radius: 4px;
  padding: 5px 6px;
  font-weight: 900;
  line-height: 1.05;
  font-size: 12px;
}

.driver-plan-driver {
  color: #fff;
  text-transform: uppercase;
}

.driver-plan-tractor {
  margin-top: 3px;
  background: #eef3f9;
  color: #22314a;
  font-size: 12px;
}

.driver-plan-day {
  padding: 4px;
  background: #fff;
}

/* Wskaźnik "W trasie" — kierowca wykonuje wielodniowe zlecenie */
.driver-plan-day.has-transit {
  background: repeating-linear-gradient(
    135deg,
    #f0f6ff 0px,
    #f0f6ff 6px,
    #e8f0fb 6px,
    #e8f0fb 12px
  );
}
.driver-plan-transit {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 7px;
  border: 1px dashed #93c5fd;
  border-radius: 6px;
  background: rgba(219, 234, 254, 0.5);
  font-size: 11px;
  color: #1e40af;
}
.transit-icon {
  font-size: 14px;
  line-height: 1;
  color: #3b82f6;
}
.transit-label {
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #2563eb;
}
.transit-route {
  color: #1e3a5f;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transit-trailer {
  color: #64748b;
  font-size: 10px;
}

.driver-plan-day.is-today {
  background: #f0f6ff;
  box-shadow: inset 3px 0 0 #1463d8;
}

.driver-plan-day.is-blocked {
  background: #f8fbff;
}

.driver-plan-day.is-empty {
  padding: 3px;
  text-align: center;
}

.driver-plan-auto {
  display: grid;
  gap: 4px;
}

.driver-plan-task {
  position: relative;
  width: 100%;
  border: 1px solid #b9d4f7;
  border-left: 4px solid #1463d8;
  border-radius: 6px;
  padding: 5px 24px 5px 6px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  color: #13233c;
  text-align: left;
  box-shadow: 0 2px 5px rgba(20, 99, 216, .08);
}

.driver-plan-task.is-return {
  border-color: #b8e4cb;
  border-left-color: #00a676;
  background: linear-gradient(180deg, #f5fff9 0%, #eafff3 100%);
}

.driver-plan-task.is-load {
  border-color: #f1d99a;
  border-left-color: #e0a313;
  background: linear-gradient(180deg, #fffdf3 0%, #fff6d9 100%);
}

.driver-plan-task strong,
.driver-plan-task span,
.driver-plan-task small {
  display: block;
}

.driver-plan-task strong {
  color: #0f5fbb;
  font-size: 11px;
}

.driver-plan-task span {
  margin-top: 2px;
  font-weight: 900;
  line-height: 1.2;
  font-size: 12px;
}

.driver-plan-task small {
  margin-top: 3px;
  color: #526176;
  line-height: 1.2;
}

.driver-plan-author-badge {
  position: absolute;
  top: 3px;
  right: 25px;
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(135deg, #0b2c5f 0%, #155fc0 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
  box-shadow:
    0 2px 6px rgba(11, 44, 95, .22),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  pointer-events: none;
}

#driverPlanTable.is-mono .driver-plan-table th,
#driverPlanTable.is-mono th.driver-plan-person {
  background: #f2f4f7;
  color: #111827;
}

#driverPlanTable.is-mono .driver-plan-table th strong {
  color: #111827;
}

#driverPlanTable.is-mono .driver-plan-table th.is-today {
  background: #e5e7eb;
  box-shadow: inset 0 -3px 0 #111827;
}

#driverPlanTable.is-mono .driver-plan-day.is-today {
  background: #f7f7f7;
  box-shadow: inset 3px 0 0 #111827;
}

#driverPlanTable.is-mono .driver-plan-task,
#driverPlanTable.is-mono .driver-plan-task.is-load,
#driverPlanTable.is-mono .driver-plan-task.is-return,
#driverPlanTable.is-mono .driver-plan-task.is-note,
#driverPlanTable.is-mono .driver-plan-note-card {
  border-color: #111827;
  border-left-color: #111827;
  background: #fff;
  color: #111827;
  box-shadow: none;
}

#driverPlanTable.is-mono .driver-plan-task strong,
#driverPlanTable.is-mono .driver-plan-task small {
  color: #111827;
}

#driverPlanTable.is-mono .driver-plan-author-badge {
  border-color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.driver-plan-note-card {
  position: relative;
  width: 100%;
  border: 1px solid #ead28c;
  border-radius: 6px;
  padding: 5px 24px 5px 6px;
  background: #fff8dc;
  color: #172033;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}

.driver-plan-edit,
.driver-plan-note-edit {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #b7c8de;
  border-radius: 50%;
  background: #fff;
  color: #1463d8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.driver-plan-add {
  width: 100%;
  min-height: 22px;
  margin-top: 3px;
  border: 1px solid #cdd8e7;
  border-radius: 6px;
  background: #fff;
  color: #1463d8;
  font-weight: 900;
  cursor: pointer;
}

.driver-plan-day.is-empty .driver-plan-add {
  display: inline-grid;
  width: 22px;
  min-height: 22px;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  border-color: #b7c8de;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.driver-order-modal {
  width: min(520px, calc(100vw - 28px));
}

.driver-order-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: min(60vh, 560px);
  overflow: auto;
}

.driver-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.driver-order-row strong,
.driver-order-row span {
  display: block;
}

.driver-order-row strong {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.driver-order-row span {
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #e8eef6;
  color: #10213c;
  font-size: 12px;
  font-weight: 900;
}

.driver-order-row button {
  min-height: 34px;
  border: 1px solid #bfd0e5;
  border-radius: 6px;
  background: #fff;
  color: #1463d8;
  cursor: pointer;
  font-weight: 950;
}

.driver-order-row button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.driver-task-driver-change {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.driver-task-driver-change label {
  display: grid;
  gap: 6px;
  color: #3c4d67;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-task-driver-change select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.summary-card {
  min-height: auto;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(24,39,66,.07);
}
.summary-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.admin-hero-panel {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-hero h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.admin-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-stat-card {
  border-left-color: #10213c;
}

.admin-health-grid,
.admin-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-health-card,
.admin-attention-card {
  min-height: 116px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.admin-health-card {
  border-left: 5px solid #6b7c93;
}

.admin-health-card.good { border-left-color: #00a676; }
.admin-health-card.warn { border-left-color: #f3a51c; }
.admin-health-card.danger { border-left-color: #d23b3b; }

.admin-system-status {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(20, 99, 216, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.admin-system-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-system-main h3 {
  margin: 4px 0;
  color: #10213c;
  font-size: 22px;
}

.admin-system-main p {
  margin: 0;
  color: #526176;
  font-size: 13px;
}

.admin-system-main > strong {
  min-width: 78px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.admin-system-main > strong.good { background: #00a676; }
.admin-system-main > strong.warn { background: #f3a51c; color: #10213c; }

.admin-system-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-system-metric {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-system-metric span {
  display: block;
  color: #6b778c;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-system-metric strong {
  display: block;
  margin-top: 4px;
  color: #10213c;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-system-alerts {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.admin-system-alerts li {
  padding: 9px 10px;
  border: 1px solid #f6d487;
  border-radius: 8px;
  background: #fff8e6;
  color: #6b4600;
  font-size: 13px;
  font-weight: 800;
}

.admin-health-card span,
.admin-attention-title strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-health-card strong {
  display: block;
  margin-top: 6px;
  color: #10213c;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-health-card p,
.admin-attention-card p {
  margin: 7px 0 0;
  color: #526176;
  font-size: 12px;
  line-height: 1.35;
}

.admin-attention-panel {
  background: #fbfdff;
}

.admin-companies-panel {
  border-left: 5px solid #10213c;
  background: #fff;
}

.admin-company-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #10213c;
  color: #fff;
  font-size: 13px;
}

.admin-attention-card.has-items {
  border-left: 5px solid #f3a51c;
}

.admin-attention-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-attention-title span {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #edf4ff;
  color: #1463d8;
  font-weight: 900;
}

.admin-attention-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-attention-card li {
  padding: 7px 8px;
  border-radius: 6px;
  background: #f8fbff;
  color: #10213c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.admin-analytics-grid {
  display: grid;
  gap: 14px;
}

.admin-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-analytics-card,
.admin-analytics-list {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(24, 39, 66, .06);
}

.admin-analytics-card span,
.admin-analytics-list > strong {
  color: #5b6b84;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-analytics-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.05;
}

.admin-analytics-card p,
.admin-analytics-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-analytics-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-analytics-list ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.admin-analytics-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #243246;
  font-size: 13px;
}

.admin-analytics-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-analytics-list li em {
  min-width: 28px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1559bd;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.admin-analytics-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.admin-analytics-days span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-analytics-days strong {
  color: #0f172a;
  line-height: 1;
}

.admin-analytics-days small {
  color: #6b778c;
  font-weight: 800;
}

.admin-split-panel {
  display: grid;
  gap: 12px;
}

.admin-company-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  gap: 8px;
  margin: 10px 0 12px;
}

.admin-company-tools input,
.admin-company-tools select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.admin-company-table {
  min-width: 1380px;
}

.admin-company-table td {
  padding: 8px;
  height: auto;
  vertical-align: middle;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-actions button {
  min-height: 30px;
  padding: 5px 8px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1463d8;
  font-size: 12px;
  font-weight: 900;
}

.admin-badge.good {
  background: #e8fff3;
  color: #007a4d;
}

.admin-badge.warn {
  background: #fff5d9;
  color: #8a5a00;
}

.admin-badge.danger {
  background: #ffe8e8;
  color: #b42323;
}

.admin-company-controls {
  margin: 8px 0 12px;
}

.admin-company-control-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(260px, auto);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-company-control-form label {
  display: grid;
  gap: 5px;
  color: #3c4d67;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-company-control-form input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.admin-company-control-form input:disabled {
  opacity: .55;
  background: #eef3f9;
}

.admin-company-control-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.groups { display: grid; gap: 16px; }
.group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.group-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1560px; border-collapse: collapse; background: #fff; table-layout: fixed; }
.col-task { width: 170px; }
.col-load { width: 280px; }
.col-date { width: 280px; }
.col-driver { width: 180px; }
.col-tractor { width: 140px; }
.col-status { width: 170px; }
.col-last-load { width: 190px; }
.col-last-driver { width: 170px; }
.col-delete { width: 42px; }
th, td { height: 36px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; }
th { padding: 9px 8px; background: #eef3f9; color: #334155; font-size: 12px; text-transform: uppercase; }
#groups .table-wrap table th:first-child,
#groups .table-wrap table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 2px 0 0 rgba(205, 220, 237, .9);
}

#groups .table-wrap table th:first-child {
  z-index: 4;
  background: #eef3f9;
}

#groups .table-wrap table td:first-child input {
  background: #fff;
  font-weight: 850;
}

th:nth-child(3),
td:nth-child(3) {
  min-width: 280px;
  width: 280px;
}
td input, td select { width: 100%; height: 36px; border: 0; padding: 6px 8px; background: transparent; }
.load-cell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 36px;
  min-height: 36px;
}

.load-cell.return-enabled {
  grid-template-columns: 1fr 28px;
}

.load-cell.has-return {
  grid-template-rows: 36px 36px;
}

.load-cell.has-route {
  grid-template-rows: 36px 36px;
}

.load-cell.has-route.has-return {
  grid-template-rows: 36px 36px 36px;
}

.load-cell .current-load {
  grid-column: 1;
  grid-row: 1;
}

.unload-place {
  display: none;
  grid-column: 1;
  grid-row: 2;
  border-top: 1px solid var(--line);
  background: #fff7e8;
}

.load-cell.has-route .unload-place {
  display: block;
}

.return-load-add {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #13a65a;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 20px;
  padding: 0;
}

.return-load-add.is-active {
  background: #0d7f45;
}

.load-remove {
  display: none;
  align-self: center;
  justify-self: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #d23b3b;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 20px;
  padding: 0;
}

.current-load-remove {
  grid-column: 2;
  grid-row: 1;
}

.return-load-remove {
  grid-column: 2;
  grid-row: 2;
}

.load-cell.has-route .return-load-remove,
.load-cell.has-route .return-load {
  grid-row: 3;
}

.load-cell.has-return .return-load-add {
  display: none;
}

.load-cell.has-return .load-remove {
  display: block;
}

.return-load {
  display: none;
  grid-column: 1;
  grid-row: 2;
  border-top: 1px solid var(--line);
  background: #f4fff8;
}

.load-cell.has-return .return-load {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .44);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.driver-task-modal .section-head {
  padding-right: 110px;
}

.driver-task-modal #closeDriverPlanTaskModalBtn {
  position: absolute;
  top: 16px;
  right: 16px;
}

.driver-task-modal.is-custom-route {
  width: min(1120px, calc(100vw - 36px));
}

.driver-task-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
}

.driver-task-grid label {
  display: grid;
  gap: 6px;
  color: #3c4d67;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-task-grid input,
.driver-task-grid select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-transform: none;
}

.driver-task-update-board {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #24364f;
  font-weight: 800;
}

.driver-task-update-board input {
  width: 18px;
  height: 18px;
}

.driver-task-warning {
  margin: 10px 0 0;
}

.driver-task-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.driver-task-trailer-field { grid-column: 1; grid-row: 1; }
.driver-task-type-field { grid-column: 2; grid-row: 1; }
.driver-task-template-field { grid-column: 3; grid-row: 1; }
.driver-task-outbound-field { grid-column: 1; grid-row: 2; }

.driver-task-load-place-field { grid-column: 1; grid-row: 3; }
.driver-task-load-date-field { grid-column: 2; grid-row: 3; }
.driver-task-load-time-field { grid-column: 3; grid-row: 3; }

.driver-task-unload-place-field { grid-column: 1; grid-row: 4; }
.driver-task-unload-date-field { grid-column: 2; grid-row: 4; }
.driver-task-unload-time-field { grid-column: 3; grid-row: 4; }

.driver-task-return-place-field { grid-column: 1; grid-row: 5; }
.driver-task-return-date-field { grid-column: 2; grid-row: 5; }
.driver-task-return-time-field { grid-column: 3; grid-row: 5; }

.driver-task-return-unload-place-field { grid-column: 1; grid-row: 6; }
.driver-task-return-unload-date-field { grid-column: 2; grid-row: 6; }
.driver-task-return-unload-time-field { grid-column: 3; grid-row: 6; }

.driver-task-note-field {
  grid-column: 1 / -1;
  grid-row: 7;
}

.driver-task-custom-stages {
  grid-column: 1 / -1;
  grid-row: 7;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.driver-task-custom-stages[hidden],
.template-custom-stages[hidden] {
  display: none;
}

.template-custom-stages {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.driver-task-grid:has(.driver-task-custom-stages:not([hidden])) .driver-task-note-field {
  grid-row: 8;
}

.driver-task-custom-stages-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.driver-task-custom-stages-head strong,
.template-custom-stages-head strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.driver-task-custom-stages-head span,
.template-custom-stages-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.driver-task-custom-stage-buttons,
.template-custom-stages-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.driver-task-custom-stages-list,
.template-custom-stages-list {
  display: grid;
  gap: 7px;
}

.driver-custom-stage-row,
.template-custom-stage-row {
  display: grid;
  grid-template-columns: 24px 28px minmax(150px, .8fr) minmax(210px, 1.2fr) minmax(128px, .62fr) minmax(96px, .5fr) 116px;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.driver-custom-stage-row input,
.driver-custom-stage-row select,
.template-custom-stage-row input,
.template-custom-stage-row select {
  min-width: 0;
  width: 100%;
}

.template-custom-stage-row {
  grid-template-columns: 28px minmax(150px, .9fr) minmax(180px, 1.2fr) minmax(90px, .6fr) 34px 34px 34px;
}

.driver-custom-stage-row.is-dragging,
.driver-custom-stage-row.is-drop-target {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .14);
}

.driver-custom-stage-drag {
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
  letter-spacing: -2px;
}

.driver-custom-stage-number,
.template-custom-stage-row > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.driver-custom-stage-controls {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.driver-custom-stage-controls button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.driver-task-grid label[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

tr.has-return-load td {
  height: 72px;
}

tr.has-return-load .delete-row {
  height: 72px;
}

tr.has-return-load td select,
tr.has-return-load td > input:not(.current-load):not(.return-load) {
  height: 72px;
}
.date-cell {
  display: grid;
  grid-template-rows: 36px;
  min-width: 280px;
  width: 100%;
}

tr.has-return-load .date-cell {
  grid-template-rows: 36px 36px;
}

.date-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  height: 36px;
  min-width: 280px;
  width: 100%;
}

.date-time-fields input {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.date-time-fields .unload-date-field {
  min-width: 138px;
}

.date-time-fields .unload-time-field {
  min-width: 112px;
  text-align: center;
}

.date-time-fields input:last-child {
  border-right: 0;
}

.return-date-time-fields {
  display: none;
  border-top: 1px solid var(--line);
  background: #f4fff8;
}

tr.has-return-load .return-date-time-fields {
  display: grid;
}
.driver-select, .tractor-select, .status-select { color: #fff; font-weight: 800; text-shadow: 0 1px 1px rgba(0,0,0,.28); }
.status-select { text-align: center; text-align-last: center; }
.row-actions-cell { padding: 0 !important; width: 80px; }
tr.has-return-load .row-actions-cell { vertical-align: middle; }

/* Naczepy w ustawieniach */
.trailer-settings-list { display: grid; gap: 8px; }
.trailer-settings-item {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.6fr) 38px auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
}
.trailer-settings-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.trailer-settings-info strong {
  font-size: 13px;
  font-weight: 900;
  color: #10213c;
  white-space: nowrap;
}
.trailer-settings-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.trailer-settings-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trailer-status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
  flex-shrink: 0;
  white-space: nowrap;
}
.trailer-delete-btn {
  justify-self: end;
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.trailer-gps-input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 9px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text, #333);
  background: #fff;
}
.trailer-gps-input:focus {
  outline: none;
  border-color: #1463d8;
}
@media (max-width: 700px) {
  .trailer-settings-item { flex-wrap: wrap; }
  .trailer-gps-input { width: 100%; }
}

/* Przycisk "→ Planer" w wierszu tablicy naczep */
.to-planner-btn {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  background: #fff;
  color: #1463d8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.to-planner-btn:hover { background: #1463d8; color: #fff; }
tr.has-return-load .to-planner-btn { height: 36px; }

/* Modal: wybór kierowcy przy wysyłaniu do planera */
.board-to-planner-card {
  max-width: 480px;
  width: calc(100% - 32px);
}
.board-to-planner-drivers {
  display: grid;
  gap: 8px;
  margin: 20px 0 16px;
}
.board-to-planner-driver-btn {
  display: grid;
  grid-template-columns: 14px 1fr auto 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s;
}
.board-to-planner-driver-btn:hover {
  border-color: #1463d8;
  background: #eef4ff;
  transform: translateX(3px);
}
.btp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.btp-name { font-weight: 900; font-size: 15px; color: #10213c; }
.btp-tractor { font-size: 12px; color: var(--muted); }
.btp-arrow { color: #1463d8; font-weight: 900; opacity: 0; transition: opacity .15s; }
.board-to-planner-driver-btn:hover .btp-arrow { opacity: 1; }
.board-to-planner-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0;
}

/* Modal konfliktu */
.btp-conflict-tasks {
  display: grid;
  gap: 8px;
  margin: 14px 0 20px;
}
.btp-conflict-task {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafd;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.btp-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.btp-conflict-actions .danger-btn { order: 1; }
.btp-conflict-actions .primary-btn { order: 0; }
.btp-conflict-actions .ghost-btn   { order: 2; margin-left: auto; }
.empty { padding: 14px; color: var(--muted); font-weight: 700; }
.save-state {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transition: background .15s, color .15s, border-color .15s;
}
/* Kolory wskaźnika zapisu wg stanu (C). */
.save-state[data-state="saved"]   { background:#ecfdf5; color:#047857; border-color:#a7f3d0; }
.save-state[data-state="saving"]  { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.save-state[data-state="dirty"]   { background:#fffbeb; color:#b45309; border-color:#fde68a; }
.save-state[data-state="conflict"]{ background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.save-state[data-state="offline"],
.save-state[data-state="error"]   { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
/* Wskaźnik połączenia na żywo (C). */
.live-state {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
}
.live-state[data-state="live"] { color:#047857; }
.live-state[data-state="slow"] { color:#b45309; }
.live-state[data-state="off"]  { color:#9ca3af; }

.history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) repeat(2, minmax(130px, auto)) auto;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.audit-filters {
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) repeat(2, minmax(130px, auto)) auto;
}

.history-filters input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
}

.history-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

tbody tr:hover td {
  background: #f9fbff;
}

td input:focus,
td select:focus,
.settings-row input:focus,
.settings-row select:focus,
.history-filters input:focus {
  outline: 2px solid rgba(20, 99, 216, 0.22);
  outline-offset: -1px;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.settings-actions, .toggle-list, .settings-list {
  display: grid;
  gap: 10px;
}

.settings-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
}

.billing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
}

.billing-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.billing-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.billing-details span {
  padding: 7px 9px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.billing-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #9cc2ff;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f5f9ff;
  color: var(--ink);
}

.billing-result p {
  margin: 8px 0 0;
  color: #334155;
  font-weight: 800;
}

.copy-link-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  color: var(--ink);
}

.settings-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.status-row { grid-template-columns: 54px minmax(220px, 1fr) 38px; }
.tractor-row { grid-template-columns: 54px minmax(180px, 1fr) minmax(200px, 1.4fr) 38px 38px; }
.driver-row { grid-template-columns: 54px minmax(170px, 1fr) minmax(160px, 1fr) minmax(230px, 1.1fr) 38px; }
.load-hint-row { grid-template-columns: minmax(220px, 1fr) 38px; }
.driver-tlc-mapping-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #c8d8ec;
  border-radius: 8px;
  background: #f8fbff;
  color: #31445f;
  font-size: 13px;
  font-weight: 800;
}
.driver-template-row {
  grid-template-columns:
    minmax(150px, 1fr)
    minmax(180px, 1fr)
    repeat(6, minmax(120px, .85fr))
    38px;
}

.settings-row input,
.settings-row select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
}

.settings-choice-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #24364f;
  font-weight: 800;
}

.settings-choice-row select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.holiday-country-row {
  align-items: start;
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr);
}

.holiday-country-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.holiday-country-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.mini-switch-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #24364f;
  font-size: 13px;
  font-weight: 900;
}

.mini-switch-row input {
  display: none;
}

.mini-switch-row .switch-track {
  width: 42px;
  height: 22px;
}

.mini-switch-row .switch-track::after {
  width: 18px;
  height: 18px;
}

.mini-switch-row input:checked + .switch-track {
  background: #16a085;
}

.mini-switch-row input:checked + .switch-track::after {
  transform: translateX(20px);
}

.mini-switch-row small {
  display: inline;
  margin: 0 0 0 4px;
  color: #68768b;
  font-size: 11px;
  font-weight: 900;
}

.color-preset {
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}

.compact-delete {
  height: 36px;
  border-radius: 6px;
  background: #fff1f3;
}
.gps-save-btn {
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #22c55e;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.gps-save-btn:hover { background: #dcfce7; }

.switch-row {
  display: grid;
  grid-template-columns: 48px auto;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #b9c4d3;
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transition: transform .15s ease;
}

.switch-row input:checked + .switch-track { background: #16a085; }
.switch-row input:checked + .switch-track::after { transform: translateX(22px); }

.date-overdue { background: #ffe4e8; color: #9d2430; font-weight: 800; }
.date-today { background: #fff0cf; color: #8a4a00; font-weight: 800; }
.date-tomorrow { background: #fff9d8; color: #735c00; font-weight: 800; }
.readonly-colored-cell {
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

@media (max-width: 760px) {
  body { background: var(--bg); }
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .landing-nav nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .landing-nav nav > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .hero-section,
  .landing-section,
  .split-section,
  .demo-section,
  .module-section,
  .pricing-card {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
  }
  .hero-section {
    min-height: auto;
    padding: 30px 0;
  }
  .hero-board {
    overflow-x: auto;
  }
  .planner-showcase-card,
  .board-showcase-card {
    overflow-x: auto;
  }
  .mini-table,
  .mini-plan-grid,
  .showcase-plan-grid,
  .showcase-board-grid {
    min-width: 980px;
  }
  .module-points {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .landing-cta {
    width: 100%;
  }
  .demo-account-banner {
    top: 92px;
    align-items: stretch;
    flex-direction: column;
    margin: 8px;
  }
  .demo-account-banner .primary-btn {
    width: 100%;
  }
  .app-pricing-grid {
    grid-template-columns: 1fr;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .activation-notice {
    align-items: stretch;
    flex-direction: column;
    margin: 8px;
  }
  .activation-notice .ghost-btn {
    width: 100%;
  }
  .demo-data-setup-banner .primary-btn {
    width: 100%;
    white-space: normal;
  }
  .demo-data-steps,
  .demo-data-manual {
    grid-template-columns: 1fr;
  }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 10px 8px;
    position: sticky;
  }
  .topbar h1 { font-size: 18px; line-height: 1.1; }
  .topbar p {
    margin-top: 2px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-actions {
    display: flex;
    width: calc(100vw - 20px);
    gap: 6px;
    overflow: visible;
    flex-wrap: nowrap;
    padding: 2px 0 4px;
    scrollbar-width: thin;
  }
  .topbar-actions .ghost-btn,
  .topbar-actions .danger-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .topbar-menu {
    right: auto;
    left: 0;
  }
  .view { padding: 8px; }
  .toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
  }
  .toolbar .primary-btn,
  .toolbar .ghost-btn,
  .toolbar input {
    width: 100%;
    min-height: 34px;
  }
  .save-state {
    justify-content: center;
    min-height: 34px;
  }
  .sync-notice {
    align-items: stretch;
    flex-direction: column;
    font-size: 13px;
  }
  .summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .summary-card {
    min-height: 52px;
    padding: 9px 10px;
  }
  .summary-card strong { font-size: 20px; }
  .group { border-radius: 6px; }
  .group-header { padding: 10px; }
  .table-wrap {
    margin: 0 -1px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-hero { display: grid; }
  .admin-hero-actions { justify-content: stretch; }
  .admin-hero-actions button { width: 100%; }
  .admin-system-main { display: grid; }
  .admin-system-main > strong { width: fit-content; }
  .admin-system-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-company-tools { grid-template-columns: 1fr; }
  .admin-company-control-form { grid-template-columns: 1fr; }
  .history-filters, .audit-filters { grid-template-columns: 1fr; }
  .status-row, .tractor-row, .driver-row, .load-hint-row, .driver-template-row, .settings-actions, .billing-panel { grid-template-columns: 1fr; }
  .tractor-row { grid-template-columns: 54px 1fr 38px 38px; }
  .driver-task-grid {
    grid-template-columns: 1fr;
  }
  .driver-task-grid label {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .driver-task-custom-stages {
    overflow-x: auto;
  }
  .driver-task-custom-stages-head {
    grid-template-columns: 1fr;
  }
  .driver-task-custom-stage-buttons {
    justify-content: flex-start;
  }
  .driver-custom-stage-row {
    min-width: 780px;
  }
}

@media (max-width: 420px) {
  .toolbar { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: 1fr; }
}

/* Marketing landing page */
.marketing-dark {
  --m-bg: #070409;
  --m-panel: #0d080f;
  --m-panel-soft: #120c15;
  --m-line: rgba(255, 255, 255, 0.18);
  --m-line-soft: rgba(255, 255, 255, 0.1);
  --m-text: #ffffff;
  --m-muted: rgba(255, 255, 255, 0.74);
  --m-blue: #1584d1;
  --m-green: #1dd18a;
  --m-violet: #8757ff;
  --m-gold: #d9a519;
  background: var(--m-bg);
  color: var(--m-text);
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.marketing-dark * {
  box-sizing: border-box;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--m-line-soft);
  background: rgba(7, 4, 9, 0.9);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--m-text);
  text-decoration: none;
}

.brand-mark strong {
  color: var(--m-text);
  font-size: 18px;
  letter-spacing: 0;
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217, 165, 25, 0.45);
  border-radius: 8px;
  color: #d6b52e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: radial-gradient(circle at 30% 20%, rgba(217, 181, 46, 0.28), transparent 55%);
}

.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.marketing-nav a,
.marketing-footer a {
  color: var(--m-text);
  text-decoration: none;
}

.marketing-nav a:hover,
.marketing-footer a:hover {
  color: #7ec8ff;
}

.marketing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dark-outline-btn,
.blue-cta-btn,
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  border-radius: 6px;
  border: 1px solid var(--m-line);
  color: var(--m-text);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.marketing-nav-actions .dark-outline-btn {
  min-height: 46px;
  padding: 0 24px;
  border-color: rgba(126, 200, 255, 0.7);
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 20%, rgba(29, 209, 138, 0.22), transparent 38%),
    linear-gradient(135deg, #1584d1, #0f63b6);
  box-shadow: 0 0 0 1px rgba(126, 200, 255, 0.18), 0 18px 44px rgba(21, 132, 209, 0.35);
  font-size: 16px;
  font-weight: 950;
}

.marketing-nav-actions .nav-register-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #06101f;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.12);
}

.marketing-nav-actions .nav-register-btn:hover {
  color: #06101f;
  background: #e9f5ff;
  transform: translateY(-1px);
}

.marketing-nav-actions .dark-outline-btn:hover {
  background:
    radial-gradient(circle at 24% 20%, rgba(29, 209, 138, 0.32), transparent 38%),
    linear-gradient(135deg, #2295e8, #1463d8);
  transform: translateY(-1px);
}

.blue-cta-btn {
  border-color: transparent;
  background: var(--m-blue);
  box-shadow: 0 16px 38px rgba(21, 132, 209, 0.24);
}

.blue-cta-btn:hover {
  background: #2295e8;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.full-width {
  width: 100%;
}

.marketing-hero {
  padding: 72px clamp(22px, 5vw, 72px) 78px;
}

.hero-visual-panel {
  position: relative;
  max-width: 1140px;
  min-height: 570px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--m-line-soft);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(4, 7, 12, 0.78), rgba(5, 3, 7, 0.42)),
    radial-gradient(circle at 18% 50%, rgba(21, 132, 209, 0.28), transparent 34%),
    radial-gradient(circle at 82% 40%, rgba(217, 165, 25, 0.24), transparent 32%),
    #111015;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.hero-visual-overlay {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 105px 28px;
  text-align: center;
}

.hero-visual-overlay h1 {
  margin: 0;
  color: var(--m-text);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-visual-overlay p {
  max-width: 720px;
  margin: 26px auto 26px;
  color: var(--m-text);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

.hero-dashboard-visual {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.dashboard-card {
  position: absolute;
  min-width: 190px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.78);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.dashboard-card span,
.dashboard-card em {
  display: block;
  color: var(--m-muted);
  font-style: normal;
  font-size: 12px;
}

.dashboard-card strong {
  display: block;
  margin: 6px 0;
  color: var(--m-text);
  font-size: 24px;
}

.card-a { left: 8%; top: 14%; }
.card-b { right: 9%; top: 22%; }
.card-c { right: 16%; bottom: 13%; }

.route-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.8), transparent);
  transform-origin: left center;
}

.route-one {
  width: 46%;
  left: 21%;
  top: 36%;
  transform: rotate(15deg);
}

.route-two {
  width: 38%;
  left: 31%;
  bottom: 27%;
  transform: rotate(-11deg);
}

.marketing-section {
  padding: 92px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(111, 77, 255, 0.48);
}

.intro-section {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border-top: 0;
}

.intro-section p {
  max-width: 720px;
  margin: 18px auto 0;
}

.intro-section h2,
.marketing-section-title h2,
.faq-section h2,
.contact-copy h2 {
  margin: 0;
  color: var(--m-text);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}

.intro-section p,
.marketing-section-title p,
.demo-cta-card p,
.faq-section p,
.contact-copy p {
  color: var(--m-text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

.marketing-section-title {
  max-width: 850px;
  margin: 0 auto 72px;
  text-align: center;
}

.marketing-section-title span,
.contact-copy > span {
  display: block;
  margin-bottom: 18px;
  color: var(--m-text);
  font-weight: 900;
}

.capabilities-grid,
.faq-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.capability-stack {
  display: grid;
  gap: 28px;
}

.capability-stack-wide {
  grid-column: 1 / -1;
}

.dark-feature-card,
.product-card-large,
.benefit-card,
.demo-cta-card,
.pricing-dark-card,
.faq-list details,
.marketing-demo-form {
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: var(--m-panel);
}

.dark-feature-card,
.product-card-large {
  min-height: 265px;
  padding: 44px;
}

.capability-card-with-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
  gap: 32px;
}

.dark-feature-card h3,
.product-card-large h3,
.benefit-card h3 {
  margin: 26px 0 18px;
  color: var(--m-text);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 500;
}

.dark-feature-card p,
.benefit-card p {
  color: var(--m-text);
  font-weight: 750;
  line-height: 1.55;
}

.landing-planner-preview,
.landing-board-preview {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: #f4f8fc;
  color: #10213c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.landing-planner-preview {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  align-content: start;
}

.landing-planner-preview > * {
  min-height: 46px;
  padding: 9px 10px;
  border-right: 1px solid #cfdaea;
  border-bottom: 1px solid #cfdaea;
  font-size: 12px;
  font-style: normal;
}

.landing-planner-preview > div {
  background: #e8eef6;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-planner-preview strong {
  background: #fff;
  line-height: 1.2;
}

.landing-planner-preview strong span {
  display: block;
  margin-top: 5px;
  color: #39506f;
  font-size: 11px;
}

.landing-planner-preview em {
  display: grid;
  align-content: center;
  border-left: 4px solid #9fb7d5;
  background: #fff;
  font-weight: 900;
}

.landing-planner-preview .task-load {
  border-left-color: #d6a60d;
  background: #fff8dc;
}

.landing-planner-preview .task-unload {
  border-left-color: #02a86b;
  background: #e7fff4;
}

.landing-planner-preview .task-off {
  border-left-color: #516070;
  background: #eef2f7;
}

.landing-board-preview {
  display: grid;
  align-content: start;
}

.board-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid #cfdaea;
  color: #10213c;
  font-size: 13px;
  font-weight: 900;
}

.board-status-line.blue { border-left: 4px solid #148ce0; }
.board-status-line.brown { border-left: 4px solid #9b6045; }

.board-status-line strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border: 1px solid #ccd8e8;
  border-radius: 6px;
  background: #fff;
}

.board-mini-row {
  display: grid;
  grid-template-columns: 0.78fr 1.35fr 0.95fr 0.92fr;
  min-height: 54px;
  border-bottom: 1px solid #cfdaea;
}

.board-mini-row > * {
  display: grid;
  align-content: center;
  padding: 8px;
  border-right: 1px solid #cfdaea;
  font-size: 12px;
  font-style: normal;
}

.board-mini-row em {
  color: #fff;
  background: #08a46d;
  font-weight: 900;
  text-align: center;
}

.program-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.program-showcase-card {
  display: grid;
  gap: 26px;
  min-height: 360px;
  padding: 30px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(21, 132, 209, 0.08), transparent 44%),
    var(--m-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.program-showcase-card.is-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(270px, 0.58fr) minmax(0, 1.42fr);
  align-items: stretch;
}

.program-showcase-card.reverse .program-showcase-copy {
  order: 2;
}

.program-showcase-card.compact {
  align-content: start;
}

.program-showcase-copy {
  display: grid;
  align-content: center;
}

.program-showcase-card.is-wide .program-showcase-copy {
  justify-items: center;
  text-align: center;
}

.program-showcase-card.is-wide .program-showcase-copy p {
  text-align: left;
}

.program-showcase-copy > span {
  width: max-content;
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(126, 200, 255, 0.28);
  border-radius: 999px;
  color: #7ec8ff;
  font-size: 12px;
  font-weight: 900;
}

.program-showcase-copy h3 {
  margin: 0 0 16px;
  color: var(--m-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: 0;
}

.program-showcase-card.compact .program-showcase-copy h3 {
  font-size: clamp(24px, 2.3vw, 34px);
}

.program-showcase-copy p {
  margin: 0;
  color: var(--m-text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.56;
}

.program-window {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  border: 1px solid #cbd8e8;
  border-radius: 8px;
  background: #eef3f8;
  color: #09203d;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.program-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 16px;
  color: #fff;
  background: #12233e;
  font-size: 13px;
  font-weight: 900;
}

.program-window-top span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.planner-real-grid {
  display: grid;
  grid-template-columns: minmax(102px, 0.82fr) repeat(5, minmax(96px, 1fr));
  min-width: 740px;
}

.planner-real-grid > * {
  min-height: 52px;
  padding: 8px 9px;
  border-right: 1px solid #cfdaea;
  border-bottom: 1px solid #cfdaea;
  font-size: 11px;
  line-height: 1.25;
}

.planner-real-grid .head {
  display: grid;
  place-items: center;
  background: #e5edf6;
  color: #0d2442;
  font-weight: 900;
  text-transform: uppercase;
}

.planner-real-grid .today {
  border-bottom: 3px solid #1669e8;
}

.driver-cell {
  display: grid;
  align-content: center;
  gap: 5px;
  background: #f8fbff;
}

.driver-cell b {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  background: #0b8bc2;
  font-size: 12px;
  text-transform: uppercase;
}

.driver-cell small {
  width: max-content;
  padding: 4px 7px;
  border-radius: 4px;
  background: #dfe8f3;
  font-weight: 900;
}

.plan-task {
  border-left: 4px solid #9fb7d5;
  background: #fff;
  font-weight: 900;
}

.plan-task small {
  display: block;
  margin-top: 5px;
  color: #415a79;
  font-weight: 800;
}

.plan-task.load {
  border-left-color: #dba516;
  background: #fff7d7;
}

.plan-task.unload {
  border-left-color: #00a86b;
  background: #e6fff2;
}

.plan-task.loop {
  border-left-color: #6658ff;
  background: #efeaff;
}

.plan-task.takeover {
  border-left-color: #0b8bc2;
  background: #e8f8ff;
}

.plan-off {
  display: grid;
  place-items: center;
  border-left: 4px solid #667085;
  background: #e9eef5;
  font-weight: 900;
}

.plan-off.workshop {
  border-left-color: #df3446;
  background: #fff0f2;
}

.plan-add {
  display: grid;
  place-items: center;
  color: #1463d8;
  background: #f8fbff;
  font-weight: 900;
}

.board-real-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #cfdaea;
  background: #f4f8fd;
  font-size: 13px;
  font-weight: 900;
}

.board-real-section span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #c9d6e8;
  border-radius: 7px;
  background: #fff;
}

.board-real-section .section-count {
  position: relative;
  min-width: 76px;
}

.section-count i,
.section-count strong {
  grid-area: 1 / 1;
  font-style: normal;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.section-count .count-after-one,
.section-count strong {
  opacity: 0;
  transform: translateY(4px);
}

.board-window.demo-moved-one:not(.demo-moved-two) .section-count .count-initial {
  opacity: 0;
  transform: translateY(-4px);
}

.board-window.demo-moved-one:not(.demo-moved-two) .section-count .count-after-one {
  opacity: 1;
  transform: translateY(0);
}

.board-window.demo-moved-two .section-count i {
  opacity: 0;
  transform: translateY(-4px);
}

.board-window.demo-moved-two .section-count strong {
  opacity: 1;
  transform: translateY(0);
}

.board-real-section.blue { border-left: 4px solid #268cff; }
.board-real-section.brown { border-left: 4px solid #9b6045; }
.board-real-section.green { border-left: 4px solid #05a66b; }
.board-real-section.violet { border-left: 4px solid #8757ff; }
.board-real-section.red { border-left: 4px solid #df3446; }

.board-real-row {
  display: grid;
  grid-template-columns: 0.82fr 1.58fr 0.86fr 0.95fr 0.9fr 0.9fr 1fr;
  border-bottom: 1px solid #cfdaea;
}

.board-real-row > * {
  display: grid;
  align-content: center;
  min-height: 40px;
  padding: 7px 8px;
  border-right: 1px solid #cfdaea;
  font-size: 11px;
  font-style: normal;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.board-real-row.head {
  background: #e5edf6;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-transfer-source {
  position: relative;
  z-index: 2;
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.board-transfer-target {
  display: none;
  position: relative;
  z-index: 2;
}

.board-window.demo-status-selected-one .transfer-one,
.board-window.demo-status-selected-two .transfer-two {
  filter: drop-shadow(0 10px 18px rgba(20, 99, 216, 0.2));
}

.board-window.demo-moved-one .transfer-one,
.board-window.demo-moved-two .transfer-two {
  display: none !important;
}

.board-window.demo-moved-one .target-one,
.board-window.demo-moved-two .target-two {
  display: grid !important;
  animation: boardTargetAppear 0.42s ease-out both;
}

.demo-fill-cell,
.demo-status-cell {
  position: relative;
  padding: 0 !important;
}

.demo-fill-cell > i,
.demo-fill-cell > strong,
.demo-status-cell > i,
.demo-status-cell > strong {
  grid-area: 1 / 1;
  align-self: center;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 7px 8px;
}

.demo-fill-cell > i,
.demo-status-cell > i {
  color: #38506f;
  font-style: normal;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.demo-fill-cell > strong,
.demo-status-cell > strong {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.board-window.demo-driver-selected-one .transfer-one .demo-fill-cell > i,
.board-window.demo-driver-selected-two .transfer-two .demo-fill-cell > i,
.board-window.demo-status-selected-one .transfer-one .demo-status-cell > i,
.board-window.demo-status-selected-two .transfer-two .demo-status-cell > i {
  opacity: 0;
}

.board-window.demo-driver-selected-one .transfer-one .demo-fill-cell > strong,
.board-window.demo-driver-selected-two .transfer-two .demo-fill-cell > strong,
.board-window.demo-status-selected-one .transfer-one .demo-status-cell > strong,
.board-window.demo-status-selected-two .transfer-two .demo-status-cell > strong {
  opacity: 1;
  transform: translateY(0);
}

.demo-status-cell > i,
.demo-status-cell > strong {
  display: grid;
  place-items: center;
  padding: 7px 8px;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.demo-cursor {
  position: absolute;
  z-index: 8;
  width: 18px;
  height: 24px;
  left: 62%;
  top: 42%;
  opacity: 0;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.board-window.demo-running .demo-cursor {
  animation: boardCursorClick 13.8s ease-in-out both;
}

.demo-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 0, 0 92%, 28% 70%, 44% 100%, 62% 91%, 45% 61%, 82% 61%);
}

.demo-cursor::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(20, 99, 216, 0.85);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
}

.board-window.demo-running .demo-cursor::after {
  animation: boardClickRipple 13.8s ease-in-out both;
}

.demo-dropdown {
  position: absolute;
  z-index: 7;
  display: grid;
  gap: 4px;
  width: 128px;
  padding: 6px;
  border: 1px solid #c7d5e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(9, 32, 61, 0.22);
  color: #09203d;
  font-size: 11px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.demo-dropdown span,
.demo-dropdown strong {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f2f6fb;
  font-style: normal;
  line-height: 1.05;
}

.demo-dropdown .muted {
  color: #5c6f8d;
  font-weight: 750;
}

.demo-dropdown .driver-choice,
.demo-dropdown .status-choice {
  color: #fff;
}

.demo-driver-menu {
  left: 46.5%;
  top: 43%;
}

.demo-driver-menu .choice-one {
  background: #d99a13;
}

.demo-driver-menu .choice-two {
  background: #58712d;
}

.demo-status-menu {
  right: 11.5%;
  top: 43%;
}

.demo-status-menu .status-choice {
  background: #9152df;
}

.board-window.demo-driver-open-two .demo-driver-menu,
.board-window.demo-status-open-two .demo-status-menu {
  top: 49%;
}

.board-window.demo-driver-open-one:not(.demo-driver-selected-one) .demo-driver-menu,
.board-window.demo-driver-open-two:not(.demo-driver-selected-two) .demo-driver-menu,
.board-window.demo-status-open-one:not(.demo-status-selected-one) .demo-status-menu,
.board-window.demo-status-open-two:not(.demo-status-selected-two) .demo-status-menu {
  opacity: 1;
  transform: translateY(0);
}

.board-window.demo-driver-hover-one .choice-one,
.board-window.demo-driver-hover-two .choice-two,
.board-window.demo-status-hover-one .status-choice,
.board-window.demo-status-hover-two .status-choice {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(20, 99, 216, 0.25);
}

.board-window.demo-moved-two .demo-dropdown {
  opacity: 0 !important;
  transform: translateY(-6px) !important;
}

@keyframes boardCursorClick {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0);
  }
  5% {
    opacity: 1;
    transform: translate(-72px, 8px);
  }
  10%, 15% {
    opacity: 1;
    transform: translate(-72px, 8px);
  }
  21%, 25% {
    opacity: 1;
    transform: translate(-66px, 50px);
  }
  31%, 36% {
    opacity: 1;
    transform: translate(158px, 8px);
  }
  42%, 46% {
    opacity: 1;
    transform: translate(152px, 72px);
  }
  53%, 57% {
    opacity: 1;
    transform: translate(-72px, 48px);
  }
  63%, 67% {
    opacity: 1;
    transform: translate(-66px, 92px);
  }
  73%, 77% {
    opacity: 1;
    transform: translate(158px, 48px);
  }
  83%, 87% {
    opacity: 1;
    transform: translate(152px, 112px);
  }
  98% {
    opacity: 0;
    transform: translate(152px, 112px);
  }
}

@keyframes boardClickRipple {
  0%, 18%, 28%, 39%, 49%, 60%, 70%, 80%, 90%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  23%, 44%, 65%, 85% {
    opacity: 1;
    transform: scale(1.8);
  }
}

@keyframes boardTargetAppear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.driver-color,
.board-real-row em {
  color: #fff;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.driver-color.teal { background: #0b8bc2; }
.driver-color.blue2 { background: #57b7d8; }
.driver-color.gold { background: #d99a13; }
.driver-color.moss { background: #58712d; }
.driver-color.orange { background: #ff693d; }
.driver-color.violet { background: #8b4ed7; }
.status-empty { background: #4a91e9; }
.status-assign { background: #9b6045; }
.status-pl { background: #08a46d; }
.status-foreign { background: #9152df; }
.status-repair { background: #df3446; }

.settings-window,
.reports-window,
.admin-window,
.alerts-window {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.settings-chip-row,
.settings-switches,
.report-row,
.report-filter-row,
.admin-metric-row,
.admin-company-row,
.admin-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfdbea;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}

.settings-chip-row {
  flex-wrap: wrap;
}

.settings-chip-row strong {
  width: 74px;
  color: #36516f;
  font-size: 11px;
  text-transform: uppercase;
}

.settings-chip-row span,
.settings-switches b,
.admin-actions-row span,
.report-filter-row span {
  padding: 6px 8px;
  border-radius: 5px;
  background: #e8eef6;
  font-weight: 900;
}

.settings-switches {
  justify-content: space-between;
}

.settings-switches b {
  color: #fff;
  background: #08a46d;
}

.report-row {
  display: grid;
  grid-template-columns: 54px 1fr 92px;
}

.report-row b {
  color: #1463d8;
}

.report-row em {
  color: #415a79;
  font-style: normal;
  font-weight: 900;
}

.report-filter-row {
  justify-content: space-between;
}

.report-route-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff8dc, #e6fff2);
}

.report-route-line::before {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, #dba516, #00a86b, #1463d8);
}

.report-route-line i {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1463d8;
  box-shadow: 0 0 0 1px #b8c8de;
}

.alert-card {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #cfdbea;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
}

.alert-card strong {
  color: #10213c;
  font-size: 15px;
}

.alert-card span {
  color: #405875;
  font-size: 12px;
  font-weight: 900;
}

.alert-card em {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.alert-card.urgent {
  border-left-color: #df3446;
}

.alert-card.urgent em {
  background: #df3446;
}

.alert-card.warning {
  border-left-color: #dba516;
}

.alert-card.warning em {
  color: #10213c;
  background: #f5cd48;
}

.alert-card.ok {
  border-left-color: #08a46d;
}

.alert-card.ok em {
  background: #08a46d;
}

.alert-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.alert-summary span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #cfdbea;
  border-radius: 7px;
  background: #e8eef6;
  font-size: 12px;
  font-weight: 900;
}

.admin-metric-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
}

.admin-metric-row b {
  color: #1463d8;
  font-size: 24px;
}

.admin-company-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
}

.admin-company-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #08764e;
  background: #dff8ec;
  font-weight: 900;
}

.admin-company-row em {
  color: #415a79;
  font-style: normal;
  font-weight: 900;
}

.admin-actions-row {
  justify-content: space-between;
}

.line-icon {
  color: var(--m-text);
  font-size: 44px;
  line-height: 1;
}

.product-card-large {
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding-bottom: 0;
}

.logistics-visual,
.road-visual,
.data-visual,
.team-visual,
.map-placeholder {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21, 132, 209, 0.23), rgba(217, 165, 25, 0.15)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    #18202a;
}

.logistics-visual {
  margin: 28px -44px 0;
  display: grid;
  place-items: center;
}

.logistics-visual > span {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.hex {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  background: rgba(8, 9, 13, 0.58);
}

.hex-a { left: 22%; top: 18%; }
.hex-b { right: 18%; top: 24%; }
.hex-c { left: 34%; bottom: 16%; }
.hex-d { right: 31%; bottom: 20%; }

.benefit-mosaic,
.benefit-grid-clean {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.benefit-card {
  padding: 40px;
}

/* Ujednolicone wyrównanie: wszystko do lewej w kartach korzyści */
.benefit-card > span {
  display: block;
  color: var(--m-text);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: left;
}

.benefit-card h3 {
  text-align: left;
}

.benefit-card p {
  text-align: left;
  line-height: 1.65;
}

.benefit-grid-clean {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.benefit-highlight {
  grid-column: span 2;
}

.benefit-grid-clean .benefit-wide {
  grid-column: span 3;
}

.benefit-card a {
  color: var(--m-text);
  text-decoration: none;
  font-weight: 900;
}

.benefit-large {
  grid-column: span 2;
  grid-row: span 2;
  padding-bottom: 0;
}

.benefit-split,
.benefit-wide {
  grid-column: span 2;
}

.benefit-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 0;
}

.benefit-split > div:last-child {
  padding: 36px;
}

.benefit-wide {
  padding-bottom: 0;
}

.savings-visual,
.mini-logistics-graphic,
.mini-shield-graphic,
.mini-timeline-graphic {
  margin-top: 28px;
  min-height: 132px;
  border: 1px solid var(--m-line-soft);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 28%, rgba(29, 209, 138, 0.24), transparent 27%),
    linear-gradient(135deg, rgba(21, 132, 209, 0.2), rgba(217, 165, 25, 0.14)),
    #121820;
}

.savings-visual {
  display: grid;
  place-items: center;
  text-align: center;
}

.savings-visual strong {
  display: block;
  color: var(--m-green);
  font-size: 34px;
}

.savings-visual span {
  color: var(--m-text);
  font-weight: 900;
}

.mini-logistics-graphic,
.mini-timeline-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mini-logistics-graphic i,
.mini-timeline-graphic i {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-logistics-graphic::before,
.mini-timeline-graphic::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.9), transparent);
}

.mini-shield-graphic {
  position: relative;
}

.mini-shield-graphic::before {
  content: "✓";
  position: absolute;
  inset: 28px auto auto 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(29, 209, 138, 0.72);
  border-radius: 28px 28px 36px 36px;
  color: var(--m-green);
  font-size: 38px;
  font-weight: 900;
}

.road-visual,
.team-visual {
  margin: 44px -40px 0;
}

.team-visual {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 280px;
  gap: 22px;
  align-items: center;
  min-height: 330px;
  padding: 30px;
}

.shared-screen {
  overflow: hidden;
  border: 1px solid rgba(205, 220, 237, 0.34);
  border-radius: 10px;
  background: #eef3f8;
  color: #10213c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.shared-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: #10213c;
  font-size: 13px;
  font-weight: 900;
}

.shared-screen-top span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b3d2a;
  background: #bdf5dc;
  font-size: 11px;
}

.shared-row {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 0.9fr;
  min-height: 46px;
  border-bottom: 1px solid #cbd8e8;
}

.shared-row > * {
  display: grid;
  align-content: center;
  padding: 8px 10px;
  border-right: 1px solid #cbd8e8;
  font-size: 12px;
}

.shared-row em {
  color: #fff;
  background: #08a46d;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.shared-row:nth-child(2) em {
  background: #9b6045;
}

.shared-row:nth-child(4) em {
  background: #9152df;
}

.team-user {
  position: absolute;
  right: 30px;
  width: 245px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #7ec8ff;
  border-radius: 10px;
  background: rgba(8, 9, 13, 0.74);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.team-user::before {
  content: "";
  position: absolute;
  left: -92px;
  top: 50%;
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.9));
}

.team-user strong,
.team-user span {
  display: block;
}

.team-user strong {
  color: #fff;
  font-size: 13px;
}

.team-user span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.team-user.user-a {
  top: 32px;
}

.team-user.user-b {
  top: 132px;
  border-left-color: #1dd18a;
}

.team-user.user-c {
  bottom: 32px;
  border-left-color: #d9a519;
}

.data-visual {
  min-height: 276px;
  border-radius: 7px 0 0 7px;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.card-actions a {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--m-line);
  border-radius: 5px;
}

.demo-cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
}

.demo-cta-card,
.marketing-demo-form {
  padding: 48px;
}

.demo-glow-box {
  display: grid;
  place-items: center;
  max-width: 420px;
  min-height: 72px;
  margin: 34px auto 0;
  border: 1px solid rgba(126, 200, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 20%, rgba(29, 209, 138, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(21, 132, 209, 0.92), rgba(91, 83, 255, 0.62));
  box-shadow: 0 0 0 1px rgba(126, 200, 255, 0.16), 0 24px 70px rgba(21, 132, 209, 0.35);
  font-size: 19px;
  font-weight: 950;
  text-decoration: none;
}

.register-arrow-box {
  grid-template-columns: auto auto;
  gap: 12px;
}

.register-arrow-box span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #06101f;
  background: #ffffff;
  animation: registerArrowPulse 1.6s ease-in-out infinite;
}

@keyframes registerArrowPulse {
  0%,
  100% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(4px);
  }
}

.demo-cta-card {
  text-align: center;
}

.demo-cta-card h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 400;
}

.demo-support-copy {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--m-muted) !important;
}

.demo-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.marketing-demo-form {
  color: var(--m-text);
  background:
    linear-gradient(180deg, rgba(18, 12, 21, 0.98), rgba(12, 8, 15, 0.98)),
    var(--m-panel);
}

.marketing-demo-form h3 {
  margin-top: 0;
  font-size: 26px;
  color: var(--m-text);
}

.marketing-demo-form input,
.marketing-demo-form textarea {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--m-text);
  background: rgba(255, 255, 255, 0.07);
}

.marketing-demo-form .demo-form-group {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.marketing-demo-form input::placeholder,
.marketing-demo-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.marketing-demo-form .form-note {
  border-color: rgba(126, 200, 255, 0.34);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(21, 132, 209, 0.12);
}

.marketing-demo-form .form-note,
.marketing-demo-form .demo-form-group > span,
.marketing-demo-form .consent-row {
  color: var(--m-text);
}

.marketing-demo-form .consent-row a {
  color: #7ec8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-section-dark {
  text-align: center;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  color: var(--m-text);
  font-weight: 900;
}

.pricing-dark-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 58px 30px 34px;
  text-align: left;
}

.pricing-dark-card > span {
  display: block;
  text-align: center;
  color: var(--m-text);
  font-size: 20px;
  font-weight: 800;
}

.price-options {
  display: grid;
  gap: 16px;
  margin: 26px 0 34px;
}

.price-options div {
  padding: 18px;
  border: 1px solid var(--m-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.price-options small,
.price-options em {
  display: block;
  color: var(--m-muted);
  font-style: normal;
  font-weight: 800;
}

.price-options strong {
  display: block;
  color: var(--m-text);
  font-size: 54px;
  font-weight: 400;
}

.pricing-dark-card ul {
  display: grid;
  gap: 18px;
  margin: 0 0 36px;
  padding: 0 0 0 34px;
  color: var(--m-text);
  font-weight: 800;
}

.pricing-dark-card li::marker {
  content: "✓  ";
}

.faq-section {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 22px 26px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--m-text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--m-muted, rgba(255,255,255,.4));
  transition: transform .2s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  color: var(--m-text);
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0 0;
  opacity: .85;
}

/* Sekcja FAQ — lewa kolumna wyśrodkowana pionowo */
.faq-section > div:first-child {
  align-self: start;
  position: sticky;
  top: 80px;
}
.faq-section > div:first-child h2 {
  margin-bottom: 16px;
}
.faq-section > div:first-child p {
  margin: 0 0 24px;
}

.contact-section {
  align-items: start;
}

/* Sekcja kontaktowa — nagłówek z marginem */
.contact-copy h2 {
  margin-bottom: 12px;
}
.contact-copy p {
  margin: 0 0 20px;
  max-width: 480px;
}

.contact-method {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.business-identity-card {
  display: grid;
  gap: 8px;
  margin: 30px 0 6px;
  padding: 20px;
  border: 1px solid rgba(29, 150, 255, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(29, 150, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.business-identity-card strong,
.business-identity-card span {
  color: var(--m-text);
}

.business-identity-card strong {
  font-size: 18px;
}

.business-identity-card small {
  color: var(--m-muted);
  line-height: 1.55;
}

.contact-method strong,
.contact-method a {
  color: var(--m-text);
}

.contact-method small {
  color: var(--m-muted);
  font-weight: 700;
}

.map-placeholder {
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(221, 226, 232, 0.96)),
    repeating-linear-gradient(35deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 38px);
}

.real-map {
  width: 100%;
  border: 0;
}

.map-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(221, 226, 232, 0.96)),
    repeating-linear-gradient(35deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 38px);
}

.map-pin-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  color: #10213c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.osm-tile-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 360px;
  filter: saturate(0.88) contrast(1.02);
}

.osm-tile-map img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.map-marker {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -100%) rotate(45deg);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #d92f45;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.map-attribution {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #10213c;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
}

.map-placeholder span {
  position: absolute;
  width: 160px;
  height: 2px;
  background: #c6ccd5;
}

.map-placeholder span:nth-child(1) { left: 8%; top: 28%; transform: rotate(18deg); }
.map-placeholder span:nth-child(2) { right: 9%; top: 44%; transform: rotate(-22deg); }
.map-placeholder span:nth-child(3) { left: 22%; bottom: 24%; transform: rotate(-9deg); }
.map-placeholder span:nth-child(4) { right: 28%; bottom: 32%; transform: rotate(31deg); }

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 36px;
  padding: 72px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(31, 215, 124, 0.62);
  color: var(--m-text);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.newsletter-form input {
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid var(--m-line);
  color: var(--m-text);
  background: transparent;
}

.newsletter-form small {
  grid-column: 1 / -1;
  color: var(--m-text);
  font-size: 12px;
  font-weight: 800;
}

.marketing-footer {
  padding: 72px clamp(22px, 5vw, 72px) 38px;
  border-top: 1px solid var(--m-line-soft);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 34px;
  max-width: 1140px;
  margin: 0 auto 72px;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 13px;
}

.footer-columns strong,
.footer-bottom {
  color: var(--m-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--m-line-soft);
}

.marketing-legal {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid var(--m-line-soft);
}

.marketing-legal .section-title h2 {
  color: var(--m-text);
}

.marketing-legal .section-title p {
  color: var(--m-muted);
}

.legal-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 28px;
}

.legal-doc-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--m-line-soft);
  border-radius: 8px;
  color: var(--m-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.legal-doc-card span {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(126, 200, 255, 0.28);
  border-radius: 999px;
  color: #7ec8ff;
  font-size: 12px;
  font-weight: 900;
}

.legal-doc-card h3 {
  margin: 0;
  font-size: 24px;
}

.legal-doc-card p {
  margin: 0;
  color: var(--m-muted);
  line-height: 1.65;
}

.legal-doc-card a {
  align-self: end;
  color: #7ec8ff;
  font-weight: 900;
}

.marketing-legal details {
  background: var(--m-panel);
  color: var(--m-text);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(126, 200, 255, 0.82);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(9, 20, 38, 0.98), rgba(12, 10, 22, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  color: #ffffff;
  font-size: 18px;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: rgba(248, 251, 255, 0.86);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .dark-outline-btn {
  border-color: rgba(248, 251, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-actions .blue-cta-btn {
  min-width: 128px;
  color: #fff;
}

.legal-page-body {
  min-height: 100vh;
  margin: 0;
  --m-text: #f8fbff;
  --m-muted: rgba(248, 251, 255, 0.72);
  --m-line-soft: rgba(255, 255, 255, 0.16);
  color: #f8fbff;
  background: #070509;
  font-family: var(--font);
}

.legal-page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #7ec8ff;
  font-weight: 900;
}

.legal-page-card {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--m-line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.legal-page-card h1 {
  margin: 0 0 18px;
  color: #f8fbff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.legal-page-card h2 {
  margin: 36px 0 14px;
  color: #f8fbff;
  font-size: clamp(22px, 3vw, 32px);
}

.legal-page-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.legal-page-note {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(249, 162, 59, 0.35);
  border-radius: 8px;
  color: #ffe8bd;
  background: rgba(249, 162, 59, 0.12);
  line-height: 1.55;
}

.legal-table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  padding: 0;
  border: 1px solid var(--m-line-soft);
  border-radius: 7px;
  overflow: hidden;
}

.legal-table-row span {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
}

.legal-placeholder {
  padding: 12px 14px;
  border-left: 3px solid #f9a23b;
  color: #ffe8bd !important;
  background: rgba(249, 162, 59, 0.1);
}

@media (max-width: 1000px) {
  .marketing-nav {
    grid-template-columns: 1fr;
  }

  .marketing-nav nav,
  .marketing-nav-actions {
    flex-wrap: wrap;
  }

  .capabilities-grid,
  .faq-section,
  .contact-section,
  .demo-cta-section,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .benefit-mosaic {
    grid-template-columns: 1fr;
  }

  .benefit-grid-clean {
    grid-template-columns: 1fr;
  }

  .benefit-highlight,
  .benefit-grid-clean .benefit-wide {
    grid-column: auto;
  }

  .capability-card-with-preview {
    grid-template-columns: 1fr;
  }

  .program-showcase-grid {
    grid-template-columns: 1fr;
  }

  .seo-summary-section,
  .seo-two-column {
    grid-template-columns: 1fr;
  }

  .seo-card-grid {
    grid-template-columns: 1fr;
  }

  .legal-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-showcase-card.is-wide,
  .program-showcase-card.reverse {
    grid-template-columns: 1fr;
  }

  .program-showcase-card.reverse .program-showcase-copy {
    order: 0;
  }

  .program-window {
    overflow-x: auto;
  }

  .team-visual {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .team-user {
    position: static;
    width: auto;
  }

  .team-user::before {
    display: none;
  }

  .benefit-large,
  .benefit-split,
  .benefit-wide {
    grid-column: auto;
  }

  .benefit-split {
    grid-template-columns: 1fr;
  }

  .data-visual {
    border-radius: 7px 7px 0 0;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .marketing-hero,
  .marketing-section,
  .newsletter-section,
  .marketing-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-visual-panel {
    min-height: 520px;
  }

  .hero-visual-overlay {
    padding: 78px 18px;
  }

  .dashboard-card,
  .route-line {
    display: none;
  }

  .dark-feature-card,
  .product-card-large,
  .benefit-card,
  .program-showcase-card,
  .demo-cta-card,
  .marketing-demo-form {
    padding: 28px;
  }

  .program-showcase-copy h3 {
    font-size: 30px;
  }

  .seo-hero h1 {
    font-size: 40px;
  }

  .seo-hero p {
    font-size: 17px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .legal-doc-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-analytics-metrics,
  .admin-analytics-columns {
    grid-template-columns: 1fr;
  }
}


.tlc-timeline-panel {
  border-left: 5px solid #1559bd;
}

.tlc-timeline-panel .section-head {
  align-items: start;
  gap: 18px;
}

.tlc-timeline-panel .settings-actions {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 96px;
  width: min(520px, 100%);
  align-items: stretch;
  gap: 8px;
}

.tlc-timeline-panel .settings-actions button {
  min-height: 36px;
}

.tlc-timeline-panel .settings-actions button:nth-of-type(1),
.tlc-timeline-panel .settings-actions button:nth-of-type(2),
.tlc-timeline-panel .settings-actions button:nth-of-type(3) {
  grid-column: 1 / -1;
}

.tlc-timeline-panel select {
  min-height: 36px;
  border: 1px solid #b7c6da;
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.tlc-timeline-validation {
  margin: 12px 0;
}

.tlc-validation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #b9d5c8;
  background: #f3fbf7;
  color: #1f5137;
  font-size: 13px;
  font-weight: 800;
}

.tlc-validation.is-risk {
  border-color: #f3c46b;
  background: #fff8e6;
  color: #704a00;
}

.tlc-validation ul {
  flex-basis: 100%;
  margin: 4px 0 0 18px;
  padding: 0;
}

.tlc-collector-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 6px;
  color: #53647b;
  font-size: 12px;
  font-weight: 800;
}

.tlc-collector-pill,
.tlc-timeline-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf6ff;
  color: #1559bd;
  font-weight: 900;
}

.tlc-collector-pill.is-running {
  background: #fff4db;
  color: #805400;
}

.tlc-collector-pill.is-risk,
.tlc-collector-status .is-risk {
  background: #fff0ed;
  color: #a33a2d;
}

.tlc-timeline-chart {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.tlc-timeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tlc-timeline-summary span {
  background: #f1f5f9;
  color: #31445f;
  font-size: 12px;
}

.tlc-timeline-scroll {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tlc-hour-head {
  display: grid;
  grid-template-columns: 170px repeat(24, minmax(38px, 1fr));
  min-width: 1082px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.tlc-hour-head::before {
  content: "";
}

.tlc-hour-head span {
  text-align: center;
}

.tlc-day-row {
  display: grid;
  grid-template-columns: 170px minmax(912px, 1fr);
  align-items: center;
  min-width: 1082px;
  gap: 8px;
}

.tlc-day-label {
  color: #21324a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.tlc-day-label strong {
  display: block;
}

.tlc-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
  color: #52657e;
  font-size: 10px;
  font-weight: 850;
}

.tlc-day-summary span {
  display: inline-flex;
  padding: 1px 4px;
  border-radius: 3px;
  background: #eef4fb;
}

.tlc-day-summary .is-inferred {
  background: #fff1f2;
  color: #9f1239;
}

.tlc-day-track {
  position: relative;
  height: 54px;
  border: 1px solid #d1ddeb;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(21, 89, 189, .04), rgba(21, 89, 189, .01)),
    #f8fafc;
  overflow: hidden;
}

.tlc-day-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(100, 116, 139, .26);
}

.tlc-segment {
  position: absolute;
  top: 6px;
  bottom: 6px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 4px;
  min-width: 6px;
  align-items: center;
  justify-content: center;
  place-items: center;
  border-radius: 4px;
  color: #10213c;
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.tlc-segment b {
  line-height: 1;
}

.tlc-segment small {
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: .9;
}

.tlc-segment em {
  grid-column: 1 / -1;
  color: inherit;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  opacity: .95;
  text-transform: uppercase;
}

.tlc-segment.is-driving { background: #57c7ef; }
.tlc-segment.is-work { background: #f2b544; }
.tlc-segment.is-available { background: #b783ef; }
.tlc-segment.is-rest { background: #ef6461; color: #fff; }
.tlc-segment.is-unknown { background: #cbd5e1; }
.tlc-segment.is-weak {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 6px, rgba(255,255,255,0) 6px 12px);
}
.tlc-segment.is-inferred-rest {
  background: #e96f6c;
  outline: 2px solid rgba(127, 29, 29, .22);
}
.tlc-segment.is-split-period small::before {
  content: "caly ";
  font-weight: 800;
  opacity: .9;
}

.tlc-now-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: 2px;
  background: #111827;
  box-shadow: 0 0 0 1px rgba(255,255,255,.65);
}

.tlc-now-marker b {
  position: absolute;
  left: 5px;
  top: 2px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #111827;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.tlc-no-data {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7b8797;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.tlc-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.tlc-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tlc-timeline-legend span::before {
  content: "";
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: #cbd5e1;
}

.tlc-timeline-legend .is-driving::before { background: #55c3ee; }
.tlc-timeline-legend .is-work::before { background: #f2b544; }
.tlc-timeline-legend .is-available::before { background: #c97cf4; }
.tlc-timeline-legend .is-rest::before { background: #ef6461; }
.tlc-timeline-legend .is-inferred::before {
  background: repeating-linear-gradient(135deg, #e96f6c 0 6px, #fff 6px 10px);
  border: 1px solid rgba(127, 29, 29, .22);
}

@media (max-width: 760px) {
  .tlc-timeline-panel .settings-actions {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LANDING v2 — animacje, hero, ticker, live board, stats
   ═══════════════════════════════════════════════════════════════ */

/* ── Cząsteczki tła ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFly 18s infinite ease-in-out;
}
.p1  { width:6px;  height:6px;  background:#1463d8; top:12%; left:8%;  animation-delay:0s;  animation-duration:20s; }
.p2  { width:4px;  height:4px;  background:#00a676; top:28%; left:82%; animation-delay:3s;  animation-duration:16s; }
.p3  { width:8px;  height:8px;  background:#60a5fa; top:60%; left:18%; animation-delay:6s;  animation-duration:22s; }
.p4  { width:5px;  height:5px;  background:#a78bfa; top:75%; left:72%; animation-delay:2s;  animation-duration:19s; }
.p5  { width:3px;  height:3px;  background:#34d399; top:45%; left:55%; animation-delay:9s;  animation-duration:14s; }
.p6  { width:7px;  height:7px;  background:#f59e0b; top:20%; left:45%; animation-delay:5s;  animation-duration:25s; }
.p7  { width:4px;  height:4px;  background:#1463d8; top:85%; left:35%; animation-delay:11s; animation-duration:17s; }
.p8  { width:6px;  height:6px;  background:#00a676; top:5%;  left:65%; animation-delay:7s;  animation-duration:21s; }

@keyframes particleFly {
  0%   { opacity:0; transform:translate(0,0) scale(1); }
  15%  { opacity:.7; }
  50%  { opacity:.4; transform:translate(40px,-60px) scale(1.3); }
  85%  { opacity:.6; }
  100% { opacity:0; transform:translate(-20px,40px) scale(.8); }
}
.route-beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,99,216,.35), transparent);
  animation: beamSlide 8s infinite linear;
}
.beam-1 { width:40%; top:22%; left:-42%; animation-delay:0s; }
.beam-2 { width:30%; top:55%; left:-32%; animation-delay:3s;  animation-duration:11s; }
.beam-3 { width:50%; top:78%; left:-52%; animation-delay:6s;  animation-duration:14s; }
@keyframes beamSlide {
  0%   { transform:translateX(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:.6; }
  100% { transform:translateX(250vw); opacity:0; }
}

/* ── Hero v2 ── */
.marketing-hero-v2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px,5vw,72px);
  align-items: center;
  width: min(1220px,calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px,9vw,120px) 0 clamp(40px,6vw,80px);
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(20,99,216,.12);
  border: 1px solid rgba(20,99,216,.25);
  color: #1e6ef5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.marketing-dark .hero-eyebrow { background:rgba(96,165,250,.1); border-color:rgba(96,165,250,.25); color:#60a5fa; }
.hero-v2-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px,4.5vw,62px);
  line-height: 1.06;
  color: #08132a;
  letter-spacing: -.01em;
}
.marketing-dark .hero-v2-copy h1 { color:#fff; }
.hero-v2-copy > p {
  margin: 0 0 28px;
  font-size: clamp(16px,1.8vw,20px);
  line-height: 1.6;
  color: #3a506b;
  max-width: 540px;
}
.marketing-dark .hero-v2-copy > p { color:rgba(255,255,255,.75); }
.hero-v2-actions { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:22px; }

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg,#1463d8,#0a4cb0);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(20,99,216,.4);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.hero-cta-primary:hover { transform:translateY(-2px); box-shadow:0 12px 36px rgba(20,99,216,.55); background:linear-gradient(135deg,#1b72ef,#1155cc); }
.hero-cta-primary span { font-size:20px; transition:transform .18s; }
.hero-cta-primary:hover span { transform:translateX(4px); }

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid rgba(20,99,216,.35);
  color: #1463d8;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s;
}
.marketing-dark .hero-cta-ghost { border-color:rgba(255,255,255,.22); color:rgba(255,255,255,.85); }
.hero-cta-ghost:hover { background:rgba(20,99,216,.08); border-color:rgba(20,99,216,.6); }
.marketing-dark .hero-cta-ghost:hover { background:rgba(255,255,255,.07); }

.hero-trust-row { display:flex; flex-wrap:wrap; gap:18px; font-size:13px; font-weight:700; color:#4a6580; }
.marketing-dark .hero-trust-row { color:rgba(255,255,255,.5); }

/* ── Live board w hero ── */
.hero-v2-visual { position:relative; }
.live-board-wrap {
  background: #0d1b2e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(20,99,216,.15);
  animation: heroCardFloat 6s ease-in-out infinite;
}
@keyframes heroCardFloat {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}
.live-board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #060f1d;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.live-board-dots { display:flex; gap:5px; }
.live-board-dots i { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.15); }
.live-board-dots i:nth-child(1) { background:#ff5f57; }
.live-board-dots i:nth-child(2) { background:#febc2e; }
.live-board-dots i:nth-child(3) { background:#28c840; }
.live-board-topbar > span { font-size:12px; color:rgba(255,255,255,.5); font-weight:700; }
.live-badge {
  display: flex; align-items:center; gap:5px;
  padding: 3px 10px; border-radius:999px;
  background:rgba(0,166,118,.15); border:1px solid rgba(0,166,118,.3);
  font-size:11px; font-weight:900; color:#34d399; letter-spacing:.06em;
}
.live-dot {
  width:7px; height:7px; border-radius:50%;
  background:#34d399;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}
.live-board-body { padding:0; }
.live-section {
  display:flex; align-items:center; gap:10px;
  padding:7px 14px;
  font-size:11px; font-weight:900; letter-spacing:.06em;
  border-left:3px solid;
}
.live-section-blue   { border-color:#2f80ed; background:rgba(47,128,237,.08); color:#60a5fa; }
.live-section-brown  { border-color:#8a533d; background:rgba(138,83,61,.08);  color:#c4845e; }
.live-section-green  { border-color:#009a57; background:rgba(0,154,87,.08);   color:#34d399; }
.live-section-violet { border-color:#9150d8; background:rgba(145,80,216,.08); color:#c084fc; }
.live-count {
  margin-left:auto; min-width:20px; height:20px; padding:0 6px;
  border-radius:6px; background:rgba(255,255,255,.1); color:rgba(255,255,255,.7);
  font-size:11px; display:inline-flex; align-items:center; justify-content:center;
  transition:background .3s, color .3s;
}
.live-row {
  display:grid;
  grid-template-columns: 90px 1fr 80px 96px 86px;
  align-items:center; gap:6px;
  padding:8px 14px;
  border-bottom:1px solid rgba(255,255,255,.04);
  font-size:11px;
  transition:background .4s;
}
.live-row:hover { background:rgba(255,255,255,.03); }
.live-row strong { color:#e2eaf5; font-weight:900; font-size:12px; }
.live-load  { color:rgba(255,255,255,.55); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live-date  { color:rgba(255,255,255,.4); font-size:10px; text-align:right; }
.live-driver { font-weight:800; font-size:11px; }
.driver-orange { color:#f3a51c; }
.driver-teal   { color:#43c6b7; }
.driver-violet { color:#c084fc; }
.driver-blue2  { color:#60a5fa; }
.driver-moss   { color:#8bd11f; }
.live-status {
  display:inline-flex; align-items:center; justify-content:center;
  padding:3px 8px; border-radius:6px;
  font-size:10px; font-weight:900; letter-spacing:.04em; white-space:nowrap;
  transition:background .4s, color .4s;
}
.s-empty   { background:rgba(47,128,237,.15);  color:#60a5fa; }
.s-assign  { background:rgba(138,83,61,.2);    color:#c4845e; }
.s-pl      { background:rgba(0,154,87,.15);    color:#34d399; }
.s-foreign { background:rgba(145,80,216,.15);  color:#c084fc; }
.live-row-highlight { background:rgba(20,99,216,.06); }
.live-toast {
  position:absolute; bottom:12px; right:12px; left:12px;
  padding:10px 14px; border-radius:10px;
  background:rgba(20,99,216,.92); color:#fff;
  font-size:12px; font-weight:700;
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.15);
  opacity:0; transform:translateY(8px);
  transition:opacity .35s, transform .35s;
  pointer-events:none;
}
.live-toast.is-visible { opacity:1; transform:translateY(0); }

/* ── Ticker aktywności ── */
.activity-ticker {
  position:relative; overflow:hidden; z-index:1;
  background:rgba(20,99,216,.06);
  border-top:1px solid rgba(20,99,216,.12);
  border-bottom:1px solid rgba(20,99,216,.12);
  padding:10px 0;
}
.ticker-track {
  display:flex; gap:48px; white-space:nowrap;
  animation:tickerScroll 28s linear infinite;
}
.ticker-track span { font-size:13px; font-weight:700; color:#1e4d8c; flex-shrink:0; }
.marketing-dark .ticker-track span { color:rgba(96,165,250,.8); }
@keyframes tickerScroll {
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}
.activity-ticker:hover .ticker-track { animation-play-state:paused; }

/* ── Statystyki ── */
.stats-section {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px; text-align:center;
}
.stat-card {
  padding:28px 16px; border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  transition:transform .22s, border-color .22s;
}
.stat-card:hover { transform:translateY(-4px); border-color:rgba(96,165,250,.3); }
.stat-num {
  display:block;
  font-size:clamp(36px,5vw,58px); font-weight:900;
  line-height:1; margin-bottom:6px;
  background:linear-gradient(135deg,#60a5fa,#34d399);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.stat-card > span { font-size:13px; color:rgba(255,255,255,.55); font-weight:700; }

/* ── Cennik v2 ── */
.billing-toggle-v2 {
  display:inline-flex; margin:0 auto 28px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px; padding:4px; gap:4px;
}
.btoggle-btn {
  padding:9px 22px; border-radius:8px; border:none;
  background:transparent; color:rgba(255,255,255,.55);
  font-weight:800; font-size:14px; cursor:pointer;
  transition:background .2s, color .2s;
  display:flex; align-items:center; gap:8px;
}
.btoggle-btn.is-active { background:#1463d8; color:#fff; box-shadow:0 3px 12px rgba(20,99,216,.4); }
.btoggle-badge {
  padding:2px 8px; border-radius:999px;
  background:rgba(52,211,153,.2); color:#34d399;
  font-size:11px; font-weight:900;
}
.pricing-cards-wrap { display:flex; justify-content:center; }
.pricing-dark-card-v2 { max-width:520px; margin:0 auto; text-align:left; }
.price-display { margin:16px 0 22px; }
.price-amount { display:block; font-size:clamp(28px,4vw,42px); color:#fff; font-weight:900; }
.price-amount small { font-size:16px; font-weight:700; color:rgba(255,255,255,.55); }
.price-display em { color:rgba(255,255,255,.45); font-size:13px; font-style:normal; }
.pricing-features { list-style:none; margin:0 0 22px; padding:0; display:grid; gap:10px; }
.pricing-features li { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.8); font-size:14px; }
.pricing-features li span { color:#34d399; font-weight:900; }
.pricing-note-small { text-align:center; color:rgba(255,255,255,.35); font-size:12px; margin:10px 0 0; }

/* ── Scroll reveal ── */
.reveal-up {
  opacity:0;
  transform:translateY(32px);
  transition:opacity .65s ease, transform .65s ease;
}
.reveal-up.is-visible { opacity:1; transform:translateY(0); }
.reveal-delay { transition-delay:.18s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .marketing-hero-v2 { grid-template-columns:1fr; }
  .hero-v2-visual { display:none; }
  .stats-section { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 560px) {
  .hero-v2-actions { flex-direction:column; }
  .hero-cta-primary, .hero-cta-ghost { justify-content:center; }
}

/* ── Geofence bazy ──────────────────────────────────────────── */
.geofence-map {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 14px;
  overflow: hidden;
  background: #e8e8e8;
}
.geofence-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.geofence-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.geofence-label input[type="range"] {
  width: 160px;
  accent-color: #1463d8;
}
#geofenceRadiusValue {
  font-weight: 700;
  color: #1463d8;
  min-width: 52px;
}

/* ── Geofence alert banners ────────────────────────────────────────────────── */
.geofence-alert-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.geofence-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff7ed;
  border: 1.5px solid #f97316;
  border-left: 5px solid #f97316;
  border-radius: 8px;
  flex-wrap: wrap;
}
.geofence-alert-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.geofence-alert-text {
  flex: 1;
  min-width: 180px;
  font-size: 13px;
  line-height: 1.45;
}
.geofence-alert-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.geofence-alert-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.geofence-split-btn {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.geofence-split-btn:hover { background: #ea6c10; }
.geofence-ignore-btn {
  background: transparent;
  border: 1.5px solid #f97316;
  color: #f97316;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.geofence-ignore-btn:hover { background: #fff2e8; }

/* ── Silnik alertów floty: poziomy ważności ────────────────────────────────── */
.fleet-alert--critical {
  background: #fef2f2;
  border-color: #dc2626;
  border-left-color: #dc2626;
}
.fleet-alert--warning {
  background: #fff7ed;
  border-color: #f97316;
  border-left-color: #f97316;
}
.fleet-alert--info {
  background: #eff6ff;
  border-color: #3b82f6;
  border-left-color: #3b82f6;
}
.fleet-alert-suggestion {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-muted, #555);
  font-style: italic;
}
.fleet-alert-call {
  display: inline-flex;
  align-items: center;
  background: #16a34a;
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.fleet-alert-call:hover { background: #15803d; }
.dest-dict-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dest-dict-table th,
.dest-dict-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
.dest-dict-table th {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.trailer-cell-highlight {
  background: #fef9c3 !important;
  box-shadow: inset 0 0 0 2px #f59e0b;
  animation: trailerRowPulse 1s ease-in-out 0s 3;
}
@keyframes trailerRowPulse {
  0%, 100% { background: #fef9c3; }
  50% { background: #fde68a; }
}
.wrong-trailer-warn {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #991b1b;
}

/* ── Geofence split modal ──────────────────────────────────────────────────── */
#geofenceSplitModal,
#wrongTrailerModal,
#learnDestModal,
#addReturnModal,
#assignSuggestModal,
#activityConfirmModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#geofenceSplitModal[hidden],
#wrongTrailerModal[hidden],
#learnDestModal[hidden],
#addReturnModal[hidden],
#assignSuggestModal[hidden],
#activityConfirmModal[hidden] { display: none; }
#learnDestModal .geofence-split-modal-box { max-width: 580px; max-height: 88vh; overflow-y: auto; }
#assignSuggestModal .geofence-split-modal-box { max-width: 560px; max-height: 90vh; overflow-y: auto; }
#assignSuggestModal input[type="datetime-local"],
#assignSuggestModal input[type="number"] {
  display: block; width: 100%; margin-top: 4px; padding: 7px 10px;
  border: 1.5px solid var(--border, #ddd); border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.assign-loading, .assign-empty { font-size: 13px; color: var(--text-muted, #666); margin: 6px 0; }
.assign-earliest {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 10px 0;
}
.assign-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.assign-proposal { border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 10px 12px; }
.assign-proposal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.assign-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent, #2563eb);
  color: #fff; font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.assign-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.assign-proposal-meta { font-size: 12px; color: var(--text-muted, #666); margin: 4px 0 0; }
.assign-warns { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: #9a3412; }
.assign-proposal-actions { margin-top: 8px; }
.assign-badge { font-size: 11px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.assign-badge--ok { background: #dcfce7; color: #166534; }
.assign-badge--warn { background: #fef9c3; color: #854d0e; }
.assign-badge--danger { background: #fee2e2; color: #991b1b; }
.assign-badge--muted { background: #f1f5f9; color: #475569; }
.learn-dest-waypoints { margin: 6px 0 12px; }
.learn-dest-wp-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.learn-dest-wp-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  border-left: 3px solid #94a3b8; background: #f8fafc;
  padding: 6px 8px; margin-bottom: 6px; border-radius: 6px;
}
.learn-dest-wp-row .wp-place { flex: 1 1 44%; }
.learn-dest-wp-row .wp-address { flex: 1 1 44%; }
.learn-dest-wp-row select { flex: 1 1 30%; min-width: 110px; }
.learn-dest-wp-row .wp-handoff-lbl { font-size: 12px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.learn-dest-wp-row .wp-pin { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 5px; cursor: pointer; font-size: 13px; padding: 2px 6px; }
.learn-dest-wp-row .wp-coord { font-size: 13px; min-width: 14px; }
.learn-dest-wp-row .wp-remove { margin-left: auto; background: transparent; border: none; color: #b91c1c; cursor: pointer; font-size: 15px; }
.activity-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--bg-card, #fff); }
.activity-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.activity-card-head strong { font-size: 15px; }
.activity-meta { font-size: 12.5px; color: var(--text-muted, #666); }
.activity-now { font-size: 12.5px; color: #1e40af; margin: 4px 0 8px; }
.activity-stops { display: flex; flex-direction: column; gap: 3px; }
.activity-stop { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 3px 6px; border-radius: 5px; }
.activity-stop-time { color: var(--text-muted, #666); white-space: nowrap; min-width: 105px; }
.activity-stop-loc { flex: 1; }
.activity-stop--work { background: #ecfdf5; }
.activity-stop--work .activity-stop-loc { font-weight: 600; }
.activity-stop--break,
.activity-stop--short { opacity: .6; }
.activity-stop--base { color: #64748b; }
.activity-stop--uncertain { background: #fff7ed; }
.activity-uncertain { color: #b45309; font-size: 11.5px; }
.activity-route-badge { display: inline-block; background: #dcfce7; color: #15803d; border-radius: 4px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.activity-stop-loc-dim { color: #9ca3af; font-size: 11.5px; }
.activity-spec { font-size: 12.5px; color: #334155; background: #f1f5f9; border-radius: 6px; padding: 5px 10px; margin: 4px 0 6px; }
.activity-ai { font-size: 12.5px; color: #3730a3; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 6px; padding: 6px 10px; margin: 4px 0 6px; }
.activity-ai-reason { color: #555; font-style: italic; margin-top: 2px; }
.activity-ai-diverge { color: #b91c1c; font-weight: 600; margin-top: 3px; }
.activity-add-dict { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; border-radius: 5px; padding: 1px 7px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.activity-add-dict:hover { background: #e0e7ff; }
.activity-loading { display: flex; align-items: center; gap: 14px; padding: 24px; color: var(--text-muted, #555); font-size: 14px; }
.spinner { width: 26px; height: 26px; border: 3px solid #d1d5db; border-top-color: #1463d8; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
#activityMapModal, #mapPickModal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 2100; }
#activityMapModal[hidden], #mapPickModal[hidden] { display: none; }
#mapPickMap { flex: 1; width: 100%; cursor: crosshair; }
.learn-dest-coord { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.learn-dest-coord-status { font-size: 12px; color: #15803d; font-weight: 600; }
.activity-map-box { background: var(--bg-card, #fff); border-radius: 12px; width: 92%; max-width: 900px; height: 80vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.25); }
.activity-map-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
#activityMap { flex: 1; width: 100%; }
.dest-dict-route { color: #475569; font-size: 12px; }
.dest-dict-route .handoff { color: #b45309; font-weight: 600; }
.dest-dict-section { margin-bottom: 18px; border-radius: 10px; padding: 12px 14px; }
.dest-dict-section--todo { background: #fff7ed; border: 1px solid #fed7aa; }
.dest-dict-section--pending { background: #eff6ff; border: 1px solid #bfdbfe; }
.dest-dict-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dest-dict-section-head strong { font-size: 15px; }
.dest-dict-hint { margin: 0 0 10px; font-size: 12px; color: #64748b; }
.dest-dict-todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dest-dict-todo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #f1f5f9; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.dest-dict-section--pending .dest-dict-table { background: transparent; }
.dest-dict-section--pending .dest-dict-table td { border-color: #dbeafe; }
.learn-dest-hint {
  margin: 0 0 14px;
  padding: 9px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12.5px;
  color: #1e40af;
}
.geofence-split-modal-box {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  padding: 28px 28px 22px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.geofence-split-modal-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.geofence-split-modal-box p {
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 16px;
}
.geofence-split-modal-box label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.geofence-split-modal-box select,
.geofence-split-modal-box input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
.geofence-split-modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ── Option C: row-delete confirm dialog ───────────────────────────────────── */
#geofenceDeleteModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}
#geofenceDeleteModal[hidden] { display: none; }
.geofence-delete-modal-box {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  padding: 28px 28px 22px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.geofence-delete-modal-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.geofence-delete-modal-box p {
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 20px;
}
.geofence-delete-modal-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== MAPA GPS ===== */
.map-view {
  padding: 0 !important;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line, #e2e8f0);
  gap: 12px;
  z-index: 10;
  height: 42px;
  box-sizing: border-box;
}
.map-toolbar-left { display: flex; align-items: center; gap: 12px; }
.map-toolbar-right { display: flex; align-items: center; gap: 8px; }
.gps-map-status {
  font-size: 12.5px;
  color: var(--muted, #7a8a9e);
}
.map-layout {
  display: flex;
  width: 100%;
  height: calc(100vh - 120px);
}
#gpsMapContainer {
  flex: 1;
  min-width: 0;
  min-height: 400px;
}
.gps-fleet-panel {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.gps-fleet-search {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.gps-fleet-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--input-bg, #fff);
  color: var(--text);
}
.gps-fleet-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.gps-fleet-group-header {
  padding: 6px 10px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, #888);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1;
}
.gps-fleet-item {
  padding: 6px 10px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .12s;
}
.gps-fleet-item:hover {
  background: var(--hover-bg, rgba(0,0,0,.05));
}
.gps-fleet-item.active {
  background: var(--accent-soft, rgba(37,99,235,.08));
  border-left-color: var(--accent, #2563eb);
}
.gps-fleet-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gps-fleet-engine {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gps-fleet-engine.on  { background: #22c55e; box-shadow: 0 0 4px #22c55e88; }
.gps-fleet-engine.off { background: #ef4444; }
.gps-fleet-engine.unk { background: #94a3b8; }
.gps-fleet-reg {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.gps-fleet-expand {
  font-size: 10px;
  color: var(--text-muted, #888);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.gps-fleet-driver {
  font-size: 11px;
  color: var(--text-muted, #666);
  margin-top: 2px;
  padding-left: 14px;
}
.gps-fleet-location {
  font-size: 10px;
  color: var(--text-muted, #888);
  margin-top: 1px;
  padding-left: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gps-fleet-tlc {
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--hover-bg, rgba(0,0,0,.04));
  border-radius: 6px;
  font-size: 11px;
  display: none;
}
.gps-fleet-tlc.open { display: block; }
.gps-fleet-tlc-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.gps-fleet-tlc-row:last-child { border-bottom: none; }
.gps-fleet-tlc-row span:first-child { color: var(--text-muted, #888); }
.gps-fleet-tlc-loading {
  text-align: center;
  color: var(--text-muted, #888);
  font-size: 11px;
  padding: 4px 0;
}
.gps-route-panel {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid var(--line, #e2e8f0);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gps-route-panel h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #10213c;
}
.route-field { display: flex; flex-direction: column; gap: 4px; }
.route-field label { font-size: 11px; font-weight: 700; color: var(--muted, #666); text-transform: uppercase; }
.route-field input {
  padding: 7px 10px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 6px;
  font-size: 13px;
}
.route-vehicle-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted, #666);
  padding: 4px 0;
  user-select: none;
}
.route-params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.route-params-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--muted, #666);
  font-weight: 700;
}
.route-params-grid input {
  padding: 5px 8px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 5px;
  font-size: 12px;
}
.route-ors-hint {
  font-size: 11px;
  color: var(--muted, #888);
  margin: 0;
}
.route-ors-hint .link-btn {
  background: none;
  border: none;
  color: #1463d8;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}
.route-result { font-size: 13px; }
.route-loading { color: var(--muted, #666); }
.route-error { color: #c0392b; }
.route-summary {
  background: #f0f7ff;
  border: 1px solid #b3d0f7;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.6;
}
.route-summary strong { font-size: 18px; color: #1463d8; }
.route-summary small { color: var(--muted, #666); }
/* GPS markers */
.gps-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
}
.gps-marker svg {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45));
}
.gps-marker-driver {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: rgba(20,40,80,0.82);
  border-radius: 4px;
  padding: 1px 4px;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  display: block;
}
.gps-marker-label {
  font-size: 10px;
  font-weight: 800;
  color: #10213c;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 1px 4px;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
/* Popup */
.gps-popup { min-width: 190px; font-size: 13px; line-height: 1.7; }
.gps-popup strong { display: block; font-size: 14px; margin-bottom: 4px; }
.gps-pop-row { color: #555; font-size: 12px; }
.gps-pop-row code { font-size: 11px; background: #f0f4f8; padding: 1px 4px; border-radius: 3px; }
.gps-engine { font-size: 11px; display: block; margin-bottom: 2px; }
/* Legend */
.gps-map-legend {
  background: rgba(255,255,255,0.92);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Integracje settings */
.integrations-grid { display: flex; flex-direction: column; gap: 14px; }
.integration-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafd;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
}
.integration-label { display: flex; flex-direction: column; gap: 3px; }
.integration-label strong { font-size: 13px; color: #10213c; }
.integration-label span { font-size: 12px; color: var(--muted, #666); }
.integration-label a { color: #1463d8; }
.ors-key-input {
  width: 280px;
  padding: 6px 10px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
}

/* Konfigurator kierowców */
.driver-config-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.driver-config-filter-bar .text-input {
  flex: 1;
  min-width: 160px;
}
.driver-config-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.driver-config-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  background: #f8fafd;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  padding: 10px 14px;
}
.driver-config-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.driver-config-info .text-input {
  flex: 1;
}
.driver-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
@media (max-width: 900px) {
  .driver-config-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .driver-config-info { grid-column: 1 / -1; }
}

/* 🛰️ Onboarding GPS — formularz konfiguracji + tabele podglądu floty (import z SATIS). */
.gps-config-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.gps-config-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.gps-config-form input, .gps-config-form select { padding: 8px 10px; border: 1px solid var(--border, #ccd3dd); border-radius: 8px; font: inherit; }
.gps-review { margin-top: 14px; border-top: 1px dashed var(--border, #ccd3dd); padding-top: 12px; }
/* Wszystko jedno POD drugim, w rozsądnej szerokości (nie rozciąga się na cały monitor). */
.gps-review-grid { display: flex; flex-direction: column; gap: 22px; max-width: 680px; }
.gps-review-col { min-width: 0; }
.gps-review-col h4 { margin: 4px 0 8px; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gps-toggle-all { font-size: 12px; font-weight: 600; color: #0087c7; background: transparent; border: 1px solid #0087c7; border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.gps-toggle-all:hover { background: rgba(0, 135, 199, .08); }
/* table-layout: fixed — kolumny trzymają 100% kontenera i nie rozpychają się do treści (koniec z rozjazdem w prawo). */
/* min-width:0 nadpisuje globalne `table { min-width:1560px }` (linia ~2879), które rozpychało tabelę w prawo. */
.gps-table { width: 100%; max-width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.gps-table th, .gps-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border, #eceff3); vertical-align: middle; }
.gps-table th { font-size: 11px; text-transform: uppercase; color: var(--muted, #7a8698); font-weight: 700; letter-spacing: .02em; }
/* Kolumna checkboxa — wąska i wyśrodkowana (koniec z pustą przestrzenią). */
.gps-table th:first-child, .gps-table td:first-child { width: 36px; text-align: center; padding-left: 4px; padding-right: 4px; }
.gps-table td.muted { color: var(--muted, #7a8698); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gps-table input[type="text"], .gps-table input[type="tel"], .gps-table select { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--border, #ccd3dd); border-radius: 6px; font: inherit; }
.gps-table tbody tr:hover { background: rgba(0, 135, 199, .04); }
/* Mała szara etykieta ID lokalizatora GPS pod nazwą pojazdu. */
.gps-devid { font-size: 11px; color: var(--muted, #7a8698); margin-top: 3px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: -.01em; }
.gps-devid-none { color: #c26a2b; font-family: inherit; font-style: italic; }

/* 💬 Dwukierunkowy WhatsApp — badge + modal rozmów z kierowcami. */
.wa-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; background: #dc2f55; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; }
.wa-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wa-modal-card { background: var(--card, #fff); width: min(920px, 100%); height: min(640px, 92vh); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.wa-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border, #e6eaf0); font-size: 15px; }
.wa-close { background: transparent; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted, #7a8698); }
.wa-modal-body { flex: 1; display: grid; grid-template-columns: 280px 1fr; min-height: 0; }
.wa-thread-list { border-right: 1px solid var(--border, #e6eaf0); overflow-y: auto; }
.wa-thread-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; border-bottom: 1px solid var(--border, #eef1f5); background: transparent; cursor: pointer; }
.wa-thread-item:hover { background: rgba(0,135,199,.05); }
.wa-thread-item.active { background: rgba(0,135,199,.10); }
.wa-thread-item.unread strong { font-weight: 800; }
.wa-ti-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.wa-ti-last { font-size: 12px; color: var(--muted, #7a8698); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #dc2f55; }
.wa-kind { display: inline-block; margin-top: 5px; padding: 1px 7px; border-radius: 999px; color: #fff; font-size: 10.5px; font-weight: 700; }
.wa-thread-view { display: flex; flex-direction: column; min-height: 0; }
.wa-thread-head { padding: 10px 14px; border-bottom: 1px solid var(--border, #eef1f5); }
.wa-thread-head small { color: var(--muted, #7a8698); font-family: ui-monospace, monospace; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.02); }
.wa-msg { max-width: 78%; padding: 7px 11px; border-radius: 12px; font-size: 13.5px; }
.wa-msg span { display: block; white-space: pre-wrap; word-break: break-word; }
.wa-msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.wa-msg.in { align-self: flex-start; background: #fff; border: 1px solid var(--border, #e6eaf0); }
.wa-msg.out { align-self: flex-end; background: #d9fdd3; }
.wa-reply { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border, #eef1f5); }
.wa-reply input { flex: 1; padding: 9px 12px; border: 1px solid var(--border, #ccd3dd); border-radius: 999px; font: inherit; }
.wa-window-closed { font-size: 12.5px; color: #c26a2b; }
.wa-empty { padding: 24px 16px; color: var(--muted, #7a8698); font-size: 13px; text-align: center; }
@media (max-width: 640px) { .wa-modal-body { grid-template-columns: 1fr; } .wa-thread-list { max-height: 180px; } }

/* WhatsApp — auto-odpowiedzi toggle + miniatury CMR/dokumentów. */
.wa-auto-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; margin-left: auto; margin-right: 12px; cursor: pointer; color: var(--muted, #7a8698); }
.wa-auto-toggle input { cursor: pointer; }
.wa-media-img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; margin-top: 4px; cursor: pointer; }
.wa-media-doc { display: inline-block; margin-top: 4px; padding: 6px 12px; background: rgba(0,0,0,.05); border-radius: 8px; text-decoration: none; color: inherit; font-size: 13px; }
.wa-media-doc:hover { background: rgba(0,0,0,.10); }
