/* 泡泡_map / 书库 / 计时器 */
.apps-panel.feature-panel {
  z-index: 86;
}
.apps-sheet {
  width: min(980px, 100%);
  height: min(92vh, 860px);
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.apps-sheet .apps-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.apps-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 8px;
  align-items: center;
}
.apps-toolbar input[type="text"],
.apps-toolbar input[type="search"],
.apps-toolbar input[type="number"],
.apps-toolbar input[type="time"] {
  flex: 1;
  min-width: 140px;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
}
.apps-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 14px 8px;
}
.apps-chip {
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(224, 242, 254, 0.65);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.apps-chip.on {
  background: #0ea5e9;
  color: #fff;
  border-color: #0284c7;
}
.map-routebar input { min-width: 120px; }
.map-place {
  position: relative;
  flex: 1 1 160px;
  min-width: 120px;
}
.map-place input { width: 100%; min-width: 0; }
.map-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 24;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.38);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}
.map-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.map-suggest button small {
  display: block;
  margin-top: 1px;
  font-size: 0.74rem;
  font-weight: 650;
  color: #0369a1;
}
.map-suggest button.on,
.map-suggest button:hover {
  background: rgba(14, 165, 233, 0.14);
}
html[data-theme="neo"] .map-suggest {
  background: #1e1b4b;
  border-color: rgba(167, 139, 250, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="neo"] .map-suggest button { color: #f5f3ff; }
html[data-theme="neo"] .map-suggest button small { color: #c4b5fd; }
html[data-theme="neo"] .map-suggest button.on,
html[data-theme="neo"] .map-suggest button:hover {
  background: rgba(167, 139, 250, 0.22);
}
.map-summary {
  margin: 0 14px 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  font-size: 0.86rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-summary span { font-weight: 700; color: #0369a1; font-size: 0.8rem; }
.map-summary .map-ai-line {
  font-style: normal;
  font-weight: 750;
  font-size: 0.8rem;
  color: #0f766e;
  margin-top: 4px;
}
html[data-theme="neo"] .map-summary {
  background: rgba(36, 28, 72, 0.78);
  border-color: rgba(167, 139, 250, 0.4);
  color: #f5f3ff;
}
html[data-theme="neo"] .map-summary span { color: #ddd6fe; }
html[data-theme="neo"] .map-summary .map-ai-line { color: #6ee7b7; }
.map-wrap {
  position: relative;
  flex: 1;
  min-height: 360px;
}
#popoMap {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  background: #c5d8b8;
  touch-action: none;
  cursor: grab;
}
#popoMap .map-layer,
#popoMap .map-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#popoMap .map-layer-traffic { z-index: 1; }
#popoMap .map-fx { z-index: 2; }
#popoMap img.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  pointer-events: none;
  user-select: none;
  image-rendering: auto;
}
#popoMap .map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 28px;
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
#popoMap img.map-traffic {
  position: absolute;
  width: 256px;
  height: 256px;
  pointer-events: none;
  opacity: 0.72;
  z-index: 1;
}
#popoMap .map-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
#popoMap .map-ab {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 3;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font: 800 12px/22px inherit;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#popoMap .map-ab.start { background: #16a34a; }
#popoMap .map-ab.end { background: #dc2626; }
.map-zooms {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-zooms button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  font: 800 1.1rem/1 inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.apps-hits {
  max-height: 180px;
  overflow: auto;
  padding: 6px 12px 10px;
}
.apps-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(14, 165, 233, 0.2);
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  padding: 8px 14px 16px;
  overflow: auto;
  flex: 1;
}
.book-card {
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.book-card strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.book-card small {
  color: #0369a1;
}

.book-read-panel.feature-panel {
  z-index: 92;
}
.book-read-sheet {
  width: min(1120px, 96vw);
  height: min(94vh, 940px);
  max-width: none;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.book-read-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.book-read-bar {
  flex-wrap: wrap;
}
.book-scenes {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
#bookReadHint {
  padding: 0 18px 8px;
}
.book-split {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0;
  overflow: hidden;
}
.book-reader {
  flex: 1.4;
  min-height: 0;
  overflow: auto;
  padding: 12px 28px 32px;
  line-height: 1.9;
  font-weight: 600;
  user-select: text;
}
.book-reader .book-title {
  font-size: 1.45rem;
  margin: 8px 0 18px;
  letter-spacing: 0.04em;
}
.book-reader .book-p {
  margin: 0 0 1em;
  border-radius: 10px;
  padding: 2px 6px;
}
.book-reader .book-p.reading {
  background: rgba(250, 204, 21, 0.35);
}
.book-assist {
  flex: 1;
  min-width: 200px;
  max-width: 38%;
  overflow: auto;
  padding: 12px 16px 20px;
  border-left: 1px solid rgba(14, 165, 233, 0.2);
  white-space: pre-wrap;
  line-height: 1.7;
  font-weight: 600;
  background: rgba(224, 242, 254, 0.35);
}

#bookReadPanel.scene-paper .book-read-sheet,
#bookReadPanel.scene-brush .book-read-sheet,
#bookReadPanel.scene-night .book-read-sheet,
#bookReadPanel.scene-eye .book-read-sheet,
#bookReadPanel.scene-plain .book-read-sheet {
  border-radius: 28px;
}

#bookReadPanel.scene-paper .book-read-sheet {
  background: linear-gradient(180deg, #f7edd4 0%, #efe0c0 100%);
  color: #3a2410;
}
#bookReadPanel.scene-paper .feature-head,
#bookReadPanel.scene-paper #bookReadHint,
#bookReadPanel.scene-paper .book-reader,
#bookReadPanel.scene-paper .book-title,
#bookReadPanel.scene-paper .book-p,
#bookReadPanel.scene-paper .book-assist {
  color: #3a2410;
  background: transparent;
}
#bookReadPanel.scene-paper .feature-head {
  background: rgba(247, 237, 212, 0.92);
  border-bottom-color: rgba(90, 55, 20, 0.14);
}
#bookReadPanel.scene-paper .book-reader,
#bookReadPanel.scene-paper .book-title,
#bookReadPanel.scene-paper .book-p {
  font-family: "PopoXing", "STXingkai", "华文行楷", "Xingkai SC", "KaiTi", cursive;
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}
#bookReadPanel.scene-paper .book-title { font-size: 1.7rem; }
#bookReadPanel.scene-paper .book-assist {
  background: rgba(90, 50, 16, 0.07);
  border-color: rgba(90, 50, 16, 0.16);
  font-family: "PopoKai", "KaiTi", "楷体", serif;
  color: #3a2410;
}

#bookReadPanel.scene-brush .book-read-sheet {
  background: linear-gradient(180deg, #f4e4c2 0%, #e8d2a4 100%);
  color: #1c1008;
}
#bookReadPanel.scene-brush .feature-head,
#bookReadPanel.scene-brush #bookReadHint,
#bookReadPanel.scene-brush .book-reader,
#bookReadPanel.scene-brush .book-title,
#bookReadPanel.scene-brush .book-p,
#bookReadPanel.scene-brush .book-assist {
  color: #1c1008;
  background: transparent;
}
#bookReadPanel.scene-brush .feature-head {
  background: rgba(244, 228, 194, 0.94);
  border-bottom-color: rgba(70, 40, 12, 0.16);
}
#bookReadPanel.scene-brush .book-reader,
#bookReadPanel.scene-brush .book-title,
#bookReadPanel.scene-brush .book-p {
  font-family: "PopoCao", "PopoXing", "STXingkai", "华文行楷", cursive;
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
#bookReadPanel.scene-brush .book-title { font-size: 1.85rem; }
#bookReadPanel.scene-brush .book-assist {
  background: rgba(60, 32, 8, 0.06);
  border-color: rgba(60, 32, 8, 0.16);
  font-family: "PopoXing", "STXingkai", cursive;
  color: #1c1008;
}

#bookReadPanel.scene-night .book-read-sheet {
  background: linear-gradient(180deg, #16122a 0%, #0d0a18 100%);
  color: #efe6c8;
}
#bookReadPanel.scene-night .feature-head,
#bookReadPanel.scene-night #bookReadHint,
#bookReadPanel.scene-night .book-reader,
#bookReadPanel.scene-night .book-title,
#bookReadPanel.scene-night .book-p,
#bookReadPanel.scene-night .book-assist {
  color: #efe6c8;
  background: transparent;
}
#bookReadPanel.scene-night .feature-head {
  background: rgba(22, 18, 42, 0.94);
  border-bottom-color: rgba(196, 181, 253, 0.18);
}
#bookReadPanel.scene-night .book-reader,
#bookReadPanel.scene-night .book-title,
#bookReadPanel.scene-night .book-p {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", serif;
  font-weight: 500;
  font-size: 1.12rem;
  color: #efe6c8;
}
#bookReadPanel.scene-night .book-assist {
  background: rgba(36, 28, 72, 0.55);
  border-color: rgba(167, 139, 250, 0.28);
  color: #e8e4ff;
}
#bookReadPanel.scene-night .book-p.reading {
  background: rgba(167, 139, 250, 0.28);
}

#bookReadPanel.scene-eye .book-read-sheet {
  background: linear-gradient(180deg, #eaf4d8 0%, #dcecc4 100%);
  color: #1d3312;
}
#bookReadPanel.scene-eye .feature-head,
#bookReadPanel.scene-eye #bookReadHint,
#bookReadPanel.scene-eye .book-reader,
#bookReadPanel.scene-eye .book-title,
#bookReadPanel.scene-eye .book-p,
#bookReadPanel.scene-eye .book-assist {
  color: #1d3312;
  background: transparent;
}
#bookReadPanel.scene-eye .feature-head {
  background: rgba(234, 244, 216, 0.94);
  border-bottom-color: rgba(60, 90, 30, 0.16);
}
#bookReadPanel.scene-eye .book-reader,
#bookReadPanel.scene-eye .book-title,
#bookReadPanel.scene-eye .book-p {
  font-family: "PopoKai", "KaiTi", "楷体", "Kaiti SC", "FangSong", serif;
  font-weight: 400;
  font-size: 1.18rem;
  color: #1d3312;
}
#bookReadPanel.scene-eye .book-assist {
  background: rgba(70, 110, 36, 0.08);
  border-color: rgba(70, 110, 36, 0.18);
  color: #1d3312;
}

#bookReadPanel.scene-plain .book-read-sheet {
  background: #f8fbff;
  color: #0c4a6e;
}
#bookReadPanel.scene-plain .feature-head,
#bookReadPanel.scene-plain #bookReadHint,
#bookReadPanel.scene-plain .book-reader,
#bookReadPanel.scene-plain .book-title,
#bookReadPanel.scene-plain .book-p {
  color: #0c4a6e;
}
#bookReadPanel.scene-plain .book-reader,
#bookReadPanel.scene-plain .book-title,
#bookReadPanel.scene-plain .book-p {
  font-family: var(--display, inherit), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 650;
  font-size: 1.05rem;
}

#bookReadPanel[data-book-lang="en"].scene-paper .book-reader,
#bookReadPanel[data-book-lang="en"].scene-brush .book-reader {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
#bookReadPanel.scene-paper .ghost,
#bookReadPanel.scene-paper .apps-chip {
  color: #3a2410;
  border-color: rgba(58, 36, 16, 0.28);
  background: rgba(255, 248, 230, 0.55);
}
#bookReadPanel.scene-brush .ghost,
#bookReadPanel.scene-brush .apps-chip {
  color: #1c1008;
  border-color: rgba(28, 16, 8, 0.28);
  background: rgba(255, 244, 214, 0.5);
}
#bookReadPanel.scene-night .ghost,
#bookReadPanel.scene-night .apps-chip {
  color: #efe6c8;
  border-color: rgba(239, 230, 200, 0.28);
  background: rgba(36, 28, 72, 0.55);
}
#bookReadPanel.scene-eye .ghost,
#bookReadPanel.scene-eye .apps-chip {
  color: #1d3312;
  border-color: rgba(29, 51, 18, 0.25);
  background: rgba(255, 255, 240, 0.45);
}
#bookReadPanel .apps-chip.on {
  background: #0ea5e9;
  color: #fff;
  border-color: #0284c7;
}
#bookReadPanel.scene-night .apps-chip.on {
  background: #7c3aed;
  border-color: #6d28d9;
}
#bookReadPanel.scene-paper .apps-chip.on,
#bookReadPanel.scene-brush .apps-chip.on {
  background: #8b5a2b;
  border-color: #6b4220;
}
#bookReadPanel.scene-eye .apps-chip.on {
  background: #4d7c0f;
  border-color: #3f6212;
}
@media (max-width: 720px) {
  .book-split {
    flex-direction: column;
  }
  .book-assist {
    max-width: none;
    border-left: 0;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    max-height: 38%;
  }
}
#clockWorldWrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#clockWorldWrap[hidden] {
  display: none !important;
}
.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 8px 14px 16px;
  overflow: auto;
  flex: 1;
}
.clock-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(224, 242, 254, 0.8);
  border: 1px solid rgba(14, 165, 233, 0.22);
}
.clock-card .t {
  font-size: 1.45rem;
  font-weight: 900;
}
.clock-timer {
  text-align: center;
  padding: 28px 16px;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.clock-ring-banner {
  position: relative;
  margin: 8px 14px 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fecaca, #fda4af);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #7f1d1d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  animation: clockRingIn 0.35s ease;
}
.clock-ring-banner[hidden] { display: none !important; }
.clock-ring-banner strong {
  font-size: 1.2rem;
  z-index: 1;
}
.clock-ring-banner .primary {
  z-index: 1;
  background: #b91c1c !important;
  border: none !important;
  color: #fff !important;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  min-width: 160px;
}
.clock-ring-pulse {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 55%);
  animation: clockPulse 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes clockRingIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes clockPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.85; transform: scale(1.05); }
}
html[data-theme="neo"] .clock-ring-banner {
  background: linear-gradient(135deg, #7f1d1d, #9f1239);
  border-color: rgba(252, 165, 165, 0.45);
  color: #fee2e2;
}
.more-apps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.more-app {
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(224, 242, 254, 0.7);
  border-radius: 14px;
  padding: 12px 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
html[data-theme="neo"] .book-assist {
  background: rgba(36, 28, 72, 0.55);
  border-color: rgba(167, 139, 250, 0.28);
}
html[data-theme="neo"] .book-card,
html[data-theme="neo"] .clock-card,
html[data-theme="neo"] .more-app {
  background: rgba(36, 28, 72, 0.72);
  border-color: rgba(167, 139, 250, 0.35);
  color: inherit;
}
html[data-theme="neo"] .apps-chip {
  background: rgba(36, 28, 72, 0.7);
  color: inherit;
}

/* —— AI 记事本 · 白咖色 —— */
.note-panel.feature-panel { z-index: 87; }
.note-sheet {
  width: min(1040px, 100%);
  height: min(94vh, 880px);
  max-width: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 82, 48, 0.22) !important;
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(255, 248, 238, 0.95), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 18%, rgba(232, 208, 176, 0.55), transparent 50%),
    linear-gradient(165deg, #fbf6ef 0%, #f3e6d6 42%, #e8d5c0 100%) !important;
  color: #4a3424;
  box-shadow:
    0 28px 70px rgba(74, 52, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: noteSheetIn 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes noteSheetIn {
  from { opacity: 0; transform: translateY(28px) scale(0.94) rotate(-0.6deg); }
  to { opacity: 1; transform: none; }
}
.note-sheet.note-sheet-anim {
  animation: noteSheetIn 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.note-sheet.note-flip {
  animation: noteFlip 0.35s ease;
}
@keyframes noteFlip {
  0% { transform: perspective(800px) rotateY(-4deg); }
  100% { transform: none; }
}
.note-textarea.note-pulse-body {
  animation: noteBodyPulse 0.55s ease;
}
@keyframes noteBodyPulse {
  0% { box-shadow: 0 0 0 0 rgba(166, 124, 82, 0.45); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
}
.note-ai-box.note-ai-pop {
  animation: noteAiSlide 0.4s cubic-bezier(0.2, 1.15, 0.3, 1);
}
.note-head {
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.9), rgba(236, 214, 186, 0.55)) !important;
  border-bottom: 1px solid rgba(122, 82, 48, 0.14) !important;
  color: #5c3d28 !important;
  gap: 10px;
}
.note-head strong {
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #6b4423, #a67c52 45%, #6b4423);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: noteTitleShimmer 4.5s ease-in-out infinite;
}
@keyframes noteTitleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
.note-saved {
  margin-left: auto;
  margin-right: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #7a5230;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(122, 82, 48, 0.2);
  border-radius: 999px;
  padding: 3px 10px;
  animation: notePop 0.45s cubic-bezier(0.2, 1.4, 0.3, 1);
}
@keyframes notePop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.note-body {
  display: grid !important;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.note-side {
  border-right: 1px solid rgba(122, 82, 48, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.72), rgba(236, 214, 186, 0.35));
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: noteSideIn 0.55s 0.08s both;
}
@keyframes noteSideIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
.note-side-top {
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-new {
  background: linear-gradient(135deg, #8b5e3c, #6b4423) !important;
  border: none !important;
  color: #fff8f0 !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(107, 68, 35, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.note-new:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(107, 68, 35, 0.34);
}
.note-side-top input {
  border: 1px solid rgba(122, 82, 48, 0.22);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  color: #4a3424;
}
.note-list {
  flex: 1;
  overflow: auto;
  padding: 4px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-card {
  text-align: left;
  border: 1px solid rgba(122, 82, 48, 0.16);
  background: rgba(255, 252, 247, 0.88);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: noteCardIn 0.45s both;
}
.note-card:nth-child(1) { animation-delay: 0.05s; }
.note-card:nth-child(2) { animation-delay: 0.1s; }
.note-card:nth-child(3) { animation-delay: 0.15s; }
.note-card:nth-child(4) { animation-delay: 0.2s; }
.note-card:nth-child(5) { animation-delay: 0.25s; }
@keyframes noteCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(107, 68, 35, 0.14);
  border-color: rgba(166, 124, 82, 0.55);
}
.note-card.on {
  background: linear-gradient(135deg, #fff8f0, #f0dcc4);
  border-color: #a67c52;
  box-shadow: 0 0 0 2px rgba(166, 124, 82, 0.28);
}
.note-card b {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: #5c3d28;
}
.note-card span {
  display: block;
  font-size: 0.74rem;
  color: #8a6a4e;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}
.note-editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px 10px;
  animation: noteEditorIn 0.55s 0.12s both;
}
@keyframes noteEditorIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
.note-title {
  border: 0;
  border-bottom: 2px solid rgba(166, 124, 82, 0.35);
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  color: #5c3d28;
  padding: 6px 2px 10px;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.25s ease;
}
.note-title:focus { border-bottom-color: #8b5e3c; }
.note-ai-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.note-ai {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 82, 48, 0.22);
  background: rgba(255, 250, 244, 0.88);
  color: #6b4423;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.note-ai::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: noteShine 3.2s ease-in-out infinite;
}
@keyframes noteShine {
  0%, 55%, 100% { transform: translateX(-120%); }
  70% { transform: translateX(120%); }
}
.note-ai:hover {
  transform: translateY(-2px) scale(1.04);
  background: #fff;
  box-shadow: 0 8px 16px rgba(107, 68, 35, 0.16);
}
.note-ai.busy {
  pointer-events: none;
  opacity: 0.7;
  animation: notePulse 0.9s ease-in-out infinite;
}
@keyframes notePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.note-textarea {
  flex: 1;
  min-height: 180px;
  resize: none;
  border: 1px solid rgba(122, 82, 48, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #4a3424;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(247, 236, 220, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.note-textarea:focus {
  border-color: rgba(139, 94, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.note-ai-box {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(122, 82, 48, 0.2);
  background: linear-gradient(160deg, rgba(255, 248, 238, 0.96), rgba(236, 214, 186, 0.7));
  padding: 10px 12px;
  animation: noteAiSlide 0.4s cubic-bezier(0.2, 1.15, 0.3, 1);
  max-height: 38%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@keyframes noteAiSlide {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.note-ai-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.note-ai-box-head strong { color: #6b4423; }
.note-ai-acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.note-ai-acts .primary {
  background: linear-gradient(135deg, #8b5e3c, #6b4423) !important;
  border: none !important;
  color: #fff8f0 !important;
}
.note-ai-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5c3d28;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.note-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}
.note-foot .ghost {
  border-color: rgba(122, 82, 48, 0.25) !important;
  color: #7a5230 !important;
  background: rgba(255, 255, 255, 0.45) !important;
}
.note-meta, #noteMeta { color: #8a6a4e; font-weight: 700; }
.note-steam {
  position: absolute;
  left: 28px;
  top: 8px;
  width: 60px;
  height: 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.note-steam span {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(1px);
  animation: noteSteam 3.2s ease-in-out infinite;
}
.note-steam span:nth-child(1) { left: 8px; animation-delay: 0s; }
.note-steam span:nth-child(2) { left: 20px; animation-delay: 0.45s; width: 6px; height: 6px; }
.note-steam span:nth-child(3) { left: 30px; animation-delay: 0.9s; }
.note-steam span:nth-child(4) { left: 40px; animation-delay: 1.2s; width: 5px; height: 5px; }
.note-steam span:nth-child(5) { left: 16px; animation-delay: 1.6s; width: 7px; height: 7px; }
@keyframes noteSteam {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translateY(-42px) scale(1.4); opacity: 0; }
}
.note-beans {
  position: absolute;
  right: 70px;
  top: 14px;
  width: 90px;
  height: 28px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}
.note-beans i {
  position: absolute;
  width: 14px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, #c9a882, #6b4423);
  animation: noteBean 5s ease-in-out infinite;
}
.note-beans i:nth-child(1) { left: 0; animation-delay: 0s; }
.note-beans i:nth-child(2) { left: 28px; top: 8px; animation-delay: 0.8s; }
.note-beans i:nth-child(3) { left: 54px; top: 2px; animation-delay: 1.4s; }
@keyframes noteBean {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-6px) rotate(10deg); }
}
.note-sheet .feature-head .ghost {
  border-color: rgba(122, 82, 48, 0.28) !important;
  color: #6b4423 !important;
  background: rgba(255, 255, 255, 0.55) !important;
}
@media (max-width: 760px) {
  .note-body { grid-template-columns: 1fr; }
  .note-side {
    border-right: 0;
    border-bottom: 1px solid rgba(122, 82, 48, 0.14);
    max-height: 34%;
  }
  .note-sheet { height: min(96vh, 920px); }
}

/* —— AI 提醒事项 · 青瓷 —— */
.remind-panel.feature-panel { z-index: 87; }
.remind-sheet {
  width: min(1040px, 100%);
  height: min(94vh, 880px);
  max-width: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.28) !important;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(204, 251, 241, 0.95), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(153, 246, 228, 0.55), transparent 50%),
    linear-gradient(165deg, #f0fdfa 0%, #ccfbf1 48%, #99f6e4 100%) !important;
  color: #134e4a;
  box-shadow: 0 28px 70px rgba(15, 118, 110, 0.22), inset 0 1px 0 rgba(255,255,255,.7);
  animation: remindIn 0.5s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes remindIn {
  from { opacity: 0; transform: translateY(22px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
.remind-orbits { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.remind-orbits i {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.18);
  animation: remindOrbit 12s linear infinite;
}
.remind-orbits i:nth-child(1) { width: 180px; height: 180px; right: -40px; top: -50px; }
.remind-orbits i:nth-child(2) { width: 120px; height: 120px; left: 8%; bottom: 12%; animation-duration: 16s; animation-direction: reverse; }
.remind-orbits i:nth-child(3) { width: 70px; height: 70px; right: 22%; bottom: 18%; animation-duration: 9s; }
@keyframes remindOrbit {
  from { transform: rotate(0deg) scale(1); opacity: 0.45; }
  50% { transform: rotate(180deg) scale(1.06); opacity: 0.8; }
  to { transform: rotate(360deg) scale(1); opacity: 0.45; }
}
.remind-head {
  background: linear-gradient(90deg, rgba(240,253,250,.92), rgba(167,243,208,.45)) !important;
  border-bottom: 1px solid rgba(13,148,136,.16) !important;
  color: #115e59 !important;
  gap: 10px;
  position: relative; z-index: 1;
}
.remind-head strong {
  background: linear-gradient(120deg, #0f766e, #14b8a6 50%, #0f766e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: remindShimmer 4s ease-in-out infinite;
}
@keyframes remindShimmer {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}
.remind-saved {
  margin-left: auto; margin-right: 6px;
  font-size: 0.78rem; font-weight: 800; color: #0f766e;
  background: rgba(255,255,255,.7); border: 1px solid rgba(13,148,136,.25);
  border-radius: 999px; padding: 3px 10px;
  animation: notePop 0.45s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.remind-body {
  display: grid !important;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: 0; min-height: 0; position: relative; z-index: 1;
}
.remind-side {
  border-right: 1px solid rgba(13,148,136,.16);
  background: linear-gradient(180deg, rgba(240,253,250,.8), rgba(167,243,208,.28));
  display: flex; flex-direction: column; min-height: 0;
  animation: noteSideIn 0.5s 0.06s both;
}
.remind-side-top { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.remind-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.remind-new {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border: none !important; color: #ecfdf5 !important;
  border-radius: 14px !important; font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(15,118,110,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.remind-new:hover { transform: translateY(-2px) scale(1.02); }
.remind-side-top input {
  border: 1px solid rgba(13,148,136,.22); border-radius: 12px;
  padding: 8px 12px; font: inherit; font-weight: 700;
  background: rgba(255,255,255,.75); color: #134e4a;
}
.remind-list {
  flex: 1; overflow: auto; padding: 4px 8px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.remind-card {
  text-align: left; border: 1px solid rgba(13,148,136,.16);
  background: rgba(255,255,255,.82); border-radius: 14px;
  padding: 10px 12px; cursor: pointer; font: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: noteCardIn .45s both;
}
.remind-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,118,110,.14); }
.remind-card.on {
  background: linear-gradient(135deg, #ecfdf5, #a7f3d0);
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20,184,166,.28);
}
.remind-card.due { border-color: #f59e0b; background: linear-gradient(135deg, #fffbeb, #fde68a); }
.remind-card.done { opacity: 0.62; }
.remind-card b { display: block; font-size: .92rem; margin-bottom: 3px; color: #115e59; }
.remind-card span { display: block; font-size: .74rem; color: #0f766e; line-height: 1.35; }
.remind-card .when { font-weight: 800; color: #0d9488; }
.remind-editor {
  display: flex; flex-direction: column; gap: 10px; min-height: 0;
  padding: 14px 16px 12px; overflow: auto;
  animation: noteEditorIn .5s .1s both;
}
.remind-field { display: flex; flex-direction: column; gap: 5px; }
.remind-field > span { font-size: .78rem; font-weight: 800; color: #0f766e; }
.remind-field input, .remind-field textarea {
  border: 1px solid rgba(13,148,136,.22); border-radius: 12px;
  padding: 10px 12px; font: inherit; font-weight: 700; color: #134e4a;
  background: rgba(255,255,255,.85); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.remind-field textarea { resize: vertical; min-height: 88px; font-weight: 600; line-height: 1.5; }
.remind-field input:focus, .remind-field textarea:focus {
  border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.2);
}
.remind-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.remind-method {
  border: 1px solid rgba(13,148,136,.22); background: rgba(255,255,255,.75);
  color: #111 !important; border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer;
  transition: transform .15s ease, background .15s;
}
.remind-method:hover { transform: translateY(-1px); }
.remind-method.on {
  background: linear-gradient(135deg, #14b8a6, #0f766e); color: #ecfdf5 !important; border-color: transparent;
}
.remind-extra { display: flex; gap: 10px; flex-wrap: wrap; }
.remind-extra .grow { flex: 1; min-width: 160px; }
.remind-extra .qty { width: 120px; }
.remind-repeats, .remind-weekdays { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.remind-weekdays { margin-top: 6px; }
.remind-weekdays[hidden] { display: none !important; }
.remind-repeat-select {
  width: 100%; max-width: 280px;
  border: 1px solid rgba(13,148,136,.35) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font: inherit !important; font-weight: 800 !important;
  color: #000 !important;
  background: #fff !important;
  outline: none;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative; z-index: 2;
}
html[data-theme="neo"] .remind-repeat-select {
  color: #000 !important;
  background: #fff !important;
  border-color: rgba(13,148,136,.4) !important;
}
.remind-repeat, .remind-wd {
  border: 1px solid rgba(13,148,136,.28); background: rgba(255,255,255,.92);
  color: #111 !important; border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer;
  pointer-events: auto; position: relative; z-index: 2;
  -webkit-tap-highlight-color: rgba(20,184,166,.35);
  touch-action: manipulation;
}
.remind-repeat:hover, .remind-wd:hover { transform: translateY(-1px); }
.remind-repeat.on, .remind-wd.on {
  background: linear-gradient(135deg, #5eead4, #14b8a6) !important;
  border-color: #0f766e !important;
  color: #042f2e !important;
  box-shadow: 0 0 0 2px rgba(15,118,110,.25);
}
html[data-theme="neo"] .remind-repeat,
html[data-theme="neo"] .remind-wd,
html[data-theme="neo"] .remind-method,
html[data-theme="neo"] .remind-sheet .feature-head .ghost {
  color: #111 !important;
  background: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(13,148,136,.35) !important;
}
html[data-theme="neo"] .remind-repeat.on,
html[data-theme="neo"] .remind-wd.on {
  background: linear-gradient(135deg, #5eead4, #14b8a6) !important;
  border-color: transparent !important;
  color: #042f2e !important;
}
html[data-theme="neo"] .remind-method.on {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border-color: transparent !important;
  color: #ecfdf5 !important;
}
.remind-foot {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px;
}
.remind-foot .primary {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border: none !important; color: #ecfdf5 !important;
}
html[data-theme="neo"] .remind-foot .ghost,
html[data-theme="plain"] .remind-foot .ghost,
.remind-foot .ghost {
  border-color: rgba(13,148,136,.35) !important;
  color: #000 !important;
  background: rgba(255,255,255,.85) !important;
}
html[data-theme="neo"] .remind-foot .mini,
html[data-theme="plain"] .remind-foot .mini,
.remind-foot .mini,
#remindMeta {
  color: #000 !important;
}
.remind-fire {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 118, 110, 0.35); backdrop-filter: blur(6px);
  padding: 20px; animation: remindIn .35s ease;
}
.remind-fire[hidden] { display: none !important; }
.remind-fire-card {
  position: relative; width: min(420px, 100%);
  background: linear-gradient(160deg, #ecfdf5, #99f6e4);
  border: 1px solid rgba(13,148,136,.3); border-radius: 22px;
  padding: 22px 20px 18px; color: #134e4a;
  box-shadow: 0 24px 60px rgba(15,118,110,.35); overflow: hidden;
}
.remind-fire-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,.55), transparent 55%);
  animation: clockPulse 1.2s ease-in-out infinite; pointer-events: none;
}
.remind-fire-kicker {
  margin: 0 0 6px; font-size: .8rem; font-weight: 800; color: #0f766e; position: relative; z-index: 1;
}
.remind-fire-card > strong {
  display: block; font-size: 1.35rem; position: relative; z-index: 1; margin-bottom: 8px;
}
.remind-fire-body {
  margin: 0 0 8px; line-height: 1.5; white-space: pre-wrap; position: relative; z-index: 1;
}
.remind-fire-meta { position: relative; z-index: 1; color: #0f766e; font-weight: 700; }
.remind-fire-acts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 1;
}
.remind-fire-acts .primary {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border: none !important; color: #fff !important; font-weight: 900;
  padding: 10px 18px; border-radius: 999px;
}
.remind-fire-acts .ghost {
  border: 1px solid rgba(13,148,136,.3); background: rgba(255,255,255,.65);
  color: #0f766e; border-radius: 999px; padding: 10px 14px; font-weight: 800; text-decoration: none;
}
@media (max-width: 760px) {
  .remind-body { grid-template-columns: 1fr; }
  .remind-side { border-right: 0; border-bottom: 1px solid rgba(13,148,136,.16); max-height: 32%; }
  .remind-sheet { height: min(96vh, 920px); }
}

/* —— 泡泡出行 —— */
.travel-panel.feature-panel { z-index: 88; }
.travel-sheet {
  width: min(980px, 100%);
  height: min(94vh, 900px);
  background: #f4f7f7 !important;
  color: #222;
}
.trv-head { background: #00bcd4 !important; color: #fff !important; border: 0 !important; }
.trv-head strong { color: #fff !important; letter-spacing: 0.04em; }
.trv-brand { margin-left: auto; font-size: 0.75rem; font-weight: 800; opacity: 0.92; }
.trv-head .ghost { color: #fff !important; border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
.trv-tabs {
  display: flex; gap: 0; overflow-x: auto; background: #fff;
  border-bottom: 1px solid #e5e7eb; padding: 0 8px;
}
.trv-tabs button {
  flex: 0 0 auto; border: 0; background: none; padding: 12px 14px;
  font: inherit; font-weight: 800; color: #555; cursor: pointer;
}
.trv-tabs button.on { color: #00a2ae; box-shadow: inset 0 -3px 0 #00bcd4; }
.trv-search { background: #fff; margin: 10px 12px; padding: 12px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); color: #111; }
.trv-trips { display: flex; gap: 8px; margin-bottom: 10px; }
.trv-trips button {
  border: 1px solid #d1d5db; background: #fff; color: #111; border-radius: 999px;
  padding: 4px 12px; font-weight: 800; cursor: pointer;
}
.trv-trips button.on { background: #e0f7fa; border-color: #00bcd4; color: #007c8a; }
.trv-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.trv-city {
  flex: 1; text-align: left; border: 1px solid #d1d5db; background: #fafafa;
  border-radius: 6px; padding: 8px 10px; cursor: pointer; min-width: 0;
}
.trv-city small, .trv-date small, .trv-ask small { display: block; color: #333; font-size: 0.7rem; font-weight: 800; }
.trv-city b { display: block; font-size: 1.05rem; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trv-swap {
  width: 40px; border: 1px solid #d1d5db; border-radius: 50%; background: #fff; color: #111;
  font-size: 1.1rem; cursor: pointer; align-self: center;
}
.trv-date { flex: 1; display: flex; flex-direction: column; border: 1px solid #d1d5db; border-radius: 6px; padding: 6px 10px; background: #fafafa; color: #111; }
.trv-date input { border: 0; background: transparent; font: inherit; font-weight: 800; color: #111; }
.trv-ask { display: flex; flex-direction: column; margin: 4px 0 10px; color: #111; }
.trv-ask input { border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font: inherit; color: #111; background: #fff; }
.trv-filt { margin: 4px 0 8px; }
.trv-filt-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0;
}
.trv-filt-row small { color: #111; font-size: 0.7rem; font-weight: 800; min-width: 2.2em; }
.trv-filt-row button, .trv-res-filt button {
  border: 1px solid #d1d5db; background: #fff; color: #111; border-radius: 999px;
  padding: 4px 10px; font-weight: 800; cursor: pointer;
}
.trv-filt-row button.on, .trv-res-filt button.on {
  background: #fff3e0; border-color: #ff8300; color: #111;
}
.trv-res-filt {
  padding: 8px 12px 4px; background: #fff; border-bottom: 1px solid #eee;
}
.trv-res-filt[hidden] { display: none !important; }
.trv-res-filt input[type="search"] {
  width: 100%; margin-top: 6px; border: 1px solid #d1d5db; border-radius: 6px;
  padding: 8px 10px; font: inherit; font-weight: 700; color: #111; background: #fff;
}
.trv-size {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: #fff3e0; color: #111; font-size: 0.7rem; font-weight: 800;
}
.trv-acts { display: flex; gap: 8px; }
.trv-go, a.trv-go {
  flex: 1; border: 0; background: #ff8300; color: #fff !important; font-weight: 900;
  font-size: 1.05rem; border-radius: 6px; padding: 12px; cursor: pointer; text-align: center; text-decoration: none;
}
.trv-ai-btn { border: 1px solid #ff8300; background: #fff; color: #c2410c; border-radius: 6px; padding: 12px 14px; font-weight: 800; cursor: pointer; }
.trv-fine { margin: 8px 0 0; font-size: 0.75rem; color: #333; font-weight: 700; }
.trv-pick { position: absolute; inset: 48px 0 0; background: #fff; z-index: 5; display: flex; flex-direction: column; color: #111; }
.trv-pick[hidden] { display: none !important; }
.trv-pick-bar { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid #eee; }
.trv-pick-bar input { flex: 1; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font: inherit; color: #111; background: #fff; }
.trv-pick-list { flex: 1; overflow: auto; padding: 6px 10px 16px; }
.trv-hit {
  display: flex; justify-content: space-between; gap: 8px; width: 100%;
  border: 0; border-bottom: 1px solid #f3f4f6; background: #fff; padding: 10px 4px;
  text-align: left; font: inherit; cursor: pointer; color: #111;
}
.trv-hit b { color: #111; }
.trv-hit span { color: #333; font-size: 0.8rem; }
.trv-sum {
  margin: 0 12px 8px; padding: 12px; background: #fff; border-radius: 8px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.trv-sum b { display: block; font-size: 1.05rem; }
.trv-sum span, .trv-sum p { margin: 2px 0 0; font-size: 0.8rem; color: #555; }
.trv-sum .trv-go { flex: 0 0 auto; padding: 10px 16px; font-size: 0.95rem; }
.trv-list { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.trv-full {
  position: absolute; inset: 0; z-index: 8;
  background: #f4f7f7; display: flex; flex-direction: column; min-height: 0;
}
.trv-full[hidden] { display: none !important; }
.trv-full-bar {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; background: #00bcd4; color: #fff;
}
.trv-back {
  border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff;
  border-radius: 6px; padding: 8px 10px; font-weight: 800; cursor: pointer; flex: 0 0 auto;
}
.trv-sum-inline { flex: 1; min-width: 0; color: #fff; }
.trv-sum-inline b { display: block; font-size: 1.05rem; }
.trv-sum-inline span, .trv-sum-inline p { margin: 2px 0 0; font-size: 0.78rem; opacity: 0.92; }
.trv-list-full { padding-top: 10px; }
.trv-card-side .trv-src { display: block; margin-top: 4px; font-size: 0.7rem; color: #333; font-weight: 700; }
.trv-empty { padding: 28px 18px; text-align: center; font-weight: 800; color: #111; }
.trv-card {
  display: flex; gap: 10px; align-items: flex-start; background: #fff !important;
  color: #111 !important; border-radius: 8px; padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
  cursor: pointer;
}
.trv-times { display: flex; flex-direction: column; align-items: center; min-width: 70px; font-weight: 900; color: #111; }
.trv-times small { font-weight: 700; color: #333; }
.trv-plus { display: inline; margin-left: 2px; color: #ff6a00; font-style: normal; font-size: 0.7rem; font-weight: 900; }
.trv-card-main { flex: 1; min-width: 0; color: #111; }
.trv-card-main strong { color: #111; }
.trv-card-main p { margin: 2px 0 0; font-size: 0.8rem; color: #111; font-weight: 700; }
.trv-hop { margin-top: 4px; font-size: 0.78rem; font-weight: 800; color: #c2410c; }
.trv-hop-direct { color: #111; }
.trv-plane, .trv-seat, .trv-stats {
  margin-top: 4px; font-size: 0.78rem; font-weight: 800; color: #111 !important;
}
.trv-seats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.trv-seats span, .trv-cabin {
  background: #f3f4f6; color: #111 !important; border-radius: 999px;
  padding: 2px 8px; font-size: 0.72rem; font-weight: 800;
}
.trv-cabin-biz { background: #ffe8cc; color: #111 !important; }
.trv-card-side { text-align: right; }
.trv-card-side em { display: block; font-style: normal; font-size: 1.2rem; font-weight: 900; color: #ff6a00; }
.trv-card-side small { display: block; color: #333; font-weight: 700; }
.trv-buy {
  display: inline-block; margin-top: 6px; background: #ff8300; color: #fff;
  text-decoration: none; border-radius: 4px; padding: 6px 10px; font-weight: 800; font-size: 0.8rem;
}
.trv-ai { margin: 0 12px 8px; padding: 10px; background: #fff; border-radius: 8px; color: #111; }
.trv-ai pre, .trv-ai-out { margin: 8px 0 0; white-space: pre-wrap; font: inherit; font-weight: 700; color: #111; }
.trv-busy { padding: 8px 14px; font-weight: 800; color: #c2410c; }
.trv-detail {
  position: absolute; inset: 0; z-index: 10;
  background: #f4f7f7; display: flex; flex-direction: column; min-height: 0; color: #111;
}
.trv-detail[hidden] { display: none !important; }
.trv-detail-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px 16px; }
.trv-dcard {
  background: #fff; color: #111; border-radius: 8px; padding: 12px; margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.trv-dcard h3 { margin: 0 0 8px; font-size: 0.92rem; color: #111; }
.trv-dcard p { margin: 6px 0 0; font-size: 0.82rem; font-weight: 700; color: #111; }
.trv-dnote { color: #333 !important; font-weight: 600 !important; }
.trv-dprice { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.trv-dprice em { font-style: normal; font-size: 1.4rem; font-weight: 900; color: #ff6a00; }
.trv-dprice small { color: #333; font-weight: 800; }
.trv-tl { margin-top: 8px; }
.trv-leg { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-left: 3px solid #ff8300; padding-left: 12px; }
.trv-leg-t { display: flex; justify-content: space-between; gap: 8px; color: #111; font-weight: 800; }
.trv-leg-t b { color: #111; }
.trv-leg-t span { color: #111; }
.trv-leg-m { font-size: 0.78rem; font-weight: 800; color: #333; }
.trv-lay {
  margin: 4px 0; padding: 6px 10px; background: #fff3e0; color: #c2410c;
  border-radius: 6px; font-size: 0.78rem; font-weight: 800;
}
.trv-fare {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid #f3f4f6; color: #111;
}
.trv-fare b { min-width: 3em; color: #111; }
.trv-fare span { flex: 1; color: #333; font-size: 0.78rem; font-weight: 700; }
.trv-fare em { font-style: normal; font-weight: 900; color: #ff6a00; }
.trv-seat-intro { margin: 4px 0 0; font-size: 0.76rem; color: #444; font-weight: 700; line-height: 1.35; }
.trv-facts, .trv-dstats { display: flex; flex-wrap: wrap; gap: 6px; }
.trv-facts span, .trv-dstats span {
  background: #fff3e0; color: #111; border-radius: 999px;
  padding: 3px 8px; font-size: 0.72rem; font-weight: 800;
}
.trv-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.trv-ai-chips button {
  border: 1px solid #d1d5db; background: #fff; color: #111;
  border-radius: 999px; padding: 6px 10px; font-weight: 800; cursor: pointer;
}
.trv-dai .trv-ai-btn { width: 100%; }
.trv-frame { flex: 1; min-height: 220px; width: calc(100% - 24px); margin: 0 12px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.travel-body { position: relative; overflow: hidden; }

/* —— 泡泡修图 —— */
.photo-panel.feature-panel { z-index: 88; }
.photo-sheet {
  width: min(1100px, 100%);
  height: min(96vh, 920px);
  background:
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(253,230,138,.55), transparent 50%),
    linear-gradient(165deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%) !important;
  color: #78350f;
}
.photo-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.photo-pane {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 6px 14px 8px; font-size: 0.78rem; font-weight: 800;
}
.photo-pane[hidden] { display: none !important; }
.photo-pane label { display: flex; align-items: center; gap: 6px; }
.photo-pane input[type="range"] { width: 110px; }
.photo-pane input[type="text"],
.photo-pane select {
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 700;
  min-width: 120px;
}
.photo-filters .ghost { font-size: 0.78rem; }
.photo-stage {
  position: relative; flex: 1; min-height: 220px; margin: 0 12px 12px;
  background: repeating-conic-gradient(#e7e5e4 0% 25%, #fafaf9 0% 50%) 50% / 20px 20px;
  border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
#photoCanvas, #photoOverlay, #photoFx { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
#photoCanvas { z-index: 1; background: #111; }
#photoOverlay { z-index: 2; pointer-events: none; }
#photoFx { z-index: 9; pointer-events: none; }
.photo-busy {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(20, 12, 4, 0.08), rgba(20, 12, 4, 0.28));
  pointer-events: all;
}
.photo-busy[hidden] { display: none !important; }
.photo-busy-card {
  position: relative;
  z-index: 2;
  width: min(360px, 84%);
  padding: 26px 28px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(255, 237, 213, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.22), 0 0 0 1px rgba(245, 158, 11, 0.18);
  text-align: center;
  animation: photoBusyIn 0.32s ease;
}
@keyframes photoBusyIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.photo-busy-label {
  font-weight: 800;
  font-size: 0.98rem;
  color: #78350f;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.photo-busy-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}
.photo-busy-track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fb7185, #fbbf24, #f59e0b);
  background-size: 220% 100%;
  animation: photoBusyShine 1.1s linear infinite;
  transition: width 0.28s ease;
}
.photo-busy-pct {
  margin-top: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}
@keyframes photoBusyShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
html[data-theme="neo"] .photo-busy {
  background: radial-gradient(ellipse at center, rgba(20, 12, 40, 0.12), rgba(8, 6, 22, 0.36));
}
html[data-theme="neo"] .photo-busy-card {
  background: linear-gradient(180deg, rgba(46, 36, 82, 0.96), rgba(30, 22, 58, 0.94));
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
html[data-theme="neo"] .photo-busy-label { color: #f5f3ff; }
html[data-theme="neo"] .photo-busy-track { background: rgba(167, 139, 250, 0.18); }
html[data-theme="neo"] .photo-busy-track i {
  background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6, #a78bfa);
  background-size: 220% 100%;
}
html[data-theme="neo"] .photo-busy-pct { color: #ddd6fe; }
.photo-drop-hint {
  position: absolute; z-index: 3; text-align: center; padding: 16px 20px;
  font-weight: 800; color: #78716c; pointer-events: none;
}
.photo-drop-hint small { display: block; margin-top: 6px; font-weight: 700; color: #a8a29e; }
.photo-stage.on { outline: 3px dashed #f59e0b; outline-offset: -8px; }
.photo-ai .primary, .photo-ai .ghost { font-weight: 800; }
.photo-erase-modes { display: flex; gap: 6px; flex-wrap: wrap; }
#phEraseSizeWrap { min-width: 160px; }
#phEraseSizeWrap input { width: 120px; }

html[data-theme="neo"] .travel-sheet,
html[data-theme="neo"] .trv-full,
html[data-theme="neo"] .trv-detail {
  background: #f4f7f7 !important; color: #111 !important;
}
html[data-theme="neo"] .trv-search,
html[data-theme="neo"] .trv-sum,
html[data-theme="neo"] .trv-pick,
html[data-theme="neo"] .trv-ai,
html[data-theme="neo"] .trv-res-filt,
html[data-theme="neo"] .trv-card,
html[data-theme="neo"] .trv-dcard,
html[data-theme="neo"] .trv-tabs {
  background: #fff !important; color: #111 !important;
}
html[data-theme="neo"] .trv-tabs button { color: #333 !important; background: transparent !important; }
html[data-theme="neo"] .trv-tabs button.on { color: #c2410c !important; }
html[data-theme="neo"] .travel-sheet input,
html[data-theme="neo"] .travel-sheet textarea,
html[data-theme="neo"] .travel-sheet select,
html[data-theme="neo"] .travel-sheet .trv-city,
html[data-theme="neo"] .travel-sheet .trv-hit,
html[data-theme="neo"] .travel-sheet .trv-ask input,
html[data-theme="neo"] .travel-sheet .trv-date input {
  color: #111 !important; background: #fff !important; border-color: #d1d5db !important;
}
html[data-theme="neo"] .travel-sheet input::placeholder {
  color: #666 !important;
}
html[data-theme="neo"] .travel-sheet .ghost,
html[data-theme="neo"] .trv-pick .ghost,
html[data-theme="neo"] .trv-filt-row button,
html[data-theme="neo"] .trv-res-filt button,
html[data-theme="neo"] .trv-trips button,
html[data-theme="neo"] .trv-ai-chips button,
html[data-theme="neo"] .trv-swap,
html[data-theme="neo"] .trv-ai-btn {
  background: #fff !important; color: #111 !important; border: 1px solid #d1d5db !important;
}
html[data-theme="neo"] .trv-ai-btn { color: #c2410c !important; border-color: #ff8300 !important; }
html[data-theme="neo"] .trv-filt-row button.on,
html[data-theme="neo"] .trv-res-filt button.on {
  background: #fff3e0 !important; color: #111 !important; border-color: #ff8300 !important;
}
html[data-theme="neo"] .trv-head .ghost {
  color: #fff !important; background: transparent !important;
  border: 1px solid rgba(255,255,255,.45) !important;
}
html[data-theme="neo"] .photo-sheet {
  background: linear-gradient(165deg, #3b2f13, #451a03) !important;
  color: #fde68a;
}

/* —— 文字提取 —— */
.ocr-panel.feature-panel { z-index: 88; }
.ocr-sheet {
  width: min(860px, 100%);
  height: min(94vh, 880px);
  background:
    radial-gradient(ellipse 50% 36% at 0% 0%, rgba(167,243,208,.55), transparent 50%),
    linear-gradient(165deg, #ecfdf5 0%, #d1fae5 60%, #a7f3d0 100%) !important;
  color: #064e3b;
}
.ocr-head { background: #059669 !important; color: #fff !important; border: 0 !important; }
.ocr-head strong { color: #fff !important; }
.ocr-head .ghost { color: #fff !important; border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
.ocr-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.ocr-fine { margin: 6px 14px 0; font-size: 0.78rem; font-weight: 700; color: #047857; }
.ocr-stage {
  position: relative; flex: 1; min-height: 160px; margin: 8px 12px;
  background: repeating-conic-gradient(#d1fae5 0% 25%, #ecfdf5 0% 50%) 50% / 18px 18px;
  border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.ocr-stage.on { outline: 3px dashed #059669; outline-offset: -8px; }
.ocr-drop-hint {
  position: absolute; z-index: 2; text-align: center; padding: 16px;
  font-weight: 800; color: #047857; pointer-events: none;
}
.ocr-drop-hint small { display: block; margin-top: 6px; color: #6ee7b7; }
#ocrPreview { max-width: 100%; max-height: 100%; object-fit: contain; z-index: 1; }
.ocr-cam { position: absolute; inset: 0; z-index: 4; background: #022c22; display: flex; flex-direction: column; }
.ocr-cam video { flex: 1; width: 100%; object-fit: cover; background: #000; }
.ocr-cam-acts { display: flex; gap: 8px; padding: 10px; }
.ocr-cam-acts .primary, .ocr-cam-acts .ghost { flex: 1; font-weight: 800; }
.ocr-out { display: flex; flex-direction: column; margin: 0 12px 8px; min-height: 0; }
.ocr-out small { font-size: 0.72rem; font-weight: 800; color: #047857; margin-bottom: 4px; }
#ocrText {
  width: 100%; min-height: 120px; resize: vertical; border: 1px solid #6ee7b7;
  border-radius: 10px; padding: 10px; font: inherit; font-weight: 700;
  background: #fff; color: #064e3b;
}
.ocr-acts { display: flex; gap: 8px; padding: 0 12px 12px; }
.ocr-acts .primary, .ocr-acts .ghost { flex: 1; font-weight: 800; }
html[data-theme="neo"] .ocr-sheet {
  background: linear-gradient(165deg, #022c22, #064e3b) !important;
  color: #a7f3d0;
}
html[data-theme="neo"] #ocrText { background: #022c22; color: #ecfdf5; border-color: #047857; }

/* —— 手机竖屏：所有应用铺满、表单改一列 —— */
@media (max-width: 720px) {
  .apps-sheet,
  .note-sheet,
  .remind-sheet,
  .book-read-sheet,
  .travel-sheet,
  .photo-sheet,
  .ocr-sheet {
    width: 100% !important;
    height: var(--app-h, 100dvh) !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  .more-apps { grid-template-columns: 1fr 1fr; }
  .apps-toolbar { padding: 8px 10px; }
  .apps-toolbar input[type="text"],
  .apps-toolbar input[type="search"],
  .apps-toolbar input[type="number"],
  .apps-toolbar input[type="time"] { min-width: 0; flex: 1 1 100%; }
  .apps-chips { padding: 0 10px 8px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .apps-chip { flex: 0 0 auto; }
  .map-wrap { min-height: 0; flex: 1; }
  .map-routebar input,
  .map-place { min-width: 0; flex: 1 1 calc(50% - 6px); }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); padding: 8px 10px 16px; }
  .book-read-bar { flex-wrap: wrap; }
  .clock-timer { font-size: 2.4rem; padding: 16px 10px; }
  .trv-row { flex-wrap: wrap; }
  .trv-city { flex: 1 1 40%; }
  .trv-sum { flex-direction: column; align-items: stretch; }
  .trv-card { flex-wrap: wrap; }
  .trv-filt-row button { padding: 6px 10px; }
  .photo-pane input[type="range"] { width: 88px; }
  .photo-stage { min-height: 180px; margin: 0 8px 8px; }
  .ocr-stage { min-height: 140px; max-height: 38vh; }
  #ocrText { min-height: 96px; }
  .feature-head { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
}


/* GROK_APPS_POLISH_20261015a — unify travel/photo/ocr/chips for phone readability */
.apps-chip,
.trv-trips button,
.trv-filt-row button,
.photo-pane button,
.ocr-toolbar button,
.more-app {
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.apps-chip:hover,
.trv-trips button:hover,
.more-app:hover {
  transform: translateY(-1px);
}
.apps-chip:active,
.trv-trips button:active,
.trv-filt-row button:active,
.photo-pane button:active,
.ocr-toolbar button:active,
.more-app:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.apps-toolbar {
  gap: 10px;
}
.apps-chip {
  padding: 6px 12px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.95);
  color: #1e293b;
}
.apps-chip.on {
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

.travel-sheet,
.photo-sheet,
.ocr-sheet {
  border-color: rgba(15, 23, 42, 0.1) !important;
}
.trv-search,
.photo-pane,
.ocr-stage,
.photo-stage {
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.trv-tabs button {
  min-height: 42px;
}
.trv-trips button,
.trv-filt-row button {
  min-height: 36px;
  padding: 6px 12px;
}
.photo-pane,
.ocr-toolbar {
  gap: 8px;
}
.more-apps {
  gap: 10px;
}
.more-app {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

@media (max-width: 760px) {
  .apps-sheet .apps-body,
  .travel-sheet .apps-body,
  .photo-sheet .apps-body,
  .ocr-sheet .apps-body {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .apps-toolbar,
  .feature-head,
  .trv-head,
  .photo-head,
  .ocr-head {
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .apps-chip,
  .trv-trips button,
  .trv-filt-row button,
  .trv-tabs button,
  .photo-pane button,
  .ocr-toolbar button,
  .more-app {
    min-height: 44px;
  }
  .apps-chips {
    gap: 8px;
    padding-bottom: 10px;
  }
  .trv-search {
    margin: 10px;
    padding: 14px;
  }
  .photo-stage,
  .ocr-stage {
    margin: 8px 10px 12px;
    border-radius: 14px;
  }
  .more-apps {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
}

@media (max-width: 720px) {
  .apps-sheet,
  .note-sheet,
  .remind-sheet,
  .book-read-sheet,
  .travel-sheet,
  .photo-sheet,
  .ocr-sheet {
    width: 100% !important;
    height: var(--app-h, 100dvh) !important;
  }
}

/* === PHOTO_V2_20261019 — 泡泡修图：滑块/滤镜卡片/边框/字体 === */
.photo-sheet .photo-pane { row-gap: 8px; }
.photo-sheet .photo-pane label { flex-direction: row; align-items: center; color: inherit; }
.photo-pane.ph-sliders,
.photo-pane.ph-cards-pane { flex-direction: row; flex-wrap: wrap; align-items: center; }
.photo-pane .ph-sl {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 210px; min-width: 0; max-width: 340px;
}
.photo-pane .ph-sl > span { flex: 0 0 auto; min-width: 2.2em; font-weight: 800; }
.photo-pane .ph-sl input[type="range"] { flex: 1 1 auto; width: auto; min-width: 80px; accent-color: #f59e0b; }
.photo-pane .ph-sl > b {
  flex: 0 0 3.2em; text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 800; opacity: 0.8;
}
.photo-pane .ph-sl-wide { flex: 1 1 100%; max-width: 520px; }
.photo-pane .ph-sl input[type="range"]:disabled { opacity: 0.4; }
.photo-pane .ph-row-end,
.photo-pane .ph-btn-row,
.photo-pane .ph-text-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%;
}
.photo-pane .ph-row-end .mini { opacity: 0.75; font-weight: 700; }
.photo-pane .ph-cards {
  display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; flex: 1 1 100%;
  overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.photo-pane .ph-cards .ph-card {
  flex: 0 0 auto; width: 74px; min-height: 0 !important; height: auto;
  padding: 4px 4px 5px; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 12px; border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.82); color: #292524;
  font-size: 0.7rem; font-weight: 800; line-height: 1.15; cursor: pointer;
  scroll-snap-align: start; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.photo-pane .ph-cards .ph-card canvas {
  width: 64px; height: 64px; border-radius: 8px; display: block;
  background: repeating-conic-gradient(#e7e5e4 0% 25%, #fafaf9 0% 50%) 50% / 10px 10px;
}
.photo-pane .ph-cards .ph-frame-card { width: 84px; }
.photo-pane .ph-cards .ph-frame-card canvas { width: 74px; height: 74px; background: transparent; }
.photo-pane .ph-cards .ph-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.photo-pane .ph-cards .ph-card.on {
  border-color: #f59e0b; background: #fff7e6;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.photo-pane .ph-cards .ph-font-card {
  width: auto; min-width: 86px; padding: 8px 12px; justify-content: center;
}
.photo-pane .ph-cards .ph-font-card .ph-font-name {
  font-size: 1.12rem; font-weight: 400; line-height: 1.3; white-space: nowrap; overflow: visible;
}
.photo-pane .ph-fields { display: flex; flex-wrap: wrap; gap: 6px 10px; width: 100%; align-items: center; }
.photo-pane .ph-fields[hidden] { display: none !important; }
.photo-pane .ph-field { display: flex; align-items: center; gap: 4px; flex: 1 1 150px; max-width: 260px; }
.photo-pane .ph-field span { flex: 0 0 auto; font-size: 0.74rem; opacity: 0.85; }
.photo-pane .ph-field input[type="text"] { flex: 1 1 auto; min-width: 0; width: 100%; padding: 5px 8px; }
.photo-pane .ph-field-note { flex: 1 1 100%; opacity: 0.7; }
.photo-pane .ph-text-row input[type="text"] { flex: 1 1 180px; min-width: 120px; }
.photo-pane .ph-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.photo-pane .ph-swatches .ph-sw {
  width: 26px; height: 26px; min-height: 0 !important; padding: 0; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.18); cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.photo-pane .ph-swatches .ph-sw.on { outline: 3px solid #f59e0b; outline-offset: 1px; }
.photo-pane .ph-swatches input[type="color"] {
  width: 30px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
#photoUndo:disabled, #photoRedo:disabled { opacity: 0.45; }
/* 暗色主题 */
html[data-theme="neo"] .photo-pane .ph-cards .ph-card {
  background: rgba(255, 255, 255, 0.08); color: #fde68a; box-shadow: none;
}
html[data-theme="neo"] .photo-pane .ph-cards .ph-card.on { background: rgba(245, 158, 11, 0.18); }
html[data-theme="neo"] .photo-pane .ph-field input[type="text"],
html[data-theme="neo"] .photo-pane .ph-text-row input[type="text"] {
  background: rgba(0, 0, 0, 0.25); color: #fef3c7; border-color: rgba(253, 230, 138, 0.35);
}
/* 手机 */
@media (max-width: 760px) {
  .photo-pane .ph-sl { flex: 1 1 calc(50% - 8px); max-width: none; }
  .photo-pane .ph-sl-wide { flex-basis: 100%; }
  .photo-pane .ph-sl input[type="range"] { min-width: 0; width: 100%; }
  .photo-pane .ph-sl > b { flex-basis: 2.8em; }
  .photo-pane .ph-cards .ph-card { width: 66px; }
  .photo-pane .ph-cards .ph-card canvas { width: 56px; height: 56px; }
  .photo-pane .ph-cards .ph-frame-card { width: 76px; }
  .photo-pane .ph-cards .ph-frame-card canvas { width: 66px; height: 66px; }
  .photo-pane .ph-field { flex: 1 1 calc(50% - 10px); max-width: none; }
  .photo-pane .ph-row-end .mini { flex: 1 1 100%; }
  .photo-sheet .photo-stage { min-height: 42vh; }
}
@media (max-width: 420px) {
  .photo-pane .ph-sl { flex-basis: 100%; }
}
.photo-sheet .photo-pane .ph-cards .ph-font-card { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
.photo-sheet .photo-pane .ph-cards .ph-font-card .ph-font-name { max-width: none !important; overflow: visible !important; text-overflow: clip !important; }
.photo-body > .photo-tools, .photo-body > .apps-chips, .photo-body > .photo-pane { flex-shrink: 0; }

/* —— 泡泡购物 / 购物清单（京东） —— */
.shop-panel.feature-panel, .buylist-panel.feature-panel { z-index: 88; }
.shop-sheet {
  width: min(980px, 100%);
  height: min(94vh, 860px);
  background:
    radial-gradient(ellipse 50% 40% at 8% 0%, rgba(255, 228, 230, .7), transparent 52%),
    linear-gradient(165deg, #fff7f7 0%, #ffe4e6 55%, #fecdd3 100%) !important;
  color: #881337;
}
.shop-head { background: #e1251b !important; color: #fff !important; border: 0 !important; }
.shop-head strong, .shop-head .ghost, .shop-head .mini { color: #fff !important; }
.shop-head .ghost { border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
.buylist-sheet {
  width: min(980px, 100%);
  height: min(94vh, 860px);
  background:
    radial-gradient(ellipse 46% 38% at 92% 0%, rgba(254, 243, 199, .7), transparent 52%),
    linear-gradient(165deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%) !important;
  color: #78350f;
}
.buylist-head { background: #c2410c !important; color: #fff !important; border: 0 !important; }
.buylist-head strong, .buylist-head .ghost, .buylist-head .mini { color: #fff !important; }
.buylist-head .ghost { border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
.shop-body, .buylist-body {
  flex: 1; min-height: 0; overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.jd-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 14px 8px;
}
.jd-bar input {
  flex: 1 1 220px; min-width: 0;
  border: 1px solid rgba(225, 37, 27, .28);
  border-radius: 12px; padding: 10px 12px;
  font: inherit; font-weight: 700;
}
.shop-sheet .primary, .buylist-sheet .primary, .buylist-sheet .jd-buy {
  background: #e1251b !important; border-color: #be123c !important; color: #fff !important;
}
.jd-hist { padding-bottom: 4px; }
.jd-hero {
  margin: 8px 14px 16px; padding: 18px 16px;
  background: rgba(255,255,255,.82);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(136, 19, 55, .1);
}
.jd-kicker {
  margin: 0 0 6px; font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; color: #e1251b;
}
.jd-hero h3 { margin: 0 0 8px; font-size: 1.25rem; }
.jd-hero p { margin: 0; font-weight: 700; line-height: 1.55; color: #9f1239; }
.jd-list {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow: auto; min-height: 0; flex: 1;
}
.jd-item {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto auto;
  gap: 6px; align-items: center;
  background: rgba(255,255,255,.9);
  border-radius: 14px; padding: 8px 8px 8px 10px;
  font-weight: 800;
}
.jd-item.done { opacity: .55; }
.jd-item.done .jd-item-body b { text-decoration: line-through; }
.jd-check {
  width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid #e1251b; background: #fff;
  font-weight: 900; color: #e1251b; cursor: pointer;
}
.jd-item.done .jd-check { background: #e1251b; color: #fff; }
.jd-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jd-item-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-x { min-width: 36px; }
#jdListEmpty { margin: 8px 16px; font-weight: 800; color: #9a3412; }
html[data-theme="neo"] .shop-sheet {
  background: linear-gradient(165deg, #3f0d12, #881337) !important; color: #fecdd3;
}
html[data-theme="neo"] .buylist-sheet {
  background: linear-gradient(165deg, #431407, #7c2d12) !important; color: #fed7aa;
}
html[data-theme="neo"] .jd-hero, html[data-theme="neo"] .jd-item {
  background: rgba(15, 10, 8, .55); color: inherit;
}
html[data-theme="neo"] .jd-hero p { color: inherit; }


/* 淘宝买卖 / 美团到店 */
.mall-results { display:grid; gap:10px; margin-top:12px; }
.mall-card { border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:12px; background:rgba(255,255,255,.03); }
.mall-card strong { display:block; margin-bottom:4px; }
.mall-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; align-items:center; }
.mall-panel #mallCity { border-radius:10px; }
