:root {
  --paper: #f6f2e9;
  --paper-deep: #ece4d6;
  --ink: #171915;
  --pine: #173d36;
  --pine-soft: #dce9df;
  --ocean: #1769aa;
  --ocean-soft: #dcebf4;
  --sunset: #ff6848;
  --sunset-soft: #ffe2d8;
  --amber: #e5a431;
  --amber-soft: #f8ebca;
  --success: #238a68;
  --danger: #d84a3a;
  --muted: #74766f;
  --line: rgba(23, 25, 21, .12);
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(28, 40, 35, .18);
  --soft-shadow: 0 12px 32px rgba(28, 40, 35, .10);
  --display: "STSong", "Songti SC", "Noto Serif SC", serif;
  --body: "FZLanTingHei-R-GBK", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  align-items: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(43, 143, 185, .18), transparent 28rem),
    radial-gradient(circle at 88% 90%, rgba(255, 104, 72, .14), transparent 24rem),
    #dedfd8;
  color: var(--ink);
  display: flex;
  font-family: var(--body);
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .28);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .54;
}

[hidden] {
  display: none !important;
}

.prototype-label {
  background: rgba(23, 25, 21, .86);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff;
  display: none !important;
  font-size: 11px;
  left: 50%;
  letter-spacing: .05em;
  padding: 7px 11px;
  position: fixed;
  top: 7px;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 120;
}

.app-shell {
  background: var(--paper);
  border: 1px solid rgba(23, 25, 21, .14);
  border-radius: 32px;
  box-shadow: var(--shadow);
  height: min(900px, calc(100vh - 56px));
  max-width: 430px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.paper-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  inset: 0;
  opacity: .14;
  pointer-events: none;
  position: absolute;
  z-index: 80;
}

.screen {
  background: var(--paper);
  height: 100%;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 104px;
  position: absolute;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar,
.bottom-sheet::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  animation: page-arrive .32s cubic-bezier(.2, .75, .22, 1) both;
}

.immersive-screen {
  padding-bottom: 0;
}

@keyframes page-arrive {
  from { opacity: .1; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.page-pad {
  padding-left: 20px;
  padding-right: 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
}

.micro-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-header,
.simple-header,
.plan-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  padding-top: 43px;
}

.home-header h1,
.simple-header h1,
.plan-header h1 {
  font-size: 27px;
  letter-spacing: -.05em;
  line-height: 1.15;
  margin-top: 5px;
}

.icon-button {
  align-items: center;
  background: rgba(255, 253, 248, .78);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.icon-button.quiet {
  background: transparent;
  border-color: transparent;
}

.icon-button.glass {
  background: rgba(16, 23, 21, .25);
  border-color: rgba(255, 255, 255, .35);
  color: white;
  backdrop-filter: blur(9px);
}

/* 二级页面统一使用清晰、可点击的返回按钮；不要依赖弱对比度文本箭头。 */
.back-button {
  background: rgba(255, 253, 248, .96);
  border-color: rgba(23, 25, 21, .16);
  box-shadow: 0 6px 18px rgba(23, 25, 21, .14);
  color: var(--ink);
  min-height: 44px;
  min-width: 44px;
  z-index: 2;
}

.back-button::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  height: 10px;
  margin-left: 4px;
  transform: rotate(45deg);
  width: 10px;
}

.back-button:hover,
.back-button:active {
  background: #fff;
  border-color: rgba(23, 25, 21, .28);
}

.back-button-on-media {
  background: rgba(255, 253, 248, .92);
  border-color: rgba(255, 255, 255, .72);
  color: var(--ink);
}

.root-return-header {
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.root-return-header > div {
  min-width: 0;
}

.notice-dot {
  background: var(--sunset);
  border: 2px solid var(--paper);
  border-radius: 50%;
  height: 9px;
  position: absolute;
  right: 4px;
  top: 3px;
  width: 9px;
}

.home-hero {
  background:
    linear-gradient(125deg, rgba(255, 253, 248, .87), rgba(220, 235, 244, .50)),
    repeating-radial-gradient(circle at 77% 67%, transparent 0 19px, rgba(23, 61, 54, .08) 20px 21px);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  min-height: 214px;
  overflow: hidden;
  padding-bottom: 24px;
  padding-top: 22px;
  position: relative;
}

.hero-copy {
  max-width: 59%;
  position: relative;
  z-index: 3;
}

.eyebrow-chip {
  background: var(--pine);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
}

.eyebrow-chip.warm {
  background: var(--sunset-soft);
  color: #9c3824;
}

.hero-copy p {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.62;
  margin: 17px 0 13px;
}

.text-action,
.text-button {
  background: none;
  border: 0;
  color: var(--pine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  min-height: 44px;
  padding: 0;
}

.hero-earth {
  bottom: -73px;
  position: absolute;
  right: -54px;
  transform: rotate(-8deg);
  width: 250px;
}

.cloud-greeting {
  align-items: center;
  bottom: 18px;
  display: flex;
  gap: 4px;
  position: absolute;
  right: 17px;
  z-index: 4;
}

.cloud-greeting img {
  width: 58px;
}

.cloud-greeting span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px 11px 11px 2px;
  box-shadow: var(--soft-shadow);
  font-size: 10px;
  padding: 7px 8px;
}

.home-content {
  padding-bottom: 28px;
  padding-top: 18px;
}

.search-box {
  align-items: center;
  background: rgba(255, 253, 248, .75);
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.search-box span {
  color: var(--pine);
  font-size: 24px;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #94968f;
}

.section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 25px 0 13px;
}

.section-heading h2 {
  font-size: 21px;
  letter-spacing: -.03em;
  margin-top: 4px;
}

.compact-heading {
  margin-top: 22px;
}

.count-pill,
.version-pill {
  background: var(--pine-soft);
  border: 1px solid rgba(23, 61, 54, .12);
  border-radius: 999px;
  color: var(--pine);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 9px 25px rgba(27, 43, 37, .07);
  overflow: hidden;
}

.feature-card {
  margin-bottom: 12px;
}

.cover {
  border: 0;
  color: white;
  cursor: pointer;
  display: block;
  min-height: 211px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-align: left;
  width: 100%;
}

.cover-wuhan {
  background:
    linear-gradient(180deg, rgba(9, 39, 51, .05), rgba(8, 28, 33, .78)),
    radial-gradient(circle at 78% 20%, #ffd27c 0 7%, transparent 7.5%),
    linear-gradient(165deg, #9ad4da 0 38%, #4e9cac 39% 53%, #255d72 54% 100%);
}

.cover-wuhan::before {
  background:
    linear-gradient(90deg, transparent 0 4%, #173d36 4% 7%, transparent 7% 14%, #173d36 14% 18%, transparent 18% 27%, #173d36 27% 33%, transparent 33% 46%, #173d36 46% 52%, transparent 52% 66%, #173d36 66% 73%, transparent 73% 100%);
  bottom: 24%;
  content: "";
  height: 38px;
  left: 0;
  opacity: .78;
  position: absolute;
  right: 0;
  transform: skewY(-2deg);
}

.cover-wuhan::after {
  border-bottom: 3px solid rgba(255, 255, 255, .44);
  border-top: 2px solid rgba(255, 255, 255, .34);
  bottom: 18%;
  content: "";
  left: -5%;
  position: absolute;
  right: -5%;
  transform: rotate(-4deg);
}

.library-cover.has-real-cover::before,
.library-cover.has-real-cover::after {
  display: none;
}

.cover-city,
.cover-title,
.cover-meta,
.play-orbit {
  position: relative;
  z-index: 2;
}

.cover-city {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
}

.cover-title {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.22;
  margin-top: 13px;
  max-width: 230px;
}

.cover-meta {
  bottom: 15px;
  font-size: 10px;
  left: 18px;
  position: absolute;
}

.play-orbit {
  align-items: center;
  background: rgba(255, 255, 255, .17);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  bottom: 14px;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 14px;
  width: 42px;
}

.video-card-body {
  align-items: flex-end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 15px 16px;
}

.video-card-body h3,
.compact-copy h3 {
  font-size: 15px;
  margin: 7px 0 4px;
}

.video-card-body p,
.compact-copy p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.status-line {
  align-items: center;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
}

.status-line i {
  background: currentColor;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.status-line.success { color: var(--success); }
.status-line.processing { color: var(--ocean); }

.status-line.processing i {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .25; transform: scale(.72); }
}

.mini-button {
  background: var(--pine);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 13px;
}

.compact-card {
  display: grid;
  gap: 13px;
  grid-template-columns: 92px 1fr;
  padding: 10px;
}

.compact-cover {
  align-items: flex-end;
  border-radius: 14px;
  color: white;
  display: flex;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  justify-content: flex-start;
  min-height: 104px;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.cover-quanzhou {
  background:
    linear-gradient(145deg, transparent 0 42%, rgba(52, 28, 17, .65) 43%),
    linear-gradient(160deg, #efc88b, #ba704d 52%, #5c3427);
}

.compact-cover::after {
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50% 50% 0 0;
  content: "";
  height: 46px;
  left: 25px;
  position: absolute;
  top: 23px;
  width: 42px;
}

.compact-copy {
  min-width: 0;
  padding: 5px 3px 3px 0;
}

.real-progress {
  background: var(--paper-deep);
  border-radius: 999px;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.real-progress span {
  background: var(--ocean);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.empty-search {
  color: var(--muted);
  padding: 58px 10px;
  text-align: center;
}

.empty-search span {
  display: block;
  font-size: 36px;
}

.empty-search p {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  margin: 8px 0 4px;
}

.empty-search small {
  font-size: 11px;
}

.detail-header {
  align-items: center;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  min-height: 83px;
  padding-top: 28px;
  position: relative;
  z-index: 12;
}

.header-center {
  min-width: 0;
  text-align: center;
}

.header-center strong,
.header-center span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-center strong {
  font-size: 13px;
  margin-top: 2px;
}

.step-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.processing-stage {
  padding-bottom: 30px;
  text-align: center;
}

.scan-orbit {
  height: 278px;
  margin: 18px auto 4px;
  position: relative;
  width: 278px;
}

.scan-orbit::before,
.scan-orbit::after {
  border: 1px solid rgba(23, 105, 170, .20);
  border-radius: 50%;
  content: "";
  inset: 15px;
  position: absolute;
}

.scan-orbit::after {
  border-color: transparent var(--sunset) transparent var(--sunset);
  inset: 3px;
  transform: rotate(calc(var(--progress) * 1.8deg));
  transition: transform .7s ease;
}

.scan-orbit > img {
  bottom: -4px;
  left: 3px;
  opacity: .82;
  position: absolute;
  width: 272px;
}

.scan-video {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(8, 37, 49, .08), rgba(8, 37, 49, .74)),
    linear-gradient(145deg, #94d4d8, #3d829a 55%, #244c5e);
  border: 5px solid var(--white);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(18, 52, 61, .24);
  color: white;
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  height: 154px;
  justify-content: center;
  left: 79px;
  letter-spacing: .13em;
  position: absolute;
  top: 58px;
  transform: rotate(4deg);
  width: 120px;
  z-index: 3;
}

.scan-video small {
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: .03em;
  margin-top: 10px;
}

.scan-beam {
  animation: scan 1.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  height: 3px;
  left: 83px;
  position: absolute;
  top: 84px;
  width: 112px;
  z-index: 4;
}

@keyframes scan {
  50% { transform: translateY(104px); }
}

.processing-copy h2 {
  font-size: 24px;
  letter-spacing: -.04em;
  margin: 11px 0 7px;
}

.processing-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.stage-list {
  list-style: none;
  margin: 24px 0 17px;
  padding: 0;
  text-align: left;
}

.stage-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #92948e;
  display: grid;
  gap: 11px;
  grid-template-columns: 40px 1fr auto;
  min-height: 72px;
}

.stage-list li.is-active,
.stage-list li.is-done {
  color: var(--ink);
}

.stage-icon {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-size: 10px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.stage-list li.is-active .stage-icon {
  background: var(--ocean);
  border-color: var(--ocean);
  color: white;
}

.stage-list li.is-done .stage-icon {
  background: var(--pine-soft);
  border-color: var(--success);
  color: var(--success);
}

.stage-list b,
.stage-list small {
  display: block;
}

.stage-list b {
  font-size: 13px;
}

.stage-list small {
  font-size: 10px;
  margin-top: 3px;
}

.stage-list em {
  font-size: 10px;
  font-style: normal;
}

.processing-note {
  align-items: center;
  background: var(--pine-soft);
  border-radius: 16px;
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  text-align: left;
}

.processing-note img {
  flex: 0 0 auto;
  width: 51px;
}

.processing-note p {
  color: var(--pine);
  font-size: 11px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.confirm-plan-button {
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  width: 100%;
}

.primary-button {
  background: var(--pine);
  border: 1px solid var(--pine);
  color: white;
}

.secondary-button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.inline-primary {
  min-height: 46px;
  width: auto;
}

.review-screen {
  background: var(--paper);
}

.overlay-header {
  color: white;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.light-text .step-kicker,
.light-text strong {
  color: white;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

.video-evidence-hero {
  color: white;
  height: 318px;
  overflow: hidden;
  padding: 102px 24px 24px;
  position: relative;
}

.video-evidence-hero .cover-title {
  font-size: 32px;
}

.video-play-button {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: white;
  display: flex;
  height: 56px;
  justify-content: center;
  position: absolute;
  right: 27px;
  top: 139px;
  width: 56px;
  z-index: 4;
}

.evidence-scrubber {
  align-items: center;
  bottom: 20px;
  display: grid;
  font-size: 9px;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  left: 21px;
  position: absolute;
  right: 21px;
  z-index: 4;
}

.evidence-scrubber > div {
  background: rgba(255, 255, 255, .32);
  border-radius: 999px;
  height: 3px;
  overflow: hidden;
}

.evidence-scrubber i {
  background: white;
  display: block;
  height: 100%;
}

.review-content {
  padding-bottom: 28px;
}

.cloud-inline {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  display: flex;
  gap: 9px;
  margin-top: -19px;
  padding: 12px 13px;
  position: relative;
  z-index: 8;
}

.cloud-inline img {
  flex: 0 0 auto;
  width: 57px;
}

.cloud-inline p {
  font-size: 11px;
  line-height: 1.5;
}

.cloud-inline b {
  font-size: 12px;
}

.review-summary {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 13px 0 0;
  padding: 11px 0 16px;
}

.review-summary div {
  border-right: 1px solid var(--line);
  text-align: center;
}

.review-summary div:last-child {
  border-right: 0;
}

.review-summary strong,
.review-summary span {
  display: block;
}

.review-summary strong {
  font-family: var(--display);
  font-size: 20px;
}

.review-summary span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.candidate-list {
  display: grid;
  gap: 10px;
}

.candidate-card {
  align-items: center;
  background: rgba(255, 253, 248, .72);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 11px;
  grid-template-columns: 28px 75px 1fr;
  padding: 10px;
  position: relative;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.candidate-card.is-selected {
  background: var(--white);
  border-color: rgba(23, 61, 54, .40);
  box-shadow: 0 8px 22px rgba(23, 61, 54, .08);
}

.candidate-select {
  align-items: center;
  align-self: start;
  background: transparent;
  border: 1.5px solid #b2b4ad;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 24px;
  justify-content: center;
  margin-top: 4px;
  padding: 0;
  width: 24px;
}

.candidate-card.is-selected .candidate-select {
  background: var(--pine);
  border-color: var(--pine);
}

.candidate-thumb {
  align-items: flex-end;
  border-radius: 13px;
  color: white;
  display: flex;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  height: 88px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 9px;
  position: relative;
}

.candidate-thumb::after {
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  content: "";
  height: 46px;
  position: absolute;
  right: -12px;
  top: -12px;
  width: 46px;
}

.thumb-lake { background: linear-gradient(145deg, #7ebc9c, #2c7e8c 60%, #1a5274); }
.thumb-bridge { background: linear-gradient(145deg, #d8875c, #874c49 58%, #293b50); }
.thumb-tower { background: linear-gradient(145deg, #dcaa55, #a04432 60%, #5e2d28); }
.thumb-food { background: linear-gradient(145deg, #e0b576, #ba5c37 58%, #6e302b); }

.candidate-copy {
  min-width: 0;
}

.candidate-topline {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.match-tag {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 6px;
}

.match-tag.matched {
  background: var(--pine-soft);
  color: var(--success);
}

.match-tag.ambiguous,
.match-tag.uncertain {
  background: var(--amber-soft);
  color: #8b5b09;
}

.evidence-link {
  background: none;
  border: 0;
  color: var(--ocean);
  font-size: 9px;
  min-height: 30px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.candidate-copy h3 {
  font-size: 13px;
  line-height: 1.35;
  margin: 5px 0 3px;
}

.candidate-copy p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.intent-button {
  background: transparent;
  border: 0;
  color: var(--pine);
  font-size: 10px;
  font-weight: 700;
  min-height: 32px;
  padding: 6px 0 0;
}

.sticky-action {
  align-items: center;
  background: rgba(246, 242, 233, .94);
  border-top: 1px solid var(--line);
  bottom: 0;
  backdrop-filter: blur(15px);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  position: sticky;
  z-index: 18;
}

.sticky-action > div {
  flex: 1 1 auto;
  min-width: 0;
}

.sticky-action .inline-primary {
  flex: 0 0 118px;
  padding-left: 10px;
  padding-right: 10px;
  width: 118px;
}

.sticky-action span,
.sticky-action small {
  display: block;
}

.sticky-action span {
  font-size: 12px;
  font-weight: 700;
}

.sticky-action small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.setup-content {
  padding-bottom: 28px;
}

.setup-intro {
  padding: 25px 0 23px;
}

.orange-stamp {
  border: 1px solid var(--sunset);
  color: var(--sunset);
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  transform: rotate(-2deg);
}

.setup-intro h1 {
  font-size: 32px;
  letter-spacing: -.06em;
  line-height: 1.24;
  margin: 16px 0 12px;
}

.setup-intro p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.days-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.days-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.days-fieldset em {
  color: var(--sunset);
  font-size: 9px;
  font-style: normal;
  margin-left: 4px;
}

.days-wheel-shell {
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: inset 0 8px 22px rgba(23, 61, 54, .04);
  height: 156px;
  overflow: hidden;
  position: relative;
}

.days-wheel {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 52px 0;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
  z-index: 2;
}

.days-wheel::-webkit-scrollbar { display: none; }

.days-wheel button {
  align-items: baseline;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  gap: 4px;
  justify-content: center;
  min-height: 52px;
  opacity: .24;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(.72);
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
  width: 100%;
}

.days-wheel button.is-near {
  opacity: .56;
  transform: scale(.88);
}

.days-wheel button.is-selected {
  color: var(--pine);
  opacity: 1;
  transform: scale(1.14);
}

.days-wheel b {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
}

.days-wheel span {
  font-size: 12px;
  font-weight: 700;
}

.days-wheel-selection {
  background: rgba(218, 235, 225, .62);
  border-bottom: 1px solid rgba(23, 61, 54, .16);
  border-top: 1px solid rgba(23, 61, 54, .16);
  height: 52px;
  left: 12px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 52px;
  z-index: 1;
}

.days-wheel-shade {
  background: linear-gradient(to bottom, var(--paper) 0, transparent 34%, transparent 66%, var(--paper) 100%);
  inset: 0;
  opacity: .78;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.days-wheel-shell.is-ticking .days-wheel-selection {
  animation: day-wheel-tick .18s ease-out;
}

@keyframes day-wheel-tick {
  0% { transform: scaleX(.985); }
  55% { transform: scaleX(1.012); }
  100% { transform: scaleX(1); }
}

.days-wheel-value {
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
  text-align: center;
}

.selected-preview {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  margin: 17px 0 24px;
  padding: 11px;
}

.tradeoff-preview {
  background: linear-gradient(145deg, rgba(220, 235, 244, .82), rgba(231, 243, 236, .88));
  border: 1px solid rgba(23, 105, 170, .18);
  border-radius: 18px;
  margin: 18px 0 12px;
  padding: 16px;
}

.tradeoff-preview > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tradeoff-preview span {
  color: var(--ocean);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.tradeoff-preview em {
  background: var(--white);
  border-radius: 999px;
  color: var(--sunset);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 8px;
}

.tradeoff-preview h3 {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.45;
  margin: 11px 0 6px;
}

.tradeoff-preview p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.mini-stack {
  display: flex;
  padding-left: 7px;
}

.mini-stack span {
  align-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 8px;
  height: 34px;
  justify-content: center;
  margin-left: -7px;
  width: 34px;
}

.selected-preview b,
.selected-preview small {
  display: block;
}

.selected-preview b {
  font-size: 11px;
}

.selected-preview small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}

.selected-preview button,
.optional-heading button,
.day-heading button,
.plan-status-copy button {
  background: none;
  border: 0;
  color: var(--ocean);
  font-size: 10px;
  font-weight: 700;
  min-height: 38px;
}

.optional-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.optional-heading h2 {
  font-size: 18px;
}

.optional-heading span {
  color: var(--muted);
  font-size: 9px;
}

.questionnaire-fields {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.field-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 36px 1fr;
  padding: 13px 0;
}

.field-row:last-child {
  border-bottom: 0;
}

.field-icon {
  align-items: center;
  background: var(--paper-deep);
  border-radius: 10px;
  color: var(--pine);
  display: flex;
  font-family: var(--display);
  font-size: 12px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.field-row > span:nth-child(2) {
  min-width: 0;
}

.field-row b,
.field-row small {
  display: block;
}

.field-row b {
  font-size: 12px;
}

.field-row small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
  margin-top: 2px;
}

.field-row input {
  background: transparent;
  border: 0;
  border-top: 1px dashed rgba(23, 25, 21, .10);
  color: var(--ink);
  grid-column: 2;
  min-height: 39px;
  outline: 0;
  padding: 7px 0 0;
  width: 100%;
}

.field-row input[type="date"] {
  font-size: 11px;
  min-height: 38px;
}

.field-row input::placeholder {
  color: #a6a79f;
  font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .days-wheel { scroll-behavior: auto; }
  .days-wheel button { transition: none; }
  .days-wheel-shell.is-ticking .days-wheel-selection { animation: none; }
}

.draft-explanation {
  align-items: flex-start;
  background: var(--amber-soft);
  border-radius: 13px;
  display: flex;
  gap: 8px;
  margin: 16px 0;
  padding: 11px;
}

.draft-explanation span {
  align-items: center;
  border: 1px solid #8b5b09;
  border-radius: 50%;
  color: #8b5b09;
  display: flex;
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 9px;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.draft-explanation p {
  color: #75531a;
  font-size: 9px;
  line-height: 1.5;
}

.plan-screen {
  background: var(--paper);
}

.plan-header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.plan-header > div {
  min-width: 0;
}

.plan-header p:last-child {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.plan-orbit {
  background:
    linear-gradient(135deg, rgba(220, 235, 244, .8), rgba(255, 253, 248, .84)),
    repeating-radial-gradient(circle at 21% 40%, transparent 0 22px, rgba(23, 61, 54, .08) 23px 24px);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  min-height: 210px;
  overflow: hidden;
  padding-bottom: 19px;
  padding-top: 17px;
  position: relative;
}

.plan-orbit > img {
  bottom: -76px;
  opacity: .9;
  position: absolute;
  right: -78px;
  transform: rotate(8deg);
  width: 270px;
}

.route-line {
  border: 1.5px dashed rgba(23, 105, 170, .65);
  border-left: 0;
  border-radius: 0 80px 80px 0;
  height: 80px;
  position: absolute;
  right: 57px;
  top: 47px;
  transform: rotate(-9deg);
  width: 91px;
}

.route-line i {
  background: var(--sunset);
  border: 2px solid var(--white);
  border-radius: 50%;
  height: 10px;
  position: absolute;
  width: 10px;
}

.route-line i:nth-child(1) { left: -4px; top: -4px; }
.route-line i:nth-child(2) { right: -4px; top: 29px; }
.route-line i:nth-child(3) { bottom: -4px; left: 19px; }

.plan-status-copy {
  max-width: 58%;
  position: relative;
  z-index: 4;
}

.plan-status-copy h2 {
  font-size: 19px;
  line-height: 1.38;
  margin: 11px 0 7px;
}

.plan-status-copy p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.plan-status-copy button {
  padding: 9px 0 0;
}

.day-tabs {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(var(--day-count, 2), minmax(62px, 1fr));
  overflow-x: auto;
  padding-bottom: 9px;
  padding-top: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.day-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  min-height: 47px;
}

.day-tabs button.is-active {
  border-color: var(--sunset);
  color: var(--ink);
}

.day-tabs b,
.day-tabs span {
  display: block;
}

.day-tabs b {
  font-size: 10px;
  letter-spacing: .08em;
}

.day-tabs span {
  font-size: 8px;
  margin-top: 4px;
}

.itinerary {
  padding-bottom: 10px;
  padding-top: 20px;
}

.plan-route-map {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(28, 40, 35, .09);
  margin: 0 0 22px;
  overflow: hidden;
  pointer-events: none;
  position: relative;
  user-select: none;
}

.plan-route-map img {
  aspect-ratio: 2 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.plan-map-hotspots { inset: 0 0 38px; pointer-events: none; position: absolute; }
.plan-map-hotspot { align-items: center; background: #f382b5; border: 5px solid #fffdf8; border-radius: 50%; box-shadow: 0 6px 12px rgba(70, 75, 135, .22); color: white; display: flex; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 800; height: 36px; justify-content: center; padding: 0; pointer-events: auto; position: absolute; transform: translate(-50%, -50%); width: 36px; z-index: 2; }
.plan-map-hotspot[data-plan-map-point="east-lake"], .plan-map-hotspot[data-plan-map-point="bridge"] { background: #279dbb; }
.plan-route-map figcaption span { max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.plan-route-map figcaption {
  align-items: center;
  background: rgba(255, 253, 248, .94);
  border-top: 1px solid rgba(23, 25, 21, .08);
  display: flex;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 12px;
}

.plan-route-map figcaption b,
.plan-route-map figcaption span {
  line-height: 1;
}

.plan-route-map figcaption b {
  font-size: 10px;
}

.plan-route-map figcaption span {
  color: var(--muted);
  font-size: 8px;
}

.day-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.day-heading span {
  color: var(--sunset);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.day-heading h2 {
  font-size: 19px;
  margin-top: 3px;
}

.timeline-stop {
  display: grid;
  gap: 10px;
  grid-template-columns: 42px 14px 1fr;
  position: relative;
}

.timeline-stop time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  padding-top: 4px;
  text-align: right;
}

.stop-dot {
  background: var(--success);
  border: 4px solid var(--pine-soft);
  border-radius: 50%;
  height: 14px;
  margin-top: 3px;
  position: relative;
  width: 14px;
}

.stop-dot::after {
  background: var(--line);
  content: "";
  height: 105px;
  left: 5px;
  position: absolute;
  top: 12px;
  width: 1px;
}

.warm-dot {
  background: var(--amber);
  border-color: var(--amber-soft);
}

.timeline-stop > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.timeline-stop.featured-stop > div {
  border-color: rgba(35, 138, 104, .38);
  box-shadow: 0 8px 25px rgba(35, 138, 104, .09);
}

.timeline-stop h3 {
  font-size: 13px;
  margin: 8px 0 4px;
}

.timeline-stop p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.why-button {
  background: none;
  border: 0;
  color: var(--ocean);
  font-size: 9px;
  min-height: 32px;
  padding: 8px 0 0;
}

.transfer-row {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 8px;
  grid-template-columns: 56px 1fr;
  min-height: 39px;
  padding-left: 66px;
}

.ai-adjust {
  border-top: 1px solid var(--line);
  padding-bottom: 25px;
}

.ai-adjust .section-heading img {
  width: 57px;
}

.prompt-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.prompt-chips button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pine);
  flex: 0 0 auto;
  font-size: 10px;
  min-height: 40px;
  padding: 0 12px;
}

.chat-composer {
  align-items: center;
  background: var(--pine);
  border: 0;
  border-radius: 16px;
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 8px 0 16px;
  width: 100%;
}

.chat-composer span {
  font-size: 12px;
  font-weight: 700;
}

.chat-composer i {
  align-items: center;
  background: white;
  border-radius: 12px;
  color: var(--pine);
  display: flex;
  font-style: normal;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.confirm-plan-button {
  background: transparent;
  border: 1px solid var(--pine);
  color: var(--pine);
  margin-top: 9px;
}

.plan-list-page,
.profile-page {
  display: grid;
  gap: 13px;
  padding-top: 12px;
}

.plan-swipe-row {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.plan-delete-action {
  align-items: center;
  background: #b83f34;
  border: 0;
  color: white;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  inset: 0 0 0 auto;
  justify-content: center;
  position: absolute;
  width: 88px;
}

.plan-swipe-row .trip-card {
  position: relative;
  touch-action: pan-y;
  transition: transform 180ms ease;
  width: 100%;
  z-index: 1;
}

.plan-swipe-row.is-dragging .trip-card {
  transition: none;
}

.plan-swipe-row.is-open .trip-card {
  transform: translateX(-88px);
}

.trip-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 142px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.active-trip {
  background: linear-gradient(135deg, var(--white), var(--ocean-soft));
  cursor: pointer;
  min-height: 208px;
}

.trip-card h2 {
  font-size: 22px;
  margin: 13px 0 5px;
}

.trip-card p {
  color: var(--muted);
  font-size: 10px;
}

.trip-card > img {
  bottom: -67px;
  position: absolute;
  right: -56px;
  width: 210px;
}

.trip-card > button {
  background: var(--pine);
  border: 0;
  border-radius: 999px;
  bottom: 16px;
  color: white;
  font-size: 10px;
  left: 16px;
  min-height: 40px;
  padding: 0 14px;
  position: absolute;
  z-index: 3;
}

.archived-trip {
  display: flex;
  justify-content: space-between;
}

.trip-number {
  color: var(--paper-deep);
  font-family: var(--display);
  font-size: 70px;
  font-weight: 700;
  line-height: 1;
}

.profile-hero {
  align-items: center;
  background: var(--pine);
  border-radius: 22px;
  color: white;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr 62px;
  min-height: 126px;
  overflow: hidden;
  padding: 17px;
}

.avatar {
  align-items: center;
  background: var(--sunset);
  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  display: flex;
  font-family: var(--display);
  font-size: 21px;
  height: 55px;
  justify-content: center;
  width: 55px;
}

.profile-hero h2 {
  font-size: 19px;
}

.profile-hero p {
  color: rgba(255, 255, 255, .7);
  font-size: 8px;
  line-height: 1.45;
  margin-top: 4px;
}

.profile-hero img {
  width: 78px;
}

.privacy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
}

.privacy-card span {
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.privacy-card h3 {
  font-size: 16px;
  line-height: 1.45;
  margin: 9px 0 7px;
}

.privacy-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.privacy-card button {
  background: none;
  border: 0;
  color: var(--ocean);
  font-size: 10px;
  min-height: 42px;
  padding: 9px 0 0;
}

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

.future-grid div {
  background: var(--paper-deep);
  border-radius: 16px;
  min-height: 112px;
  padding: 15px;
}

.future-grid span,
.future-grid b,
.future-grid small {
  display: block;
}

.future-grid span {
  color: var(--sunset);
  font-size: 20px;
}

.future-grid b {
  font-size: 12px;
  margin: 13px 0 3px;
}

.future-grid small {
  color: var(--muted);
  font-size: 9px;
}

.bottom-nav {
  align-items: center;
  background: rgba(255, 253, 248, .92);
  border-top: 1px solid var(--line);
  bottom: 0;
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr 72px 1fr 1fr;
  left: 0;
  min-height: 76px;
  padding: 6px 13px calc(6px + env(safe-area-inset-bottom));
  position: absolute;
  right: 0;
  z-index: 35;
}

.bottom-nav > button:not(.add-nav-button) {
  background: none;
  border: 0;
  color: #8c8e87;
  min-height: 54px;
}

.bottom-nav > button.is-active {
  color: var(--pine);
}

.bottom-nav span,
.bottom-nav b {
  display: block;
}

.bottom-nav > button:not(.add-nav-button) span {
  font-size: 20px;
}

.bottom-nav b {
  font-size: 9px;
  margin-top: 2px;
}

.add-nav-button {
  background: var(--sunset);
  border: 5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 9px 20px rgba(255, 104, 72, .30);
  color: white;
  height: 59px;
  justify-self: center;
  margin-top: -22px;
  width: 59px;
}

.add-nav-button span {
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}

#app[data-screen="processing"] .bottom-nav,
#app[data-screen="review"] .bottom-nav,
#app[data-screen="setup"] .bottom-nav,
#app[data-screen="plan"] .bottom-nav {
  display: none;
}

.cloud-fab {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  bottom: 83px;
  box-shadow: var(--soft-shadow);
  height: 54px;
  padding: 2px;
  position: absolute;
  right: 16px;
  width: 54px;
  z-index: 29;
}

.cloud-fab img {
  width: 100%;
}

.sheet-backdrop {
  background: rgba(15, 24, 22, .45);
  inset: 0;
  position: absolute;
  z-index: 50;
}

.bottom-sheet {
  background: var(--paper);
  border-radius: 25px 25px 0 0;
  bottom: 0;
  box-shadow: 0 -24px 60px rgba(15, 28, 25, .22);
  left: 0;
  max-height: 88%;
  overflow-y: auto;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  position: absolute;
  right: 0;
  z-index: 60;
}

.bottom-sheet:not([hidden]) {
  animation: sheet-rise .28s cubic-bezier(.2, .75, .22, 1) both;
}

@keyframes sheet-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  background: #c9c8c0;
  border-radius: 999px;
  height: 4px;
  margin: 0 auto 14px;
  width: 40px;
}

.sheet-heading,
.assistant-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 17px;
}

.sheet-heading h2,
.assistant-heading h2 {
  font-size: 22px;
  margin-top: 4px;
}

.upload-zone {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(220, 235, 244, .74), rgba(255, 253, 248, .82)),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 20px, rgba(23, 61, 54, .07) 21px 22px);
  border: 1.5px dashed rgba(23, 61, 54, .40);
  border-radius: 19px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 171px;
  padding: 20px;
}

.upload-icon {
  align-items: center;
  background: var(--pine);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 23px;
  height: 54px;
  justify-content: center;
  margin-bottom: 10px;
  width: 54px;
}

.upload-zone b {
  font-size: 14px;
}

.upload-zone small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}

.upload-zone input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.bottom-sheet > .secondary-button {
  gap: 8px;
  margin-top: 10px;
}

.secondary-button em {
  background: var(--paper-deep);
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  margin-left: auto;
  padding: 4px 6px;
}

.sheet-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  margin: 11px 2px 15px;
}

.plan-target {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  display: grid;
  gap: 11px;
  grid-template-columns: 46px 1fr auto;
  margin-bottom: 10px;
  min-height: 82px;
  padding: 11px;
  text-align: left;
  width: 100%;
}

.active-target {
  border-color: var(--pine);
}

.target-icon {
  align-items: center;
  background: var(--pine-soft);
  border-radius: 14px;
  color: var(--pine);
  display: flex;
  font-size: 22px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.plan-target b,
.plan-target small {
  display: block;
}

.plan-target b {
  font-size: 13px;
}

.plan-target small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.plan-target em {
  background: var(--paper-deep);
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  padding: 4px 6px;
}

.assistant-sheet {
  max-height: 92%;
}

.assistant-heading {
  justify-content: flex-start;
}

.assistant-heading img {
  width: 54px;
}

.assistant-heading > div {
  flex: 1;
}

.assistant-heading h2 {
  font-size: 18px;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 8px 0 13px;
}

.ai-message,
.user-message {
  border-radius: 15px;
  font-size: 11px;
  line-height: 1.55;
  max-width: 84%;
  padding: 11px 12px;
}

.ai-message {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.assistant-thinking {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 5px;
  min-height: 38px;
  width: auto;
}

.assistant-thinking::before {
  content: "正在思考";
  margin-right: 2px;
}

.assistant-thinking span {
  animation: assistant-thinking-dot 1.1s ease-in-out infinite;
  background: var(--ocean);
  border-radius: 50%;
  height: 5px;
  opacity: .3;
  width: 5px;
}

.assistant-thinking span:nth-child(2) { animation-delay: .15s; }
.assistant-thinking span:nth-child(3) { animation-delay: .3s; }

@keyframes assistant-thinking-dot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-thinking span {
    animation: none;
    opacity: .7;
  }
}

.user-message {
  align-self: flex-end;
  background: var(--pine);
  border-bottom-right-radius: 3px;
  color: white;
}

.discussion-followup {
  align-self: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
}

.discussion-followup p,
.discussion-followup button {
  font-size: 11px;
  font-weight: 700;
}

.discussion-followup p {
  line-height: 1.55;
  margin-bottom: 10px;
}

.discussion-followup > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discussion-followup button {
  min-height: 44px;
  min-width: 0;
  padding: 0 8px;
  width: 100%;
}

.proposal-card {
  align-self: stretch;
  background: var(--white);
  border: 1px solid rgba(23, 61, 54, .35);
  border-radius: 18px;
  margin-bottom: 13px;
  padding: 14px;
}
.proposal-card.is-decided { opacity: .76; }
.proposal-card.is-decided .proposal-actions { display: none; }
.proposal-decision {
  background: var(--pine-soft);
  border-radius: 10px;
  color: var(--pine);
  font-size: 9px;
  font-weight: 700;
  margin-top: 10px;
  padding: 9px 10px;
}

.proposal-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.proposal-title span {
  color: var(--success);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.proposal-title b {
  background: var(--sunset-soft);
  border-radius: 999px;
  color: #973920;
  font-size: 8px;
  padding: 4px 6px;
}

.proposal-card h3 {
  font-family: var(--display);
  font-size: 17px;
  margin: 12px 0;
}

.diff-row {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 36px 1fr;
  padding: 9px 0;
}

.diff-row span {
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
}

.diff-row p {
  font-size: 10px;
  line-height: 1.45;
}

.diff-row del {
  color: var(--muted);
}

.diff-row ins {
  color: var(--success);
  font-weight: 700;
  text-decoration: none;
}

.proposal-card details {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  padding-top: 9px;
}

.proposal-card summary {
  color: var(--ocean);
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
}

.proposal-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.proposal-actions .secondary-button,
.proposal-actions .primary-button {
  font-size: 10px;
  min-height: 46px;
  padding: 0 10px;
}

.assistant-input {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 8px;
  padding: 6px;
}

.assistant-input input {
  background: transparent;
  border: 0;
  flex: 1;
  min-height: 40px;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
}

.assistant-input button {
  background: var(--sunset);
  border: 0;
  border-radius: 12px;
  color: white;
  font-size: 19px;
  height: 40px;
  width: 40px;
}

.evidence-preview {
  align-items: center;
  border-radius: 17px;
  color: white;
  display: flex;
  height: 148px;
  justify-content: center;
  margin-bottom: 13px;
  overflow: hidden;
  position: relative;
}

.evidence-preview span {
  background: rgba(15, 29, 27, .55);
  border-radius: 999px;
  bottom: 10px;
  font-size: 9px;
  left: 10px;
  padding: 4px 7px;
  position: absolute;
  z-index: 3;
}

.evidence-preview i {
  align-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  display: flex;
  font-style: normal;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
  z-index: 3;
}

.evidence-sheet > h3 {
  font-family: var(--display);
  font-size: 18px;
}

.evidence-sheet > p:not(.sheet-note) {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  margin-top: 6px;
}

.source-pills {
  display: flex;
  gap: 6px;
  margin-top: 11px;
}

.source-pills span {
  background: var(--ocean-soft);
  border-radius: 999px;
  color: var(--ocean);
  font-size: 9px;
  padding: 5px 8px;
}

.loading-layer {
  align-items: center;
  background: rgba(246, 242, 233, .96);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 90;
}

.loading-layer img,
.loading-layer .cloud-ip-host {
  position: relative;
  width: 112px;
  z-index: 2;
}

.loading-orbit {
  animation: orbit-spin 1.2s linear infinite;
  border: 2px solid rgba(23, 105, 170, .18);
  border-right-color: var(--sunset);
  border-radius: 50%;
  height: 150px;
  margin-top: -126px;
  width: 150px;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.loading-layer h2 {
  font-size: 22px;
  margin-top: 29px;
}

.loading-layer p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}

.toast {
  background: var(--ink);
  border-radius: 999px;
  bottom: 91px;
  color: white;
  font-size: 10px;
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 110;
}

.toast:not([hidden]) {
  animation: toast-in .25s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 2026-07-21 feedback pass: video library, background jobs, POI detail and profile */
.home-hero {
  min-height: 176px;
  padding-bottom: 18px;
  padding-top: 18px;
}

.hero-copy p {
  font-size: 15px;
  line-height: 1.52;
  margin: 13px 0 7px;
}

.hero-earth {
  bottom: -88px;
  width: 235px;
}

.library-toolbar {
  align-items: stretch;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) 48px;
}

.filter-button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--pine);
  display: flex;
  font-size: 21px;
  justify-content: center;
  min-height: 48px;
}

.library-grid {
  display: grid;
  gap: 11px;
  transition: grid-template-columns .22s ease;
}

.library-grid[data-view="double"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-grid[data-view="single"] {
  grid-template-columns: minmax(0, 1fr);
}

.library-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(27, 43, 37, .07);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.library-card.is-delete-selected {
  box-shadow: 0 0 0 3px rgba(184, 63, 52, .42), 0 14px 32px rgba(56, 42, 30, .12);
}

.delete-select-mark {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 2px solid rgba(45, 70, 65, .42);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  left: 9px;
  position: absolute;
  top: 9px;
  width: 25px;
  z-index: 7;
}

.library-card.is-delete-selected .delete-select-mark {
  background: #b83f34;
  border-color: #b83f34;
}

.video-delete-bar {
  align-items: center;
  background: rgba(255, 253, 247, .97);
  border: 1px solid rgba(44, 68, 62, .18);
  border-radius: 8px;
  bottom: 126px;
  box-shadow: 0 14px 34px rgba(35, 43, 39, .18);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  left: 20px;
  padding: 10px;
  position: absolute;
  right: 20px;
  z-index: 90;
}

.video-delete-bar[hidden] { display: none; }
.video-delete-bar span { color: var(--muted); font-size: 12px; text-align: center; }
.video-delete-bar button { min-height: 42px; padding: 0 16px; width: auto; }

.delete-video-button {
  background: #b83f34;
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
}

.delete-video-button:disabled { opacity: .45; }

.library-card-action {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.library-cover {
  aspect-ratio: 1 / .9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: block;
  overflow: hidden;
  padding: 13px;
  position: relative;
}

.library-duration {
  position: relative;
  z-index: 3;
}

.library-duration {
  bottom: 10px;
  font-size: 9px;
  left: 13px;
  position: absolute;
}

.library-card-copy {
  display: block;
  min-width: 0;
  padding: 12px;
}

.library-card-copy strong,
.library-card-copy small {
  display: block;
}

.library-card-copy strong {
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.42;
  margin: 8px 0 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-card-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.42;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-card-copy .status-line {
  font-size: 8.5px;
}

.library-grid[data-view="single"] .library-card-action {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
}

.library-grid[data-view="single"] .library-cover {
  aspect-ratio: auto;
  min-height: 138px;
}

.library-grid[data-view="single"] .library-card-copy {
  align-self: center;
  padding: 15px;
}

.library-grid[data-view="single"] .library-card-copy strong {
  font-size: 15px;
}

.cover-processing {
  align-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.9), transparent 30%),
    linear-gradient(140deg, #dcebf4, #f7efe3 72%);
  display: flex;
  justify-content: center;
}

.cover-processing img,
.cover-processing .cloud-ip-host {
  position: relative;
  width: 70px;
  z-index: 2;
}

.processing-rings {
  animation: orbit-spin 2.4s linear infinite;
  border: 1px dashed rgba(23,105,170,.4);
  border-radius: 50%;
  height: 108px;
  position: absolute;
  width: 108px;
}

.cover-processing .library-duration {
  color: var(--ocean);
}

.processing-source-card {
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 11px;
  margin: 13px 0 23px;
  min-height: 64px;
  overflow: hidden;
  padding: 11px 14px;
  text-align: left;
}

.source-kind-icon {
  align-items: center;
  background: var(--ocean-soft);
  border-radius: 50%;
  color: var(--ocean);
  display: flex;
  flex: 0 0 auto;
  font-size: 19px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

#processing-source-label {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.processing-assistant-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px minmax(0, 1fr);
  text-align: left;
}

.processing-assistant-row > img,
.processing-assistant-row > .cloud-ip-host { width: 86px; }

.processing-assistant-row .processing-copy h2 {
  font-size: 22px;
  margin: 9px 0 5px;
}

.processing-skeleton {
  display: grid;
  gap: 10px;
  margin: 27px 0 17px;
}

.processing-skeleton span {
  animation: skeleton-breathe 1.4s ease-in-out infinite alternate;
  background: linear-gradient(90deg, #ecebe7, #f8f7f3, #ecebe7);
  border-radius: 999px;
  display: block;
  height: 13px;
}

.processing-skeleton span:nth-child(1) { width: 36%; }
.processing-skeleton span:nth-child(2) { animation-delay: .12s; width: 100%; }
.processing-skeleton span:nth-child(3) { animation-delay: .24s; width: 91%; }
.processing-skeleton span:nth-child(4) { animation-delay: .36s; width: 96%; }
.processing-skeleton span:nth-child(5) { animation-delay: .48s; width: 68%; }

@keyframes skeleton-breathe {
  to { opacity: .45; transform: translateX(3px); }
}

.processing-progress-track {
  background: var(--paper-deep);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.processing-progress-track span {
  background: linear-gradient(90deg, var(--ocean), #62b7c8);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: calc(var(--progress) * 1%);
}

.candidate-thumb {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.poi-title-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 4px;
  justify-content: flex-start;
  margin: 7px 0 4px;
  padding: 0;
  text-align: left;
}

.poi-title-button span {
  color: var(--ocean);
  font-size: 18px;
}

.poi-detail-screen {
  background: #fbfaf6;
}

.poi-detail-content {
  padding-bottom: 42px;
}

.poi-title-block h1 {
  font-size: 32px;
  letter-spacing: -.05em;
  margin: 9px 0 12px;
}

.poi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poi-tags span {
  background: var(--amber-soft);
  border-radius: 7px;
  color: #9c6811;
  font-size: 9px;
  padding: 6px 8px;
}

.poi-tags span:last-child {
  background: var(--paper-deep);
  color: var(--muted);
}

.poi-gallery {
  display: flex;
  gap: 10px;
  margin: 22px 0 28px;
  overflow-x: auto;
  padding: 0 20px 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.poi-gallery::-webkit-scrollbar { display: none; }

.poi-photo {
  align-items: flex-end;
  border-radius: 23px;
  color: #fff;
  display: flex;
  flex: 0 0 72%;
  min-height: 244px;
  overflow: hidden;
  padding: 17px;
  position: relative;
  scroll-snap-align: start;
}

.poi-photo::before,
.poi-photo::after {
  content: "";
  position: absolute;
}

.poi-photo span {
  background: rgba(14,25,22,.62);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 10px;
  padding: 7px 10px;
  position: relative;
  z-index: 3;
}

.poi-photo-main {
  background: linear-gradient(180deg, #9cced1, #d6ba8a 56%, #5f3828);
}

.poi-photo-main::before {
  background: #e8dbc0;
  border: 11px solid #f2e8d3;
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
  height: 140px;
  left: 20%;
  top: 42px;
  width: 60%;
}

.poi-photo-main::after {
  background: repeating-linear-gradient(90deg, #412d25 0 16px, #c7854a 16px 25px);
  bottom: 0;
  height: 74px;
  left: 0;
  right: 0;
}

.poi-photo-food {
  background: radial-gradient(circle at 50% 58%, #df6f32 0 22%, #f3bd67 23% 34%, #345d4d 35% 46%, #d9c7a0 47% 65%, #72452d 66%);
  flex-basis: 57%;
}

.poi-photo-walk {
  background: linear-gradient(145deg, #a8d7e2, #70a4b4 42%, #d98e4f 43% 62%, #4f342d 63%);
  flex-basis: 57%;
}

.poi-section-title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.poi-section-title h2,
.related-heading h2 {
  font-size: 22px;
}

.poi-section-title > span {
  background: var(--paper-deep);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  padding: 5px 7px;
}

.poi-intro {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.9;
  margin: 14px 0 16px;
}

.poi-evidence-note {
  background: var(--ocean-soft);
  border-radius: 16px;
  padding: 14px;
}

.poi-evidence-note span {
  color: var(--ocean);
  font-size: 9px;
  font-weight: 700;
}

.poi-evidence-note p {
  font-size: 11px;
  line-height: 1.55;
  margin-top: 6px;
}

.reality-title {
  margin-top: 27px;
}

.reality-cards {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.reality-cards article {
  background: var(--pine-soft);
  border-radius: 17px;
  padding: 15px;
}

.reality-cards article:nth-child(2) { background: var(--sunset-soft); }
.reality-cards b { font-size: 12px; }
.reality-cards p { color: #4e514b; font-size: 11px; line-height: 1.65; margin-top: 6px; }

.related-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-top: 31px;
}

.related-heading > span {
  color: var(--ocean);
  font-size: 8.5px;
}

.related-disclaimer {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  margin: 8px 0 13px;
}

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

.related-video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.related-video-cover {
  align-items: flex-end;
  aspect-ratio: .78;
  background: linear-gradient(150deg, #6fb2c6, #18475b 53%, #e5a65c 54%);
  color: white;
  display: flex;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  padding: 12px;
}

.related-video-card:nth-child(2n) .related-video-cover {
  background: linear-gradient(145deg, #f0b36e, #a94e35 52%, #2d2525 53%);
}

.related-video-copy {
  padding: 10px;
}

.related-video-copy strong,
.related-video-copy small {
  display: block;
}

.related-video-copy strong {
  font-size: 11px;
  line-height: 1.45;
  min-height: 32px;
}

.related-video-copy small {
  color: var(--muted);
  font-size: 8.5px;
  margin: 5px 0 9px;
}

.favorite-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pine);
  display: flex;
  font-size: 9px;
  gap: 4px;
  justify-content: center;
  min-height: 32px;
  width: 100%;
}

.favorite-button.is-saved {
  background: var(--sunset-soft);
  border-color: transparent;
  color: #a43a25;
}

.profile-page { padding-bottom: calc(196px + env(safe-area-inset-bottom)); }

.profile-hero {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) 32px;
}

.profile-hero > button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
}

.avatar-portrait {
  background:
    radial-gradient(circle at 50% 38%, #f3d0b1 0 18%, transparent 19%),
    radial-gradient(circle at 50% 75%, #173d36 0 32%, transparent 33%),
    linear-gradient(145deg, #ffd17a, #e46d4e);
  border: 4px solid var(--white);
  box-shadow: var(--soft-shadow);
  height: 72px;
  width: 72px;
}

.avatar-portrait span { opacity: 0; }
.profile-identity h2 { font-family: var(--body); font-size: 19px; }
.profile-identity > p { color: var(--muted); font-size: 10px; margin: 3px 0 8px; }

.level-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(32px, 1fr) auto;
}

.level-row strong {
  background: var(--sunset);
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  padding: 4px 6px;
}

.level-row > span { background: #e4e4de; border-radius: 99px; height: 5px; overflow: hidden; }
.level-row > span i { background: var(--sunset); display: block; height: 100%; width: 38%; }
.level-row em { color: var(--muted); font-size: 7px; font-style: normal; }

.journey-record-card {
  background: linear-gradient(135deg, #d9f1f4, #f4e7c6);
  border-radius: 21px;
  margin-top: 18px;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.journey-record-copy { position: relative; z-index: 2; }
.journey-record-copy > span { font-size: 10px; font-weight: 700; }
.journey-record-copy strong { display: block; font-size: 31px; margin: 7px 0 3px; }
.journey-record-copy strong em { font-size: 12px; font-style: normal; }
.journey-record-copy p { font-size: 9px; }

.journey-map {
  background: radial-gradient(circle at 30% 20%, #75c7d3, transparent 30%), linear-gradient(145deg, #317d9c, #70b8a1 58%, #e4bd6d);
  border-radius: 50%;
  height: 170px;
  position: absolute;
  right: -30px;
  top: 20px;
  width: 170px;
}

.route-stroke {
  border: 2px dashed rgba(255,255,255,.75);
  border-radius: 50%;
  inset: 27px;
  position: absolute;
  transform: rotate(-20deg);
}

.journey-map i { background: var(--sunset); border: 2px solid #fff; border-radius: 50%; height: 10px; position: absolute; width: 10px; }
.journey-map i:nth-of-type(1) { left: 43px; top: 55px; }
.journey-map i:nth-of-type(2) { right: 45px; top: 75px; }
.journey-map i:nth-of-type(3) { bottom: 35px; left: 75px; }
.journey-map b { bottom: 19px; color: white; font-size: 11px; position: absolute; right: 42px; }

.journey-record-card > button {
  background: rgba(255,255,255,.76);
  border: 0;
  border-radius: 999px;
  bottom: 17px;
  font-size: 9px;
  left: 18px;
  min-height: 34px;
  padding: 0 12px;
  position: absolute;
  z-index: 3;
}

.profile-dual-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.profile-feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  padding: 14px;
  text-align: left;
}

.profile-feature-card > span { color: var(--sunset); font-size: 20px; grid-row: 1 / span 2; }
.profile-feature-card b { font-size: 12px; }
.profile-feature-card strong { font-size: 18px; text-align: right; }
.profile-feature-card small { color: var(--muted); font-size: 8px; grid-column: 2 / 4; margin-top: 5px; }
.memory-feature { min-height: 190px; }
.memory-feature > span { color: var(--ocean); }

.travel-memory-editor {
  background: var(--white);
  border: 1px solid rgba(61, 88, 137, .12);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(42, 74, 117, .08);
  min-height: 224px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.travel-memory-editor textarea {
  background: repeating-linear-gradient(to bottom, transparent 0 30px, rgba(94, 121, 171, .11) 31px 32px);
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 2.05;
  min-height: 176px;
  outline: 0;
  padding: 8px 1px 0;
  resize: vertical;
  width: 100%;
}

.travel-memory-editor textarea::placeholder { color: #99a3b5; }

.travel-memory-tools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.travel-memory-tools span { color: var(--ocean); font-size: 11px; font-weight: 700; }

.travel-memory-tools button {
  background: transparent;
  border: 0;
  color: #788293;
  font-size: 11px;
  min-height: 32px;
  padding: 0 4px;
}

.travel-memory-tools button:disabled { opacity: .35; }

.favorite-collection,
.memory-profile-card { margin-top: 23px; }
.favorite-collection .section-heading > span { color: var(--muted); font-size: 9px; }
.favorite-list { display: grid; gap: 8px; }

.favorite-empty {
  background: rgba(255,255,255,.54);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  padding: 24px 12px;
  text-align: center;
}

.favorite-empty > span { font-size: 24px; }
.favorite-empty p { color: var(--ink); font-size: 11px; margin: 6px 0 3px; }
.favorite-empty small { font-size: 8px; }

.saved-video-row {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0,1fr) auto;
  padding: 8px;
}

.saved-video-thumb { background: linear-gradient(145deg, #5da9bd, #efaf68); border-radius: 10px; height: 68px; }
.saved-video-row b, .saved-video-row small { display: block; }
.saved-video-row b { font-size: 11px; }
.saved-video-row small { color: var(--muted); font-size: 8px; margin-top: 5px; }
.saved-video-row button { background: transparent; border: 0; color: var(--sunset); font-size: 16px; }

.memory-profile-card {
  background: var(--pine-soft);
  border-radius: 18px;
  padding: 16px;
}

.memory-heading { align-items: center; display: flex; justify-content: space-between; }
.memory-heading span { color: var(--pine); font-size: 9px; font-weight: 700; }
.memory-heading button { background: transparent; border: 0; color: var(--ocean); font-size: 9px; }
.memory-profile-card h2 { font-size: 17px; margin: 9px 0 10px; }
.memory-profile-card p { color: #46504a; font-size: 9px; line-height: 1.55; margin-top: 10px; }
.memory-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.memory-tags span { background: rgba(255,255,255,.7); border-radius: 99px; font-size: 9px; padding: 6px 8px; }

.profile-menu {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  margin-top: 12px;
  overflow: hidden;
}

.profile-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 9px;
  grid-template-columns: 24px 1fr auto;
  min-height: 48px;
  padding: 0 13px;
  text-align: left;
  width: 100%;
}

.profile-menu button:last-child { border-bottom: 0; }
.profile-menu b { font-size: 10px; }
.profile-menu em { color: var(--muted); font-size: 9px; font-style: normal; }

.bottom-nav > button {
  color: #a3a49f;
  transition: color .2s ease, filter .2s ease, opacity .2s ease, transform .2s ease;
}

.bottom-nav > button.is-active {
  color: var(--pine);
  transform: translateY(-1px);
}

.assistant-nav-button img {
  filter: grayscale(1);
  height: 36px;
  margin: -5px auto -2px;
  opacity: .46;
  width: 42px;
}

.assistant-nav-button.is-active img {
  filter: none;
  opacity: 1;
}

.add-nav-button {
  background: #d9d9d4;
  box-shadow: none;
  color: #888983;
}

.add-nav-button.is-active {
  background: var(--sunset);
  box-shadow: 0 9px 20px rgba(255, 104, 72, .30);
  color: white;
}

#app[data-screen="poi-detail"] .bottom-nav { display: none; }

.import-intro {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: -6px 0 13px;
}

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

.import-option {
  align-items: center;
  background: linear-gradient(145deg, rgba(220,235,244,.72), rgba(255,253,248,.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 14px;
  text-align: center;
}

.import-option b { font-size: 13px; }
.import-option small { color: var(--muted); font-size: 8.5px; line-height: 1.4; margin-top: 5px; }
.import-option input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }

.link-entry-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-top: 10px;
  padding: 11px;
}

.link-entry-panel > label { color: var(--muted); display: block; font-size: 9px; margin-bottom: 7px; }
.link-entry-panel > div { display: grid; gap: 7px; grid-template-columns: 1fr auto; }
.link-entry-panel input { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-width: 0; padding: 0 10px; }
.link-entry-panel button { background: var(--pine); border: 0; border-radius: 10px; color: white; font-size: 9px; min-height: 42px; padding: 0 12px; }

.filter-group { margin-bottom: 18px; }
.filter-group h3 { font-size: 11px; margin-bottom: 9px; }
.segmented-control { background: var(--paper-deep); border-radius: 13px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; padding: 4px; }
.segmented-control button { background: transparent; border: 0; border-radius: 10px; color: var(--muted); min-height: 44px; }
.segmented-control button.is-selected { background: var(--white); box-shadow: 0 4px 12px rgba(20,30,26,.08); color: var(--pine); font-weight: 700; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips button { background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); min-height: 40px; padding: 0 13px; }
.filter-chips button.is-selected { background: var(--pine); color: white; }

.target-sheet { max-height: 92%; }
.target-sheet-heading { display: grid; grid-template-columns: 1fr; }
.plan-match-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.plan-match-card > p { color: #9f6bd0; font-size: 11px; line-height: 1.55; }
.plan-match-card > p span { font-size: 17px; }
.suggested-trip-card { background: #f4f5f2; border-radius: 17px; margin-top: 13px; padding: 14px; }
.suggested-trip-card > div { align-items: center; display: grid; gap: 10px; grid-template-columns: 58px 1fr; }
.trip-city-art { align-items: center; background: linear-gradient(145deg,#77bccc,#e6a75d); border-radius: 13px; color: white; display: flex; font-size: 11px; height: 58px; justify-content: center; transform: rotate(-3deg); }
.suggested-trip-card b, .suggested-trip-card small { display: block; }
.suggested-trip-card b { font-size: 14px; }
.suggested-trip-card small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.suggested-trip-card > button { background: var(--ink); border: 0; border-radius: 999px; color: white; display: block; margin: 13px 0 0 auto; min-height: 43px; padding: 0 20px; }
.existing-plan-heading { align-items: center; display: flex; justify-content: space-between; margin: 20px 2px 9px; }
.existing-plan-heading span { font-size: 11px; font-weight: 700; }
.existing-plan-heading small { color: var(--muted); font-size: 8px; }
.plan-origin-tag { border-radius: 999px; display: inline-flex; font-size: 8px; font-weight: 700; margin-left: 5px; padding: 2px 6px; vertical-align: 1px; }
.existing-origin { background: #edf1f5; color: #697786; }
.new-origin { background: #fff0d8; color: #b36a18; }
.is-existing-stop > div { background: #fbfcfd; border-style: dashed; }
.plan-added-stop > div { background: #fffaf0; border-color: rgba(212, 139, 51, .48); box-shadow: 0 8px 20px rgba(212, 139, 51, .10); }
.existing-plan-card { border: 0; border-radius: 18px; color: var(--ink); display: grid; gap: 8px; grid-template-columns: 1fr auto; margin-bottom: 9px; min-height: 90px; overflow: hidden; padding: 14px; position: relative; text-align: left; width: 100%; }
.existing-plan-card span { position: relative; z-index: 2; }
.existing-plan-card b, .existing-plan-card small { display: block; }
.existing-plan-card b { font-size: 13px; }
.existing-plan-card small { color: var(--muted); font-size: 9px; margin-top: 7px; }
.existing-plan-card i { font-style: normal; }
.existing-plan-card em { bottom: -7px; color: rgba(23,61,54,.16); font-family: var(--display); font-size: 44px; font-style: normal; position: absolute; right: 17px; transform: rotate(-7deg); }
.warm-plan { background: #f9e6c9; }
.mint-plan { background: #d5f3ed; }

.assistant-sheet {
  display: flex;
  flex-direction: column;
  height: min(760px, 94%);
  overflow: hidden;
}

.assistant-topbar { align-items: center; display: grid; grid-template-columns: 44px 1fr 44px; margin-bottom: 8px; }
.trip-context-label { color: var(--ink); font-size: 12px; font-weight: 700; justify-self: center; text-align: center; }
.assistant-new-chat-button { font-size: 23px; font-weight: 400; }
.assistant-sheet .assistant-heading { justify-content: flex-start; }
.assistant-sheet .assistant-heading img,
.assistant-sheet .assistant-heading .cloud-ip-host { width: 62px; }
.assistant-sheet .assistant-heading p { color: var(--muted); font-size: 9px; margin-top: 4px; }
.assistant-sheet .chat-log { flex: 1; min-height: 180px; overflow-y: auto; padding-bottom: 14px; }
.assistant-quick-actions { display: flex; gap: 7px; margin: 5px 0 8px; }
.assistant-quick-actions button { background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--pine); font-size: 9px; min-height: 34px; padding: 0 11px; }
.assistant-input { flex: 0 0 auto; }
.assistant-input .voice-button { background: var(--paper-deep); color: var(--pine); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 560px) {
  body {
    background: var(--paper);
    padding: 0;
  }

  .prototype-label {
    top: 4px;
  }

  .app-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100svh;
    max-width: none;
  }
}

@media (max-width: 374px) {
  .page-pad {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy {
    max-width: 63%;
  }

  .hero-earth {
    right: -72px;
  }

  .candidate-card {
    gap: 8px;
    grid-template-columns: 25px 66px 1fr;
    padding: 8px;
  }

  .candidate-thumb {
    height: 82px;
  }

  .candidate-copy h3 {
    font-size: 12px;
  }

  .evidence-link {
    font-size: 8px;
  }

  .days-selector {
    gap: 5px;
  }

  .days-selector button {
    border-radius: 13px;
  }
}

/* 2026-07-22: earth-wheel primary navigation */
.screen:not(.immersive-screen) {
  padding-bottom: 142px;
}

[data-screen="home"] .home-hero {
  border-top: 0;
  min-height: 204px;
  padding-top: calc(42px + env(safe-area-inset-top));
}

.bottom-nav.orbit-nav {
  background: linear-gradient(180deg, rgba(246,242,233,0), rgba(246,242,233,.92) 45%, #f6f2e9 100%);
  border: 0;
  display: block;
  height: calc(124px + env(safe-area-inset-bottom));
  min-height: 0;
  overflow: hidden;
  padding: 0;
  touch-action: pan-y;
  user-select: none;
}

.orbit-nav-earth {
  bottom: calc(-64px + env(safe-area-inset-bottom));
  filter: saturate(.72) brightness(.95);
  height: 184px;
  left: 24%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  width: 80%;
}

.orbit-nav-hint {
  bottom: calc(7px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,.72);
  font-size: 7px;
  left: 47%;
  letter-spacing: .08em;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.bottom-nav.orbit-nav > .orbit-nav-item,
.bottom-nav.orbit-nav > .orbit-nav-item:not(.add-nav-button) {
  --nav-rise: 0px;
  --nav-scale: .82;
  align-items: center;
  background: transparent;
  border: 0;
  bottom: calc(13px + env(safe-area-inset-bottom));
  color: rgba(247,250,244,.78);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 72px;
  justify-content: flex-end;
  left: var(--nav-left);
  min-height: 72px;
  opacity: .7;
  padding: 0;
  position: absolute;
  transform: translate3d(0, var(--nav-rise), 0) scale(var(--nav-scale));
  transform-origin: 50% 100%;
  transition: left .32s cubic-bezier(.2,.86,.22,1.1), transform .32s cubic-bezier(.2,.86,.22,1.1), opacity .22s ease, filter .22s ease, color .22s ease;
  width: 64px;
  z-index: 4;
}

.orbit-nav-item[data-orbit-index="0"] { --nav-left: 2%; width: 76px; }
.orbit-nav-item[data-orbit-index="1"] { --nav-left: 40%; }
.orbit-nav-item[data-orbit-index="2"] { --nav-left: 61%; }
.orbit-nav-item[data-orbit-index="3"] { --nav-left: 81%; }

.orbit-nav .orbit-icon {
  align-items: center;
  background: rgba(244,239,225,.48);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  display: flex;
  height: 42px;
  justify-content: center;
  overflow: visible;
  transition: background .22s ease, box-shadow .22s ease, height .28s ease, width .28s ease;
  width: 42px;
}

.orbit-nav .orbit-icon img,
.orbit-nav .assistant-nav-button .orbit-icon img {
  filter: saturate(.5) brightness(.88);
  height: 38px;
  margin: 0;
  opacity: .82;
  transition: filter .22s ease, opacity .22s ease, transform .28s ease;
  width: 38px;
}

.orbit-nav .assistant-nav-button .orbit-icon img { width: 44px; }

.bottom-nav.orbit-nav .orbit-nav-item b {
  color: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  margin: 1px 0 0;
  white-space: nowrap;
}

.bottom-nav.orbit-nav > .orbit-nav-item.is-active {
  --nav-rise: -43px;
  --nav-scale: 1.08;
  color: #173d36;
  opacity: 1;
  z-index: 6;
}

.orbit-nav .orbit-nav-item.is-active .orbit-icon {
  background: rgba(255,250,239,.96);
  border-color: rgba(255,255,255,.84);
  box-shadow: 0 12px 24px rgba(20,58,57,.22), 0 0 0 6px rgba(255,250,239,.34);
  height: 56px;
  width: 56px;
}

.orbit-nav .orbit-nav-item.is-active .orbit-icon img,
.orbit-nav .assistant-nav-button.is-active .orbit-icon img {
  filter: saturate(.9) brightness(.98);
  height: 52px;
  opacity: 1;
  transform: translateY(-1px);
  width: 52px;
}

.orbit-nav .orbit-nav-item.is-active b {
  background: rgba(255,250,239,.92);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(23,61,54,.1);
  padding: 0 7px;
}

.orbit-nav[data-active="home"] [data-root-nav="home"],
.orbit-nav[data-active="plans"] [data-root-nav="plans"],
.orbit-nav[data-active="me"] [data-root-nav="me"] { --nav-left: 52%; }

.orbit-nav[data-active="home"] [data-root-nav="plans"],
.orbit-nav[data-active="plans"] [data-root-nav="home"],
.orbit-nav[data-active="me"] [data-root-nav="home"] { --nav-left: 35%; }

.orbit-nav[data-active="home"] [data-root-nav="me"],
.orbit-nav[data-active="plans"] [data-root-nav="me"],
.orbit-nav[data-active="me"] [data-root-nav="plans"] { --nav-left: 78%; }

.orbit-nav[data-active="assistant"] .assistant-nav-button {
  --nav-rise: -31px;
  --nav-scale: 1.02;
}

.orbit-nav.is-ticking .orbit-nav-item.is-active .orbit-icon {
  animation: orbit-tick .3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes orbit-tick {
  0%, 100% { transform: translateX(0) rotate(0); }
  22% { transform: translateX(-2px) rotate(-2deg); }
  45% { transform: translateX(2px) rotate(2deg); }
  68% { transform: translateX(-1px) rotate(-1deg); }
}

.orbit-nav-item:focus-visible .orbit-icon {
  outline: 3px solid #fffaf0;
  outline-offset: 3px;
}

.orbit-nav-item:active .orbit-icon { transform: scale(.96); }

.create-plan-sheet { max-height: 84%; }

.create-plan-field {
  color: var(--muted);
  display: grid;
  font-size: 10px;
  gap: 8px;
}

.create-plan-field input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-height: 48px;
  padding: 0 14px;
}

.create-plan-days {
  border: 0;
  margin: 15px 0 16px;
  padding: 0;
}

.create-plan-days legend { color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.compact-days-wheel { height: 156px; }

.plan-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0 !important;
}

.plan-screen .plan-header {
  flex: 0 0 auto;
  grid-template-columns: 44px minmax(0, 1fr);
}

.plan-screen .day-tabs {
  flex: 0 0 auto;
  position: static;
}

.plan-screen .itinerary {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.plan-screen .ai-adjust {
  background: rgba(246, 242, 233, .98);
  box-shadow: 0 -10px 28px rgba(23, 25, 21, .08);
  flex: 0 0 auto;
  padding-bottom: 12px;
  padding-top: 10px;
  position: relative;
  z-index: 18;
}

.plan-screen .ai-adjust .section-heading { margin-bottom: 7px; }
.plan-screen .ai-adjust .section-heading h2 { font-size: 16px; }
.plan-screen .ai-adjust .section-heading img { width: 46px; }
.plan-screen .prompt-chips { margin-bottom: 7px; }
.plan-screen .prompt-chips button { min-height: 34px; }
.plan-screen .chat-composer { min-height: 46px; }
.plan-screen .confirm-plan-button { min-height: 43px; }

#plan-ai-adjust {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  padding-top: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.plan-cloud-host {
  display: block;
  flex: 0 0 70px;
  height: 70px;
  margin-left: -6px;
  margin-top: -2px;
  position: relative;
  width: 70px;
  z-index: 2;
}

.plan-chatbot-bubble {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: none;
  flex: 1 1 auto;
  gap: 6px;
  max-width: 520px;
  padding: 8px;
  position: relative;
}
#plan-ai-adjust.is-prompt-visible .plan-chatbot-bubble {
  animation: plan-prompt-arrive .26s cubic-bezier(.2,.8,.2,1) both;
  display: grid;
  overflow: visible;
  pointer-events: auto;
}

@keyframes plan-prompt-arrive {
  from { opacity: 0; transform: translateX(-8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.plan-chatbot-bubble::before { background: white; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); content: ""; height: 12px; left: -7px; position: absolute; top: 18px; transform: rotate(45deg); width: 12px; }
.plan-chatbot-bubble > button:first-child { align-items: center; background: transparent; border: 0; color: var(--ink); display: grid; gap: 2px; grid-template-columns: 1fr auto; padding: 4px 6px; text-align: left; }
.plan-chatbot-bubble > button:first-child b { font-size: 12px; }
.plan-chatbot-bubble > button:first-child span { color: var(--muted); font-size: 9px; grid-column: 1; line-height: 1.45; }
.plan-chatbot-bubble > button:first-child i { align-self: center; font-size: 22px; font-style: normal; grid-column: 2; grid-row: 1 / span 2; }
.plan-chatbot-bubble .confirm-plan-button { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 10px; margin: 0; min-height: 31px; }

#plan-ai-adjust.is-confirmed-exit {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.interactive-profile-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.interactive-profile-card:active { transform: scale(.988); }
.interactive-profile-card:focus-visible,
.profile-feature-card:focus-visible { outline: 3px solid rgba(22, 111, 181, .38); outline-offset: 3px; }

.profile-detail-sheet { max-height: min(78vh, 660px); }
.profile-detail-content { display: grid; gap: 16px; padding-bottom: 18px; }
.profile-detail-hero { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, #e3f5f7, #fff3df); }
.profile-detail-hero img,
.profile-detail-hero .cloud-ip-host { width: 104px; filter: drop-shadow(0 10px 12px rgba(31, 76, 72, .16)); }
.profile-detail-hero h3 { margin: 0 0 6px; font-size: 27px; }
.profile-detail-hero p { margin: 0; color: var(--muted); }
.profile-progress-detail { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; }
.profile-progress-detail > span { display: flex; justify-content: space-between; align-items: center; }
.profile-progress-detail em { color: var(--muted); font-style: normal; }
.profile-progress-detail > i { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #e4e8e4; }
.profile-progress-detail > i b { display: block; width: 37%; height: 100%; background: linear-gradient(90deg, #ff6a57, #f0a34f); }
.profile-progress-detail p { margin: 0; color: var(--muted); }
.profile-route-detail { position: relative; min-height: 230px; overflow: hidden; padding: 24px; border-radius: 26px; background: linear-gradient(135deg, #dff4f3, #f4edc9); }
.profile-route-detail strong { position: relative; z-index: 2; display: block; margin-top: 76px; font-size: 38px; }
.profile-route-detail strong small { font-size: 15px; }
.profile-route-detail p { position: relative; z-index: 2; margin: 4px 0 0; }
.profile-route-map { position: absolute; right: -20px; top: 20px; width: 210px; height: 210px; border-radius: 50%; background: linear-gradient(145deg, #28a4bd, #9dca71); }
.profile-route-map span { position: absolute; inset: 38px; border: 2px dashed rgba(255,255,255,.86); border-radius: 50%; }
.profile-route-map i { position: absolute; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: #ff6658; }
.profile-route-map i:nth-of-type(1) { left: 62px; top: 57px; }
.profile-route-map i:nth-of-type(2) { right: 48px; top: 92px; }
.profile-route-map i:nth-of-type(3) { left: 102px; bottom: 43px; }
.profile-route-map b { position: absolute; right: 28px; bottom: 20px; color: white; }
.profile-detail-list { display: grid; gap: 10px; }
.profile-detail-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-align: left; }
.profile-detail-list button span { display: grid; gap: 4px; }
.profile-detail-list button small { color: var(--muted); }
.profile-detail-list button i { font-size: 24px; font-style: normal; }
.profile-empty-detail { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 24px; }
.profile-empty-detail > span { font-size: 44px; color: #ff705f; }
.profile-empty-detail h3, .profile-empty-detail p { margin: 0; }
.profile-empty-detail p { color: var(--muted); }
.profile-memory-detail { display: grid; gap: 10px; }
.profile-memory-detail > p { margin: 0 0 4px; color: var(--muted); }
.profile-memory-detail > div { display: flex; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; }
.profile-memory-detail span { color: var(--muted); }
.profile-memory-summary { background: #fffdfa; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 12px; padding: 20px; }
.profile-memory-summary span { color: var(--indigo, #4a5594); font-size: 13px; font-weight: 700; }
.profile-memory-summary p { color: var(--ink); font-size: 15px; line-height: 1.8; margin: 0; }
.profile-memory-summary small { color: var(--muted); font-size: 11px; }

.day-panel.is-editing [contenteditable="true"] {
  background: rgba(220, 235, 244, .52);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(23, 105, 170, .28);
  cursor: text;
  outline: 0;
  padding: 2px 4px;
}

.day-panel.is-editing .timeline-stop { border-color: rgba(23, 105, 170, .42); }
.day-panel.is-editing .timeline-stop { cursor: grab; position: relative; }
.day-panel.is-editing .timeline-stop.is-dragging { cursor: grabbing; opacity: .58; transform: scale(.985); }
.stop-edit-tools { align-items: center; display: flex; gap: 6px; position: absolute; right: 8px; top: 8px; z-index: 3; }
.stop-drag-handle { align-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); cursor: grab; display: flex; font-size: 18px; height: 30px; justify-content: center; width: 30px; }
.stop-edit-tools button { background: rgba(255,255,255,.94); border: 1px solid rgba(215, 82, 69, .28); border-radius: 9px; color: #b14a40; font-size: 9px; min-height: 30px; padding: 0 9px; }
.day-panel.is-editing .timeline-stop > div:not(.stop-edit-tools) { padding-right: 80px; }
.is-new-stop { margin-top: 10px; }
.is-new-stop > div { padding-right: 58px; position: relative; }
.confirm-new-stop-button {
  align-items: center;
  background: var(--pine);
  border: 0;
  border-radius: 12px;
  color: white;
  display: flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 42px;
}
.is-confirmed-stop { animation: new-stop-confirmed 260ms ease both; }
@keyframes new-stop-confirmed {
  0% { transform: scale(.985); }
  100% { transform: scale(1); }
}
.add-itinerary-card {
  background: var(--ocean-soft);
  border: 1px dashed rgba(23, 105, 170, .46);
  border-radius: 15px;
  color: var(--ocean);
  font-size: 11px;
  font-weight: 700;
  margin-top: 12px;
  min-height: 48px;
  width: 100%;
}

.assistant-history-scrim {
  background: rgba(23, 25, 21, .26);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease;
  z-index: 39;
}
.assistant-history-scrim.is-open { opacity: 1; }

.conversation-history-panel {
  background: var(--paper);
  border-radius: 0 25px 25px 0;
  bottom: 0;
  box-shadow: 18px 0 45px rgba(23, 25, 21, .18);
  left: 0;
  padding: 22px 16px;
  position: absolute;
  top: 0;
  transform: translateX(-104%);
  transition: transform 260ms cubic-bezier(.22, .8, .2, 1);
  width: min(84%, 330px);
  z-index: 40;
}
.conversation-history-panel.is-open { transform: translateX(0); }

.history-panel-heading { align-items: center; display: flex; justify-content: space-between; }
.history-panel-heading h3 { font-size: 18px; }
.history-panel-heading button {
  background: transparent;
  border: 0;
  font-size: 22px;
  min-height: 44px;
  min-width: 44px;
}

.history-list { display: grid; gap: 5px; margin-top: 13px; }
.history-list button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  min-height: 58px;
  padding: 9px 10px;
  text-align: left;
}
.history-list button.is-active { background: var(--pine-soft); }
.history-list b, .history-list small { display: block; }
.history-list b { font-size: 11px; }
.history-list small { color: var(--muted); font-size: 8px; margin-top: 5px; }
.history-section-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; margin: 8px 10px 0; }

.profile-hero {
  align-items: center;
  background: linear-gradient(155deg, #dcebf4, #fff3df);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  text-align: center;
}

.cloud-profile-avatar {
  align-items: center;
  display: flex;
  height: 112px;
  justify-content: center;
  width: 100%;
}
.cloud-profile-avatar img,
.cloud-profile-avatar .cloud-ip-host { filter: drop-shadow(0 12px 14px rgba(23, 61, 54, .14)); width: 154px; }
.profile-identity { width: 100%; }
.profile-identity h2 { font-size: 22px; }
.profile-identity > p { margin: 4px 0 10px; }
.profile-identity .level-row { margin: 0 auto; max-width: 285px; text-align: left; }

.profile-growth-hero {
  aspect-ratio: 750 / 444;
  background: linear-gradient(135deg, #dff5fb 0%, #eef0ff 58%, #f9e8f1 100%);
  border-color: rgba(255, 255, 255, .82);
  color: var(--ink);
  min-height: 224px;
  overflow: hidden;
  padding: 14px 16px 16px;
  position: relative;
}

.profile-growth-hero > .profile-growth-main {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  height: 100%;
  margin: 0;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.profile-growth-hero .cloud-profile-avatar {
  height: 44px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  z-index: 2;
}

.profile-growth-hero .cloud-profile-avatar { opacity: .62; }
.profile-growth-hero .cloud-profile-avatar img { width: 40px; }
.profile-growth-hero .profile-identity {
  align-content: center;
  display: grid;
  gap: 5px;
  height: 100%;
  justify-items: center;
  padding: 0;
}
.profile-growth-hero .profile-identity h2 {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.profile-growth-hero .profile-identity > p {
  color: #727277;
  font-size: 13px;
  line-height: 18px;
  margin: 0 0 7px;
}

.growth-cloud {
  align-items: center;
  animation: cloud-work-float 2.8s ease-in-out infinite;
  display: flex;
  height: 94px;
  justify-content: center;
  width: 112px;
}

.growth-cloud img { filter: drop-shadow(0 10px 14px rgba(75, 92, 150, .10)); max-height: 94px; max-width: 112px; object-fit: contain; }
.profile-growth-hero .growth-cloud .profile-work-cloud { animation: none; flex: 0 0 auto; left: auto; max-height: none; max-width: none; position: static; top: auto; transform: none; width: 152px; }
.growth-level-number { color: #fff; display: block; font-family: var(--body); font-size: 48px; font-weight: 700; line-height: 48px; min-height: 48px; text-shadow: 0 2px 10px rgba(110, 119, 160, .10); }

.profile-growth-hero .level-row {
  align-items: center;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  max-width: 100%;
  min-height: 30px;
  width: 100%;
}

.profile-growth-hero .level-row strong { background: #e77caf; font-size: 11px; max-width: 128px; overflow-wrap: anywhere; padding: 6px 9px; }
.profile-growth-hero .level-row em { color: #77777d; font-size: 9px; white-space: nowrap; }
.growth-progress { background: #e4e4de; border-radius: 99px; display: block; height: 6px; min-width: 0; overflow: hidden; width: 100%; }
.growth-progress > i { background: var(--sunset); display: block; height: 100%; transition: width .2s ease; }

.growth-detail-summary { display: grid; gap: 8px; padding: 4px 0 16px; }
.growth-detail-summary > div:first-child { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; }
.growth-detail-summary span { color: var(--sunset); font-size: 11px; font-weight: 800; }
.growth-detail-summary h3, .growth-events h3, .growth-levels h3 { font-size: 16px; margin: 0; }
.growth-detail-summary > strong { font-family: var(--display); font-size: 28px; line-height: 1; }
.growth-detail-summary p, .growth-empty { color: var(--muted); font-size: 11px; margin: 0; }
.growth-detail-summary > small { color: var(--muted); font-size: 10px; text-align: right; }
.growth-events, .growth-levels { border-top: 1px solid var(--line); display: grid; gap: 10px; padding-top: 16px; }
.growth-event-list, .growth-level-list { display: grid; }
.growth-event, .growth-level-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 10px; min-height: 44px; }
.growth-event { grid-template-columns: minmax(0, 1fr) auto; }
.growth-event > span { display: grid; gap: 2px; min-width: 0; }
.growth-event b { font-size: 12px; overflow-wrap: anywhere; }
.growth-event small, .growth-level-row small { color: var(--muted); font-size: 10px; }
.growth-event > strong { color: var(--sunset); font-size: 12px; white-space: nowrap; }
.growth-level-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
.growth-level-row > span { align-items: center; background: var(--paper-deep); border-radius: 50%; display: flex; font-size: 11px; font-weight: 800; height: 24px; justify-content: center; width: 24px; }
.growth-level-row b { font-size: 12px; overflow-wrap: anywhere; }
.growth-level-row.is-reached > span { background: var(--pine); color: white; }
.growth-level-row.is-current { background: var(--pine-soft); }
.growth-level-row.is-current > span { background: var(--sunset); color: white; }
.growth-level-row.is-locked { opacity: .58; }

@media (max-width: 374px) {
  .profile-growth-hero { padding-left: 12px; padding-right: 12px; }
  .profile-growth-hero .profile-identity { padding: 0 18px; }
  .profile-growth-hero .level-row { gap: 4px; }
  .profile-growth-hero .level-row strong { max-width: 108px; }
  .profile-growth-hero .level-row em { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-growth-hero .growth-cloud { animation: none; }
}

/* Transparent orbital navigation: only the circular globe and real controls hit-test. */
.screen:not(.immersive-screen) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

.bottom-nav.orbit-nav {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: none;
  border: 0;
  box-shadow: none;
  display: block;
  height: calc(170px + env(safe-area-inset-bottom));
  min-height: 0;
  overflow: visible;
  padding: 0;
  pointer-events: none;
  touch-action: pan-y;
  user-select: none;
}

.orbit-stage {
  bottom: -420px;
  height: 600px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  width: 600px;
  z-index: 1;
}

.orbit-gesture {
  clip-path: circle(35% at 50% 50%);
  cursor: grab;
  inset: 0;
  pointer-events: auto;
  position: absolute;
  touch-action: pan-y;
  z-index: 1;
}

.orbit-nav.is-dragging .orbit-gesture { cursor: grabbing; }

.orbit-nav-earth {
  filter: saturate(.68) brightness(.94);
  height: 100%;
  inset: 0;
  max-width: none;
  pointer-events: none;
  position: absolute;
  transform: rotate(var(--orbit-rotation, 0deg));
  transform-origin: 50% 50%;
  width: 100%;
}

.orbit-nav .orbit-destination {
  --orbit-gray: .82;
  --orbit-lift: 0px;
  --orbit-opacity: .48;
  --orbit-saturation: .45;
  --orbit-scale: .82;
  align-items: center;
  background: none;
  border: 0;
  color: rgba(245,248,242,.82);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 88px;
  justify-content: center;
  left: 0;
  min-height: 44px;
  opacity: var(--orbit-opacity);
  padding: 0;
  pointer-events: auto;
  position: absolute;
  top: 0;
  transform: translate3d(calc(var(--orbit-x) - 50%), calc(var(--orbit-y) - 50% + var(--orbit-lift)), 0) scale(var(--orbit-scale));
  transform-origin: 50% 50%;
  transition: opacity .18s ease, filter .18s ease, color .18s ease;
  width: 76px;
  z-index: 5;
}

.orbit-nav .orbit-destination .orbit-icon img {
  filter: grayscale(var(--orbit-gray)) saturate(var(--orbit-saturation)) brightness(.9);
  opacity: 1;
  transition: filter .18s ease, transform .18s ease;
}

.orbit-nav .orbit-destination.is-orbit-focus {
  color: var(--pine);
  z-index: 7;
}

.orbit-nav .orbit-destination.is-orbit-focus .orbit-icon {
  background: rgba(255,250,239,.97);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 12px 25px rgba(20,58,57,.22), 0 0 0 6px rgba(255,250,239,.35);
  height: 58px;
  width: 58px;
}

.orbit-nav .orbit-destination.is-orbit-focus .orbit-icon img {
  filter: none;
  height: 53px;
  transform: translateY(-1px);
  width: 53px;
}

.orbit-nav .orbit-destination.is-orbit-focus b {
  background: rgba(255,250,239,.94);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(23,61,54,.1);
  padding: 0 7px;
}

.bottom-nav.orbit-nav > .assistant-nav-button,
.bottom-nav.orbit-nav > .assistant-nav-button:not(.add-nav-button),
.floating-chatbot-host > .assistant-nav-button {
  --nav-rise: 0px;
  --nav-scale: 1;
  bottom: calc(94px + env(safe-area-inset-bottom));
  color: var(--pine);
  height: 96px;
  left: 5px;
  min-height: 44px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  width: 98px;
  z-index: 9;
}

.floating-chatbot-host {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 36;
}

.floating-chatbot-host > .assistant-nav-button.floating-chatbot {
  bottom: auto;
  position: absolute;
  right: auto;
  touch-action: none;
  z-index: 1;
}

.orbit-nav .assistant-nav-button .orbit-icon {
  background: transparent;
  border: 0;
  height: 88px;
  width: 94px;
}

.orbit-nav .assistant-nav-button .orbit-icon img {
  filter: saturate(.72) brightness(.96);
  height: 44px;
  opacity: 1;
  width: 52px;
}

/* Open Design cloud companion, adapted from the React artifact for this static demo. */
.orbit-nav .assistant-nav-button .orbit-icon--cloud-companion {
  overflow: visible;
}

.nav-cloud-companion {
  --nav-cloud-blue: #397be6;
  --nav-cloud-pink: #ed6f91;
  --cloud-look-x: 0;
  --cloud-look-y: 0;
  display: grid;
  height: 92px;
  isolation: isolate;
  place-items: center;
  position: relative;
  width: 92px;
}

.cloud-ip-host {
  --cloud-ip-size: 70px;
  display: inline-grid;
  flex: 0 0 auto;
  height: var(--cloud-ip-size);
  place-items: center;
  position: relative;
  width: var(--cloud-ip-size);
}

.cloud-ip-host > .nav-cloud-companion {
  height: 100%;
  width: 100%;
}

.cloud-ip-action { cursor: pointer; touch-action: manipulation; }
.cloud-ip-action:focus-visible { border-radius: 50%; outline: 3px solid rgba(23,105,170,.5); outline-offset: 3px; }
.cloud-ip-host--upload { --cloud-ip-size: 145px; }
.cloud-ip-host--card { --cloud-ip-size: 72px; }
.cloud-ip-host--processing { --cloud-ip-size: 86px; }
.cloud-ip-host--profile { --cloud-ip-size: 154px; }
.cloud-ip-host--chatbot { --cloud-ip-size: 64px; }
.cloud-ip-host--loading { --cloud-ip-size: 118px; }
.cloud-ip-host--profile-detail { --cloud-ip-size: 104px; }

.nav-cloud-companion::before {
  background: radial-gradient(circle at 40% 35%, #fff 0%, #e8f2ff 48%, #ffe3ef 100%);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(90,128,179,.2);
  content: "";
  inset: 1px;
  position: absolute;
  z-index: -1;
}

.nav-cloud-companion::before { display: none; }

.nav-cloud-filters {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.nav-cloud-float {
  animation: nav-cloud-float 3.6s ease-in-out infinite;
  display: grid;
  inset: 0;
  place-items: center;
  position: absolute;
  transform-origin: 50% 68%;
}

.nav-cloud-character {
  aspect-ratio: 1;
  display: block;
  position: relative;
  transform: translate3d(calc(var(--cloud-look-x) * 2.5px), calc(6% + var(--cloud-look-y) * 1.5px), 0) rotate(calc(var(--cloud-look-x) * 3deg));
  transform-origin: 50% 68%;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
  width: 88%;
}

.nav-cloud-body,
.nav-cloud-face {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.orbit-nav .assistant-nav-button .orbit-icon img.nav-cloud-body,
.cloud-ip-instance img.nav-cloud-body {
  filter: url("#nav-cloud-remove-green");
  height: 100%;
  margin: 0;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  width: 100%;
}

.nav-cloud-face { overflow: visible; pointer-events: none; }
.nav-cloud-eyes {
  transform: translate(calc(var(--cloud-look-x) * 1.7px), calc(var(--cloud-look-y) * 1.1px));
  transition: transform 140ms ease-out;
}
.nav-cloud-open-eye { animation: nav-cloud-eye-open 4.2s step-end infinite; fill: var(--nav-cloud-blue); }
.nav-cloud-closed-eye { animation: nav-cloud-eye-closed 4.2s step-end infinite; fill: none; opacity: 0; stroke: var(--nav-cloud-blue); stroke-linecap: round; stroke-width: 1.6; }
.nav-cloud-blush { fill: rgba(241,134,155,.43); filter: blur(1.2px); }
.nav-cloud-mouth { fill: none; stroke: var(--nav-cloud-pink); stroke-linecap: round; stroke-width: 1.85; }

.nav-cloud-expression {
  fill: none;
  opacity: 0;
  stroke: var(--nav-cloud-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  transition: opacity 120ms ease;
}
.nav-cloud-expression ellipse { fill: var(--nav-cloud-blue); stroke: none; }
.nav-cloud-expression .expression-mouth-fill { fill: var(--nav-cloud-pink); stroke: var(--nav-cloud-pink); }
.nav-cloud-expression--love { fill: var(--nav-cloud-pink); stroke: var(--nav-cloud-pink); }

.nav-cloud-companion:not(.is-state-idle) .nav-cloud-open-eye,
.nav-cloud-companion:not(.is-state-idle) .nav-cloud-closed-eye,
.nav-cloud-companion:not(.is-state-idle) .nav-cloud-mouth { animation: none !important; opacity: 0; }
.nav-cloud-companion.is-state-happy .nav-cloud-expression--happy,
.nav-cloud-companion.is-state-angry .nav-cloud-expression--angry,
.nav-cloud-companion.is-state-love .nav-cloud-expression--love,
.nav-cloud-companion.is-state-surprised .nav-cloud-expression--question,
.nav-cloud-companion.is-state-question .nav-cloud-expression--question,
.nav-cloud-companion.is-state-thinking .nav-cloud-expression--thinking { opacity: 1; }

.nav-cloud-accessory {
  color: var(--nav-cloud-pink);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: clamp(14px, calc(var(--cloud-ip-size, 92px) * .22), 28px);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 4%;
  text-shadow: 0 3px 7px rgba(219,93,132,.22);
  top: 8%;
  transform: translateY(5px) scale(.7) rotate(8deg);
  transition: opacity 140ms ease, transform 220ms cubic-bezier(.2,.85,.2,1.2);
  z-index: 4;
}
.is-state-love .nav-cloud-accessory::before { content: "♥"; }
.is-state-question .nav-cloud-accessory::before { content: "?"; }
.is-state-thinking .nav-cloud-accessory::before { content: "•••"; }
.is-state-angry .nav-cloud-accessory::before { content: "!"; }
.is-state-love .nav-cloud-accessory,
.is-state-question .nav-cloud-accessory,
.is-state-thinking .nav-cloud-accessory,
.is-state-angry .nav-cloud-accessory {
  opacity: 1;
  transform: none;
}
.is-state-love .nav-cloud-accessory { animation: cloud-heart-pop .7s ease-in-out infinite alternate; }

@keyframes cloud-heart-pop {
  to { transform: translateY(-3px) scale(1.12) rotate(-5deg); }
}

.assistant-nav-button:active .nav-cloud-character {
  transform: translateY(7%) scaleX(1.06) scaleY(.93);
}

.nav-cloud-companion.is-joyful .nav-cloud-float {
  animation: nav-cloud-joy .52s cubic-bezier(.22,.85,.32,1.18) both;
}

.nav-cloud-companion.is-joyful .nav-cloud-character {
  animation: nav-cloud-squish .52s cubic-bezier(.22,.85,.32,1.18) both;
}

@keyframes nav-cloud-float {
  0%, 100% { transform: translateY(2px) scale(1); }
  50% { transform: translateY(-2px) scale(1.018); }
}

@keyframes nav-cloud-joy {
  0% { transform: translateY(2px) scale(1); }
  24% { transform: translateY(7px) scaleX(1.08) scaleY(.91); }
  57% { transform: translateY(-10px) scaleX(.96) scaleY(1.08); }
  78% { transform: translateY(1px) rotate(-3deg); }
  90% { transform: translateY(-2px) rotate(2deg); }
  100% { transform: translateY(2px) scale(1); }
}

@keyframes nav-cloud-squish {
  0%, 100% { filter: brightness(1); }
  55% { filter: brightness(1.06) saturate(1.08); }
}

@keyframes nav-cloud-eye-open {
  0%, 44%, 49%, 100% { opacity: 1; }
  45%, 48% { opacity: 0; }
}

@keyframes nav-cloud-eye-closed {
  0%, 44%, 49%, 100% { opacity: 0; }
  45%, 48% { opacity: 1; }
}

.orbit-nav .assistant-nav-button b {
  background: rgba(255,250,239,.88);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(44,84,76,.1);
  font-size: 10px;
  line-height: 20px;
  margin-top: -3px;
  padding: 0 9px;
}

.orbit-nav-item:focus-visible .orbit-icon {
  outline: 3px solid rgba(23,105,170,.55);
  outline-offset: 3px;
}

.orbit-nav-item:active .orbit-icon { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .orbit-nav .orbit-nav-item,
  .orbit-nav .orbit-icon,
  .orbit-nav .orbit-icon img,
  .orbit-nav .orbit-nav-earth { transition: none !important; }
  .orbit-nav.is-ticking .orbit-nav-item.is-active .orbit-icon { animation: none !important; }
  .nav-cloud-float,
  .nav-cloud-companion.is-joyful .nav-cloud-float,
  .nav-cloud-companion.is-joyful .nav-cloud-character,
  .nav-cloud-open-eye,
  .nav-cloud-closed-eye { animation: none !important; }
  .nav-cloud-character,
  .nav-cloud-eyes { transition: none !important; }
  .is-state-love .nav-cloud-accessory { animation: none !important; }
  .nav-cloud-open-eye { opacity: 1; }
  .nav-cloud-closed-eye { opacity: 0; }
}

@media (max-width: 374px) {
  .orbit-stage {
    bottom: -405px;
    height: 580px;
    width: 580px;
  }
  .bottom-nav.orbit-nav > .assistant-nav-button { left: 2px; }
}

/* Locked cloud work states: keep the existing cloud for companionship, and use
   the approved map poses only where the product is actively doing travel work. */
.cloud-ip-host--card[data-cloud-state="thinking"] > .nav-cloud-companion,
.cloud-ip-host--processing[data-cloud-state="thinking"] > .nav-cloud-companion,
.cloud-ip-host--loading[data-cloud-state="thinking"] > .nav-cloud-companion {
  opacity: 0;
  pointer-events: none;
}

.cloud-ip-host--card[data-cloud-state="thinking"]::after,
.cloud-ip-host--processing[data-cloud-state="thinking"]::after,
.cloud-ip-host--loading[data-cloud-state="thinking"]::after {
  animation: cloud-work-float 2.8s ease-in-out infinite;
  background: center / contain no-repeat;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.cloud-ip-host--card[data-cloud-state="thinking"]::after {
  background-image: url("assets/ui-v2/cloud-ip-work-map-v3.png");
}

.cloud-ip-host--processing[data-cloud-state="thinking"]::after,
.cloud-ip-host--loading[data-cloud-state="thinking"]::after {
  animation-name: cloud-work-plan;
  background-image: url("assets/ui-v2/cloud-ip-work-map-pencil-v3.png");
}

@keyframes cloud-work-float {
  0%, 100% { transform: translateY(1px) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

@keyframes cloud-work-plan {
  0%, 100% { transform: translateY(1px) rotate(-1.2deg); }
  50% { transform: translateY(-4px) rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-ip-host--card[data-cloud-state="thinking"]::after,
  .cloud-ip-host--processing[data-cloud-state="thinking"]::after,
  .cloud-ip-host--loading[data-cloud-state="thinking"]::after {
    animation: none;
  }
}

/* 2026-07-22: search-first home and cloud import component */
.home-top {
  padding-top: calc(42px + env(safe-area-inset-top));
}

.home-top .library-toolbar {
  position: relative;
  z-index: 4;
}

.cloud-import-card {
  background:
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.88) 0 8%, transparent 9%),
    radial-gradient(circle at 18% 84%, rgba(255,190,163,.27) 0 18%, transparent 42%),
    linear-gradient(142deg, #dcebf2 0%, #edf1df 54%, #f6e2cc 100%);
  border: 1px solid rgba(23,61,54,.1);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(31,72,72,.12);
  isolation: isolate;
  margin-top: 12px;
  min-height: 218px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.cloud-import-card::before {
  border: 1px dashed rgba(23,61,54,.16);
  border-radius: 50%;
  content: "";
  height: 184px;
  position: absolute;
  right: -54px;
  top: -56px;
  width: 184px;
}

.cloud-import-copy {
  max-width: 62%;
  position: relative;
  z-index: 3;
}

.cloud-import-copy h1 {
  font-size: 22px;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin-top: 7px;
}

.cloud-import-copy p {
  color: #56655f;
  font-size: 10px;
  line-height: 1.55;
  margin-top: 8px;
}

.cloud-import-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  bottom: 12px;
  color: var(--pine);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 132px;
  min-width: 162px;
  padding: 0 10px 7px;
  position: absolute;
  right: 4px;
  z-index: 4;
}

.cloud-import-trigger .cloud-ip-host {
  position: relative;
  transform: rotate(-2deg);
  transition: transform .25s cubic-bezier(.2,.85,.2,1.2);
  width: 145px;
  z-index: 2;
}

.cloud-import-trigger b {
  background: rgba(255,253,248,.8);
  border: 1px solid rgba(23,61,54,.12);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(23,61,54,.1);
  font-size: 9px;
  margin-top: -9px;
  padding: 6px 10px;
  position: relative;
  z-index: 3;
}

.cloud-pulse {
  display: none;
}

.cloud-import-trigger:hover .cloud-ip-host,
.cloud-import-trigger:focus-visible .cloud-ip-host { transform: rotate(1deg) translateY(-3px); }
.cloud-import-trigger:focus-visible { outline: 3px solid rgba(23,61,54,.35); outline-offset: -5px; }
.cloud-import-trigger:active .cloud-ip-host { transform: translateY(2px) scale(.97); }

.cloud-card-orbit {
  border: 2px solid rgba(75,136,154,.22);
  border-radius: 50%;
  bottom: -66px;
  height: 120px;
  left: -24px;
  position: absolute;
  transform: rotate(-8deg);
  width: 112%;
  z-index: 1;
}

.home-content {
  padding-top: 22px;
}

.import-options {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: block;
  overflow: hidden;
}

.import-option,
.import-options .import-option {
  align-items: center;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0,1fr) 18px;
  min-height: 88px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.import-options .import-option:last-child { border-bottom: 0; }

.import-option .upload-icon {
  align-items: center;
  background: var(--paper-deep);
  border-radius: 14px;
  color: var(--pine);
  display: flex;
  font-size: 23px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.import-option-copy,
.import-option-copy b,
.import-option-copy small { display: block; }
.import-option-copy b { font-size: 14px; }
.import-option-copy small { color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 5px; }
.import-chevron { color: #8a938f; font-size: 27px; }
.import-option:active { background: var(--paper-deep); }

.profile-favorite-list .saved-video-row { cursor: pointer; }
.related-video-card { cursor: pointer; transition: transform 150ms ease, box-shadow 150ms ease; }
.related-video-card:active { transform: scale(.985); }
.related-video-card:focus-visible { outline: 3px solid rgba(22, 111, 181, .38); outline-offset: 3px; }
.related-video-detail { display: grid; gap: 14px; }
.related-video-detail-cover { align-items: flex-end; aspect-ratio: 1.2; background: linear-gradient(150deg, #6fb2c6, #18475b 53%, #e5a65c 54%); border-radius: 24px; color: white; display: flex; font-family: var(--display); font-size: 26px; font-weight: 700; padding: 20px; }
.related-video-detail span { color: var(--ocean); font-size: 10px; font-weight: 700; }
.related-video-detail h3 { font-size: 22px; line-height: 1.35; margin: 5px 0; }
.related-video-detail p { color: var(--muted); margin: 0; }

@media (max-width: 374px) {
  .cloud-import-card { min-height: 208px; padding: 17px; }
  .cloud-import-copy { max-width: 60%; }
  .cloud-import-copy h1 { font-size: 20px; }
  .cloud-import-trigger { min-width: 150px; right: -5px; }
  .cloud-import-trigger .cloud-ip-host { --cloud-ip-size: 132px; width: 132px; }
}
