/* Late overrides: RTL navigation, mobile drawer, map popups, install guide, image fallback, startup notice. Order matters. */
/* Persian navigation and existing logo sizes. */

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.brand {
  margin-bottom: 18px;
}

.menu-close {
  display: none;
}

@media(min-width:601px) and (max-width:800px) {
  .brand-logo {
    width: 54px;
    height: 54px;
  }
}

@media(max-width:600px) {
  .sidebar {
    inset-inline-start: 0;
    inset-inline-end: auto;
    border-inline-end: 1px solid var(--line);
    transform: translateX(100%);
    width: min(85vw,280px);
    padding-top: 54px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-close {
    display: flex;
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 12px;
  }
  .sidebar.open .brand {
    margin-bottom: 18px;
  }
  .sidebar.open .nav-item {
    flex-direction: row;
    text-align: right;
  }
  .sidebar.open .brand-logo {
    width: 115px;
    height: 115px;
  }
}

.mapboxgl-popup-content {
  background: var(--surface);
  color: var(--text);
  font-family: Vazir,Tahoma,sans-serif;
  direction: rtl;
}

.mapboxgl-popup-close-button {
  left: 0;
  right: auto;
}

.number-marker {
  cursor: pointer;
}

.install-guide {
  max-width: 380px;
}

.install-guide p {
  line-height: 2;
  margin: 18px 0;
}

.install-guide button {
  margin: 5px;
}

.brand-logo {
  flex-shrink: 0;
}

[hidden] {
  display: none!important;
}

/* Keep the drawer scrollable while locking the background, including short screens. */

.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar>* {
  flex-shrink: 0;
}

.shell,
main,
.discover,
.listing {
  min-width: 0;
}

.shell {
  max-width: 100%;
}

.destination-grid,
.place-grid {
  min-width: 0;
  grid-auto-columns: minmax(0,1fr);
}

.destination-card,
.place-card,
.trip-card {
  min-width: 0;
}

.destination-card img[hidden] {
  display: none;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: var(--soft2);
  color: var(--text);
  font-size: 12px;
}

.image-unavailable:after {
  background: linear-gradient(transparent 25%,#0008);
}

.startup-notice {
  padding: 10px 20px;
  background: var(--soft);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.9;
}

.startup-notice button {
  flex-shrink: 0;
}

.breadcrumb {
  min-width: 0;
}

.breadcrumb>span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Location onboarding and the personality quiz. */
.location-flow,
.quiz-invite,
.quiz-result {
  padding: 10px 4px 4px;
  text-align: center;
}

.location-flow>p,
.quiz-invite>p,
.quiz-result>p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin: 8px auto 20px;
  max-width: 460px;
}

.location-intro h3,
.quiz-invite h3,
.quiz-result h3 {
  font-size: 22px;
  margin: 10px 0 0;
}

.location-pin {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.location-pin svg {
  width: 32px;
}

.location-manual {
  display: block;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.location-city-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.location-city-grid button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  text-align: right;
  background: var(--surface);
  transition: .18s;
}

.location-city-grid button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.location-city-grid strong,
.location-city-grid small {
  display: block;
}

.location-city-grid small {
  color: var(--muted);
  margin-top: 4px;
}

.quiz-invite .spark {
  font-size: 42px;
  color: var(--accent);
}

.quiz-shell {
  width: min(680px,78vw);
  max-width: 100%;
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.quiz-progress>div {
  display: flex;
  gap: 6px;
}

.quiz-progress i,
.quiz-progress span+div span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  display: block;
}

.quiz-progress span+div span.active {
  width: 24px;
  background: var(--accent);
}

.quiz-progress span+div span.done {
  background: #e3b9a4;
}

.quiz-question {
  text-align: center;
  padding: 18px 0 6px;
}

.quiz-animal {
  height: 170px;
  margin: auto;
}

.quiz-animal img {
  height: 100%;
  max-width: 220px;
  object-fit: contain;
}

.quiz-question h3 {
  font-size: 24px;
  margin: 8px 0 22px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-options button {
  min-height: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.8;
}

.quiz-options button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.quiz-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.quiz-result img {
  height: 190px;
  max-width: 250px;
  object-fit: contain;
}

.quiz-result small {
  display: block;
  color: var(--accent);
  font-weight: 700;
}

.quiz-result h3 {
  font-size: 28px;
}

@media(max-width:600px) {
  .location-city-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quiz-shell {
    width: 100%;
  }
  .quiz-progress {
    align-items: flex-start;
    gap: 12px;
  }
  .quiz-question {
    padding-top: 10px;
  }
  .quiz-animal {
    height: 125px;
  }
  .quiz-question h3 {
    font-size: 19px;
  }
  .quiz-options {
    grid-template-columns: 1fr;
  }
  .quiz-options button {
    min-height: 65px;
    padding: 13px;
  }
  .quiz-result img {
    height: 150px;
  }
}

#profileStatus {
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
}

.menu-backdrop {
  display: none;
}

@media(max-width:800px) and (min-width:601px) {
  .workspace {
    flex-wrap: wrap;
    height: auto;
    min-height: calc(100dvh - 69px);
  }
  .workspace .conversation,
  .workspace .map-pane {
    width: 100%;
    min-width: 0;
  }
  .workspace .map-pane {
    height: 360px;
  }
  .workspace .conversation {
    min-height: 500px;
  }
}

@media(max-width:600px) {
  body.menu-open {
    overflow: hidden;
  }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 650;
    cursor: pointer;
  }
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sidebar.open {
    visibility: visible;
  }
  .topbar-actions {
    flex-shrink: 0;
  }
  .breadcrumb {
    overflow: hidden;
  }
  .discover,
  .listing {
    max-width: 100%;
  }
}

/* Dark-first V2 shell (home rail, action cards, place cards, composer), light theme, personality, about, logos. */
/* Mindtrip-inspired V2 desktop shell. */

@media(min-width:801px) {
  html[data-theme=dark] {
    --bg: #101010;
    --surface: #101010;
    --soft: #181818;
    --soft2: #222;
    --text: #f7f7f5;
    --muted: #aaa9a6;
    --line: #292929;
    --inverse: #111;
    --accent: #fff;
    --shadow: 0 18px 60px #0008;
  }
  body {
    background: #101010;
  }
  .sidebar {
    width: 208px;
    padding: 12px 9px 14px;
    background: #111;
    border-inline-end: 1px solid #292929;
    direction: rtl;
  }
  .brand {
    height: 48px;
    justify-content: flex-start;
    padding: 0 10px;
    margin: 0 0 17px;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -1px;
    gap: 4px;
  }
  .brand-spark {
    font-size: 27px;
    margin-left: 3px;
  }
  .brand b {
    color: #fff;
    font-size: 28px;
    line-height: 1;
  }
  .nav-item {
    padding: 10px 10px;
    border-radius: 8px;
    margin: 1px 0;
    font-size: 13px;
    gap: 12px;
    font-weight: 430;
  }
  .nav-item svg {
    width: 20px;
    height: 20px;
  }
  .nav-item.active {
    background: transparent;
    font-weight: 700;
  }
  .nav-item:hover {
    background: #1c1c1c;
    opacity: 1;
  }
  .new-chat {
    background: #1d1d1d;
    border-radius: 25px;
    margin: 18px 0 13px;
    padding: 11px 17px;
    font-size: 12px;
  }
  .recent-label,
  .recent-chats {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 10px;
  }
  .profile {
    padding: 9px 5px;
  }
  .footer-links {
    border-top: 1px solid #252525;
    padding-top: 12px;
  }
  .copyright {
    color: #696969;
  }
  .shell {
    margin-inline-start: 208px;
  }
  .topbar {
    display: none;
  }
  .discover {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 62px 150px;
  }
  .mindtrip-home {
    position: relative;
  }
  .home-category-rail {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-bottom: 1px solid #292929;
    direction: rtl;
    overflow-x: auto;
  }
  .home-category-rail button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid #2b2b2b;
    border-radius: 22px;
    background: #121212;
    font-size: 12px;
    white-space: nowrap;
  }
  .home-category-rail button.active,
  .home-category-rail button:hover {
    background: #202020;
    opacity: 1;
  }
  .home-category-rail svg {
    width: 16px;
    height: 16px;
  }
  .welcome {
    text-align: right;
    max-width: none;
    margin: 0;
    padding: 36px 0 28px;
  }
  .welcome-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    font-size: 27px;
    margin-bottom: 14px;
  }
  .welcome h1 {
    font-size: 28px;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -.8px;
  }
  .welcome>p {
    font-size: 15px;
    color: #ddd;
    margin: 5px 0 17px;
  }
  .setup-assistant {
    background: #fff;
    color: #111;
    padding: 11px 26px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 650;
  }
  .action-cards {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin: 3px 0 28px;
    direction: rtl;
  }
  .action-card {
    height: 202px;
    border-radius: 15px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    color: #fff;
  }
  .action-card:after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 40%;
    background: #ffffff16;
    top: -35px;
    left: -20px;
    transform: rotate(25deg);
  }
  .action-card span {
    width: 61px;
    height: 61px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff23;
    border: 1px solid #ffffff30;
    z-index: 1;
  }
  .action-card span svg {
    width: 27px;
    height: 27px;
  }
  .action-card strong {
    font-size: 15px;
    line-height: 1.5;
    max-width: 150px;
    z-index: 1;
  }
  .action-card.blue {
    background: linear-gradient(145deg,#153983,#071a48);
  }
  .action-card.rust {
    background: linear-gradient(145deg,#c74425,#6f1c10);
  }
  .action-card.sky {
    background: linear-gradient(145deg,#4694cd,#16476b);
  }
  .action-card.green {
    background: linear-gradient(145deg,#467741,#173519);
  }
  .test-data-title {
    margin-top: 28px;
  }
  .test-data-title h2 {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .test-data-title p {
    font-size: 11px;
  }
  .home-place-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
  }
  .place-card {
    border-color: #292929;
    border-radius: 13px;
    background: #151515;
  }
  .place-image {
    height: 150px;
  }
  .place-info {
    padding: 12px;
  }
  .place-info h3 {
    font-size: 13px;
  }
  .place-kicker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    color: #aaa;
    margin-bottom: 6px;
  }
  .place-kicker b {
    font-weight: 500;
    color: #f5c959;
  }
  .place-kicker b span {
    color: #777;
  }
  .place-info .meta {
    margin: 6px 0 8px;
  }
  .place-info p {
    display: none;
  }
  .card-actions {
    border-top: 1px solid #292929;
    padding-top: 10px;
    margin-top: 8px;
  }
  .experimental-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 2;
    background: #f3d46b;
    color: #1b180d;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 8px;
    font-weight: 800;
  }
  .experimental-badge.static {
    position: static;
    display: inline-flex;
    vertical-align: middle;
  }
  .place-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#2b2b2b,#181818);
    color: #777;
  }
  .place-fallback svg {
    width: 38px;
    height: 38px;
  }
  .home-composer {
    position: fixed;
    z-index: 90;
    bottom: 18px;
    inset-inline-start: calc(208px + (100vw - 208px)/2);
    transform: translateX(50%);
    width: min(745px,calc(100vw - 270px));
    direction: rtl;
  }
  .home-composer .composer {
    margin: 0;
    max-width: none;
    border-color: #353535;
    background: #151515eF;
    box-shadow: 0 8px 35px #000b;
    backdrop-filter: blur(18px);
    border-radius: 22px;
  }
  .home-composer .composer textarea {
    height: 39px;
  }
  .home-composer .send {
    background: #fff;
    color: #111;
  }
  .listing {
    max-width: 1180px;
    padding: 42px 55px 120px;
  }
  .listing .place-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px;
  }
  .listing-header h1 {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .search-input {
    background: #171717;
    border-color: #303030;
    width: min(360px,100%);
  }
  .filters button {
    background: #161616;
    border-color: #303030;
  }
  .filters button.active {
    background: #fff;
    color: #111;
  }
}

@media(min-width:801px) and (max-width:1120px) {
  .discover {
    padding-inline: 28px;
  }
  .action-cards {
    grid-template-columns: repeat(2,1fr);
  }
  .action-card {
    height: 170px;
  }
  .home-place-grid,
  .listing .place-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

@media(max-width:600px) {
  html[data-theme=dark] {
    --bg: #101010;
    --surface: #101010;
    --soft: #181818;
    --soft2: #222;
    --text: #f7f7f5;
    --muted: #aaa9a6;
    --line: #292929;
    --inverse: #111;
    --accent: #fff;
  }
  body {
    background: #101010;
  }
  .topbar {
    position: sticky;
    top: 0;
    background: #101010eF;
    border-color: #292929;
    backdrop-filter: blur(18px);
    z-index: 80;
  }
  .discover {
    padding: 0 16px 120px;
  }
  .mindtrip-home {
    overflow: hidden;
  }
  .home-category-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #292929;
    scrollbar-width: none;
  }
  .home-category-rail::-webkit-scrollbar {
    display: none;
  }
  .home-category-rail button {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #303030;
    border-radius: 22px;
    background: #151515;
    font-size: 11px;
    white-space: nowrap;
  }
  .home-category-rail button.active {
    background: #fff;
    color: #111;
  }
  .home-category-rail svg {
    width: 15px;
    height: 15px;
  }
  .welcome {
    text-align: right;
    padding: 28px 0 22px;
  }
  .welcome-mark {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    font-size: 24px;
    margin-bottom: 12px;
  }
  .welcome h1 {
    font-size: 29px;
  }
  .welcome>p {
    font-size: 13px;
    margin: 4px 0 15px;
  }
  .setup-assistant {
    background: #fff;
    color: #111;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
  }
  .action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 27px;
  }
  .action-card {
    height: 150px;
    border-radius: 17px;
    padding: 14px;
    color: #fff;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
  }
  .action-card:after {
    content: '';
    position: absolute;
    width: 105px;
    height: 105px;
    border-radius: 40%;
    background: #ffffff14;
    top: -25px;
    left: -18px;
  }
  .action-card span {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff22;
    border: 1px solid #ffffff30;
    z-index: 1;
  }
  .action-card span svg {
    width: 21px;
    height: 21px;
  }
  .action-card strong {
    font-size: 12px;
    z-index: 1;
  }
  .action-card.blue {
    background: linear-gradient(145deg,#153983,#071a48);
  }
  .action-card.rust {
    background: linear-gradient(145deg,#c74425,#6f1c10);
  }
  .action-card.sky {
    background: linear-gradient(145deg,#4694cd,#16476b);
  }
  .action-card.green {
    background: linear-gradient(145deg,#467741,#173519);
  }
  .test-data-title {
    align-items: end;
    margin-top: 0;
  }
  .test-data-title h2 {
    font-size: 18px;
  }
  .experimental-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    background: #f3d46b;
    color: #1b180d;
    border-radius: 12px;
    padding: 4px 7px;
    font-size: 8px;
    font-weight: 800;
  }
  .experimental-badge.static {
    position: static;
    display: inline-flex;
  }
  .home-place-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .home-place-grid .place-card {
    background: #151515;
    border-color: #292929;
    border-radius: 14px;
  }
  .home-place-grid .place-image {
    height: 130px;
  }
  .home-place-grid .place-info {
    padding: 10px;
  }
  .place-kicker {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #aaa;
  }
  .place-kicker b {
    color: #f3d46b;
  }
  .home-place-grid .place-info h3 {
    font-size: 11px;
  }
  .home-place-grid .meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .home-place-grid .card-actions {
    display: none;
  }
  .home-composer {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 90;
  }
  .home-composer .composer {
    margin: 0;
    background: #181818f2;
    border-color: #363636;
    border-radius: 21px;
    box-shadow: 0 8px 32px #000b;
    backdrop-filter: blur(18px);
  }
  .home-composer .composer textarea {
    height: 38px;
  }
  .home-composer .send {
    background: #fff;
    color: #111;
  }
  .listing {
    padding-bottom: 100px;
  }
  .listing .place-grid {
    grid-template-columns: 1fr 1fr;
  }
  .listing .place-image {
    height: 135px;
  }
}

/* The Mindtrip-inspired shell also has a complete light theme. */

html[data-theme=light] {
  color-scheme: light;
  --bg: #f5f5f2;
  --surface: #fff;
  --soft: #f1f1ee;
  --soft2: #e9e9e5;
  --text: #171717;
  --muted: #6f716d;
  --line: #deded9;
  --inverse: #fff;
  --shadow: 0 18px 60px #25251f1a;
}

html[data-theme=light] body {
  background: var(--bg);
}

html[data-theme=light] .sidebar {
  background: #fff;
  border-color: var(--line);
}

html[data-theme=light] .brand {
  color: #171717;
}

html[data-theme=light] .brand b {
  color: #171717;
}

html[data-theme=light] .nav-item:hover,
html[data-theme=light] .new-chat {
  background: #efefeb;
}

html[data-theme=light] .footer-links {
  border-color: var(--line);
}

html[data-theme=light] .home-category-rail {
  border-color: var(--line);
}

html[data-theme=light] .home-category-rail button {
  background: #fff;
  border-color: var(--line);
}

html[data-theme=light] .home-category-rail button:hover {
  background: #ededE8;
}

html[data-theme=light] .welcome>p {
  color: #555752;
}

html[data-theme=light] .welcome-mark,
html[data-theme=light] .setup-assistant {
  background: #171717;
  color: #fff;
}

html[data-theme=light] .place-card {
  background: #fff;
  border-color: var(--line);
}

html[data-theme=light] .card-actions {
  border-color: var(--line);
}

html[data-theme=light] .home-composer .composer {
  background: #fffffff2;
  border-color: #d6d6d0;
  box-shadow: 0 8px 35px #25251f24;
}

html[data-theme=light] .home-composer .send {
  background: #171717;
  color: #fff;
}

html[data-theme=light] .search-input,
html[data-theme=light] .filters button {
  background: #fff;
  border-color: var(--line);
}

html[data-theme=light] .filters button.active {
  background: #171717;
  color: #fff;
}

@media(max-width:600px) {
  html[data-theme=light] .topbar {
    background: #f5f5f2ef;
    border-color: var(--line);
  }
  html[data-theme=light] .home-category-rail button.active {
    background: #171717;
    color: #fff;
  }
}

.location-detect {
  margin: 16px 0 10px;
}

.location-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  margin: 13px 0;
}

.location-divider:before,
.location-divider:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}

.avatar {
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fbf7f3;
  border-radius: 50%;
  padding: 2px;
}

.personality-result {
  max-width: 520px;
  margin: auto;
}

.personality-art {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  background: var(--soft);
  padding: 18px;
}

.personality-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.personality-tagline {
  display: block;
  color: #d78a68;
  font-size: 16px;
  line-height: 1.9;
  margin: 8px auto 4px;
  max-width: 32ch;
}

.animal-story {
  text-align: right;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 16px;
  padding: 15px 16px;
  margin: 18px 0;
}

.animal-story b {
  font-size: 13px;
}

.animal-story p {
  font-size: 11px!important;
  line-height: 2!important;
  margin: 6px 0 0!important;
  max-width: none!important;
}

.personality-actions {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
}

.personality-actions .pill {
  flex: 1;
  min-width: 180px;
}

.personality-result.shared {
  padding-top: 4px;
}

@media(max-width:600px) {
  .personality-art {
    width: 145px;
    height: 145px;
  }
  .personality-tagline {
    font-size: 14px;
  }
  .animal-story {
    padding: 13px;
  }
  .personality-actions {
    display: grid;
  }
  .personality-actions .pill {
    min-width: 0;
    width: 100%;
  }
}

.about-copy {
  max-width: 640px;
}

.about-copy .about-lead {
  font-size: 15px;
  color: var(--text);
  line-height: 2;
}

.about-copy h3 {
  font-size: 15px;
  color: var(--text);
  margin: 22px 0 5px;
}

.about-copy p {
  font-size: 12px;
  line-height: 2.15;
  color: var(--muted);
  margin: 0 0 10px;
}

.about-copy strong {
  color: var(--text);
}

.brand .brand-logo {
  width: 112px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.brand-logo-light {
  display: none;
}

.brand-logo-dark {
  display: block;
}

html[data-theme=light] .brand-logo-dark {
  display: none;
}

html[data-theme=light] .brand-logo-light {
  display: block;
}

@media(max-width:800px) and (min-width:601px) {
  .brand .brand-logo {
    width: 50px;
    height: 50px;
  }
}

@media(max-width:600px) {
  .sidebar.open .brand .brand-logo {
    width: 132px;
    height: 68px;
  }
  .sidebar.open .brand {
    justify-content: center;
  }
}
