/* Screen styles: splash, sign in, home, profile, activity. Ride lives in screens-2.css;
   services, rent, cars, bills and shop in screens-3.css. */
@import url("screens-2.css");
@import url("screens-3.css");

.sec-title { font-weight: 500; font-size: 18px; letter-spacing: -0.2px; margin-bottom: 16px; color: var(--text); }
.app[data-chrome="0"] .topbar { display: none; }

/* ---------- Splash ---------- */
.splash { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 32px; background: #171717; overflow: hidden; cursor: pointer; }
.splash__swoosh { position: absolute; width: 800px; height: 938px; max-width: none; right: -420px; top: 50%; transform: translateY(-50%); opacity: 0; animation: fade-in 1.2s 0.3s ease forwards; }
.splash__brand { display: flex; align-items: center; gap: 40px; }
.splash__mark { width: 109px; height: 128px; animation: mark-in 1s var(--spring) both; }
.splash__brand b { font-weight: 500; font-size: 99px; letter-spacing: -2px; color: var(--orange); line-height: 1.2; animation: word-in 0.9s 0.25s var(--ease) both; }
.splash__tag { color: #fff; font-size: 16px; animation: fade-in 0.8s 0.6s ease both; }
.splash__bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; animation: fade-in 0.5s 0.8s both; }
.splash__bar i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; animation: load 1.8s 0.8s var(--ease) both; }
@keyframes mark-in { from { transform: scale(0.4) rotate(-30deg); opacity: 0; } }
@keyframes word-in { from { transform: translateX(-30px); opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes load { from { transform: scaleX(0); } }
@media (max-width: 767px) {
  .splash__brand b, .splash__tag, .splash__bar { display: none; }
  .splash__mark { width: 102px; height: 120px; }
  .splash__swoosh { right: -412px; }
}

/* ---------- Sign in ---------- */
.signin { position: absolute; inset: 0; display: flex; background: var(--surface); }
.signin__hero { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; overflow: hidden; color: #fff; background: #222; }
.signin__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom-out 8s var(--ease) both; }
.signin__hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 10%, transparent 60%, rgba(0, 0, 0, 0.35)), linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%); }
@keyframes zoom-out { from { transform: scale(1.12); } }
.signin__swoosh { position: absolute; width: 800px; height: 938px; max-width: none; left: 264px; top: -259px; z-index: 1; }
.signin__logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.signin__logo img { width: 22px; height: 26px; }
.signin__logo b { font-weight: 500; font-size: 20px; letter-spacing: -0.4px; }
.signin__pitch { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.welcome { display: inline-flex; padding: 6px 22px; border-radius: 99px; background: #fff; color: var(--orange); font-size: 14px; }
.signin__pitch h1 { font: 500 52px/64px var(--font-head); margin-top: 0; }
.signin__pitch p { font-size: 16px; margin: 5px 0 68px; }
.signin__cta { display: flex; gap: 10px; }
.signin__create { width: 194px; color: #000; }
.social { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 22px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); transition: transform 0.2s var(--ease), background-color 0.2s; }
.social:hover { background: rgba(255, 255, 255, 0.3); }
.social:active { transform: scale(0.92); }
.social img { width: 26px; height: 26px; }
.signin__guest { display: none; }
.signin__side { width: 688px; flex: none; display: grid; place-items: center; padding: 50px 40px; }
.signin__card { width: 464px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 32px 24px; border-radius: 40px; background: var(--surface-2); animation: rise 0.7s 0.1s var(--ease) both; }
.signin__card .h1 { margin-bottom: 36px; }
.signin__fields { display: flex; flex-direction: column; gap: 24px; }
.signin__fields label { display: block; }
.eye { display: grid; opacity: 0.6; }
.eye.is-on { opacity: 1; }
.forgot { display: block; margin-top: 8px; color: var(--orange); font-weight: 500; font-size: 14px; text-decoration: underline; }
.signin__create2 { height: 56px; border-radius: 18px; color: var(--text); }
.signin__guest2 { align-self: center; color: var(--orange); font-weight: 500; font-size: 16px; }
.btn img { width: 24px; height: 24px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .signin__side { width: 52%; padding: 32px; } .signin__pitch h1 { font-size: 42px; line-height: 52px; } }
@media (max-width: 767px) {
  .signin { display: block; overflow-y: auto; background: var(--surface); }
  .signin__hero {
    margin: 0; padding: 56px 16px 26px; align-items: center; text-align: center;
    border-radius: 0 0 50px 50px; border: 4px solid var(--surface); border-top: 0;
    background: linear-gradient(160deg, #ff6b00 0%, #ff8a3d 40%, #e8443a 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.25);
  }
  .signin__photo { display: none; }
  .signin__hero::after { display: none; }
  .signin__swoosh { left: 140px; top: -360px; opacity: 1; }
  .signin__logo { position: absolute; left: 20px; top: 24px; }
  .signin__pitch { align-items: center; margin-top: 30px; }
  .welcome { padding: 4px 14px; font-size: 12px; color: #313a34; }
  .signin__pitch h1 { font: 500 24px/30px var(--font); margin-top: 10px; }
  .signin__pitch p { font-size: 12px; margin: 4px 0 20px; }
  .signin__create { width: auto; height: 40px; padding: 0 12px; border-radius: 14px; font-size: 14px; }
  .social { width: 40px; height: 40px; border-radius: 14px; }
  .social img { width: 22px; height: 22px; }
  .signin__guest { display: block; margin-top: 20px; color: #fff; font-weight: 500; font-size: 14px; }
  .signin__side { width: auto; padding: 24px 12px 40px; display: block; }
  .signin__card { width: auto; padding: 8px 0; background: transparent; gap: 20px; }
  .signin__card .h1 { font-size: 22px; margin-bottom: 4px; }
  .signin__fields { gap: 16px; }
  .signin__fields .field { border: 1px solid var(--line); }
  .forgot { color: var(--text); font-size: 12px; }
  .signin__create2, .signin__guest2 { display: none; }
}

/* ---------- Activity card (Your Activities) ---------- */
.activity { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--orange); background: var(--surface); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.06); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.activity:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(255, 107, 0, 0.35); }
.activity__bar { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 32px; background: #171717; color: #fff; font-size: 14px; }
.activity__bar span { flex: 1; opacity: 0.8; }
.activity__bar b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hg { font-style: normal; font-size: 15px; }
.activity__map { position: relative; height: 104px; overflow: hidden; display: none; }
.activity__map > img:first-child { width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="dark"] .activity__map > img:first-child { content: url("../assets/img/map-dark.jpg"); }
.activity__route { position: absolute; left: 16%; top: 14%; width: 66%; height: auto; transform: scaleY(-1) rotate(4deg); }
.activity__car { position: absolute; left: 10%; top: 34%; width: 22px; height: auto; transform: rotate(-60deg); }
.activity__body { padding: 14px 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 16px 16px 0 0; margin-top: -4px; position: relative; background: var(--surface); }
.activity__car-row { display: flex; justify-content: space-between; align-items: flex-start; }
.activity__car-row b { display: block; font-weight: 500; font-size: 16px; }
.activity__car-row span { font-size: 14px; color: var(--text-2); }
.activity__car-row img { width: 82px; height: 35px; object-fit: contain; }
.activity__driver { display: flex; align-items: center; gap: 10px; }
.activity__driver > div:not(.call-btns) { flex: 1; min-width: 0; }
.activity__driver b { display: block; font-weight: 500; font-size: 14px; }
.activity__driver span { font-size: 12px; color: var(--muted-2); }
/* Call and chat sit together at the right end of a driver row. */
.call-btns { display: flex; gap: 10px; flex: none; margin-left: auto; }
.activity .round-btn { width: 32px; height: 32px; }
.activity .round-btn img { width: 20px; height: 20px; }
.activity .round-btn .dot { width: 13px; height: 13px; border-width: 2px; border-radius: 4px; font-size: 8px; line-height: 9px; top: -3px; right: -3px; }
.steps { display: flex; flex-direction: column; gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; left: 11.5px; top: 22px; height: 26px; width: 1px; background: var(--orange); }
.step { display: flex; gap: 10px; align-items: flex-start; }
.step small { display: block; font-size: 11px; color: var(--muted-2); }
.step b { font-weight: 500; font-size: 14px; }
.step__dot { width: 24px; height: 24px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.step__dot--from::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 189, 48, 0.3); }
.step__dot img { width: 15px; height: 16px; opacity: 0.4; }

/* ---------- Suggested tiles + history ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100px; border-radius: 20px; background: var(--bg); font-weight: 500; font-size: 14px; color: var(--text-2); transition: transform 0.25s var(--spring), box-shadow 0.25s; box-shadow: var(--shadow-sm); }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: scale(0.95); }
.tile__img { position: relative; height: 40px; display: grid; place-items: center; }
.tile__img > img:first-child { height: 40px; width: auto; max-width: 92px; object-fit: contain; }
.tile__badge { position: absolute; width: 51px; height: 51px; max-width: none; right: -36px; top: -24px; }
.hist[hidden] { display: none; }
.hist-none { padding: 18px 0; text-align: center; color: var(--muted); font-size: 14px; }
.hist-list { display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; padding: 4px 16px; box-shadow: var(--shadow-sm); }
.hist { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.hist__icon { position: relative; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.hist__icon > img:first-child { width: 22px; height: 22px; }
.hist__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hist__text b { font-weight: 500; font-size: 18px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist__text span { font-size: 14px; color: var(--muted); }
.hist__text small { font-size: 12px; color: var(--muted-2); }
.hist__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hist__end b { font-weight: 500; font-size: 16px; }

/* ---------- Home ---------- */
.home__hero { display: none; }
.home__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.home__title { font: 500 32px/1.1 var(--font-head); letter-spacing: -0.64px; color: var(--text-3); margin-bottom: 14px; }
.home__head p { font-size: 16px; letter-spacing: -0.32px; }
.home__grid, .home__side { display: flex; flex-direction: column; gap: 32px; }
.home__cards { display: flex; flex-direction: column; gap: 16px; }
.home__cards .activity:nth-child(2) { display: none; }
.home__cards { display: none; } /* desktop and tablet use the Activity screen's cards */
.home__trips { display: flex; flex-direction: column; gap: 14px; }
.home__trips .trip-next { background: var(--field); box-shadow: none; }
.home .stage { pointer-events: none; }
@media (min-width: 1101px) {
  .home.split { padding-top: 16px; }
  .home__panel { height: 100%; }
}
/* Tablet: the "Home (Without Map)" frame. */
@media (min-width: 768px) and (max-width: 1100px) {
  .home.split { display: block; padding: 8px 20px 20px; }
  .home__panel { width: 100%; height: 100%; border-radius: 40px; }
  .home__map { display: none; }
  .home__head { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .home__head .search { width: 320px; height: 48px; }
  .home__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
  .home__cards .activity:nth-child(2) { display: block; }
}
/* Phone */
@media (max-width: 767px) {
  .home .panel { position: absolute; inset: 0; }
  /* Phone home, after the reference: one screen, no scrolling. A big light line,
     "Where to?" with a round filter button, the live drive filling the middle, two tiles. */
  .home .panel__body { height: 100%; overflow: hidden; padding: 0 16px 92px; background: var(--bg); display: flex; flex-direction: column; }
  .home__head, .home__grid { display: none; }
  .home__hero { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 22px; padding: 14px 0 0; }
  .home__big { font-weight: 300; font-size: 34px; line-height: 1.1; letter-spacing: -0.9px; }
  .home__big small { display: flex; font-weight: 400; align-items: center; gap: 6px; font-size: 17px; letter-spacing: -0.2px; margin-bottom: 4px; }
  .home__big small .line { width: 24px; height: 24px; stroke-width: 1.3; }
  .home__big em { font-style: normal; color: #6b6b6b; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
  :root[data-theme="dark"] .home__big em { color: #a3a3a3; }
  .home__find { display: flex; align-items: center; gap: 12px; }
  .home__where {
    flex: 1; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 27px;
    background: var(--surface); color: #8a8a8a;
  }
  .home__where .line { width: 22px; height: 22px; }
  .home__where span { flex: 1; font-size: 17px; }
  .home__filter { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 10px 22px -10px rgba(255, 107, 0, 0.7); }
  .home__filter .line { width: 22px; height: 22px; }
    /* The drive bleeds to the screen edges and fades into the page above and below. */
  .home__drive { position: relative; flex: 1; min-height: 180px; margin: 0 -20px; }
  .home__drive .three-canvas { display: block; width: 100%; height: 100%; }
  /* A mask fades the scene itself into the page at top and bottom, so it has no visible edge. */
  .home__drive { margin-top: -20px; }
  .home__drive .three-canvas {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 80%, transparent 100%);
  }
  /* Icon top left, label top right, the action along the bottom. */
  .home__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: -40px; position: relative; z-index: 2; }
  .home__q {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: start; row-gap: 26px;
    min-height: 116px; padding: 18px 18px 20px; border-radius: 28px; background: var(--surface); box-shadow: 0 14px 30px -12px rgba(16, 24, 40, 0.22);
  }
  .home__q .line { width: 26px; height: 26px; }
  .home__q small { justify-self: end; font-size: 16px; color: #7a7a7a; }
  :root[data-theme="dark"] .home__q:not(.home__q--dark) small { color: #a1a1aa; } /* the orange tile keeps white */
  .home__q b { grid-column: 1 / -1; align-self: end; font-weight: 400; font-size: 16px; letter-spacing: -0.2px; }
  .home__q--dark { background: #1d1d1d; color: #fff; }
  .home__q--dark small { color: rgba(255, 255, 255, 0.85); }
  :root[data-theme="dark"] .home__q--dark { background: var(--orange); }
  .home__grid { gap: 28px; }
  .home__cards { display: flex; }
  .home__trips { display: none; }
  .home__cards .activity:nth-child(2) { display: block; }
  .activity { border: 0; box-shadow: var(--shadow); }
  .activity__map { display: block; }
  .activity__bar { height: 30px; font-size: 12px; }
  .activity__body { margin-top: -10px; }
  .sec-title { font-size: 16px; margin-bottom: 12px; }
  .tiles { gap: 8px; }
  .tile { height: 88px; background: var(--surface); }
  .hist__text b { font-size: 14px; font-weight: 500; }
  .hist__text span { font-size: 12px; }
  .hist__end b { font-size: 14px; }
}

/* ---------- Profile ---------- */
.profile { position: absolute; inset: 0; }
.profile__top { display: none; }
.profile__wrap { width: 980px; max-width: 100%; margin: 0 auto; padding: 32px 24px 60px; display: flex; flex-direction: column; gap: 37px; }
.profile__who { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.profile__pic { width: 100px; height: 100px; border-radius: 37.5px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 19px 11px rgba(0, 0, 0, 0.05), 0 8px 8px rgba(0, 0, 0, 0.09), 0 2px 5px rgba(0, 0, 0, 0.1); }
.profile__pic img { width: 100%; height: 100%; object-fit: cover; }
.profile__who h2 { font-weight: 500; font-size: 27.5px; letter-spacing: -0.33px; color: var(--text); }
.set-group { display: flex; flex-direction: column; gap: 14px; }
.set-group__head { display: flex; justify-content: space-between; align-items: center; }
.set-group__head h3 { font-weight: 500; font-size: 18.35px; color: var(--text); }
.set-group__head img { width: 28px; height: 28px; filter: var(--icon-filter); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 9px; }
.set-card {
  display: flex; align-items: center; gap: 9px; padding: 13.76px; border-radius: 27.5px; background: var(--surface);
  box-shadow: 0 9px 18px rgba(47, 60, 51, 0.05); text-align: left; width: 100%;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.set-card:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(47, 60, 51, 0.09); }
.set-card:active { transform: scale(0.98); }
.set-card__ic { width: 55px; height: 55px; border-radius: 20.6px; background: #f7f7f7; display: grid; place-items: center; flex: none; }
:root[data-theme="dark"] .set-card__ic { background: rgba(255, 255, 255, 0.08); }
.set-card__ic img { width: 24px; height: 24px; }
:root[data-theme="dark"] .set-card:not(.is-danger):not(.is-signout) .set-card__ic img, :root[data-theme="dark"] .set-card__chev { filter: invert(1); }
.set-card__label { flex: 1; font-weight: 500; font-size: 18.35px; letter-spacing: -0.15px; color: var(--text); }
.set-card__chev { width: 28px; height: 28px; transition: transform 0.2s var(--ease); }
.set-card:hover .set-card__chev { transform: translateX(3px); }
.set-card.is-signout .set-card__ic { background: #fee2e2; }
.set-card.is-danger { background: var(--red); box-shadow: none; }
.set-card.is-danger .set-card__label { color: #fff; }
.set-card.is-danger .set-card__ic { background: rgba(255, 255, 255, 0.1); }
.set-card.is-toggle .set-card__label { font-weight: 500; font-size: 16px; }
.set-card .switch { width: 64px; height: 32px; border-radius: 13.76px; background: #e3e4e3; }
.set-card .switch::after { width: 27.5px; height: 27.5px; border-radius: 11.5px; top: 2.3px; left: 2.3px; }
.set-card .switch[aria-checked="true"] { background: var(--green-badge); }
.set-card .switch[aria-checked="true"]::after { transform: translateX(32px); }
@media (max-width: 767px) {
  .profile__top {
    display: flex; align-items: center; justify-content: space-between; height: 180px; padding: 0 16px 50px;
    background: linear-gradient(180deg, #ff6b00, #ffaa66); border-radius: 0 0 50px 50px; color: #fff;
  }
  .profile__top h1 { font-weight: 500; font-size: 20px; }
  .profile__top span { width: 48px; }
  .profile__back { width: 48px; height: 48px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.32); backdrop-filter: blur(9px); }
  .profile__wrap { padding: 0 12px 40px; margin-top: -60px; gap: 28px; }
  .profile__pic { width: 90px; height: 90px; border-radius: 32px; }
  .profile__who h2 { font-size: 22px; }
  .set-grid { grid-template-columns: 1fr; gap: 10px; }
  .set-group__head h3 { font-size: 16px; }
  .set-card { padding: 10px; border-radius: 22px; }
  .set-card__ic { width: 44px; height: 44px; border-radius: 16px; }
  .set-card__label { font-size: 15px; }
  .set-card.is-danger { background: var(--surface-3); }
  .set-card.is-danger .set-card__label { color: var(--muted); }
  .set-card.is-danger .set-card__ic { background: rgba(0, 0, 0, 0.06); }
  .set-card.is-danger .set-card__ic img { filter: grayscale(1) brightness(0.4); }
  .set-card.is-danger .set-card__chev { filter: invert(1) brightness(0.4); }
}

/* ---------- Home panel: Chat / Activities (desktop) ---------- */
.home__switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: none; margin: 24px 24px 0; padding: 4px;
  border-radius: 26px; background: var(--field); /* lines up with the panel body (24px); concentric: panel 50 - 24 */
}
.home__switch button { position: relative; z-index: 1; height: 44px; border-radius: 22px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color 0.25s; }
.home__switch button[aria-selected="true"] { color: var(--orange); }
.home__glider {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 22px; /* switch 26 - padding 4 */
  background: var(--surface); box-shadow: var(--shadow-nav); transition: transform 0.45s var(--spring);
}
.home__panel[data-view="acts"] .home__glider { transform: translateX(100%); }
.home__panel[data-view="chat"] > .panel__body, .home__panel[data-view="acts"] > .home__chat { display: none; }
.home__panel > .panel__body, .home__chat { animation: rise 0.45s var(--ease) both; }
.home__panel[data-view="acts"] > .panel__body { padding-top: 24px; }
.home__chat { flex: 1; min-height: 0; display: flex; }

.hchat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hchat__log { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.hchat__hello { margin: auto 0; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 0 8px; }
.hchat__hello h2 { font: 500 28px/1.15 var(--font-head); letter-spacing: -0.6px; color: var(--text-3); }
.hchat__hello p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.hchat__orb {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; flex: none;
  background: linear-gradient(135deg, #ff6b00, #ff9a55); box-shadow: 0 10px 24px -8px rgba(255, 107, 0, 0.6);
}
.hchat__orb img { width: 34px; height: 34px; }
.hchat__orb--sm { width: 24px; height: 24px; border-radius: 8px; box-shadow: none; }
.hchat__orb--sm img { width: 14px; height: 14px; }
.hchat__me {
  align-self: flex-end; max-width: 80%; padding: 12px 16px; border-radius: 20px 20px 6px 20px;
  background: var(--orange); color: #fff; font-size: 15px; line-height: 1.4; animation: rise 0.35s var(--ease) both;
}
.hchat__ai { display: grid; gap: 8px; animation: rise 0.45s var(--ease) both; }
.hchat__who { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; color: var(--muted); }
.hchat__card { display: grid; gap: 14px; padding: 16px; border-radius: 6px 22px 22px 22px; background: var(--field); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.hchat__card b { color: var(--text); }
.hchat__img { width: 100%; height: 120px; object-fit: cover; border-radius: 16px; }
.hchat__rides { display: grid; gap: 8px; }
.hchat__ride {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface);
  border: 1px solid transparent; font-weight: 500; font-size: 14px; text-align: left; transition: border-color 0.2s, box-shadow 0.2s;
}
.hchat__ride span { flex: 1; }
.hchat__ride.is-on { border-color: var(--orange-line); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08); }
.hchat__acts { display: flex; gap: 8px; }
.hchat__acts .btn, .hchat__link { flex: 1; height: 44px; border-radius: 14px; font-size: 14px; }
.hchat__link { justify-self: start; padding: 0 18px; gap: 8px; }
.hchat__link img { width: 18px; height: 18px; }
.hchat__typing { display: flex; gap: 5px; align-self: flex-start; padding: 14px 16px; border-radius: 6px 20px 20px 20px; background: var(--field); }
.hchat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.hchat__typing i:nth-child(3) { animation-delay: 0.2s; }
.hchat__typing i:nth-child(4) { animation-delay: 0.4s; }
.hchat__dock { flex: none; display: grid; gap: 12px; padding: 12px 20px 20px; border-top: 1px solid var(--line); }
.hchat__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.hchat__chips::-webkit-scrollbar { display: none; }
.hchat__chip {
  flex: none; padding: 12px; border-radius: 99px; border: 0; background: var(--orange-light);
  color: var(--orange); font-weight: 500; font-size: 13px; white-space: nowrap; transition: transform 0.18s var(--ease);
}
.hchat__chip:active { transform: scale(0.95); }
:root[data-theme="dark"] .hchat__chip:not(.hchat__chip--ghost) { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hchat__chip--ghost { background: var(--field); color: var(--muted); } /* no stroke: a quiet fill instead */
.hchat__ask {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 30px; /* panel 50 - dock 20 */
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.hchat__ask:focus-within { border-color: rgba(255, 107, 0, 0.4); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1); }
.hchat__ask input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font: 400 15px var(--font); color: var(--text); }
.hchat__send { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 24px; /* field 30 - padding 6 */ background: var(--orange); transition: opacity 0.2s, transform 0.18s var(--ease); }
.hchat__send:disabled { opacity: 0.35; }
.hchat__send:active { transform: scale(0.92); }
.hchat__send img { width: 20px; height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tablet and phone keep the activities layout from their frames. */
@media (max-width: 1100px) {
  .home__switch, .home__chat { display: none !important; }
  .home__panel > .panel__body { display: block !important; padding-top: 32px; }
}
@media (max-width: 767px) {
  /* The phone home is one screen laid out as a column (see the phone rules above). */
  .home__panel > .panel__body { display: flex !important; padding-top: 0; }
}

/* ---------- Phone top bar (Home, Activity) ---------- */
.pbar { display: none; }
@media (max-width: 767px) {
  .pbar { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; margin-bottom: 4px; }
  .pbar__btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); color: var(--text); }
  .pbar__btn .line { width: 24px; height: 24px; }
  .pbar__logo img { width: 28px; height: 28px; } /* the brand mark where the menu was, as in the tracker's phone header */
  .pbar__theme .is-sun, :root[data-theme="dark"] .pbar__theme .is-moon { display: none; }
  :root[data-theme="dark"] .pbar__theme .is-sun { display: block; }
  .pbar__loc { display: grid; justify-items: center; gap: 4px; }
  .pbar__loc small { font-size: 15px; color: #8a8a8a; }
  .pbar__loc b { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 16px; }
  .pbar__loc .line { width: 18px; height: 18px; }
}

/* ---------- Activity ----------
   After the reference: big light type, one dark hero card for the live ride, a quiet white
   card for the next, small numbers, then a calm history list. Radii nest (outer - padding). */
.actv { height: 100%; overflow-y: auto; max-width: 1180px; margin: 0 auto; padding: 36px 32px 56px; display: flex; flex-direction: column; gap: 32px; }
.actv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.actv__head small { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.actv__head h1 { font: 300 44px/1 var(--font-head); letter-spacing: -1.4px; color: var(--text); }
.seg { display: none; padding: 5px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm); }
.seg button { height: 40px; padding: 0 22px; border-radius: 99px; font-size: 15px; color: var(--muted); transition: background 0.25s, color 0.25s; }
.seg button[aria-selected="true"] { background: #1d1d1d; color: #fff; }
:root[data-theme="dark"] .seg button[aria-selected="true"] { background: var(--orange); }
.actv__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.actv__now, .actv__past { display: flex; flex-direction: column; gap: 20px; }

/* The live ride */
.trip-hero {
  position: relative; container-type: inline-size; display: flex; flex-direction: column; gap: 22px; padding: 26px; border-radius: 36px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 107, 0, 0.28), transparent 55%), linear-gradient(160deg, #222 0%, #121212 100%);
  box-shadow: 0 30px 60px -30px rgba(16, 16, 16, 0.6); transition: transform 0.3s var(--ease);
}
:root[data-theme="dark"] .trip-hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.trip-hero:hover { transform: translateY(-3px); }
.trip-hero__top { display: flex; align-items: center; justify-content: space-between; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }
.trip-hero__plate { font-size: 13px; letter-spacing: 1.2px; color: rgba(255, 255, 255, 0.55); }
.trip-hero__clock { display: flex; align-items: flex-end; gap: 14px; min-height: 128px; position: relative; z-index: 1; } /* tall enough that the car clears the route */
.trip-hero__clock b { font: 300 76px/0.9 var(--font-head); letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.trip-hero__clock span { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, 0.6); padding-bottom: 6px; }
.trip-hero__car { position: absolute; right: -30px; top: 62px; width: 50%; max-width: 320px; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(255, 107, 0, 0.18)); pointer-events: none; }
.tl { display: grid; gap: 14px; position: relative; z-index: 1; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, 0.07); } /* 36 - 12 */
.tl::before { content: ""; position: absolute; left: 29px; top: 36px; bottom: 38px; border-left: 1.5px dashed rgba(255, 255, 255, 0.25); }
.tl__stop { display: flex; align-items: center; gap: 14px; }
.tl__stop small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.tl__stop b { font-weight: 400; font-size: 15px; }
.tl__dot { flex: none; width: 24px; display: grid; place-items: center; }
.tl__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--orange); }
.tl__pin { flex: none; width: 24px; height: 24px; color: var(--orange); }
.tl__pin .line { width: 24px; height: 24px; }
.trip-hero__driver { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.trip-hero__pic { width: 48px; height: 48px; border-radius: 16px; object-fit: cover; }
.trip-hero__driver > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trip-hero__driver b { font-weight: 500; font-size: 16px; }
.trip-hero__driver span { font-size: 13px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-hero__acts { display: flex; gap: 8px; }
.orb { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111; transition: transform 0.2s var(--ease); }
.orb:last-child { background: var(--orange); color: #fff; }
.orb:active { transform: scale(0.92); }
.orb .line { width: 21px; height: 21px; }

/* The next ride */
.trip-next { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 12px; border-radius: 30px; background: var(--surface); box-shadow: 0 18px 40px -24px rgba(16, 24, 40, 0.25); transition: transform 0.3s var(--ease); }
.trip-next:hover { transform: translateY(-2px); }
.trip-next__ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--orange-light); color: var(--orange); } /* 30 - 12 */
.trip-next__go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-right: 6px; border-radius: 50%; background: #1d1d1d; color: #fff; }
:root[data-theme="dark"] .trip-next__go { background: var(--orange); }
.trip-next__ic .line { width: 26px; height: 26px; }
.trip-next__go .line { width: 20px; height: 20px; }
.trip-next__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trip-next__text small { font-size: 13px; color: var(--muted); }
.trip-next__text b { font: 300 30px/1.1 var(--font-head); letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.trip-next__text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The month in numbers */
.actv__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.actv__stats div { display: grid; gap: 6px; padding: 18px; border-radius: 24px; background: var(--surface); }
.actv__stats b { font: 300 28px/1 var(--font-head); letter-spacing: -0.8px; }
.actv__stats span { font-size: 12px; color: var(--muted); }

/* History */
.actv__list { padding: 8px; border-radius: 30px; background: var(--surface); }
.actv__list h3 { padding: 12px 14px 6px; font-weight: 400; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.hrow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 22px; transition: background 0.2s; } /* 30 - 8 */
.hrow:hover { background: var(--field); }
.hrow + .hrow { box-shadow: 0 -1px 0 var(--line); }
.hrow:hover, .hrow:hover + .hrow { box-shadow: none; }
.hrow__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--field); color: var(--text); }
.hrow__ic .line { width: 22px; height: 22px; }
.hrow__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hrow__text b { font-weight: 500; font-size: 15px; }
.hrow__text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__end { display: grid; gap: 3px; justify-items: end; }
.hrow__end b { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.hrow__end span { font-size: 12px; color: #34c759; }

/* A narrow hero (phone, home panel): label under the number, clear of the car */
@container (max-width: 420px) {
  .trip-hero__clock { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
  .trip-hero__clock span br { display: none; }
  .trip-hero__clock b { font-size: 64px; }
  .trip-hero__car { top: 74px; right: -34px; width: 54%; }
  .tl { border-radius: 22px; padding: 16px; }
  .tl::before { left: 27px; top: 34px; }
}
@media (max-width: 1100px) {
  .actv__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .actv { padding: 14px 16px 110px; gap: 22px; } /* the top bar as on Home; clear of the tab bar */
  .actv__head { align-items: center; }
  .actv__head small { font-size: 14px; margin-bottom: 4px; }
  .actv__head h1 { font-size: 34px; letter-spacing: -1px; }
  .seg { display: flex; }
  .actv[data-tab="now"] .actv__past, .actv[data-tab="past"] .actv__now { display: none; }
  .trip-hero { padding: 22px; gap: 20px; border-radius: 32px; }
  .actv__stats { gap: 8px; }
  .actv__stats div { padding: 14px; border-radius: 20px; }
  .actv__stats b { font-size: 22px; }
}
