/* Final 2026-10-24 art direction, applied to the connected application. */
.route-detail-overlay[hidden] { display: none !important; }
.route-detail-overlay { position: fixed; inset: 0; z-index: 950; display: flex; align-items: flex-end; justify-content: center; }
.route-detail-scrim { position: absolute; inset: 0; background: rgb(23 30 22 / .55); backdrop-filter: blur(3px); }
.route-detail-sheet { position: relative; display: flex; width: min(100%, 720px); height: min(86dvh, 900px); min-height: 0; overflow: hidden; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -12px 56px rgb(20 34 20 / .18); }
.route-detail-sheet #guidePanel.route-guide { position: relative; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.route-detail-sheet #guidePanel .guide-overview { scrollbar-width: thin; scrollbar-color: #daddd7 transparent; }
.route-detail-sheet #guidePanel .guide-map { border-radius: 0 0 22px 22px; }
.route-detail-sheet #guidePanel .guide-map > .guide-return { top: 12px; left: 16px; }
body.route-detail-open { overflow: hidden; }
@media (min-width: 761px) {
  .route-detail-overlay { align-items: center; padding: 24px; }
  .route-detail-sheet { height: min(88dvh, 900px); border-radius: 28px; }
}
@media (max-width: 600px) {
  .route-detail-sheet { width: 100%; height: 91dvh; border-radius: 24px 24px 0 0; }
  .route-detail-sheet #guidePanel .guide-map { height: min(40dvh, 340px); min-height: 270px; }
}
@media (prefers-reduced-motion: no-preference) {
  .route-detail-sheet { animation: route-detail-enter .23s ease-out; }
  @keyframes route-detail-enter { from { transform: translateY(18px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
}

/* The prototype's "我的足迹" card is backed by this account's own records. */
#profileContent .pc-layout { max-width: 720px; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#profileContent .pc-identity { position: static; }
.pc-preference-card, .pc-footprint-card { width: 100%; min-width: 0; border: 0; border-radius: 22px; background: #f5f6f3; }
.pc-preference-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; text-align: left; color: #20251f; cursor: pointer; }
.pc-preference-card > span { display: grid; gap: 7px; min-width: 0; }
.pc-preference-card strong { font-size: 17px; line-height: 25px; }
.pc-preference-card small { color: #7b8377; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.pc-preference-card > .pc-icon { color: #7b8377; }
.pc-footprint-card { padding: 20px; }
.pc-footprint-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-footprint-heading h2 { margin: 0; font-size: 18px; line-height: 27px; }
.pc-footprint-heading button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 999px; background: #edfac5; color: #465834; font: inherit; font-size: 12px; cursor: pointer; }
.pc-footprint-counts { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: #788074; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.pc-footprint-counts .pc-icon { width: 16px; height: 16px; margin-left: auto; }
.pc-footprint-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
.pc-footprint-routes button { display: grid; gap: 5px; min-width: 0; padding: 0; border: 0; background: transparent; color: #20251f; text-align: left; cursor: pointer; }
.pc-footprint-route-art { display: grid; place-items: center; width: 100%; aspect-ratio: 1.18; border-radius: 14px; background: #dce9d2; }
.pc-footprint-routes button:nth-child(2) .pc-footprint-route-art { background: #d9e7e4; }
.pc-footprint-routes button:nth-child(3) .pc-footprint-route-art { background: #e9e7d8; }
.pc-footprint-routes strong { overflow: hidden; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.pc-footprint-routes small { color: #8a9185; font-size: 11px; }
.pc-footprint-detail { width: min(100%, 600px); margin: 0 auto; padding: 18px 0 40px; }
.pc-footprint-detail h2 { margin: 24px 0 10px; font-size: 16px; line-height: 25px; }
.pc-footprint-detail h2:first-child { margin-top: 0; }
.pc-footprint-detail > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 13px 2px; border: 0; border-bottom: 1px solid #e7eae4; background: transparent; color: #20251f; font: inherit; text-align: left; cursor: pointer; }
.pc-footprint-detail > button strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.pc-footprint-detail > button small { flex: none; color: #80887c; font-size: 11px; }
.pc-footprint-detail > p { color: #7b8377; font-size: 12px; line-height: 20px; }
.pc-preference-card:focus-visible, .pc-footprint-card button:focus-visible, .pc-footprint-detail button:focus-visible { outline: 2px solid #324e37; outline-offset: 3px; }

/* Compact preference controls from the final sheet, retaining "不透露". */
#personaOverlay .persona-genders { flex: none; width: min(270px, 100%); background: #f3f3f3; }
#personaOverlay .persona-genders button { height: 38px; min-height: 38px; }
#personaOverlay .persona-genders button.selected { background: #fff; color: #20251f; box-shadow: 0 1px 5px rgb(32 37 31 / .09); }

/* Recommended routes follow the final vertical card composition. */
.assistant-route-list:has(.route-plan-card) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.assistant-route-card.route-plan-card { grid-template-columns: 154px minmax(0, 1fr); gap: 0 20px; padding: 20px; border: 1px solid #dfe5d9; border-radius: 26px; background: #fff; }
.assistant-route-card.route-plan-card.selected { background: #f7faed; }
.route-plan-photo { grid-row: 1 / span 4; height: 172px; border-radius: 17px; }
.route-plan-recommendation { margin-bottom: 7px; }
.route-plan-label { display: inline-block; padding: 5px 9px; border-radius: 8px; background: #dcfa4e; color: #273720; font-size: 11px; }
.route-plan-number { display: none; }
.route-plan-card .route-plan-title { font-size: 19px; line-height: 1.35; }
.route-plan-location { font-size: 12px; }
.route-plan-card .route-plan-reason { margin: 8px 0 0; font-size: 12px; line-height: 19px; }
.route-plan-metrics { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; }
.route-plan-metric { display: inline-flex; align-items: baseline; gap: 4px; }
.route-plan-card .route-plan-metric strong { font-size: 14px; }
.route-plan-metric small { font-size: 10px; }
.route-plan-details { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; margin-top: 12px; padding-top: 12px; }
.route-plan-detail { grid-template-columns: 1fr; gap: 0; font-size: 11px; line-height: 17px; }
.route-plan-detail:nth-child(n+3) { display: none; }
.route-plan-source { padding: 12px 0; font-size: 10px; line-height: 16px; }
.route-plan-actions { grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid #e4e8df; }
.route-plan-pair .route-plan-action { height: 44px; min-height: 44px; font-size: 13px; }
.route-plan-pair .route-plan-direct { background: #f5f6f3; }
.route-plan-pair .route-plan-view { background: #f5f6f3; }
.route-plan-pair .route-plan-action-primary { background: #d7fb4d; color: #20251f; }
@media (hover: hover) { .route-plan-pair .route-plan-action-primary:not(:disabled):hover { background: #c9ef3b; color: #20251f; } }
@media (max-width: 520px) {
  .assistant-route-card.route-plan-card { grid-template-columns: 98px minmax(0,1fr); gap: 0 12px; padding: 14px; border-radius: 20px; }
  .route-plan-photo { height: 132px; }
  .route-plan-card .route-plan-title { font-size: 15px; }
  .route-plan-metrics { grid-column: 1 / -1; margin-top: 12px; }
  .route-plan-pair .route-plan-action { font-size: 11px; padding-inline: 3px; }
}

/* The final private-chat sample keeps the peer in the header and softens the conversation. */
.app-shell.is-direct-chat .chat-header { gap: 12px; }
.app-shell.is-direct-chat .chat-peer-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #e9efdf; color: #38563e; font-weight: 650; }
.app-shell.is-direct-chat .chat-peer-avatar[hidden] { display: none; }
.app-shell.is-direct-chat .chat-peer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-shell.is-direct-chat .chat-heading h2 { margin-bottom: 1px; }
.app-shell.is-direct-chat .chat-heading p { font-size: 12px; color: #8c9687; }
.app-shell.is-direct-chat .message-scroll { background: #fff; }
.app-shell.is-direct-chat .message-row:not(.own) .message-bubble { background: #f3f5f1; color: #273229; border-radius: 5px 19px 19px 19px; }
.app-shell.is-direct-chat .message-row.own .message-bubble { background: #ecf7d4; color: #273229; border-radius: 19px 5px 19px 19px; }
.app-shell.is-direct-chat #messageForm .composer-inner,
.app-shell.is-direct-chat #messageForm .composer-inner:focus-within { background: #f4f6f1; border: 1px solid #e8ece3; border-radius: 20px; box-shadow: none; }
.app-shell.is-direct-chat #messageForm .composer-inner:focus-within { border-color: #72946b; }
.app-shell.is-direct-chat #messageInput:focus-visible { outline: 0; }
.app-shell.is-direct-chat #messageForm #sendButton { background: #d7fb4d; color: #26301f; }
.app-shell.is-direct-chat #messageForm #sendButton:hover { background: #c9ef3b; }
