/* Lorryto Web Application sticky scroll storytelling */

.te-section {
  --te-blue: #3641f5;
  --te-blue-soft: #465fff;
  --te-green: #12b76a;
  --te-ink: #101828;
  --te-muted: #667085;
  --te-line: #e4e7ec;
  --te-soft: #f2f4f7;
  position: relative;
  isolation: isolate;
  background: #fff;
}

.te-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  /* Extra bottom room for .story-skip; top clears sticky header */
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

/* Chapter intro — appears when entering web app from overview */
.te-chapter {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.5rem 3rem;
  pointer-events: none;
  will-change: opacity, transform;
  transform-origin: center 42%;
}

.te-chapter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 40rem;
}

.te-chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(54, 65, 245, 0.1);
  color: var(--te-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.te-chapter-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--te-ink);
}

.te-brand-word {
  font-family: var(--font-footer-watermark);
  font-style: italic;
  font-weight: 400;
  color: var(--te-blue);
  letter-spacing: -0.02em;
}

.te-chapter-title-accent {
  color: var(--te-blue);
}

.te-chapter-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--te-muted);
}

.te-chapter-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}

.te-chapter-scroll-arrow {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: te-chapter-bounce 1.4s ease-in-out infinite;
}

@keyframes te-chapter-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}

.te-story {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  will-change: opacity;
}

.te-story .te-intro,
.te-story .te-center,
.te-story .te-right {
  will-change: transform;
  transform-origin: center top;
}

@media (prefers-reduced-motion: reduce) {
  .te-chapter-scroll-arrow {
    animation: none;
  }

  .te-chapter,
  .te-story {
    will-change: auto;
  }
}

.te-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(221, 233, 255, 0.9), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 15%, rgba(238, 242, 255, 0.85), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 45%, #f7f9fc 100%);
}

.te-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(54, 65, 245, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 65, 245, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.te-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.te-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
  transition: background 0.5s ease;
}

.te-bg-orb--a {
  width: 22rem;
  height: 22rem;
  top: 10%;
  left: -3%;
  background: rgba(70, 95, 255, 0.18);
}

.te-bg-orb--b {
  width: 18rem;
  height: 18rem;
  top: 20%;
  right: 2%;
  background: rgba(18, 183, 106, 0.12);
}

.te-sticky[data-glow='2'] .te-bg-orb--a,
.te-sticky[data-glow='10'] .te-bg-orb--a { background: rgba(54, 65, 245, 0.22); }
.te-sticky[data-glow='3'] .te-bg-orb--b,
.te-sticky[data-glow='11'] .te-bg-orb--b { background: rgba(18, 183, 106, 0.18); }
.te-sticky[data-glow='7'] .te-bg-orb--b { background: rgba(247, 144, 9, 0.14); }
.te-sticky[data-glow='8'] .te-bg-orb--a { background: rgba(155, 81, 224, 0.14); }

.te-container {
  position: relative;
  z-index: 1;
  /* Shrink to browser + info so the block centers evenly on both sides */
  width: fit-content;
  max-width: min(1480px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  /* Center the whole intro + stage block so tall viewports don't look empty at the bottom */
  justify-content: center;
}

.te-intro {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
  max-width: 40rem;
}

.te-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(54, 65, 245, 0.1);
  color: var(--te-blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.te-badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--te-blue);
  box-shadow: 0 0 0 3px rgba(54, 65, 245, 0.16);
}

.te-heading {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--te-ink);
  font-weight: 800;
  max-width: 34ch;
}

.te-heading-accent { color: var(--te-blue); }

.te-lead {
  margin: 0;
  color: var(--te-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 52ch;
}

.te-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.te-stage {
  /* Browser left; info sits beside it — whole stage is centered via container */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4.5rem;
  width: 100%;
  min-height: 0;
  /* Don't stretch — keeps vertical centering honest on tall screens */
  flex: 0 1 auto;
  padding-left: 0;
  padding-right: 0;
}

.te-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.te-btn--primary {
  background: var(--te-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(54, 65, 245, 0.2);
}

.te-btn--primary:hover {
  transform: translateY(-1px);
  background: var(--te-blue-soft);
}

.te-btn--secondary {
  background: #fff;
  color: var(--te-ink);
  border: 1px solid var(--te-line);
}

.te-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.te-btn--primary:disabled:hover {
  background: var(--te-blue);
  transform: none;
}

.te-btn--secondary:disabled:hover {
  background: #fff;
  transform: none;
}

.te-btn--secondary:hover {
  transform: translateY(-1px);
  border-color: #c7cdd8;
}

.te-reduce-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--te-muted);
}

/* Browser — fixed desktop frame; scale whole unit when space is tight */
.te-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  flex: 0 1 auto;
  min-width: 0;
  width: fit-content;
  max-width: calc(100% - 24rem);
  overflow: visible;
}

.te-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  align-items: center;
  max-width: 100%;
  padding: 0 0.5rem;
}

.te-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #d0d5dd;
  transition: width 0.25s ease, background 0.25s ease;
}

.te-dots span.is-active {
  width: 1.1rem;
  background: var(--te-blue);
}

.te-browser {
  --te-browser-design-w: 1040px;
  --te-browser-design-h: 610px;
  position: relative;
  width: var(--te-browser-design-w);
  max-width: none;
  /* Near-full size; scales down further on smaller viewports */
  zoom: min(
    0.96,
    calc((100vw - 28rem) / var(--te-browser-design-w)),
    calc((100dvh - 14rem) / var(--te-browser-design-h))
  );
}

.te-browser-glow {
  display: none;
}

.te-browser-frame {
  position: relative;
  z-index: 1;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow:
    0 28px 64px rgba(16, 24, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
}

.te-browser-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--te-line);
}

.te-browser-dots {
  display: flex;
  gap: 0.28rem;
}

.te-browser-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d0d5dd;
}

.te-browser-dots span:nth-child(1) { background: #f97066; }
.te-browser-dots span:nth-child(2) { background: #fdb022; }
.te-browser-dots span:nth-child(3) { background: #32d583; }

.te-browser-url {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  font-size: 0.68rem;
  font-weight: 600;
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-browser-lock {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: #12b76a;
  flex-shrink: 0;
}

.te-browser-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.te-browser-pill {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--te-blue);
  font-size: 0.62rem;
  font-weight: 700;
}

.te-browser-bell,
.te-browser-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e4e7ec;
}

.te-browser-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3641f5, #12b76a);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.te-app {
  display: grid;
  grid-template-columns: 9.2rem 1fr;
  height: 550px;
  min-height: 550px;
  max-height: 550px;
  background: #f2f4f7;
}

.te-browser-body {
  position: relative;
  height: 550px;
  min-height: 550px;
  max-height: 550px;
  overflow: hidden;
  background: #f2f4f7;
}

.te-app-shot-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  pointer-events: none;
  will-change: opacity;
}

.te-app-shot {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  user-select: none;
  pointer-events: none;
}

.te-sidebar {
  padding: 0.45rem;
  background: #f8fafc;
  border-right: 1px solid #e4e7ec;
  color: #344054;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
}

.te-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, #3641f5 0%, #6938ef 100%);
  box-shadow: 0 8px 18px rgba(54, 65, 245, 0.22);
}

.te-sidebar-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}

.te-sidebar-brand-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.te-sidebar-brand-text strong {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-sidebar-brand-text em {
  font-style: normal;
  font-size: 0.48rem;
  opacity: 0.85;
  font-weight: 600;
}

.te-sidebar-nav {
  display: grid;
  gap: 0.1rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.te-sidebar-nav span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.2;
  color: #475467;
  transition: background 0.2s ease, color 0.2s ease;
}

.te-sidebar-badge {
  margin-left: auto;
  font-style: normal;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: #12b76a;
  color: #fff;
  line-height: 1.2;
}

.te-sidebar-nav span.is-active .te-sidebar-badge {
  background: #fff;
  color: #027a48;
}

.te-sidebar-nav span svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.te-sidebar-nav span.is-active {
  background: #3641f5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(54, 65, 245, 0.25);
}

.te-sidebar-nav span.is-active svg {
  opacity: 1;
  color: #fff;
}

.te-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  margin-top: auto;
}

.te-sidebar-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3641f5, #12b76a);
  color: #fff;
  font-size: 0.48rem;
  font-weight: 800;
  flex-shrink: 0;
}

.te-sidebar-user strong {
  display: block;
  font-size: 0.58rem;
  color: #101828;
  line-height: 1.2;
}

.te-sidebar-user em {
  display: block;
  font-style: normal;
  font-size: 0.48rem;
  color: #98a2b3;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.te-app-main {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #f2f4f7;
}

.te-app-stage {
  position: absolute;
  inset: 0;
  padding: 0.45rem 0.55rem;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity;
}

.te-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.te-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.te-screen-head h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--te-ink);
}

.te-screen-head p {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  color: var(--te-muted);
}

.te-screen-action {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--te-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.te-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.te-stat {
  padding: 0.4rem 0.45rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #eef0f4;
}

.te-stat span {
  display: block;
  font-size: 0.52rem;
  color: var(--te-muted);
  font-weight: 600;
}

.te-stat strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--te-ink);
}

.te-stat--blue strong { color: var(--te-blue); }
.te-stat--green strong { color: #027a48; }
.te-stat--amber strong { color: #b54708; }
.te-stat--red strong { color: #b42318; }

.te-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid #eef0f4;
  background: #fff;
}

.te-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.58rem;
}

.te-table th,
.te-table td {
  padding: 0.42rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid #f2f4f7;
  white-space: nowrap;
}

.te-table th {
  color: var(--te-muted);
  font-weight: 700;
  background: #f9fafb;
}

.te-table td {
  color: #344054;
  font-weight: 600;
}

.te-pill {
  display: inline-flex;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
}

.te-pill--green { background: #ecfdf3; color: #027a48; }
.te-pill--blue { background: #eef2ff; color: var(--te-blue); }
.te-pill--amber { background: #fffaeb; color: #b54708; }
.te-pill--gray { background: #f2f4f7; color: #475467; }

.te-split {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
}

.te-panel {
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #eef0f4;
  min-width: 0;
}

.te-panel--grow { min-width: 0; }

.te-chart-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--te-muted);
  margin-bottom: 0.4rem;
}

.te-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  height: 4.2rem;
}

.te-chart-bars span {
  flex: 1;
  height: 100%;
  border-radius: 0.25rem 0.25rem 0.1rem 0.1rem;
  background: linear-gradient(180deg, #465fff, #a4b1ff);
  transform-origin: bottom;
}

.te-activity {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.te-activity li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.58rem;
  color: #344054;
  font-weight: 600;
}

.te-activity em {
  font-style: normal;
  color: var(--te-muted);
  font-weight: 500;
}

.te-donut {
  position: relative;
  width: 5.2rem;
  height: 5.2rem;
  margin: 0.2rem auto 0.55rem;
  border-radius: 50%;
  background:
    conic-gradient(#3641f5 0 78%, #e4e7ec 78% 100%);
  display: grid;
  place-items: center;
}

.te-donut span {
  position: absolute;
  inset: 0.7rem;
  border-radius: 50%;
  background: #fff;
}

.te-donut strong,
.te-donut em {
  position: relative;
  z-index: 1;
  text-align: center;
}

.te-donut strong {
  font-size: 0.95rem;
  color: var(--te-ink);
}

.te-donut em {
  position: absolute;
  bottom: 1.35rem;
  font-style: normal;
  font-size: 0.52rem;
  color: var(--te-muted);
  font-weight: 600;
}

.te-note strong {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}

.te-note p {
  margin: 0;
  font-size: 0.6rem;
  color: var(--te-muted);
  line-height: 1.4;
}

.te-company-list {
  display: grid;
  gap: 0.4rem;
}

.te-company {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #eef0f4;
}

.te-company.is-active {
  border-color: rgba(54, 65, 245, 0.35);
  box-shadow: 0 0 0 3px rgba(54, 65, 245, 0.08);
}

.te-company-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--te-blue);
  font-weight: 800;
  font-size: 0.75rem;
}

.te-company strong,
.te-company span {
  display: block;
}

.te-company strong { font-size: 0.72rem; }
.te-company span { font-size: 0.58rem; color: var(--te-muted); margin-top: 0.1rem; }
.te-company em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--te-blue);
}

.te-inline-note {
  margin: 0;
  font-size: 0.65rem;
  color: var(--te-muted);
  line-height: 1.45;
}

.te-invoice-preview ul {
  list-style: none;
  margin: 0.55rem 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.te-invoice-preview li,
.te-invoice-total {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.62rem;
}

.te-invoice-top strong {
  display: block;
  font-size: 0.85rem;
}

.te-invoice-top span {
  font-size: 0.6rem;
  color: var(--te-muted);
}

.te-invoice-total {
  padding-top: 0.4rem;
  border-top: 1px solid #eef0f4;
  font-weight: 800;
}

.te-btn-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.te-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid var(--te-line);
  background: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  color: #344054;
}

.te-chip--primary {
  background: var(--te-blue);
  border-color: transparent;
  color: #fff;
}

.te-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.te-report-list li {
  padding: 0.4rem 0.5rem;
  border-radius: 0.45rem;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  font-size: 0.62rem;
  font-weight: 700;
  color: #344054;
}

/* Right column — roomier next to the browser; top-locked across steps */
.te-right {
  position: relative;
  flex: 0 0 19.5rem;
  width: 19.5rem;
  align-self: flex-start;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-left: 0;
}

.te-right .te-actions {
  width: 100%;
  gap: 0.6rem;
}

.te-right .te-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

.te-right .te-ui-card {
  max-width: none;
}

.te-feature { min-width: 0; }

.te-feature-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.te-feature-step {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--te-blue);
  letter-spacing: 0.04em;
}

.te-feature-step span {
  color: #98a2b3;
  font-weight: 600;
}

.te-feature-title {
  margin: 0;
  font-size: clamp(1.3rem, 1.6vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--te-ink);
  font-weight: 800;
}

.te-feature-desc {
  margin: 0;
  color: var(--te-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 34ch;
}

.te-feature-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.te-feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #344054;
  line-height: 1.3;
}

.te-feature-bullets li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  border: 1.5px solid #12b76a;
  color: #12b76a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
}

.te-feature-bullets li::after {
  content: none;
}

.te-ui-card {
  margin-top: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  display: grid;
  gap: 0.22rem;
  max-width: 19rem;
}

.te-ui-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--te-blue);
}

.te-ui-card strong {
  font-size: 0.98rem;
  color: var(--te-ink);
}

.te-ui-card-meta {
  font-size: 0.8rem;
  color: var(--te-muted);
}

.te-ui-card-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.te-ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--te-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.te-ui-btn--ghost {
  background: #fff;
  color: #344054;
  border: 1px solid var(--te-line);
}

a.te-ui-btn:hover {
  filter: brightness(1.05);
}

a.te-dash-hero-btn,
a.te-trips-cta-btn,
a.te-trip-foot-btn,
a.te-acc-btn,
a.te-cm-create,
a.te-parties-view,
a.te-suppliers-view,
a.te-dr-view,
a.te-vh-view,
a.te-cs-view,
a.te-rep-card-cta {
  text-decoration: none;
  cursor: pointer;
}

a.te-dash-hero-btn {
  color: #fff;
}

a.te-dash-hero-btn--solid {
  color: #3641f5;
}

a.te-trips-cta-btn,
a.te-acc-btn {
  color: #fff;
}

.te-timeline {
  position: relative;
  width: 7.8rem;
  padding-left: 0.2rem;
  flex-shrink: 0;
}

.te-timeline-track {
  position: absolute;
  left: 0.95rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background-image: linear-gradient(to bottom, #d0d5dd 40%, transparent 0);
  background-size: 2px 10px;
  overflow: hidden;
}

.te-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #12b76a 0%, var(--te-blue) 100%);
  transform-origin: top center;
  will-change: transform;
}

.te-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  position: relative;
}

.te-timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  align-items: center;
}

.te-timeline-dot {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid #d0d5dd;
  color: #98a2b3;
  z-index: 1;
}

.te-timeline-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #98a2b3;
  line-height: 1.2;
}

.te-timeline-item.is-done .te-timeline-dot {
  background: #ecfdf3;
  border-color: #12b76a;
  color: #027a48;
}

.te-timeline-item.is-done .te-timeline-label { color: #027a48; }

.te-timeline-item.is-active .te-timeline-dot {
  background: var(--te-blue);
  border-color: var(--te-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(54, 65, 245, 0.16);
}

.te-timeline-item.is-active .te-timeline-label {
  color: var(--te-blue);
  font-weight: 700;
}

/* Mobile uses TransportGallery (.te-gallery) — desktop sticky stays in .te-section */

@media (max-width: 1400px) {
  .te-stage { gap: 3.5rem; }
  .te-right {
    flex-basis: 18.5rem;
    width: 18.5rem;
    margin-left: 0;
  }
  .te-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fallback when zoom is unavailable: scale the whole fixed frame */
@supports not (zoom: 1) {
  .te-browser {
    transform: scale(
      min(
        0.96,
        calc((100vw - 28rem) / var(--te-browser-design-w)),
        calc((100dvh - 14rem) / var(--te-browser-design-h))
      )
    );
    transform-origin: left center;
  }
}

/* Tall monitors: let the mockup breathe a little more into leftover viewport height */
@media (min-height: 1000px) {
  .te-browser {
    zoom: min(
      1,
      calc((100vw - 28rem) / var(--te-browser-design-w)),
      calc((100dvh - 16rem) / var(--te-browser-design-h))
    );
  }

  @supports not (zoom: 1) {
    .te-browser {
      transform: scale(
        min(
          1,
          calc((100vw - 28rem) / var(--te-browser-design-w)),
          calc((100dvh - 16rem) / var(--te-browser-design-h))
        )
      );
      transform-origin: left center;
    }
  }
}

/*
  13" laptops (~1440×900): browser was oversized vs available height
  and clipped under the fold. Compact padding + lower zoom — 14"+ unchanged.
*/
@media (max-height: 900px) {
  .te-sticky {
    padding: 4.4rem 0 3.25rem;
  }

  .te-container {
    gap: 0.5rem;
    /* Prefer top-lock when the viewport is short so the badge stays clear of the header */
    justify-content: flex-start;
  }

  .te-stage {
    gap: 3.15rem;
  }

  .te-center {
    gap: 0.5rem;
  }

  .te-heading {
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  }

  .te-browser {
    zoom: min(
      0.86,
      calc((100vw - 26rem) / var(--te-browser-design-w)),
      calc((100dvh - 14.75rem) / var(--te-browser-design-h))
    );
  }

  @supports not (zoom: 1) {
    .te-browser {
      transform: scale(
        min(
          0.86,
          calc((100vw - 26rem) / var(--te-browser-design-w)),
          calc((100dvh - 14.75rem) / var(--te-browser-design-h))
        )
      );
      transform-origin: left top;
    }
  }
}

@media (max-height: 820px) {
  .te-heading { font-size: 1.2rem; }
  .te-lead { display: none; }
  .te-sticky {
    padding: 4.1rem 0 3rem;
  }

  .te-browser {
    zoom: min(
      0.8,
      calc((100vw - 26rem) / var(--te-browser-design-w)),
      calc((100dvh - 13.5rem) / var(--te-browser-design-h))
    );
  }

  @supports not (zoom: 1) {
    .te-browser {
      transform: scale(
        min(
          0.8,
          calc((100vw - 26rem) / var(--te-browser-design-w)),
          calc((100dvh - 13.5rem) / var(--te-browser-design-h))
        )
      );
      transform-origin: left top;
    }
  }
}

/* —— Real-app Dashboard mock —— */
.te-dash {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
  font-family: inherit;
  padding-right: 0.1rem;
}

.te-dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0.1rem;
  flex-shrink: 0;
}

.te-dash-bar-left,
.te-dash-bar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.te-dash-bar-left strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #101828;
}

.te-dash-menu {
  display: inline-flex;
  color: #667085;
}

.te-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.52rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.te-dash-chip--green { background: #12b76a; }
.te-dash-chip--blue { background: #3641f5; }

.te-dash-moon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  display: grid;
  place-items: center;
  color: #667085;
  background: #fff;
}

.te-dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: linear-gradient(120deg, #3641f5 0%, #6938ef 55%, #9e77ed 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(54, 65, 245, 0.22);
}

.te-dash-hero-copy h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.te-dash-hero-time {
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.58rem;
  opacity: 0.95;
}

.te-dash-hero-time strong {
  font-size: 0.72rem;
  font-weight: 800;
}

.te-dash-hero-copy em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.5rem;
  opacity: 0.8;
}

.te-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.te-dash-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.te-dash-hero-btn--solid {
  background: #fff;
  color: #3641f5;
  border-color: #fff;
}

.te-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-dash-card {
  position: relative;
  padding: 0.45rem 0.5rem 0.4rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  min-height: 4.1rem;
  overflow: hidden;
}

.te-dash-card--balance {
  background: #ecfdf3;
  border-color: #a6f4c5;
}

.te-dash-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.3rem;
}

.te-dash-card-label {
  font-size: 0.52rem;
  font-weight: 600;
  color: #667085;
  line-height: 1.25;
}

.te-dash-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: #eef2ff;
  display: grid;
  place-items: center;
  color: #3641f5;
}

.te-dash-card--teal .te-dash-card-icon { background: #ccfbef; color: #0e9384; }
.te-dash-card--green .te-dash-card-icon { background: #d1fadf; color: #039855; }
.te-dash-card--purple .te-dash-card-icon { background: #ebe9fe; color: #7a5af8; }
.te-dash-card--balance .te-dash-card-icon { background: #d1e0ff; color: #3641f5; }
.te-dash-card--orange .te-dash-card-icon { background: #ffead5; color: #ec4a0a; }
.te-dash-card--yellow .te-dash-card-icon { background: #fef7c3; color: #ca8504; }
.te-dash-card--blue .te-dash-card-icon { background: #d1e0ff; color: #3641f5; }
.te-dash-card--forest .te-dash-card-icon { background: #d1fadf; color: #027a48; }

.te-dash-card-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #101828;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.te-dash-card-meta {
  margin: 0.22rem 0 0;
  font-size: 0.48rem;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem;
  line-height: 1.3;
}

.te-dash-card-meta b {
  color: #344054;
  font-weight: 700;
}

.te-dash-dot { opacity: 0.45; }

.te-dash-status {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.te-dash-status--amber { background: #f79009; }
.te-dash-status--green { background: #12b76a; }
.te-dash-status--teal { background: #15b79e; }
.te-dash-status--gray { background: #98a2b3; }

.te-dash-balance {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.18rem;
}

.te-dash-balance li {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.48rem;
  color: #475467;
}

.te-dash-balance strong {
  color: #027a48;
  font-weight: 700;
  white-space: nowrap;
}

.te-dash-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-dash-invoice,
.te-dash-modules {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  padding: 0.5rem 0.55rem;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.te-dash-invoice header,
.te-dash-modules header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.te-dash-invoice header strong,
.te-dash-modules header strong {
  font-size: 0.68rem;
  color: #101828;
}

.te-dash-invoice header span,
.te-dash-modules header span {
  font-size: 0.5rem;
  color: #98a2b3;
}

.te-dash-invoice ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.te-dash-invoice li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.55rem;
  color: #475467;
  padding-bottom: 0.22rem;
  border-bottom: 1px dashed #e4e7ec;
}

.te-dash-invoice li strong {
  color: #101828;
  font-weight: 700;
}

.te-dash-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: #3641f5;
}

.te-dash-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  min-height: 0;
}

.te-dash-module {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid #eef0f4;
  background: #f9fafb;
  min-width: 0;
}

.te-dash-module-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.3rem;
  flex-shrink: 0;
  background: #d1e0ff;
  color: #3641f5;
  display: grid;
  place-items: center;
}

.te-dash-module--blue .te-dash-module-icon { background: #d1e0ff; color: #3641f5; }
.te-dash-module--teal .te-dash-module-icon { background: #ccfbef; color: #0e9384; }
.te-dash-module--purple .te-dash-module-icon { background: #ebe9fe; color: #7a5af8; }
.te-dash-module--green .te-dash-module-icon { background: #d1fadf; color: #039855; }
.te-dash-module--indigo .te-dash-module-icon { background: #e0e7ff; color: #444ce7; }
.te-dash-module--orange .te-dash-module-icon { background: #d1fadf; color: #039855; }
.te-dash-module--yellow .te-dash-module-icon { background: #fef7c3; color: #ca8504; }
.te-dash-module--pink .te-dash-module-icon { background: #ffead5; color: #ec4a0a; }

.te-dash-module strong {
  display: block;
  font-size: 0.52rem;
  color: #101828;
  line-height: 1.2;
}

.te-dash-module em {
  display: block;
  margin-top: 0.08rem;
  font-style: normal;
  font-size: 0.45rem;
  color: #98a2b3;
  line-height: 1.25;
}

.te-dash-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 0.4rem;
  flex-shrink: 0;
  padding-bottom: 0.15rem;
}

.te-dash-chart-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  padding: 0.5rem 0.55rem 0.45rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.te-dash-chart-card header {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.te-dash-chart-card header strong {
  font-size: 0.68rem;
  color: #101828;
}

.te-dash-chart-card header span {
  font-size: 0.48rem;
  color: #98a2b3;
  line-height: 1.35;
}

.te-dash-volume {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.25rem;
  align-items: stretch;
  min-height: 7.2rem;
}

.te-dash-volume-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.15rem 0 1.35rem;
  font-size: 0.45rem;
  color: #98a2b3;
  font-weight: 600;
}

.te-dash-volume-plot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.te-dash-volume-plot svg {
  width: 100%;
  height: 5.4rem;
  display: block;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px) 0 18% / 100% 33% repeat-y;
  border-bottom: 1px solid #e4e7ec;
}

.te-dash-volume-x {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.1rem;
}

.te-dash-volume-x span {
  font-size: 0.38rem;
  color: #98a2b3;
  white-space: nowrap;
  transform: rotate(-42deg);
  transform-origin: top left;
  height: 1.5rem;
  margin-left: 0.2rem;
}

.te-dash-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0 0.1rem;
}

.te-dash-donut {
  position: relative;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: conic-gradient(
    #465fff 0deg 210deg,
    #6172f3 210deg 300deg,
    #9e77ed 300deg 330deg,
    #667085 330deg 360deg
  );
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.te-dash-donut::before {
  content: '';
  position: absolute;
  inset: 1.15rem;
  border-radius: 50%;
  background: #fff;
}

.te-dash-donut-center {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 0.05rem;
}

.te-dash-donut-center em {
  font-style: normal;
  font-size: 0.55rem;
  color: #667085;
  font-weight: 600;
}

.te-dash-donut-center strong {
  font-size: 1.05rem;
  color: #101828;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.te-dash-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

.te-dash-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.48rem;
  font-weight: 600;
  color: #475467;
}

.te-dash-legend-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.te-dash-legend-dot--blue { background: #465fff; }
.te-dash-legend-dot--indigo { background: #6172f3; }
.te-dash-legend-dot--purple { background: #9e77ed; }
.te-dash-legend-dot--gray { background: #667085; }

/* —— Real-app Trips mock —— */
.te-trips {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-trips-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  flex-shrink: 0;
}

.te-trips-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.te-trips-summary-card {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 7.2rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
}

.te-trips-summary-card--green {
  background: #ecfdf3;
  border-color: #a6f4c5;
}

.te-trips-summary-card--amber {
  background: #fffaeb;
  border-color: #fecdca;
}

.te-trips-summary-card--gray {
  background: #f2f4f7;
  border-color: #e4e7ec;
}

.te-trips-summary-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  color: #344054;
  flex-shrink: 0;
}

.te-trips-summary-card--green .te-trips-summary-icon { color: #039855; }
.te-trips-summary-card--amber .te-trips-summary-icon { color: #dc6803; }
.te-trips-summary-card--gray .te-trips-summary-icon { color: #475467; }

.te-trips-summary-card em {
  display: block;
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #667085;
  line-height: 1.2;
}

.te-trips-summary-card strong {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #101828;
  line-height: 1;
}

.te-trips-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.te-trips-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.52rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.te-trips-cta-btn--purple { background: #7a5af8; }
.te-trips-cta-btn--green { background: #12b76a; }
.te-trips-cta-btn--blue { background: #3641f5; }

.te-trips-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.te-trips-search {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 10rem;
  flex: 1 1 10rem;
  min-height: 1.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #98a2b3;
  font-size: 0.52rem;
}

.te-trips-select {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 0.52rem;
  font-weight: 600;
}

.te-trips-select svg {
  color: #98a2b3;
  transform: rotate(90deg);
}

.te-trips-seg {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem;
  border-radius: 0.45rem;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  gap: 0.1rem;
}

.te-trips-seg span {
  min-height: 1.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: #667085;
}

.te-trips-seg span.is-active {
  background: #fffaeb;
  color: #b54708;
  box-shadow: inset 0 0 0 1px #fecdca;
}

.te-trips-check {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.5rem;
  font-weight: 600;
  color: #475467;
}

.te-trips-check-box {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.18rem;
  border: 1px solid #d0d5dd;
  background: #fff;
}

.te-trips-check-box.is-on {
  background: #3641f5;
  border-color: #3641f5;
  box-shadow: inset 0 0 0 2px #fff;
}

.te-trips-list {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
}

.te-trip-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  padding: 0.45rem 0.5rem 0.4rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  display: grid;
  gap: 0.4rem;
}

.te-trip-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem 0.45rem;
  align-items: start;
}

.te-trip-lr {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.te-trip-lr-icon {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.35rem;
  background: #d1e0ff;
  color: #3641f5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.te-trip-lr strong {
  display: block;
  font-size: 0.72rem;
  color: #101828;
  line-height: 1.15;
}

.te-trip-lr em {
  display: block;
  font-style: normal;
  font-size: 0.48rem;
  color: #98a2b3;
  font-weight: 600;
}

.te-trip-money-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.te-trip-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid currentColor;
  background: #fff;
  font-size: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
}

.te-trip-pill--blue { color: #3641f5; }
.te-trip-pill--green { color: #039855; }
.te-trip-pill--amber { color: #dc6803; }
.te-trip-pill--red { color: #d92d20; }

.te-trip-utils {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem 0.4rem;
}

.te-trip-utils span,
.te-trip-utils a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.45rem;
  font-weight: 700;
  color: #475467;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.te-trip-utils a:hover {
  color: var(--te-blue, #465fff);
}

.te-trip-utils--danger { color: #d92d20 !important; }

.te-trip-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 0.45rem;
  padding-top: 0.15rem;
  border-top: 1px solid #f2f4f7;
}

.te-trip-col {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  align-content: start;
}

.te-trip-own {
  width: fit-content;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #d1e0ff;
  color: #3641f5;
  font-size: 0.42rem;
  font-weight: 700;
}

.te-trip-plate {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.4rem;
  border-radius: 0.35rem;
  border: 1.5px solid #3641f5;
  color: #3641f5;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #f5f8ff;
}

.te-trip-col p {
  margin: 0;
  font-size: 0.5rem;
  color: #344054;
  line-height: 1.35;
}

.te-trip-col em {
  font-style: normal;
  color: #98a2b3;
  font-weight: 600;
}

.te-trip-col strong {
  color: #101828;
  font-weight: 700;
}

.te-trip-wa {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: #12b76a;
  vertical-align: -0.1rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.te-trip-amounts {
  display: grid;
  gap: 0.14rem;
  padding: 0.25rem 0.35rem;
  border-radius: 0.45rem;
  background: #f9fafb;
  border: 1px solid #eef0f4;
}

.te-trip-amounts > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.5rem;
  color: #667085;
}

.te-trip-amounts strong {
  color: #101828;
  font-weight: 700;
}

.te-trip-amounts .is-expense { color: #d92d20; }
.te-trip-amounts .is-received { color: #039855; }

.te-trip-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding-top: 0.2rem;
  border-top: 1px solid #f2f4f7;
}

.te-trip-route {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: #101828;
}

.te-trip-route svg { color: #3641f5; }

.te-trip-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-left: auto;
}

.te-trip-foot-btn {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid #d0d5dd;
  background: #fff;
  font-size: 0.48rem;
  font-weight: 700;
  color: #344054;
  white-space: nowrap;
}

.te-trip-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.48rem;
  font-weight: 700;
  white-space: nowrap;
}

.te-trip-status span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.te-trip-status--blue {
  background: #eff4ff;
  color: #3641f5;
}

.te-trip-status--purple {
  background: #f4ebff;
  color: #7a5af8;
}

/* —— Real-app Collection Memo mock —— */
.te-cm {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-cm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.te-cm-create {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  min-height: 1.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-cm-list {
  display: grid;
  gap: 0.45rem;
}

.te-cm-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  padding: 0.45rem 0.55rem 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  display: grid;
  gap: 0.4rem;
  overflow: hidden;
}

.te-cm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.te-cm-id {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.te-cm-id-icon {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.35rem;
  background: #d1e0ff;
  color: #3641f5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.te-cm-id strong {
  display: block;
  font-size: 0.72rem;
  color: #101828;
  line-height: 1.15;
}

.te-cm-id em {
  display: block;
  font-style: normal;
  font-size: 0.48rem;
  color: #98a2b3;
  font-weight: 600;
}

.te-cm-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.te-cm-col {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  align-content: start;
}

.te-cm-col-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.48rem;
  font-weight: 700;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.te-cm-col-label svg { color: #667085; }

.te-cm-col > strong {
  font-size: 0.68rem;
  color: #101828;
  line-height: 1.2;
}

.te-cm-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 600;
  color: #475467;
}

.te-cm-phone svg { color: #12b76a; }

.te-cm-vehicle {
  display: inline-flex;
  width: fit-content;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  border: 1.5px solid #3641f5;
  background: #f5f8ff;
  color: #3641f5 !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.te-cm-amounts {
  display: grid;
  gap: 0.16rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.45rem;
  background: #f9fafb;
  border: 1px solid #eef0f4;
}

.te-cm-amounts > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.52rem;
  color: #667085;
}

.te-cm-amounts strong {
  color: #101828;
  font-weight: 700;
}

.te-cm-amounts .is-advance { color: #12b76a; }
.te-cm-amounts .is-balance { color: #3641f5; font-weight: 800; }

.te-cm-card-foot {
  margin: 0 -0.55rem;
  padding: 0.35rem 0.55rem;
  background: #f8fafc;
  border-top: 1px solid #eef0f4;
}

.te-cm-route {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.te-cm-route svg { color: #3641f5; flex-shrink: 0; }

.te-cm-route em {
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #98a2b3;
}

.te-cm-route strong {
  font-size: 0.6rem;
  font-weight: 800;
  color: #101828;
  letter-spacing: 0.01em;
}

.te-cm-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.05rem;
  padding: 0.2rem 0.05rem 0.15rem;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.te-cm-pager-info {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 600;
  color: #667085;
  line-height: 1.3;
}

.te-cm-pager-info b {
  color: #101828;
  font-weight: 700;
}

.te-cm-pager-show {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 600;
  color: #475467;
}

.te-cm-pager-select {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.45rem;
  min-width: 2.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #101828;
  font-size: 0.58rem;
  font-weight: 700;
}

.te-cm-pager-select svg {
  color: #98a2b3;
  transform: rotate(90deg);
}

/* —— Real-app Parties mock —— */
.te-parties {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-parties-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-parties-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.te-parties-search {
  flex: 0 1 12rem;
  width: 12rem;
  min-width: 9rem;
  max-width: 14rem;
}

.te-parties-balance {
  display: grid;
  gap: 0.1rem;
  min-width: 7.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  background: #f4ebff;
  border: 1px solid #d6bbfb;
}

.te-parties-balance em {
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6941c6;
}

.te-parties-balance strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #42307d;
  line-height: 1.1;
}

.te-parties-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0;
  flex-shrink: 0;
  min-height: 1.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-parties-table-wrap {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.te-parties-table {
  width: 100%;
  border-collapse: collapse;
}

.te-parties-table th,
.te-parties-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.55rem;
}

.te-parties-table th {
  background: #f9fafb;
  color: #667085;
  font-weight: 700;
  border-bottom: 1px solid #e4e7ec;
  white-space: nowrap;
}

.te-parties-table td {
  color: #101828;
  font-weight: 600;
  border-bottom: 1px solid #f2f4f7;
}

.te-parties-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.te-parties-table tbody tr:last-child td {
  border-bottom: none;
}

.te-parties-name {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.te-parties-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.15rem;
  font-size: 0.48rem;
  font-weight: 600;
  color: #667085;
}

.te-parties-phone svg:last-child {
  color: #98a2b3;
}

.te-parties-amt {
  color: #d92d20 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.te-parties-view {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #b2ccff;
  background: #eff4ff;
  color: #3641f5;
  font-size: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* —— Real-app Suppliers mock —— */
.te-suppliers {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-suppliers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-suppliers-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.te-suppliers-search {
  flex: 0 1 12rem;
  width: 12rem;
  min-width: 9rem;
  max-width: 14rem;
}

.te-suppliers-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 6.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
}

.te-suppliers-chip--purple {
  background: #f4ebff;
  border: 1px solid #d6bbfb;
}

.te-suppliers-chip--green {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
}

.te-suppliers-chip em {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.te-suppliers-chip--purple em { color: #6941c6; }
.te-suppliers-chip--green em { color: #027a48; }

.te-suppliers-chip strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.te-suppliers-chip--purple strong { color: #42307d; }
.te-suppliers-chip--green strong { color: #027a48; }

.te-suppliers-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-height: 1.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-suppliers-table-wrap {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.te-suppliers-table {
  width: 100%;
  border-collapse: collapse;
}

.te-suppliers-table th,
.te-suppliers-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.55rem;
}

.te-suppliers-table th {
  background: #f9fafb;
  color: #667085;
  font-weight: 700;
  border-bottom: 1px solid #e4e7ec;
  white-space: nowrap;
}

.te-suppliers-table td {
  color: #101828;
  font-weight: 600;
  border-bottom: 1px solid #f2f4f7;
}

.te-suppliers-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.te-suppliers-table tbody tr:last-child td {
  border-bottom: none;
}

.te-suppliers-name {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.te-suppliers-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.15rem;
  font-size: 0.48rem;
  font-weight: 600;
  color: #667085;
}

.te-suppliers-phone svg:last-child {
  color: #98a2b3;
}

.te-suppliers-amt {
  color: #d92d20 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.te-suppliers-amt-zero {
  color: #98a2b3 !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.te-suppliers-view {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #b2ccff;
  background: #eff4ff;
  color: #3641f5;
  font-size: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* —— Real-app Companies mock —— */
.te-co {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
}

.te-co-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-co-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin-right: auto;
}

.te-co-title-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: #d1e0ff;
  color: #3641f5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.te-co-title strong {
  display: block;
  font-size: 0.68rem;
  color: #101828;
  line-height: 1.15;
}

.te-co-title em {
  display: block;
  font-style: normal;
  font-size: 0.48rem;
  color: #98a2b3;
  font-weight: 600;
}

.te-co-search {
  flex: 0 1 10.5rem;
  width: 10.5rem;
  min-width: 8rem;
}

.te-co-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.5rem;
  padding: 0.22rem 0.6rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-co-layout {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.78fr) minmax(0, 1.55fr);
  gap: 0.45rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.te-co-list {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.te-co-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #eef0f4;
}

.te-co-list > header strong {
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #667085;
}

.te-co-list-add {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  background: #eff4ff;
  color: #3641f5;
  display: grid;
  place-items: center;
}

.te-co-list ul {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  display: grid;
  gap: 0.25rem;
  overflow: auto;
  align-content: start;
}

.te-co-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  min-width: 0;
}

.te-co-list li.is-active {
  background: #eff4ff;
  border-color: #b2ccff;
}

.te-co-avatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.48rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.te-co-avatar--pink { background: #f670c7; }
.te-co-avatar--blue { background: #465fff; }
.te-co-avatar--green { background: #12b76a; }
.te-co-avatar--indigo { background: #6172f3; }

.te-co-list li strong {
  display: block;
  font-size: 0.55rem;
  color: #101828;
  line-height: 1.2;
}

.te-co-list li em {
  display: block;
  margin-top: 0.08rem;
  font-style: normal;
  font-size: 0.45rem;
  color: #98a2b3;
  font-weight: 600;
}

.te-co-detail {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.5rem 0.5rem;
  gap: 0.4rem;
}

.te-co-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid #eef0f4;
}

.te-co-tabs span {
  flex: 0 0 auto;
  padding: 0.28rem 0.45rem;
  border-radius: 0.4rem 0.4rem 0 0;
  font-size: 0.48rem;
  font-weight: 700;
  color: #667085;
  white-space: nowrap;
}

.te-co-tabs span.is-active {
  color: #3641f5;
  background: #eff4ff;
  box-shadow: inset 0 -2px 0 #3641f5;
}

.te-co-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.te-co-detail-head > div {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.te-co-detail-head strong {
  font-size: 0.62rem;
  color: #101828;
}

.te-co-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: #3641f5;
}

.te-co-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
}

.te-co-field {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.te-co-field em {
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  color: #98a2b3;
  letter-spacing: 0.02em;
}

.te-co-field span {
  font-size: 0.55rem;
  font-weight: 600;
  color: #98a2b3;
  line-height: 1.25;
  padding: 0.28rem 0.4rem;
  border-radius: 0.35rem;
  background: #f9fafb;
  border: 1px solid #eef0f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-co-field span.is-filled {
  color: #101828;
  font-weight: 700;
  background: #fff;
  border-color: #e4e7ec;
}

/* —— Real-app Credit Shops mock —— */
.te-cs {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-cs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-cs-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.te-cs-search {
  flex: 0 1 12rem;
  width: 12rem;
  min-width: 9rem;
  max-width: 14rem;
}

.te-cs-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 7.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
}

.te-cs-chip--red {
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.te-cs-chip--green {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
}

.te-cs-chip em {
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.te-cs-chip--red em { color: #b42318; }
.te-cs-chip--green em { color: #027a48; }

.te-cs-chip strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.te-cs-chip--red strong { color: #d92d20; }
.te-cs-chip--green strong { color: #027a48; }

.te-cs-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-height: 1.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-cs-table-wrap {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.te-cs-table {
  width: 100%;
  border-collapse: collapse;
}

.te-cs-table th,
.te-cs-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.55rem;
}

.te-cs-table th:nth-child(1),
.te-cs-table td:nth-child(1) {
  width: 52%;
}

.te-cs-table th:nth-child(2),
.te-cs-table td:nth-child(2) {
  width: 26%;
}

.te-cs-table th:nth-child(3),
.te-cs-table td:nth-child(3) {
  width: 22%;
  text-align: right;
  padding-right: 1.75rem;
}

.te-cs-table th {
  background: #f9fafb;
  color: #667085;
  font-weight: 700;
  border-bottom: 1px solid #e4e7ec;
  white-space: nowrap;
}

.te-cs-table td {
  color: #101828;
  font-weight: 600;
  border-bottom: 1px solid #f2f4f7;
}

.te-cs-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.te-cs-table tbody tr:last-child td {
  border-bottom: none;
}

.te-cs-name-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.te-cs-shop-icon {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.35rem;
  background: #ecfdf3;
  color: #039855;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.te-cs-name {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.te-cs-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.15rem;
  font-size: 0.48rem;
  font-weight: 600;
  color: #667085;
}

.te-cs-phone svg:last-child {
  color: #98a2b3;
}

.te-cs-amt {
  display: block;
  color: #d92d20;
  font-weight: 800;
  font-size: 0.6rem;
  line-height: 1.2;
}

.te-cs-amt-zero {
  display: block;
  color: #98a2b3;
  font-weight: 700;
  font-size: 0.6rem;
}

.te-cs-due {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  color: #d92d20;
}

.te-cs-view {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #b2ccff;
  background: #eff4ff;
  color: #3641f5;
  font-size: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}

/* —— Real-app Drivers mock —— */
.te-dr {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-dr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-shrink: 0;
}

.te-dr-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.te-dr-search {
  flex: 0 1 10.5rem;
  width: 10.5rem;
  min-width: 8rem;
  max-width: 12rem;
}

.te-dr-chip {
  display: grid;
  gap: 0.08rem;
  min-width: 5.4rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
}

.te-dr-chip--blue {
  background: #eff4ff;
  border-color: #b2ccff;
}

.te-dr-chip--green {
  background: #ecfdf3;
  border-color: #a6f4c5;
}

.te-dr-chip--amber {
  background: #fffaeb;
  border-color: #fec84b;
}

.te-dr-chip em {
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #667085;
}

.te-dr-chip--green em { color: #027a48; }
.te-dr-chip--amber em { color: #b54708; }
.te-dr-chip--blue em { color: #3538cd; }

.te-dr-chip strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.1;
}

.te-dr-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-height: 1.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-dr-table-wrap {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.te-dr-table {
  width: 100%;
  border-collapse: collapse;
}

.te-dr-table th,
.te-dr-table td {
  padding: 0.4rem 0.45rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.52rem;
}

.te-dr-table th {
  background: #f9fafb;
  color: #667085;
  font-weight: 700;
  border-bottom: 1px solid #e4e7ec;
  white-space: nowrap;
}

.te-dr-table td {
  color: #101828;
  font-weight: 600;
  border-bottom: 1px solid #f2f4f7;
}

.te-dr-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.te-dr-table tbody tr:last-child td {
  border-bottom: none;
}

.te-dr-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.te-dr-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d1e0ff;
  color: #3641f5;
  font-size: 0.45rem;
  font-weight: 800;
  flex-shrink: 0;
}

.te-dr-name-wrap strong {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.te-dr-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-top: 0.1rem;
  font-size: 0.45rem;
  font-weight: 600;
  color: #667085;
}

.te-dr-phone svg:last-child { color: #98a2b3; }

.te-dr-plate {
  display: inline-flex;
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
  background: #eff4ff;
  border: 1px solid #b2ccff;
  color: #3641f5;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.te-dr-dash { color: #98a2b3; }

.te-dr-bal {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.15;
}

.te-dr-bal--zero { color: #667085; }
.te-dr-bal--due { color: #d92d20; }
.te-dr-bal--collect { color: #039855; }

.te-dr-bal-note {
  display: block;
  margin-top: 0.08rem;
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 700;
}

.te-dr-bal-note--due { color: #d92d20; }
.te-dr-bal-note--collect { color: #039855; }

.te-dr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.48rem;
  font-weight: 700;
  color: #98a2b3;
}

.te-dr-toggle > span {
  width: 1.55rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  flex-shrink: 0;
}

.te-dr-toggle > span::after {
  content: '';
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #fff;
}

.te-dr-toggle.is-on {
  color: #3641f5;
}

.te-dr-toggle.is-on > span {
  background: #3641f5;
}

.te-dr-toggle.is-on > span::after {
  left: auto;
  right: 0.1rem;
}

.te-dr-view {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.3rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid #b2ccff;
  background: #eff4ff;
  color: #3641f5;
  font-size: 0.48rem;
  font-weight: 700;
  white-space: nowrap;
}

/* —— Real-app Vehicles mock —— */
.te-vh {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.te-vh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  flex-shrink: 0;
}

.te-vh-stat {
  padding: 0.35rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  display: grid;
  gap: 0.08rem;
}

.te-vh-stat--blue { background: #eff4ff; border-color: #b2ccff; }
.te-vh-stat--green { background: #ecfdf3; border-color: #a6f4c5; }
.te-vh-stat--orange { background: #fff6ed; border-color: #f9dbaf; }
.te-vh-stat--mint { background: #f0fdf4; border-color: #86efac; }

.te-vh-stat em {
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #667085;
}

.te-vh-stat strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.1;
}

.te-vh-stat > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.42rem;
  font-weight: 600;
  color: #475467;
}

.te-vh-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  display: inline-block;
}

.te-vh-dot--green { background: #12b76a; }
.te-vh-dot--amber { background: #f79009; }

.te-vh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-shrink: 0;
}

.te-vh-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.te-vh-search {
  flex: 0 1 10.5rem;
  width: 10.5rem;
  min-width: 8rem;
}

.te-vh-trips-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.45rem;
  background: #f4ebff;
  border: 1px solid #d6bbfb;
}

.te-vh-trips-pill em {
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6941c6;
}

.te-vh-trips-pill strong {
  font-size: 0.7rem;
  font-weight: 800;
  color: #42307d;
}

.te-vh-seg {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem;
  border-radius: 0.45rem;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  gap: 0.1rem;
}

.te-vh-seg span {
  min-height: 1.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.48rem;
  font-weight: 700;
  color: #667085;
}

.te-vh-seg span.is-active {
  background: #3641f5;
  color: #fff;
}

.te-vh-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-height: 1.5rem;
  padding: 0.22rem 0.6rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(54, 65, 245, 0.22);
}

.te-vh-table-wrap {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.te-vh-table {
  width: 100%;
  border-collapse: collapse;
}

.te-vh-table th,
.te-vh-table td {
  padding: 0.38rem 0.4rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.48rem;
}

.te-vh-table th {
  background: #f9fafb;
  color: #667085;
  font-weight: 700;
  border-bottom: 1px solid #e4e7ec;
  white-space: nowrap;
}

.te-vh-table th em {
  display: block;
  margin-top: 0.08rem;
  font-style: normal;
  font-size: 0.38rem;
  font-weight: 600;
  color: #98a2b3;
}

.te-vh-table td {
  color: #101828;
  font-weight: 600;
  border-bottom: 1px solid #f2f4f7;
}

.te-vh-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.te-vh-table tbody tr:last-child td {
  border-bottom: none;
}

.te-vh-truck {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.te-vh-plate {
  display: inline-flex;
  padding: 0.1rem 0.3rem;
  border-radius: 0.28rem;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  color: #101828;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.te-vh-m {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  background: #d92d20;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.4rem;
  font-weight: 800;
}

.te-vh-meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.42rem;
  font-weight: 600;
  color: #3641f5;
}

.te-vh-rev { color: #039855 !important; font-weight: 750 !important; white-space: nowrap; }
.te-vh-exp { color: #ec4a0a !important; font-weight: 750 !important; white-space: nowrap; }
.te-vh-pnl { font-weight: 800 !important; white-space: nowrap; }
.te-vh-pnl--profit { color: #039855 !important; }
.te-vh-pnl--loss { color: #d92d20 !important; }

.te-vh-loc {
  display: block;
  font-size: 0.48rem;
  font-weight: 700;
  color: #101828;
  line-height: 1.2;
}

.te-vh-loc + em {
  display: block;
  margin-top: 0.08rem;
  font-style: normal;
  font-size: 0.4rem;
  color: #98a2b3;
  font-weight: 600;
}

.te-vh-maps {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.4rem;
  font-weight: 700;
  color: #3641f5;
}

.te-vh-dash { color: #98a2b3; }

.te-vh-table td:last-child {
  text-align: right;
  padding-right: 0.7rem;
}

.te-vh-view {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 1.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid #b2ccff;
  background: #eff4ff;
  color: #3641f5;
  font-size: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
}

/* —— Real-app Invoice print mock —— */
.te-inv {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  overflow: hidden;
}

.te-inv-crumb {
  font-style: normal;
  font-size: 0.48rem;
  font-weight: 600;
  color: #98a2b3;
  margin-left: 0.15rem;
}

.te-inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  flex-shrink: 0;
}

.te-inv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 1.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.te-inv-btn--wa {
  background: #ecfdf3;
  border-color: #a6f4c5;
  color: #027a48;
}

.te-inv-btn--primary {
  background: #3641f5;
  border-color: #3641f5;
  color: #fff;
}

.te-inv-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  flex-shrink: 0;
}

.te-inv-check {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.45rem;
  font-weight: 600;
  color: #475467;
}

.te-inv-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 0.15rem 0.1rem 0.25rem;
}

.te-inv-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
}

.te-inv-paper {
  position: relative;
  isolation: isolate;
  width: min(100%, 34rem);
  flex: 0 1 34rem;
  background: #fff;
  border: 2px solid #d92d20;
  border-radius: 0.15rem;
  padding: 0.55rem 0.6rem 0.5rem;
  min-width: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 24rem;
}

.te-inv-watermark {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.12;
  width: min(46%, 11rem);
}

.te-inv-watermark img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.15);
}

.te-inv-watermark span {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #101828;
  text-align: center;
  white-space: nowrap;
}

.te-inv-paper-head,
.te-inv-meta,
.te-inv-grid,
.te-inv-paper-foot {
  position: relative;
  z-index: 1;
}

.te-inv-paper-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: flex-start;
  margin: -0.2rem -0.25rem 0;
  padding: 0.4rem 0.35rem 0.4rem;
  border-bottom: 1.5px solid #d92d20;
  background: linear-gradient(
    105deg,
    #ffe4ec 0%,
    #ffe8d6 22%,
    #fff3c4 42%,
    #d8f8e8 62%,
    #d6ecff 82%,
    #ebe4ff 100%
  );
}

.te-inv-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #e4e7ec;
  flex-shrink: 0;
}

.te-inv-brand strong {
  display: block;
  font-size: 0.82rem;
  color: #101828;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.te-inv-brand em,
.te-inv-brand span {
  display: block;
  font-style: normal;
  font-size: 0.45rem;
  color: #475467;
  font-weight: 600;
  line-height: 1.35;
}

.te-inv-brand em {
  margin: 0.08rem 0 0.12rem;
  color: #667085;
}

.te-inv-title {
  text-align: right;
  align-self: flex-start;
}

.te-inv-title strong {
  display: block;
  font-size: 0.85rem;
  color: #d92d20;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.te-inv-meta {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.45rem;
  padding: 0.15rem 0;
}

.te-inv-meta em {
  display: block;
  font-style: normal;
  font-size: 0.4rem;
  font-weight: 700;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.te-inv-meta strong {
  display: block;
  font-size: 0.65rem;
  color: #101828;
  margin-top: 0.08rem;
}

.te-inv-meta span {
  display: block;
  font-size: 0.48rem;
  color: #667085;
  font-weight: 600;
  line-height: 1.3;
}

.te-inv-meta-right {
  text-align: right;
  display: grid;
  gap: 0.14rem;
  align-content: start;
}

.te-inv-meta-right span {
  font-size: 0.42rem;
  color: #344054;
}

.te-inv-meta-right em {
  display: inline;
  margin-right: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
  color: #98a2b3;
}

.te-inv-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.48rem;
}

.te-inv-grid th,
.te-inv-grid td {
  border: 1px solid #f04438;
  padding: 0.28rem 0.22rem;
  text-align: left;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.72);
}

.te-inv-grid thead tr {
  background: linear-gradient(
    105deg,
    #ffe4ec 0%,
    #ffe8d6 22%,
    #fff3c4 42%,
    #d8f8e8 62%,
    #d6ecff 82%,
    #ebe4ff 100%
  );
}

.te-inv-grid th {
  background: transparent;
  color: #b42318;
  font-weight: 700;
  white-space: nowrap;
}

.te-inv-grid td {
  color: #101828;
  font-weight: 600;
}

.te-inv-grid td strong {
  display: block;
  font-size: 0.42rem;
}

.te-inv-grid td em {
  display: block;
  font-style: normal;
  font-size: 0.36rem;
  color: #667085;
  font-weight: 600;
}

.te-inv-paper-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1.5px solid #d92d20;
}

.te-inv-foot-left,
.te-inv-foot-right {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.te-inv-words em,
.te-inv-terms > em,
.te-inv-bank > em {
  display: block;
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 800;
  color: #101828;
  margin-bottom: 0.1rem;
}

.te-inv-words span {
  display: block;
  font-size: 0.45rem;
  font-weight: 600;
  color: #344054;
  line-height: 1.3;
}

.te-inv-notes {
  display: grid;
  gap: 0.1rem;
  font-size: 0.42rem;
  color: #667085;
  font-weight: 600;
}

.te-inv-notes em {
  font-style: normal;
  font-weight: 700;
  color: #475467;
  margin-right: 0.2rem;
}

.te-inv-terms ol {
  margin: 0;
  padding-left: 0.9rem;
  display: grid;
  gap: 0.08rem;
}

.te-inv-terms li {
  font-size: 0.4rem;
  color: #475467;
  font-weight: 600;
  line-height: 1.3;
}

.te-inv-bank {
  border: 1px solid #d92d20;
  border-radius: 0.2rem;
  padding: 0.28rem 0.35rem;
  background: rgba(255, 255, 255, 0.85);
}

.te-inv-bank > div {
  display: grid;
  gap: 0.08rem;
}

.te-inv-bank span {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.4rem;
  color: #667085;
  font-weight: 600;
}

.te-inv-bank b {
  color: #101828;
  font-weight: 700;
}

.te-inv-jurisdiction {
  width: fit-content;
  padding: 0.12rem 0.35rem;
  border: 1px solid #d92d20;
  font-size: 0.4rem;
  font-weight: 700;
  color: #b42318;
  background: #fff;
}

.te-inv-computer {
  margin: 0.1rem 0 0;
  font-size: 0.38rem;
  font-weight: 600;
  color: #d92d20;
}

.te-inv-totals {
  display: grid;
  gap: 0.14rem;
  text-align: right;
  font-size: 0.42rem;
  color: #475467;
  font-weight: 700;
  padding: 0.25rem 0.3rem;
  border: 1px solid #d92d20;
  background: rgba(255, 255, 255, 0.88);
}

.te-inv-totals span {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
}

.te-inv-totals strong {
  color: #101828;
  font-weight: 800;
  margin-left: 0;
  white-space: nowrap;
}

.te-inv-grand {
  color: #101828 !important;
  font-weight: 800 !important;
  font-size: 0.5rem !important;
  padding-top: 0.1rem;
  border-top: 1px dashed #f04438;
}

.te-inv-sign {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
}

.te-inv-sign > em {
  font-style: normal;
  font-size: 0.42rem;
  font-weight: 700;
  color: #101828;
}

.te-inv-stamp-wrap {
  position: relative;
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  isolation: isolate;
}

.te-inv-stamp {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.te-inv-sign-line {
  font-size: 0.42rem;
  font-weight: 700;
  color: #101828;
  border-top: 1px solid #101828;
  padding-top: 0.15rem;
  min-width: 5.5rem;
  text-align: center;
  background: #fff;
}

.te-inv-design {
  width: 8.6rem;
  flex: 0 0 8.6rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.65rem;
  padding: 0.35rem 0.4rem 0.4rem;
  min-width: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 3;
  align-self: flex-start;
  will-change: transform;
}

.te-inv-design.is-dragging {
  cursor: grabbing;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.18);
}

.te-inv-design-handle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.1rem;
}

.te-inv-design-grip {
  width: 0.7rem;
  height: 0.85rem;
  flex-shrink: 0;
  background:
    radial-gradient(circle, #98a2b3 1.1px, transparent 1.2px) 0 0 / 0.35rem 0.35rem,
    radial-gradient(circle, #98a2b3 1.1px, transparent 1.2px) 0.35rem 0 / 0.35rem 0.35rem;
  background-repeat: repeat;
  opacity: 0.85;
}

.te-inv-design-title {
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #101828;
}

.te-inv-field,
.te-inv-slider {
  display: grid;
  gap: 0.2rem;
}

.te-inv-field em,
.te-inv-slider em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 700;
  color: #667085;
}

.te-inv-slider em b {
  color: #3641f5;
  font-weight: 800;
}

.te-inv-field .te-trips-select {
  width: 100%;
  justify-content: space-between;
}

.te-inv-track {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: #e4e7ec;
  overflow: hidden;
  position: relative;
}

.te-inv-track > span {
  display: block;
  height: 100%;
  background: #3641f5;
  border-radius: inherit;
  position: relative;
}

.te-inv-track > span::after {
  content: '';
  position: absolute;
  right: -0.2rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #3641f5;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
  transform: translateY(-50%);
}

.te-inv-design-actions {
  display: grid;
  gap: 0.28rem;
  margin-top: auto;
}

.te-inv-design-actions .te-inv-btn {
  justify-content: center;
  min-height: 1.4rem;
}

/* —— Real-app Reports mock —— */
.te-rep {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.te-rep-panel {
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 0.85rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
}

.te-rep-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.te-rep-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: #3641f5;
  color: #fff;
  flex-shrink: 0;
}

.te-rep-head strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.15;
}

.te-rep-head em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 600;
  color: #667085;
}

.te-rep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.te-rep-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  border-radius: 0.75rem;
  padding: 0.7rem 0.7rem 0.65rem;
  border: 1px solid transparent;
  min-height: 9.5rem;
}

.te-rep-card--blue {
  background: #eff4ff;
  border-color: #d9e2ff;
}

.te-rep-card--purple {
  background: #f4f0ff;
  border-color: #e4dbff;
}

.te-rep-card--amber {
  background: #fff8eb;
  border-color: #f7d9a8;
}

.te-rep-card--soon {
  border-style: dashed;
  border-width: 1.5px;
  border-color: #f2b87a;
}

.te-rep-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.te-rep-card-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
}

.te-rep-card--blue .te-rep-card-icon {
  color: #3538cd;
}

.te-rep-card--purple .te-rep-card-icon {
  color: #6938ef;
}

.te-rep-card--amber .te-rep-card-icon {
  color: #b54708;
}

.te-rep-card-go {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
}

.te-rep-card--blue .te-rep-card-go {
  color: #3538cd;
}

.te-rep-card--purple .te-rep-card-go {
  color: #6938ef;
}

.te-rep-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f7d9a8;
  color: #b54708;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.te-rep-card > strong {
  font-size: 0.68rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.25;
}

.te-rep-card > p {
  margin: 0;
  font-size: 0.5rem;
  font-weight: 600;
  color: #475467;
  line-height: 1.4;
}

.te-rep-card > em {
  font-style: normal;
  font-size: 0.46rem;
  font-weight: 600;
  color: #98a2b3;
  line-height: 1.35;
}

.te-rep-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding-top: 0.45rem;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.te-rep-card--blue .te-rep-card-cta {
  color: #3538cd;
}

.te-rep-card--purple .te-rep-card-cta {
  color: #6938ef;
}

.te-rep-card-note {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #d92d20;
}

/* —— Real-app Accounting mock —— */
.te-acc {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
}

.te-acc-panel {
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 0.85rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
}

.te-acc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.te-acc-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.te-acc-title-row strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #101828;
}

.te-acc-beta {
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
}

.te-acc-head em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 600;
  color: #667085;
}

.te-acc-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.te-acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.te-acc-btn--credit {
  background: #12b76a;
  box-shadow: 0 4px 10px rgba(18, 183, 106, 0.25);
}

.te-acc-btn--debit {
  background: #f04438;
  box-shadow: 0 4px 10px rgba(240, 68, 56, 0.22);
}

.te-acc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.te-acc-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-radius: 0.85rem;
  padding: 0.85rem 0.8rem 0.9rem;
  border: 1px solid transparent;
  min-height: 7.5rem;
}

.te-acc-card--orange {
  background: linear-gradient(145deg, #fff4eb 0%, #ffe8d6 100%);
  border-color: #ffd6ae;
}

.te-acc-card--green {
  background: linear-gradient(145deg, #ecfdf3 0%, #dcfae6 100%);
  border-color: #a6f4c5;
}

.te-acc-card--amber {
  background: linear-gradient(145deg, #fffaeb 0%, #fef0c7 100%);
  border-color: #fde272;
}

.te-acc-card-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  color: #344054;
}

.te-acc-card--orange .te-acc-card-icon {
  color: #c4320a;
}

.te-acc-card--green .te-acc-card-icon {
  color: #027a48;
}

.te-acc-card--amber .te-acc-card-icon {
  color: #b54708;
}

.te-acc-card em {
  margin-top: auto;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  color: #475467;
}

.te-acc-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #101828;
  letter-spacing: -0.02em;
  line-height: 1.1;
}


/* —— Mobile gallery (Why Lorryto pattern) —— */
.te-section-shell {
  min-height: 12rem;
}

/* Matches the desktop StickyScroll runway so anchors below do not shift on hydrate */
@media (min-width: 981px) and (orientation: landscape), (min-width: 1181px) {
  .te-section-shell {
    min-height: calc(var(--te-shell-vh, 12) * 1vh);
  }
}

.te-gallery {
  --te-blue: #3641f5;
  --te-ink: #101828;
  --te-muted: #667085;
  --te-line: #e4e7ec;
  position: relative;
  isolation: isolate;
  background: #fff;
  padding: 4.5rem 0 5.5rem;
}

.te-gallery-head {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.te-gallery-title {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--te-ink);
}

.te-gallery-sub {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--te-muted);
}

.te-gallery-frame {
  width: min(640px, 100%);
  margin: 0 auto;
  position: relative;
}

.te-gallery-stage {
  position: relative;
  padding: 0 1.15rem 3.25rem;
}

.te-gallery-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}

.te-gallery-track::-webkit-scrollbar {
  display: none;
}

.te-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: 0 0.15rem;
}

.te-gallery-item {
  min-height: 16rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px rgba(16, 24, 40, 0.04);
}

.te-gallery-item-step {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--te-blue);
  letter-spacing: 0.04em;
}

.te-gallery-item-step span {
  color: #98a2b3;
  font-weight: 600;
}

.te-gallery-item-title {
  margin: 0;
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--te-ink);
}

.te-gallery-item-desc {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--te-muted);
}

.te-gallery-item-bullets {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.te-gallery-item-bullets li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #344054;
  line-height: 1.3;
}

.te-gallery-item-bullets li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  border: 1.5px solid #12b76a;
  color: #12b76a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
}

.te-gallery-controls {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(228, 231, 236, 0.95);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.te-gallery-nav {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: var(--te-ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.te-gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.te-gallery-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: min(100%, 14rem);
}

.te-gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.te-gallery-dot.is-active {
  width: 1.2rem;
  background: var(--te-blue);
}

.te-gallery-step-meta {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}

.te-gallery .story-skip {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(100% - 2.3rem, 22rem);
  margin: 1.5rem auto 0;
  justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  .te-gallery-track {
    scroll-behavior: auto;
  }
}

