:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e6f4f1;
  --brand-soft-2: #cfe9e4;
  --brand-ring: rgba(15, 118, 110, .16);
  --accent: #e8913a;
  --ink: #1f2b33;
  --muted: #66757f;
  --line: #e3e9e7;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(16, 42, 38, .04), 0 8px 24px rgba(16, 42, 38, .05);
  --shadow-hover: 0 2px 4px rgba(16, 42, 38, .05), 0 14px 32px rgba(16, 42, 38, .09);
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0f766e;
  --bs-link-color-rgb: 15, 118, 110;
  --bs-link-hover-color: #115e59;
  --bs-link-hover-color-rgb: 17, 94, 89;
  --bs-primary-text-emphasis: #115e59;
  --bs-primary-bg-subtle: #e6f4f1;
  --bs-primary-border-subtle: #a7d8cf;
  --bs-focus-ring-color: rgba(15, 118, 110, .25);
  --bs-body-color: #1f2b33;
  --bs-border-color: #e3e9e7;
  --bs-secondary-color: #66757f;
  --bs-font-sans-serif: "Cairo", system-ui, sans-serif;
  --bs-body-font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --nav-h: 66px;
  --rail-w: 92px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter: clamp(.75rem, .5rem + 1.2vw, 1.5rem);
}

body {
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--safe-b);
  overflow-x: hidden;
}

/* WCAG 2.4.7 / 2.4.11: clear focus that is never hidden behind the sticky bar */
:focus-visible {
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px;
}

html {
  scroll-padding-top: 90px;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 2000;
  background: #fff;
  padding: .5rem 1rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: .5rem;
}

/* WCAG 2.5.8: every control at least 44px (stricter than the 24px minimum) */
.btn,
.form-control,
.form-select,
.chip,
.choice,
.appbar-btn {
  min-height: 44px;
}

.btn {
  border-radius: 14px;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: #0d4f4a;
  --bs-btn-active-border-color: #0d4f4a;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 15, 118, 110;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .18);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand-soft-2);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 15, 118, 110;
}

.btn-success {
  --bs-btn-bg: #15803d;
  --bs-btn-border-color: #15803d;
  --bs-btn-hover-bg: #166534;
  --bs-btn-hover-border-color: #166534;
}

.btn-outline-secondary {
  --bs-btn-color: #44525b;
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: #eef2f1;
  --bs-btn-hover-border-color: #cdd6d3;
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: #e3e9e7;
  --bs-btn-active-border-color: #cdd6d3;
}

.btn-light {
  --bs-btn-bg: #eef2f1;
  --bs-btn-border-color: #eef2f1;
  --bs-btn-hover-bg: #e3e9e7;
  --bs-btn-hover-border-color: #e3e9e7;
}

.btn-link { --bs-btn-color: var(--brand); --bs-btn-hover-color: var(--brand-dark); }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.spinner-border.text-primary { color: var(--brand) !important; }
.progress { --bs-progress-bar-bg: var(--brand); background: #e6ecea; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem var(--brand-ring); }
.form-range::-webkit-slider-thumb { background-color: var(--brand); }
.form-range::-moz-range-thumb { background-color: var(--brand); }
.nav-tabs, .nav-pills { --bs-nav-link-color: var(--muted); --bs-nav-link-hover-color: var(--brand); --bs-nav-pills-link-active-bg: var(--brand); }
.nav-tabs .nav-link.active { color: var(--brand-dark); font-weight: 700; }

.btn-xl {
  min-height: 56px;
  padding: .7rem 1.6rem;
  font-size: 1.15rem;
  border-radius: 16px;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-width: 1.5px;
  border-color: #dbe3e0;
  background-color: #fcfdfd;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.form-control-xl {
  min-height: 60px;
  font-size: 1.25rem;
  border-radius: 14px;
}

.form-label {
  font-weight: 700;
  margin-bottom: .35rem;
}

.req {
  color: #dc2626;
}

.opt {
  color: var(--muted);
  font-weight: 400;
  font-size: .9em;
}

.mode-simple .adv-only {
  display: none !important;
}

.big-emoji {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: .5rem;
  border-radius: 28px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 2.4rem;
  line-height: 1;
}

.big-emoji .bi::before { vertical-align: 0; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: calc(.6rem + var(--safe-t)) var(--gutter) .6rem;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.appbar-title {
  flex: 1;
  margin: 0;
  font-size: clamp(1.05rem, .9rem + .6vw, 1.25rem);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  min-width: 44px;
  justify-content: center;
  transition: background-color .18s ease, border-color .18s ease;
}

.appbar-btn i {
  font-size: 1.2rem;
  color: var(--brand);
}

.appbar-btn.help i {
  color: #6d5bd0;
}

.appbar-btn.shield i {
  color: var(--accent);
}

.appbar-btn.shield.ok i {
  color: #15803d;
}

.appbar-btn:hover {
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
}

@media (max-width: 575.98px) {
  .appbar-btn span {
    display: none;
  }
}

/* ---------- Boot ---------- */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  text-align: center;
  padding: 2rem;
}

#app {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  outline: none;
}

/* ---------- Welcome ---------- */
.welcome-card {
  max-width: 560px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.welcome-card h2 {
  font-weight: 800;
  margin: .5rem 0 1rem;
}

.welcome-logo {
  max-height: 80px;
  max-width: 200px;
}

.welcome-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}

.welcome-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  transition: all .3s;
}

.welcome-dots span.on {
  background: var(--brand);
  width: 32px;
  border-radius: 8px;
}

.lang-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.lang-btn {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: .8rem .5rem;
  font-weight: 800;
  font-size: 1.25rem;
  min-height: 84px;
}

.lang-btn .flag {
  display: block;
  font-size: 1.4rem;
  color: var(--brand);
}

.lang-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--brand-ring);
}

/* Directional icons (arrows) point the reading way in both languages */
[dir="rtl"] .flip {
  display: inline-block;
  transform: scaleX(-1);
}

.lang-mark {
  font-size: 1.5rem;
  line-height: 1.2;
}

.lang-tag {
  display: inline-block;
  margin-inline-start: .3rem;
  padding: 0 .4rem;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 800;
}

/* ---------- Home ---------- */
.hello h2 {
  font-weight: 800;
}

.hello {
  margin-bottom: 1.25rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.tile {
  --tone: var(--brand);
  --tint: var(--brand-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .25rem;
  min-height: 176px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tile:hover,
.tile:focus-visible {
  color: var(--ink);
  transform: translateY(-3px);
  border-color: var(--tint);
  box-shadow: var(--shadow-hover);
}

.tile-info { --tone: #0e7490; --tint: #e2f3f7; }
.tile-warm { --tone: #c2620f; --tint: #fcefe2; }
.tile-violet { --tone: #6d5bd0; --tint: #efecfb; }
.tile-green { --tone: #15803d; --tint: #e5f4ea; }
.tile-indigo { --tone: #3f5bb5; --tint: #e8edf9; }

.tile-primary {
  border-color: transparent;
  background: linear-gradient(140deg, #14a394 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 118, 110, .25);
}

.tile-primary:hover,
.tile-primary:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(15, 118, 110, .32);
}

.tile-emoji {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: auto;
  border-radius: 16px;
  background: var(--tint);
  color: var(--tone);
  font-size: 1.55rem;
  line-height: 1;
}

.tile-primary .tile-emoji {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.tile-title {
  margin-top: 1rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.tile-sub {
  color: var(--muted);
  font-size: .95rem;
}

.tile-primary .tile-sub {
  color: rgba(255, 255, 255, .85);
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  background: #fdf6ea;
  border: 1px solid #f3d9a8;
}

.banner.info {
  background: var(--brand-soft);
  border-color: var(--brand-soft-2);
}

.banner .banner-text {
  flex: 1;
  min-width: 200px;
  font-weight: 600;
}

.recent-item {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  min-height: 60px;
}

.recent-item:hover {
  color: var(--ink);
  box-shadow: var(--shadow-hover);
  outline: 1px solid var(--brand-soft-2);
}

.recent-item .who {
  flex: 1;
  font-weight: 700;
}

/* ---------- Wizard ---------- */
.wizard-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  gap: .5rem;
  counter-reset: none;
}

.wizard-steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  position: relative;
  color: var(--muted);
  font-weight: 700;
  cursor: default;
}

.wizard-steps li::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-end: 50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  z-index: 0;
}

.wizard-steps li:first-child::before {
  display: none;
}

.wizard-steps .num {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  font-size: 1.15rem;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wizard-steps li.done,
.wizard-steps li.current {
  color: var(--ink);
}

.wizard-steps li.done .num {
  background: var(--brand-soft);
  border-color: var(--brand-soft-2);
  color: var(--brand-dark);
}

.wizard-steps li.done::before,
.wizard-steps li.current::before {
  background: var(--brand-soft-2);
}

.wizard-steps li.current .num {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px var(--brand-ring);
}

.wizard-steps li.reachable {
  cursor: pointer;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  animation: pop .25s ease-out;
}

.step-title {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  font-weight: 800;
}

.hint {
  background: #fdf6ea;
  border-radius: 12px;
  padding: .6rem .9rem;
  color: #7a4a12;
}

.wizard-nav {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .75rem 0;
  background: linear-gradient(transparent, var(--bg) 30%);
}

.wizard-nav #btnNext {
  margin-inline-start: auto;
}

.wizard-nav .btn {
  white-space: nowrap;
}

.save-status {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 600;
}

.save-status.saved { color: #15803d; }
.save-status.error { color: #dc2626; }

/* Items */
.item-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .9rem;
  background: #fafcfb;
}

.item-card.sortable-ghost {
  opacity: .4;
  background: var(--brand-soft);
}

.item-head {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.item-head input {
  flex: 1 1 auto;
  min-width: 0;
}

.step-card {
  container: step / inline-size;
}

@container step (max-width: 520px) {
  .item-head {
    flex-wrap: wrap;
  }

  .item-head .item-tools {
    margin-inline-start: auto;
  }

  .item-head input {
    order: 3;
    flex-basis: 100%;
  }
}

.item-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.item-tools {
  display: flex;
  gap: .25rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.15rem;
}

.drag-handle {
  cursor: grab;
  color: #9aa8a4;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
  margin-top: .7rem;
  align-items: end;
}

@container step (max-width: 460px) {
  .item-grid {
    grid-template-columns: 1fr;
  }
}

@container step (min-width: 461px) and (max-width: 600px) {
  .item-grid {
    grid-template-columns: 1fr 1fr;
  }

  .item-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .wizard-nav .btn-xl {
    padding-inline: 1rem;
  }
}

.qty-box {
  display: flex;
  align-items: stretch;
  gap: .25rem;
}

.qty-box input {
  text-align: center;
  min-width: 0;
}

.qty-box .btn {
  width: 44px;
  flex-shrink: 0;
  padding: 0;
  font-size: 1.3rem;
}

.line-total {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: .35rem .75rem;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.line-total small {
  color: var(--muted);
}

.line-total b {
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.quick-btn {
  min-height: 44px;
  min-width: 64px;
  padding: .2rem .8rem;
  border: 1.5px dashed var(--brand-soft-2);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
}

.quick-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

/* Step 3 */
.total-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: 22px;
  background: linear-gradient(140deg, #14a394 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(15, 118, 110, .22);
}

.total-hero strong {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-words {
  margin: .6rem 0 0;
  padding: .4rem .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  font-weight: 600;
  text-align: center;
}

.hero-words:empty {
  display: none;
}

.nif-warn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: #fdf6ea;
  border: 1px solid #f3d9a8;
  font-weight: 600;
}

.nif-warn[hidden] {
  display: none;
}

.nif-warn span {
  flex: 1 1 220px;
}

.pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 48px;
  padding: .4rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  transition: border-color .18s ease, background-color .18s ease;
}

.pay-chip span {
  font-size: 1.3rem;
}

.pay-chip:hover { border-color: var(--brand-soft-2); }

.pay-chip.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.company-only {
  display: none;
}

.client-company .company-only {
  display: block;
}

.currency-note {
  padding: .5rem .8rem;
  border-radius: 12px;
  background: var(--brand-soft);
  font-weight: 700;
}

/* ---------- Currencies ---------- */
.currency-pick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-bottom: 1rem;
  padding: .6rem .8rem;
  border-radius: 14px;
  background: var(--brand-soft);
}

.currency-pick .form-select {
  flex: 1 1 220px;
  width: auto;
}

.hero-approx {
  display: block;
  margin-top: .25rem;
  font-weight: 700;
  opacity: .85;
}

.stat-approx {
  display: block;
  font-weight: 700;
  color: var(--muted);
}

.cur-mark {
  font-size: 1.15rem;
  line-height: 1.6;
  white-space: nowrap;
}

.cur-list {
  max-height: 340px;
  overflow-y: auto;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.cur-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.cur-item:last-child {
  border-bottom: 0;
}

.cur-item.on {
  background: #f2f9f7;
}

.cur-item .form-check-input {
  flex: none;
  margin: 0;
  width: 1.3em;
  height: 1.3em;
}

.cur-flag {
  font-size: 1.3rem;
}

.cur-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.cur-sym {
  flex: none;
  font-weight: 700;
  color: var(--brand-dark);
}

.rate-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 360px;
  overflow-y: auto;
}

.rate-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr auto;
  align-items: center;
  gap: .5rem;
}

.rate-cur,
.rate-base {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Car rental ---------- */
.rent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .75rem;
  margin-top: .6rem;
}

@container step (max-width: 460px) {
  .rent-grid { grid-template-columns: 1fr; }
}

.rent-note {
  margin-top: .5rem;
  padding: .45rem .7rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
}

.rent-note:empty { display: none; }
.rent-note.ok { background: #dcfce7; color: #166534; }
.rent-note.info { background: #e0f2fe; color: #075985; }
.rent-note.warn { background: #fef3c7; color: #92400e; }
.rent-note .btn { margin-top: .25rem; font-weight: 700; }

.rent-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.rent-bar .rent-note { margin-top: 0; flex: 1 1 260px; }

.fleet-card.archived { opacity: .6; }

.plate {
  display: inline-block;
  margin-top: .2rem;
  padding: .05rem .5rem;
  border: 1.5px solid #33424b;
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  letter-spacing: .05em;
  font-size: .9rem;
}

.route-prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.route-prices li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .3rem .5rem;
  border-radius: 10px;
  background: #f8fafc;
}

.route-price-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 260px;
  overflow-y: auto;
}

.route-price-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: .5rem;
}

.rent-unit {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}

.rent-unit .form-select {
  max-width: 220px;
}

/* ---------- Customization ---------- */
.cust-tabs {
  flex-wrap: wrap;
}

.cust-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 420px;
  overflow-y: auto;
}

.cust-group {
  margin: .6rem 0 .1rem;
  font-size: .85rem;
  font-weight: 800;
  color: var(--muted);
}

.cust-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .6rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cust-row.archived {
  opacity: .55;
  background: #f8fafc;
}

.cust-main {
  flex: 1 1 auto;
  min-width: 0;
}

.cust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .2rem;
}

.icon-btn-spacer {
  width: 44px;
  flex: none;
}

.num-block {
  padding: .75rem;
  margin-bottom: .75rem;
  border: 2px solid var(--line);
  border-radius: 14px;
}

.icon-picks {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.icon-pick {
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.icon-pick.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.price-cur-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 46%);
  gap: .5rem;
}

.breakdown {
  margin: 0;
}

.breakdown > div {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
}

.breakdown dd {
  margin: 0;
  font-weight: 700;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .8rem;
  font-size: 1.8rem;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  min-height: 84px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.choice > .bi {
  font-size: 1.5rem;
  color: var(--muted);
  transition: color .18s ease;
}

.choice:hover { border-color: var(--brand-soft-2); }
.choice.active > .bi { color: var(--brand); }

.choice span {
  font-size: 1.05rem;
  font-weight: 700;
}

.choice.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.choice-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-row.three .choice span {
  font-size: .95rem;
}

.pro-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: #f6f4fd;
  border: 1px solid #e2ddf7;
  text-align: start;
}

.link-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: var(--brand-soft);
  font-weight: 700;
}

.link-box[hidden] {
  display: none;
}

.size-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.size-row .form-range {
  flex: 1 1 auto;
  min-width: 0;
  height: 2rem;
}

.size-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  font-size: 1.2rem;
}

.size-out {
  flex: 0 0 auto;
  min-width: 7.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--brand-dark);
}

.sign-size-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  margin-top: .5rem;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: #fff;
}

.sign-size-demo img {
  width: auto;
  object-fit: contain;
}

@media (max-width: 420px) {
  .size-out { min-width: 0; font-size: .9rem; }
}

/* Step 4 */
.done-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin-top: 1.25rem;
}

.done-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.2rem .5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 110px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.done-btn span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
}

.done-btn:hover {
  border-color: var(--brand-soft-2);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Preview */
.preview-panel {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.preview-stage {
  position: relative;
  overflow: hidden;
  direction: ltr;
  background: #f5f6fa;
}

.preview-stage iframe {
  display: block;
  width: 880px;
  border: 0;
  transform-origin: top left;
}

/* ---------- List & trash ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: .9rem;
  margin-bottom: 1.25rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat-emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.35rem;
}

.stat:nth-child(2) .stat-emoji { background: #e8edf9; color: #3f5bb5; }
.stat:nth-child(3) .stat-emoji { background: #e5f4ea; color: #15803d; }
.stat:nth-child(4) .stat-emoji { background: #fcefe2; color: #c2620f; }

.stat small {
  display: block;
  color: var(--muted);
}

.stat b {
  font-size: 1.3rem;
  font-weight: 800;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search {
  position: relative;
  flex: 1 1 260px;
}

.search i {
  position: absolute;
  top: 50%;
  inset-inline-start: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
}

.search input {
  padding-inline-start: 2.6rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .3rem 1rem;
  font-weight: 700;
  color: #44525b;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.chip:hover { border-color: var(--brand-soft-2); color: var(--brand-dark); }

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}

.inv-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  transition: box-shadow .2s ease;
}

.inv-card:hover,
.cat-card:hover { box-shadow: var(--shadow-hover); }

.meta .bi,
.status-pill .bi { opacity: .75; }

.inv-card.paid { border-top-color: #16a34a; }
.inv-card.unpaid { border-top-color: #f59e0b; }
.inv-card.draft { border-top-color: #94a3b8; }
.inv-card.cancelled { border-top-color: #dc2626; opacity: .75; }
.inv-card.sent { border-top-color: #7c3aed; }
.inv-card.accepted { border-top-color: #16a34a; }
.inv-card.refused { border-top-color: #dc2626; opacity: .8; }
.inv-card.expired { border-top-color: #94a3b8; opacity: .8; }
.inv-card.converted { border-top-color: #2563eb; }

/* ---------- Document tabs (invoices / proformas) ---------- */
.doc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  max-width: 520px;
  margin-bottom: 1.25rem;
  padding: .35rem;
  background: #e9eeec;
  border-radius: 18px;
}

.doc-tab {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.doc-tab.active {
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--brand-dark);
}

/* ---------- Catalogue ---------- */
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--line);
  transition: box-shadow .2s ease;
}

.cat-card .who {
  font-size: 1.15rem;
  font-weight: 800;
}

.cat-emoji {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e2f3f7;
  color: #0e7490;
  font-size: 1.25rem;
  line-height: 1;
}

.cat-card.service .cat-emoji { background: #efecfb; color: #6d5bd0; }
.fleet-card .cat-emoji { background: #e8edf9; color: #3f5bb5; }
.fleet-card.route .cat-emoji { background: #e5f4ea; color: #15803d; }
.pick-tile .cat-emoji { margin-bottom: .2rem; }
.pick-tile .bi-star-fill { color: #d4a017; }

.cat-price {
  font-weight: 800;
  color: var(--brand-dark);
}

.min-w-0 { min-width: 0; }

.icon-btn.fav i { color: #94a3b8; }
.icon-btn.fav.on i { color: #f59e0b; }

.auto-badge {
  align-self: flex-start;
  padding: .1rem .6rem;
  border-radius: 999px;
  background: #fef9c3;
  color: #854d0e;
  font-size: .8rem;
  font-weight: 700;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: .6rem;
}

.pick-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-height: 120px;
  padding: .8rem .5rem;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.pick-tile:hover { border-color: var(--brand-soft-2); }

.pick-tile.picked {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.pick-name {
  font-weight: 800;
  line-height: 1.3;
}

.pick-price {
  font-size: .9rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.pick-count {
  position: absolute;
  top: -10px;
  inset-inline-end: -6px;
  min-width: 36px;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.product-form .choice {
  font-size: 1.5rem;
  min-height: 72px;
}
.inv-card.cancelled .amount { text-decoration: line-through; color: var(--muted); }

.inv-card .who {
  font-size: 1.2rem;
  font-weight: 800;
}

.inv-card .amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.inv-card .meta {
  color: var(--muted);
  font-size: .9rem;
}

.inv-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.status-pill {
  border: 0;
  border-radius: 999px;
  padding: .25rem .9rem;
  font-weight: 700;
  min-height: 36px;
}

.status-pill.paid { background: #dcfce7; color: #166534; }
.status-pill.unpaid { background: #fef3c7; color: #92400e; }
.status-pill.draft { background: #e2e8f0; color: #334155; }
.status-pill.cancelled { background: #fee2e2; color: #991b1b; }
.status-pill.sent { background: #ede9fe; color: #5b21b6; }
.status-pill.accepted { background: #dcfce7; color: #166534; }
.status-pill.refused { background: #fee2e2; color: #991b1b; }
.status-pill.expired { background: #e2e8f0; color: #475569; }
.status-pill.converted { background: var(--brand-soft); color: #1e40af; }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* ---------- Settings ---------- */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.set-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.set-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.card-head > .bi {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.1rem;
}

.card-head > .bi::before { vertical-align: 0; }

.doc-tab .bi { opacity: .7; margin-inline-end: .15rem; }
.doc-tab.active .bi { opacity: 1; color: var(--brand); }

.set-card.protect {
  border: 2px solid #c6ead3;
}

.set-card.flash {
  animation: flash 1.2s ease-out 2;
}

.asset-box {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}

.asset-box img {
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: .3rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
  cursor: pointer;
}

.swatch.active {
  box-shadow: 0 0 0 3px var(--ink);
}

.protect-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .8rem;
  border-radius: 14px;
  background: #f8fafc;
  margin-bottom: 1rem;
}

.protect-row .state {
  flex: 1;
  font-weight: 700;
}

.usage .progress {
  height: 12px;
  border-radius: 999px;
}

/* ---------- Animations ---------- */
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); }
  100% { box-shadow: 0 0 0 18px rgba(22, 163, 74, 0); }
}

.shake {
  animation: shake .3s ease-in-out 2;
}

/* ================= Main navigation =================
   < 768px  : bottom bar (thumb zone), hidden in the editor wizard and while the keyboard is open
   >= 768px : side rail;  >= 1440px : expanded rail with labels beside the icons */
.app-nav {
  position: fixed;
  z-index: 1035;
  display: flex;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  min-height: 48px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 32px;
  border-radius: 16px;
  font-size: 1.35rem;
  transition: background-color .2s ease;
}

.nav-icon .bi + .bi { display: none; }
.nav-item[aria-current="page"] .nav-icon .bi:first-child { display: none; }
.nav-item[aria-current="page"] .nav-icon .bi + .bi { display: inline-block; }
.nav-new .nav-icon .bi { display: inline-block !important; }

.nav-item[aria-current="page"] {
  color: var(--brand-dark);
  font-weight: 800;
}

.nav-item[aria-current="page"] .nav-icon {
  background: var(--brand-soft);
}

.nav-item:hover .nav-icon { background: #eef2f1; }
.nav-item[aria-current="page"]:hover .nav-icon { background: var(--brand-soft); }

.nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-new .nav-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(140deg, #14a394, var(--brand));
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .3);
}

.nav-new:hover .nav-icon { background: linear-gradient(140deg, var(--brand), var(--brand-dark)); }
.nav-new { color: var(--brand-dark); }

.nav-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.nav-dot {
  position: absolute;
  top: 2px;
  inset-inline-end: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px #fff;
}

.nav-badge[hidden],
.nav-dot[hidden] { display: none; }

body.view-welcome .app-nav,
body:not([class*="view-"]) .app-nav { display: none; }

/* ---- Phones: bottom bar ---- */
@media (max-width: 767.98px) {
  .app-nav {
    inset-inline: 0;
    bottom: 0;
    height: calc(var(--nav-h) + var(--safe-b));
    padding: 4px max(4px, env(safe-area-inset-left, 0px)) var(--safe-b);
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .06);
  }

  .nav-item { flex: 1 1 0; min-width: 0; }
  .nav-new { margin-top: -26px; }

  body:not(.view-welcome):not(.view-editor) #app {
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 2rem);
  }

  body.view-editor .app-nav,
  body.kb-open .app-nav { display: none; }

  .appbar .home-btn,
  .appbar .shield { display: none; }

  body.view-editor .appbar .home-btn { display: inline-flex; }

  .new-sheet.offcanvas-bottom { height: auto; }

  body:not(.view-welcome):not(.view-editor):not(.kb-open) .swal2-container.swal2-bottom,
  body:not(.view-welcome):not(.view-editor):not(.kb-open) .swal2-container.swal2-bottom-start,
  body:not(.view-welcome):not(.view-editor):not(.kb-open) .swal2-container.swal2-bottom-end {
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + .5rem);
  }

  html:has(body:not(.view-editor)) { scroll-padding-bottom: calc(var(--nav-h) + var(--safe-b) + 1rem); }
}

@media (max-width: 359.98px) {
  :root { --nav-h: 60px; }
  .nav-item { font-size: .7rem; }
  .nav-icon { width: 48px; }
  .nav-new .nav-icon { width: 50px; height: 50px; }
}

/* ---- Tablets & desktops: side rail ---- */
@media (min-width: 768px) {
  .app-nav {
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: var(--rail-w);
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: calc(1rem + var(--safe-t)) .25rem calc(1rem + var(--safe-b));
    border-inline-end: 1px solid var(--line);
  }

  .nav-item { width: 100%; padding: 6px 2px; }
  .nav-new { order: -1; margin-bottom: .75rem; }

  body:not(.view-welcome) { padding-inline-start: var(--rail-w); }

  .appbar .home-btn { display: none; }

  .new-sheet.offcanvas-bottom {
    height: auto;
    max-width: 640px;
    margin-inline: auto;
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 1440px) {
  :root { --rail-w: 220px; }

  .app-nav { align-items: stretch; padding-inline: .75rem; }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: .6rem;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .nav-item[aria-current="page"] { background: var(--brand-soft); }
  .nav-item[aria-current="page"] .nav-icon { background: transparent; }
  .nav-icon { width: 40px; flex-shrink: 0; }
  .nav-new { margin-bottom: 1rem; }
  .nav-new .nav-icon { width: 48px; height: 48px; }
}

/* Short landscape screens (phones turned sideways): compact rail, no labels */
@media (min-width: 768px) and (max-height: 520px) {
  :root { --rail-w: 76px; }
  .app-nav { gap: 0; padding-block: .4rem; overflow-y: auto; }
  .nav-label { display: none; }
  .nav-new { margin-bottom: .25rem; }
  .nav-new .nav-icon { width: 46px; height: 46px; }
  .appbar { padding-block: .3rem; }
  .appbar-btn span { display: none; }
}

/* "New" sheet */
.new-sheet {
  border-radius: 24px 24px 0 0;
  padding-bottom: var(--safe-b);
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: .9rem;
}

.sheet-grid .tile { min-height: 140px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body > *:not(main),
  main > section {
    display: none !important;
  }
}
