.rectangular-preview {
  --paper: #e5d8bd;
  background: #26382f;
}

.rectangular-preview .topbar {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 38%),
    linear-gradient(135deg, #345c49 0%, #213e33 100%);
  box-shadow: 0 3px 14px rgba(27, 49, 39, 0.3);
}

.rectangular-preview #map-wrap {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 249, 230, 0.46), transparent 52%),
    repeating-linear-gradient(0deg, rgba(71, 55, 35, 0.028) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px),
    #d8c7a7;
}

.rectangular-preview .topbar {
  padding: calc(7px + env(safe-area-inset-top)) 12px 7px;
}

.rectangular-preview .topbar-brand-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.rectangular-preview .brand-logo {
  width: auto;
  height: 22px;
  max-width: 96px;
}

.rectangular-preview .topbar-title {
  min-width: 0;
  gap: 6px;
}

.rectangular-preview .title-main {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: 0.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rectangular-preview .title-sub {
  min-width: 0;
  overflow: hidden;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rectangular-preview .topbar-actions {
  gap: 4px;
}

.rectangular-preview .list-badge {
  top: -4px;
  right: -2px;
}

.rectangular-preview .route-option {
  flex-direction: column;
  gap: 1px;
  min-height: 40px;
  padding: 3px 4px;
  line-height: 1.1;
}

.rectangular-preview .route-option small {
  line-height: 1.1;
}

.rectangular-preview #stage {
  box-shadow: none;
}

.rectangular-preview .map-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 56%, rgba(74, 52, 28, 0.11) 100%),
    repeating-linear-gradient(7deg, transparent 0 9px, rgba(93, 69, 42, 0.012) 10px 11px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.rectangular-preview #map-image {
  filter: saturate(0.96) contrast(1.018);
}

.rectangular-preview .map-tools {
  right: 17px;
}

.rectangular-preview .map-tool {
  border-color: rgba(77, 62, 40, 0.18);
  background: rgba(255, 250, 238, 0.92);
  box-shadow: 0 4px 14px rgba(58, 43, 25, 0.14);
}

.rectangular-preview .map-tool.active {
  color: #ffffff;
  border-color: #b94f00;
  background: #d96009;
  box-shadow: 0 4px 14px rgba(148, 64, 0, 0.28);
}

.rectangular-preview .marker.off-route {
  width: 21px;
  height: 21px;
  color: #a24f15;
  border: 2px solid rgba(255, 250, 238, 0.98);
  background: rgba(255, 244, 224, 0.96) !important;
  box-shadow: 0 0 0 1px rgba(173, 88, 56, 0.46), 0 2px 7px rgba(67, 48, 28, 0.18);
  opacity: 0.88;
}

.rectangular-preview .marker.off-route span {
  margin-top: -2px;
  font-size: 17px;
  line-height: 1;
}

.rectangular-preview .marker.off-route.selected {
  outline: 2px solid rgba(255, 253, 247, 0.98);
  box-shadow: 0 0 0 4px rgba(217, 96, 9, 0.34), 0 2px 8px rgba(47, 58, 102, 0.24);
  opacity: 1;
}

.rectangular-preview .list-section-heading {
  padding: 16px 8px 7px;
  color: #8b6b48;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.rectangular-preview .list-item.off-route {
  padding-block: 10px;
  background: rgba(255, 249, 237, 0.42);
}

.rectangular-preview .li-num.off-route {
  color: #a24f15;
  border: 1.5px solid #d6a57a;
  background: #fff8eb;
}

.rectangular-preview .gps-accuracy {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: 1px solid rgba(37, 119, 217, 0.5);
  border-radius: 50%;
  background: rgba(37, 119, 217, 0.12);
  box-shadow: 0 0 0 8px rgba(37, 119, 217, 0.035);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rectangular-preview #walking-route-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.rectangular-preview #route-halo {
  fill: none;
  stroke: rgba(255, 251, 238, 0.92);
  stroke-width: 8.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(75, 54, 32, 0.14));
}

.rectangular-preview #route-line {
  fill: none;
  stroke: #9d4b30;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 8;
  stroke-dashoffset: 0;
  animation: zzy-route-flow 1.15s linear infinite;
}

@keyframes zzy-route-flow {
  to {
    stroke-dashoffset: -30;
  }
}

.rectangular-preview #map-wrap.intro-mode #walking-route-layer {
  opacity: 0;
}

.rectangular-preview #map-wrap.map-transitioning #walking-route-layer {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .rectangular-preview #route-line {
    animation: none;
  }
}

.rectangular-preview .rect-preview-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(70, 82, 69, 0.25);
  border-radius: 999px;
  color: #344a3d;
  background: rgba(255, 251, 240, 0.94);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(60, 45, 27, 0.14);
  pointer-events: none;
}

.rectangular-preview .rect-preview-tag b {
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: #a6572f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rectangular-preview #map-disclaimer {
  color: rgba(67, 58, 43, 0.72);
}

.rectangular-preview .welcome-card {
  bottom: max(18px, env(safe-area-inset-bottom));
  border-color: rgba(112, 88, 53, 0.2);
  background: rgba(255, 249, 235, 0.94);
  box-shadow: 0 10px 28px rgba(67, 48, 28, 0.13);
  touch-action: none;
}

.rectangular-preview .welcome-card.dragging {
  transition: none;
}

.rectangular-preview .welcome-card.collapsed {
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
}

.rectangular-preview .welcome-drag-handle {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 42px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.rectangular-preview .welcome-drag-handle span {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: rgba(113, 94, 66, 0.32);
}

.rectangular-preview .welcome-collapse-btn {
  position: absolute;
  right: 8px;
  top: 5px;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #786b58;
  background: rgba(245, 235, 216, 0.9);
  font-size: 18px;
  line-height: 1;
}

.rectangular-preview .welcome-expand-btn {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 16;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border: 1px solid rgba(112, 88, 53, 0.25);
  border-radius: 999px;
  color: #2f4a3b;
  background: rgba(255, 250, 238, 0.96);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(67, 48, 28, 0.2);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rectangular-preview .welcome-expand-btn b {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 420px) {
  .rectangular-preview .topbar {
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  }

  .rectangular-preview .topbar-brand-row {
    gap: 6px;
  }

  .rectangular-preview .brand-logo {
    height: 20px;
    max-width: 82px;
  }

  .rectangular-preview .title-main {
    font-size: 13px;
  }

  .rectangular-preview .icon-btn {
    width: 32px;
    height: 32px;
  }

  .rectangular-preview .lang-btn {
    width: 40px;
  }

  .rectangular-preview .auto-btn {
    width: 44px;
  }

  .rectangular-preview .rect-preview-tag {
    left: 10px;
    top: 10px;
    max-width: calc(100% - 94px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (max-width: 600px) {
  .rectangular-preview .title-sub {
    display: none;
  }
}

@media (max-width: 360px) {
  .rectangular-preview .brand-logo {
    height: 18px;
    max-width: 74px;
  }

  .rectangular-preview .topbar-actions {
    gap: 2px;
  }

  .rectangular-preview .icon-btn {
    width: 30px;
    height: 30px;
  }

  .rectangular-preview .lang-btn {
    width: 37px;
  }

  .rectangular-preview .auto-btn {
    width: 41px;
  }

  .rectangular-preview .title-main {
    font-size: 12.5px;
  }
}

/* v9 · reference paper header with one-line route title */
.rectangular-preview .topbar {
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  color: #2f3a66;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 38%),
    repeating-linear-gradient(0deg, rgba(111, 92, 61, 0.018) 0 1px, transparent 1px 4px),
    #fffaf1;
  border-bottom: 1px solid #e8ddcb;
  box-shadow: 0 3px 13px rgba(47, 58, 102, 0.08);
}

.rectangular-preview .topbar::after {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, #fe7c02 0 58px, rgba(222, 211, 193, 0.9) 58px);
}

.rectangular-preview .topbar-brand-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.rectangular-preview .brand-logo {
  width: auto;
  height: 25px;
  max-width: 112px;
}

.rectangular-preview .topbar-actions {
  justify-self: end;
  gap: 6px;
}

.rectangular-preview .topbar-actions .icon-btn {
  height: 37px;
  color: #2f3a66;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 5px rgba(47, 58, 102, 0.06);
}

.rectangular-preview .topbar-actions .lang-btn {
  width: 47px;
}

.rectangular-preview .topbar-actions .auto-btn {
  width: 62px;
  color: #d96009;
  border-color: #f2c18d;
  background: #fff8ee;
}

.rectangular-preview .topbar-actions .auto-dot {
  width: 7px;
  height: 7px;
  background: #fe7c02;
  box-shadow: 0 0 0 3px rgba(254, 124, 2, 0.13);
}

.rectangular-preview .topbar-actions .list-btn {
  width: 38px;
}

.rectangular-preview .topbar-actions .list-badge {
  top: -5px;
  right: -2px;
  border-color: #fffaf1;
}

.rectangular-preview .topbar-title-row {
  margin-top: 7px;
}

.rectangular-preview .topbar-title {
  display: block;
}

.rectangular-preview .title-main {
  display: block;
  width: max-content;
  max-width: 100%;
  color: #2f3a66;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1.25;
}

.rectangular-preview .title-sub {
  display: none;
}

.rectangular-preview #map-wrap.gesture-active #labels-layer {
  opacity: 0;
  transition: none;
}

.rectangular-preview #labels-layer {
  will-change: transform;
}

.rectangular-preview #stage {
  backface-visibility: hidden;
}

@media (max-width: 420px) {
  .rectangular-preview .topbar {
    padding: calc(7px + env(safe-area-inset-top)) 10px 7px;
  }

  .rectangular-preview .brand-logo {
    height: 23px;
    max-width: 105px;
  }

  .rectangular-preview .topbar-actions {
    gap: 5px;
  }

  .rectangular-preview .topbar-actions .icon-btn {
    height: 35px;
  }

  .rectangular-preview .topbar-actions .lang-btn {
    width: 46px;
  }

  .rectangular-preview .topbar-actions .auto-btn {
    width: 59px;
  }

  .rectangular-preview .topbar-actions .list-btn {
    width: 36px;
  }

  .rectangular-preview .topbar-title-row {
    margin-top: 6px;
  }

  .rectangular-preview .title-main {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .rectangular-preview .brand-logo {
    height: 21px;
    max-width: 96px;
  }

  .rectangular-preview .topbar-actions {
    gap: 4px;
  }

  .rectangular-preview .topbar-actions .icon-btn {
    height: 33px;
  }

  .rectangular-preview .topbar-actions .lang-btn {
    width: 43px;
  }

  .rectangular-preview .topbar-actions .auto-btn {
    width: 55px;
    font-size: 8.8px;
  }

  .rectangular-preview .topbar-actions .list-btn {
    width: 34px;
  }

  .rectangular-preview .title-main {
    font-size: 17px;
  }
}

/* Follow mode uses one glanceable state: orange means on, neutral means off. */
.rectangular-preview .topbar-actions .auto-btn:not(.active) {
  color: #8d877a;
  border-color: #e8e0d4;
  background: #fffdf8;
  box-shadow: 0 2px 5px rgba(47, 58, 102, 0.04);
}

.rectangular-preview .topbar-actions .auto-btn:not(.active) .auto-dot {
  background: #bdb7aa;
  box-shadow: none;
}

.rectangular-preview .gps-dot .gps-heading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--gps-heading, 0deg));
  transform-origin: 50% 50%;
  transition: opacity 0.18s ease;
}

.rectangular-preview .gps-dot .gps-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 6px solid transparent;
  border-bottom: 13px solid #2577d9;
  border-left: 6px solid transparent;
  filter: drop-shadow(0 1px 1px rgba(20, 54, 101, 0.35));
}

.rectangular-preview .gps-dot.has-heading .gps-heading {
  opacity: 1;
}

@media (max-width: 600px) and (orientation: portrait) {
  .rectangular-preview #map-wrap.overview-mode .map-label {
    display: none;
  }

  .rectangular-preview #welcome {
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* Confirmed route page: two-line header, map brand and compact welcome. */
.rectangular-preview .topbar-brand-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.rectangular-preview .topbar-title-row {
  display: flex;
  min-width: 0;
  margin-top: 5px;
}

.rectangular-preview .topbar-title {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.rectangular-preview .title-main {
  flex: 0 0 auto;
  font-size: 14.5px;
}

.rectangular-preview .title-sub {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 250, 237, 0.78);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rectangular-preview #map-brand {
  top: 10px;
  left: 10px;
  height: 30px;
  padding: 0 9px 0 6px;
  border-color: rgba(91, 74, 47, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.94);
  box-shadow: 0 4px 14px rgba(60, 45, 27, 0.14);
  opacity: 1;
}

.rectangular-preview #map-brand img {
  height: 17px;
}

.rectangular-preview #map-brand span {
  color: #364b3f;
  font-size: 9.5px;
}

.rectangular-preview #route-legend {
  left: 10px;
  bottom: 190px;
  min-height: 27px;
  padding: 4px 9px;
  border-color: rgba(112, 88, 53, 0.2);
  color: #786a56;
  background: rgba(255, 249, 235, 0.94);
  box-shadow: 0 4px 14px rgba(67, 48, 28, 0.1);
  font-size: 9.5px;
}

.rectangular-preview #route-legend i {
  width: 18px;
  border-top-color: #ad5838;
}

.rectangular-preview #map-disclaimer {
  bottom: 5px;
  color: rgba(67, 58, 43, 0.65);
  font-size: 8.5px;
}

.rectangular-preview .welcome-card {
  left: 10px;
  right: 10px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 6px 9px;
  padding: 10px 11px 8px;
  border-radius: 14px;
  border-color: rgba(112, 88, 53, 0.18);
  background: rgba(255, 250, 239, 0.94);
  box-shadow: 0 10px 30px rgba(67, 48, 28, 0.15);
}

.rectangular-preview .welcome-topline {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 4px;
  padding-right: 27px;
}

.rectangular-preview .welcome-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.rectangular-preview .welcome-brand img {
  width: auto;
  height: 15px;
}

.rectangular-preview .welcome-brand span {
  overflow: hidden;
  color: #3c5144;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rectangular-preview .welcome-topline .route-switch {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
}

.rectangular-preview .welcome-topline .route-option {
  min-height: 29px;
  gap: 3px;
  padding: 2px 5px;
  font-size: 10px;
}

.rectangular-preview .welcome-topline .route-option small {
  font-size: 8px;
}

.rectangular-preview .welcome-main {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.rectangular-preview .welcome-card h2 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
}

.rectangular-preview .welcome-body {
  display: none;
}

.rectangular-preview .welcome-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}

.rectangular-preview .welcome-stats span {
  overflow: hidden;
  padding: 2px 5px;
  color: #9a4e16;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rectangular-preview .welcome-cta {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 104px;
  height: 43px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 11.5px;
}

.rectangular-preview .welcome-audio {
  grid-column: 1 / -1;
  min-height: 32px;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 7px;
  padding: 4px 8px 5px;
  border-radius: 8px;
  background: rgba(255, 249, 235, 0.84);
}

.rectangular-preview .welcome-audio-icon {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.rectangular-preview .welcome-audio-text strong {
  font-size: 9.5px;
}

.rectangular-preview .welcome-audio-text small {
  margin-top: 0;
  font-size: 8px;
}

.rectangular-preview .welcome-note {
  grid-column: 1 / -1;
  margin: -2px 0 0 !important;
  color: #9a8a72 !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
}

.rectangular-preview .welcome-collapse-btn {
  top: 4px;
  right: 5px;
  width: 25px;
  height: 23px;
  border-radius: 7px;
  font-size: 16px;
}

.rectangular-preview .welcome-drag-handle {
  top: 3px;
}

@media (max-width: 420px) {
  .rectangular-preview .topbar-title-row {
    margin-top: 4px;
  }

  .rectangular-preview .topbar-title {
    gap: 6px;
  }

  .rectangular-preview .title-main {
    font-size: 13.5px;
  }

  .rectangular-preview .title-sub {
    display: block;
    font-size: 8.8px;
  }

  .rectangular-preview .welcome-card {
    left: 8px;
    right: 8px;
  }

  .rectangular-preview .welcome-topline {
    gap: 6px;
  }

  .rectangular-preview .welcome-brand span {
    display: none;
  }

  .rectangular-preview .welcome-card h2 {
    font-size: 16.5px;
  }
}

@media (max-width: 360px) {
  .rectangular-preview .welcome-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 5px 7px;
    padding-inline: 9px;
  }

  .rectangular-preview .welcome-cta {
    width: 96px;
    font-size: 10.5px;
  }

  .rectangular-preview .welcome-card h2 {
    font-size: 15.5px;
  }

  .rectangular-preview #stat-langs {
    display: none;
  }
}

/* v10 · final paper header matched to the approved reference */
.rectangular-preview .topbar {
  padding: calc(9px + env(safe-area-inset-top)) 12px 8px;
  color: #2f3a66;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 42%),
    repeating-linear-gradient(0deg, rgba(111, 92, 61, 0.018) 0 1px, transparent 1px 4px),
    #fffaf1;
  border-bottom: 1px solid #eadfcf;
  box-shadow: 0 3px 13px rgba(47, 58, 102, 0.08);
}

.rectangular-preview .topbar::after {
  left: 12px;
  right: auto;
  bottom: -1px;
  width: 64px;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: #fe7c02;
}

.rectangular-preview .topbar-brand-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.rectangular-preview .brand-lockup {
  min-width: 0;
}

.rectangular-preview .brand-logo {
  width: auto;
  height: 26px;
  max-width: 108px;
}

.rectangular-preview .topbar-actions {
  justify-self: end;
  gap: 6px;
}

.rectangular-preview .topbar-actions .icon-btn {
  height: 37px;
  color: #2f3a66;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(47, 58, 102, 0.06);
}

.rectangular-preview .topbar-actions .lang-btn {
  width: 47px;
}

.rectangular-preview .topbar-actions .auto-btn {
  width: 62px;
  color: #d96009;
  border-color: #f2c18d;
  background: #fff8ee;
}

.rectangular-preview .topbar-actions .list-btn {
  width: 38px;
}

.rectangular-preview .topbar-title-row {
  display: flex;
  margin-top: 7px;
}

.rectangular-preview .topbar-title {
  display: block;
  width: 100%;
}

.rectangular-preview .title-main {
  display: block;
  width: auto;
  max-width: 100%;
  color: #2f3a66;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1.25;
}

.rectangular-preview .title-sub {
  display: none !important;
}

@media (max-width: 420px) {
  .rectangular-preview .topbar {
    padding: calc(8px + env(safe-area-inset-top)) 10px 7px;
  }

  .rectangular-preview .topbar::after {
    left: 10px;
  }

  .rectangular-preview .brand-logo {
    height: 24px;
    max-width: 102px;
  }

  .rectangular-preview .topbar-actions {
    gap: 5px;
  }

  .rectangular-preview .topbar-actions .icon-btn {
    height: 35px;
  }

  .rectangular-preview .topbar-actions .lang-btn {
    width: 46px;
  }

  .rectangular-preview .topbar-actions .auto-btn {
    width: 59px;
  }

  .rectangular-preview .topbar-actions .list-btn {
    width: 36px;
  }

  .rectangular-preview .topbar-title-row {
    margin-top: 6px;
  }

  .rectangular-preview .title-main {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .rectangular-preview .brand-logo {
    height: 22px;
    max-width: 94px;
  }

  .rectangular-preview .topbar-actions {
    gap: 4px;
  }

  .rectangular-preview .topbar-actions .icon-btn {
    height: 33px;
  }

  .rectangular-preview .topbar-actions .lang-btn {
    width: 43px;
  }

  .rectangular-preview .topbar-actions .auto-btn {
    width: 55px;
    font-size: 8.8px;
  }

  .rectangular-preview .topbar-actions .list-btn {
    width: 34px;
  }

  .rectangular-preview .title-main {
    font-size: 17px;
  }
}

