@charset "UTF-8";
.daily-basis{margin:15px 0;display:flex;flex-direction:column;gap:8px}.daily-basis>div{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f5f8f3;border-radius:12px;padding:12px;font-size:12px;line-height:1.8}.daily-basis strong{flex-shrink:0;font-size:13px;min-width:40px;text-align:right}.daily-basis .plus{color:#2b8b55}.daily-basis .minus{color:#c06a43}.daily-basis .neutral{color:#879282;font-size:11px}.daily-basis-note{font-size:11px!important;color:#81917f}
:root {
  color-scheme: light;
  --green: #07b960;
  --deep: #075d38;
  --ink: #14231b;
  --muted: #7b8982;
  --bg: #f6faf7;
  --line: #e9efea;
  --mint: #eaf8ee;
  --orange: #ff8e51;
  --wood: #3ebc7c;
  --fire: #ff9163;
  --earth: #ecc75d;
  --metal: #a8b4b2;
  --water: #69a4e8;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #edf2ef;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0bbd6880;
  outline-offset: 3px;
}
button:active {
  transform: scale(0.98);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app {
  width: min(100%, 460px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  padding: 0 18px 105px;
  position: relative;
  overflow-x: clip;
}
.desktop-note {
  display: none;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}
.wordmark {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -1px;
}
.brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 0 3px 3px;
}
.role-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff8f2;
  border: 1px solid #dfede3;
  border-radius: 24px;
  padding: 6px 10px;
  min-height: 38px;
  font-size: 12px;
  white-space: nowrap;
}
.role-chip .icon {
  width: 14px;
  height: 14px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d8f5c4;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  color: #175d3b;
  font-weight: 800;
  font-size: 20px;
}
.avatar img {
  position: absolute;
  width: 205%;
  max-width: none;
  left: 0;
  top: -3%;
}
.avatar.alt {
  background: #fff0da;
}
.avatar.alt img {
  left: -105%;
}
.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.avatar.lg {
  width: 70px;
  height: 70px;
  font-size: 30px;
}
.hero {
  margin: 0 0 20px;
}
.hero h1 {
  font-size: 31px;
  font-weight: 850;
  letter-spacing: -1.3px;
  position: relative;
}
.hero .accent {
  position: relative;
  z-index: 0;
}
.hero .accent:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: #a5ec85;
  z-index: -1;
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 10px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 17px;
  margin-bottom: 12px;
  box-shadow: 0 3px 14px #234c3610;
}
.card.green {
  background: linear-gradient(120deg, #effbe9, #fff);
}
.card.no-pad {
  padding: 0;
  overflow: hidden;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid2 > .card {
  min-width: 0;
}
.pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 9px;
  background: #e7f8ed;
  color: var(--deep);
  font-size: 11px;
  gap: 4px;
  align-items: center;
}
.pill.gray {
  background: #f3f5f4;
  color: #819087;
}
.pill.orange {
  background: #fff1e5;
  color: #a95629;
}
.pill.purple {
  background: #f1edff;
  color: #7554aa;
}
.tiny-button {
  min-height: 32px;
  border-radius: 20px;
  background: var(--green);
  color: white;
  padding: 5px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tiny-button .icon {
  width: 14px;
  height: 14px;
}
.primary {
  min-height: 48px;
  border-radius: 25px;
  background: var(--green);
  color: white;
  font-weight: 650;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary.dark {
  background: #13251a;
}
.primary.wide,
.secondary.wide {
  width: 100%;
}
.secondary {
  min-height: 44px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--deep);
  font-size: 13px;
  gap: 5px;
}
.link .icon {
  width: 16px;
  height: 16px;
}
.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 13px;
}
.daily-metric {
  border-radius: 14px;
  background: #f0f8f2;
  padding: 12px 4px 9px;
  text-align: center;
  min-width: 0;
}
.daily-metric:nth-child(2) {
  background: #fff6ed;
}
.daily-metric:nth-child(3) {
  background: #f2f1fb;
}
.daily-metric:nth-child(4) {
  background: #eff6fd;
}
.daily-metric .icon {
  color: var(--green);
  width: 22px;
  height: 22px;
}
.daily-metric span {
  display: block;
  font-size: 12px;
  margin: 4px 0 6px;
}
.daily-sticks {
  height: 27px;
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: end;
}
.daily-sticks b {
  width: 7px;
  border-radius: 4px;
  background: #c6ead4;
}
.daily-sticks b.active {
  background: #36ba76;
}
.daily-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f7f2;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 12px;
  color: #435e4c;
}
.almanac {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.almanac > div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  font-size: 13px;
}
.badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #dff5e8;
  color: #14794a;
  font-weight: 700;
}
.badge.ji {
  background: #ffecdc;
  color: #ca7043;
}
.tool-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 15px 14px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  min-height: 138px;
  overflow: hidden;
}
.tool-card.green {
  background: #edfae8;
}
.tool-card.orange {
  background: #fff4eb;
}
.tool-card small {
  display: block;
  margin: 2px 0 12px;
  font-size: 11px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  text-align: center;
  margin: 10px 0 0;
}
.pillars > div {
  min-width: 0;
}
.pillars b {
  font-size: 25px;
  font-weight: 650;
  display: block;
  line-height: 1.4;
}
.pillars span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.pillars.compact b {
  font-size: 20px;
}
.w-wood {
  color: #24905a;
}
.w-fire {
  color: #d85e39;
}
.w-earth {
  color: #9d7f26;
}
.w-metal {
  color: #7e8a85;
}
.w-water {
  color: #4b7cb9;
}
.mini-zw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.mini-zw span {
  border-radius: 4px;
  background: #edf4ee;
  padding: 4px 1px;
  font-size: 9px;
  text-align: center;
}
.pair-banner {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  background: linear-gradient(110deg, #fffaf0, #edfae8);
  padding: 20px 17px;
  margin-top: 12px;
}
.pair-banner p {
  font-size: 12px;
  color: #718076;
  margin: 5px 0 15px;
  max-width: 180px;
}
.pair-banner img {
  position: absolute;
  width: 170px;
  right: -6px;
  bottom: 2px;
  pointer-events: none;
}
.pair-banner .copy {
  position: relative;
  z-index: 1;
  max-width: 57%;
}
.pair-banner h2 {
  font-size: 19px;
}
.tool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 78px;
}
.tool-row .icon {
  width: 30px;
  height: 30px;
  color: #718a78;
}
.tool-row small {
  display: block;
  margin-top: 2px;
}
.list-row {
  width: 100%;
  min-height: 65px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border: 0;
}
.list-row .icon {
  width: 18px;
  height: 18px;
  color: #7b8e81;
}
.list-row small {
  display: block;
}
.list-row strong {
  font-size: 14px;
}
.nav {
  position: fixed;
  bottom: 0;
  z-index: 30;
  width: min(100%, 460px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #ffffffed;
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 9px 10px max(9px, env(safe-area-inset-bottom));
  height: 80px;
}
.nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: #7b8983;
  min-height: 55px;
  border-radius: 14px;
}
.nav .active {
  color: var(--green);
  font-weight: 700;
}
.nav .ai-orb {
  height: 49px;
  width: 49px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 750;
  box-shadow: 0 4px 12px #0bb96825;
}
.nav .icon {
  width: 23px;
  height: 23px;
}
.preview-strip {
  font-size: 11px;
  color: #829286;
  text-align: center;
  padding: 11px 0 0;
}
.profile-card .meta {
  font-size: 12px;
  color: #6c7e73;
  margin-top: 5px;
}
.profile-card .row {
  align-items: flex-start;
}
.profile-card h2 {
  font-size: 20px;
}
.bars {
  margin-top: 15px;
  display: grid;
  gap: 11px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.bar-row > span {
  width: 14px;
}
.bar-row > small {
  width: 32px;
  text-align: right;
}
.bar-track {
  height: 10px;
  flex: 1;
  border-radius: 6px;
  background: #f0f3f1;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
}
.duo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.duo-actions button {
  border-radius: 12px;
  background: #e9f8ed;
  padding: 10px 5px;
  color: #077a43;
  font-size: 13px;
}
.duo-actions button:last-child {
  background: #f0edfb;
  color: #7552a2;
}
.role-pair {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 10px;
  margin: 5px 0 18px;
}
.role-tile {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 10px;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.role-tile strong {
  font-size: 16px;
}
.segmented {
  display: flex;
  background: #edf1ee;
  border-radius: 24px;
  padding: 4px;
  gap: 3px;
  overflow: auto;
  scrollbar-width: none;
}
.segmented button {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex: 1;
}
.segmented .selected {
  background: var(--green);
  color: white;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.compare-row .bar-track {
  height: 12px;
}
.compare-row .bar-track:first-child {
  transform: rotate(180deg);
}
.compare-row > span {
  text-align: center;
  font-size: 12px;
}
.empty {
  padding: 35px 15px;
  text-align: center;
}
.empty img {
  width: 165px;
  max-height: 135px;
  object-fit: contain;
  margin-bottom: 15px;
}
.empty h2 {
  font-size: 19px;
  margin: 0 0 9px;
}
.empty p {
  font-size: 13px;
  color: #7a8b80;
  margin: 0 auto 18px;
  max-width: 270px;
}
.empty.compact {
  padding: 15px 0;
}
.detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
}
.back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
}
.detail-head h1 {
  font-size: 22px;
}
.details {
  margin-top: 12px;
}
.details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #718075;
  font-size: 12px;
  cursor: pointer;
}
.details summary:after {
  content: "＋";
}
.details[open] summary:after {
  content: "−";
}
.details p,
.details li {
  font-size: 12px;
  line-height: 1.8;
  color: #617367;
  margin-bottom: 8px;
}
.details ul {
  padding-left: 18px;
}
.timeline {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 14px 0;
}
.time-item {
  padding: 12px 10px;
  min-width: 73px;
  text-align: center;
  background: #f1f7f2;
  border-radius: 12px;
}
.time-item strong {
  display: block;
  font-size: 17px;
}
.time-item small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 100px);
  gap: 5px;
  margin: 14px 0;
}
.palace {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 8px 6px;
  text-align: left;
  overflow: hidden;
  font-size: 11px;
}
.palace.active {
  background: #e7f8ec;
  border-color: #8cdaa7;
}
.palace.related {
  background: #f3f9ee;
}
.palace strong {
  font-size: 12px;
}
.palace small {
  font-size: 10px;
  margin-top: 4px;
  color: #64816c;
}
.chart-center {
  grid-column: 2/4;
  grid-row: 2/4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ecf7ef;
  border-radius: 20px;
  font-size: 13px;
  gap: 5px;
}
.chart-center h2 {
  font-size: 25px;
}
.chart-center img {
  width: 105px;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 50dvh;
  padding: 15px 0 90px;
}
.bubble {
  border-radius: 20px;
  padding: 15px;
  max-width: 95%;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.user {
  align-self: flex-end;
  background: #ddf5e5;
  border-bottom-right-radius: 5px;
}
.bubble.assistant {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.chat-intro {
  text-align: center;
  padding: 25px 5px 12px;
}
.chat-intro h2 {
  font-size: 25px;
}
.chat-intro img {
  width: 180px;
  height: 130px;
  object-fit: contain;
}
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.suggestions button {
  text-align: left;
  font-size: 13px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 13px;
}
.composer {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 460px);
  display: flex;
  gap: 8px;
  background: #f8fbf9f2;
  padding: 10px 16px;
  z-index: 25;
}
.composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px 16px;
  min-width: 0;
  background: white;
  height: 48px;
  max-height: 100px;
  outline: none;
}
.composer button {
  border-radius: 50%;
  background: var(--green);
  color: white;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.notice {
  background: #edf7ef;
  border-radius: 13px;
  padding: 10px 12px;
  color: #52755e;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice.orange {
  background: #fff3e8;
  color: #9a643b;
}
.feed-card p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 13px;
}
.feed-card .actions {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
.feed-card .actions button {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: #708479;
}
.feed-card .actions .icon {
  width: 17px;
  height: 17px;
}
.floorplan {
  position: relative;
  height: 210px;
  border: 3px solid #83a88e;
  margin: 16px 0;
  background: #eff8ed;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.floorplan div {
  border: 1px solid #aac7b3;
  display: grid;
  place-items: center;
  color: #5c7a66;
  font-size: 13px;
}
.floorplan div:first-child {
  grid-row: 1/3;
}
.floorplan .north {
  position: absolute;
  top: -23px;
  left: 45%;
  border: 0;
  font-size: 11px;
}
.tool-frame {
  width: 100%;
  height: calc(100dvh - 175px);
  border: 0;
  border-radius: 15px;
  background: white;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #12241a65;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: #fff;
  border-radius: 26px 26px 0 0;
  width: min(100%, 460px);
  max-height: 92dvh;
  overflow: auto;
  padding: 8px 22px max(26px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 50px #173c2720;
}
.sheet:before {
  content: "";
  display: block;
  width: 35px;
  height: 4px;
  border-radius: 5px;
  background: #dde6df;
  margin: 0 auto 15px;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0 18px;
}
.sheet-header h2 {
  font-size: 21px;
}
.sheet-header button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f7f5;
  display: grid;
  place-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field {
  display: block;
  margin: 0 0 15px;
}
.field > span {
  display: block;
  font-size: 12px;
  color: #738579;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea,
.search {
  background: #f5f8f5;
  width: 100%;
  border: 1px solid #e5eee7;
  border-radius: 13px;
  padding: 13px 12px;
  min-height: 48px;
  min-width: 0;
  color: var(--ink);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 14px;
}
.check-row input {
  accent-color: var(--green);
  width: 20px;
  height: 20px;
}
.error {
  color: #b63d30;
  font-size: 13px;
  padding: 10px 0;
}
.city-results {
  max-height: 180px;
  overflow: auto;
  border-radius: 12px;
  background: #f8faf8;
  margin-top: 4px;
}
.city-results button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  min-height: 43px;
}
.city-results small {
  display: block;
}
.date-display {
  background: #f5f8f5;
  border-radius: 13px;
  padding: 12px;
  width: 100%;
  text-align: left;
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wheels {
  position: relative;
  display: flex;
  height: 200px;
  margin: 20px 0;
  gap: 4px;
}
.wheels:before {
  content: "";
  position: absolute;
  top: 80px;
  height: 40px;
  left: 0;
  right: 0;
  background: #edf7ef;
  border-radius: 18px;
  pointer-events: none;
}
.wheel {
  flex: 1;
  overflow: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  padding: 80px 0;
  z-index: 1;
  min-width: 0;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.wheel button {
  display: block;
  width: 100%;
  height: 40px;
  scroll-snap-align: center;
  font-size: 20px;
  padding: 0;
}
.wheel button.selected {
  font-weight: 700;
  color: var(--deep);
}
.wheel-labels {
  display: flex;
  justify-content: space-around;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #193b2bea;
  color: white;
  padding: 12px 20px;
  border-radius: 15px;
  font-size: 13px;
  max-width: 90vw;
  display: none;
  box-shadow: 0 4px 20px #0002;
}
.loading {
  padding: 80px 20px;
  text-align: center;
  color: #6c8875;
}
.comment-list {
  margin-top: 12px;
}
.comment {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin: 16px -6px;
}
.month-grid button {
  padding: 6px 0;
  font-size: 9px;
  background: #eff7f0;
  border-radius: 5px;
  min-height: 48px;
}
.month-grid b {
  display: block;
  font-size: 11px;
}
.month-grid .selected {
  background: #c5edce;
}
.status {
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #77917e;
  margin-top: 15px;
}
.footer-link {
  font-size: 11px;
  color: #84948a;
  display: block;
  text-align: center;
  padding: 12px;
}
.full-panel {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0;
}
.full-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.7 inherit;
  color: #526d5b;
}
.profile-mini {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  gap: 10px;
  font-size: 12px;
}
.profile-mini strong {
  font-weight: 600;
}
.hexagram {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin: 25px auto;
  width: 145px;
}
.yao {
  display: flex;
  height: 12px;
  gap: 14px;
}
.yao span {
  flex: 1;
  background: var(--deep);
  border-radius: 3px;
}
.yao.moving span {
  background: var(--orange);
}
@media (min-width: 900px) {
  body {
    background: radial-gradient(ellipse at 30% 0%, #e5f4e7, #eef1ed 60%);
  }
  .app {
    margin-left: calc(50% + 65px);
    border-left: 1px solid #dce7df;
    border-right: 1px solid #dce7df;
    box-shadow: 0 0 70px #1f573510;
  }
  .nav,
  .composer {
    left: calc(50% + 295px);
  }
  .desktop-note {
    display: block;
    position: fixed;
    left: calc(50% - 390px);
    top: 12vh;
    width: 345px;
  }
  .desktop-note .wordmark {
    font-size: 32px;
  }
  .desktop-note h1 {
    font-size: 32px;
    line-height: 1.6;
    margin-top: 60px;
    letter-spacing: -1px;
  }
  .desktop-note p {
    color: #718678;
    line-height: 2;
    font-size: 15px;
    margin-top: 20px;
  }
  .preview-label {
    font-size: 11px;
    color: #7d9484;
    margin-top: 30px;
  }
  .desktop-friends {
    width: 270px;
    margin-top: 28px;
  }
  .sheet {
    border-radius: 26px;
    max-height: 85dvh;
    margin-bottom: 6vh;
  }
  .modal-backdrop {
    align-items: center;
  }
  .sheet:before {
    display: none;
  }
}
@media (max-width: 365px) {
  .app {
    padding-inline: 13px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .pair-banner img {
    width: 145px;
  }
  .pair-banner h2 {
    font-size: 17px;
  }
  .chart-grid {
    grid-template-rows: repeat(4, 90px);
  }
  .role-chip {
    max-width: 165px;
    overflow: hidden;
  }
  .card {
    padding: 14px;
  }
  .grid2 {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .tool-card {
    animation: appear 0.23s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.6;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.auth-screen {
  padding-bottom: 15px;
}
.auth-art {
  height: 190px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #e2f9c9 0%, transparent 65%);
  margin: 5px 0 20px;
}
.auth-art img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.auth-screen h1 {
  font-size: 29px;
}
.auth-intro {
  font-size: 13px;
  color: #708379;
  margin: 10px 0 24px;
}
.auth-tabs {
  margin-bottom: 22px;
}
.auth-tabs button {
  flex: 1;
  min-height: 44px;
}
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 26px 0;
  color: #94a199;
  font-size: 11px;
}
.auth-steps .active {
  font-weight: 700;
  color: var(--deep);
}
.auth-steps i {
  display: block;
  width: 19px;
  height: 1px;
  background: #d6e2da;
}
.auth-note {
  display: block;
  text-align: center;
}
.onboard-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.onboard-hero h1 {
  font-size: 25px;
}
.onboard-hero p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
#onboarding-fields {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.points-card button {
  text-align: left;
}
.points-card h2 {
  font-size: 27px;
}
.points-card h2 small {
  font-weight: 400;
  font-size: 12px;
}
.points-card .icon {
  width: 13px;
  height: 13px;
  vertical-align: middle;
}
.points-card > small {
  display: block;
  margin-top: 9px;
  font-size: 11px;
}
.points-card .primary {
  font-size: 13px;
  min-height: 44px;
  padding: 10px 17px;
}
.div-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #627b6b;
}
.div-subject > .link {
  margin-left: auto;
}
.div-hero {
  position: relative;
  display: flex;
  min-height: 176px;
  align-items: center;
  margin: 12px 0 15px;
  overflow: hidden;
}
.div-hero > div {
  position: relative;
  z-index: 1;
}
.div-hero h1 {
  font-size: 28px;
  line-height: 1.4;
}
.div-hero p {
  font-size: 11px;
  color: #778a7d;
  margin-top: 10px;
}
.div-hero .eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #7fa18a;
  margin-bottom: 9px;
}
.div-hero img {
  width: 170px;
  position: absolute;
  right: -29px;
  bottom: 8px;
  transform: rotate(-8deg);
}
.div-footnote {
  font-size: 11px;
  color: #788b7e;
  line-height: 1.7;
  text-align: center;
  margin: 12px 0;
}
.cast-modes {
  margin: 15px 0;
  display: flex;
}
.cast-modes button {
  flex: 1;
  padding: 11px 3px;
  font-size: 12px;
  min-height: 44px;
}
.coin-card {
  text-align: center;
}
.coin-stage {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
}
.coin-disc {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: #417146;
  background: #d5f4b1;
  border: 6px solid #b3de8c;
  box-shadow:
    0 5px 0 #8eb65f,
    0 10px 18px #537c3820;
  transform: rotate(-10deg);
}
.coin-disc:nth-child(2) {
  transform: rotate(10deg) translateY(-6px);
}
.coin-disc.back {
  background: #ffebcd;
  border-color: #ffd391;
  box-shadow: 0 5px 0 #d7ab63;
  color: #a26b30;
}
.throw-progress {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin: 0 0 21px;
}
.throw-progress span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f2;
  display: grid;
  place-items: center;
  color: #a3b3a8;
  font-size: 11px;
}
.throw-progress .done {
  background: #dff4cc;
  color: #466b36;
  font-weight: bold;
}
.mini-hex {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100px;
  margin: 20px auto;
}
.mini-hex .yao {
  height: 8px;
  gap: 14px;
}
.empty-yao {
  opacity: 0.1;
}
.manual-yaos {
  margin: 18px 0;
}
.manual-yao {
  display: grid;
  grid-template-columns: 30px 1fr 125px;
  align-items: center;
  gap: 20px;
  margin: 10px 0;
}
.manual-yao select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f8f5;
  padding: 10px 6px;
  min-height: 44px;
  font-size: 12px;
  width: 100%;
}
.manual-yao .yao {
  height: 9px;
}
.qm-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 185px;
  margin: 22px auto;
  transform: rotate(-5deg);
}
.qm-preview span {
  display: grid;
  place-items: center;
  height: 48px;
  background: #eaf6e6;
  border: 1px solid #dbe9d9;
  border-radius: 8px;
  color: #8aab88;
  font-size: 12px;
}
.qm-preview .center {
  background: #c1ed9c;
  color: #426d38;
  font-weight: 700;
}
.question-title {
  margin: 12px 0;
  font-size: 21px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.gua-pair {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.gua-pair h2 {
  font-size: 20px;
  margin: 12px 0;
}
.gua-arrow {
  font-size: 23px;
  color: #84a38f;
}
.yao-table-header,
.yao-table-row {
  display: grid;
  grid-template-columns: 39px 62px 1fr 24px 58px;
  align-items: center;
  gap: 6px;
  text-align: center;
  width: 100%;
}
.yao-table-header {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
  padding-bottom: 10px;
}
.yao-table-row {
  min-height: 63px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  padding: 7px 0;
}
.yao-table-row b {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.yao-table-row small {
  display: block;
  font-size: 10px;
}
.yao-table-row .yao {
  height: 8px;
  gap: 9px;
}
.line-badge {
  font-size: 11px;
  color: #399964;
}
.strength-track {
  display: flex;
  gap: 6px;
  margin: 15px 0;
}
.strength-track > span {
  flex: 1;
  border-radius: 12px;
  padding: 10px 4px;
  background: #f0f7ee;
  text-align: center;
}
.strength-track b {
  display: block;
  font-size: 16px;
}
.strength-track small {
  font-size: 10px;
}
.qimen-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 20px 0 7px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.qimen-meta b {
  display: block;
  font-size: 14px;
  color: #285537;
  margin-top: 5px;
}
.qimen-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 15px;
}
.qimen-cell {
  min-width: 0;
  min-height: 167px;
  background: white;
  border: 1px solid #e1eadf;
  border-radius: 15px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
}
.qimen-cell.selected {
  border: 2px solid #09ad59;
  padding: 8px 7px;
  background: #eef9e9;
  box-shadow: 0 4px 12px #0e4b1910;
}
.qm-heading {
  font-size: 10px;
  color: #67806d;
  display: flex;
  justify-content: space-between;
  gap: 1px;
}
.qm-heading > span {
  color: #94a398;
  font-size: 9px;
}
.qm-god {
  font-size: 10px;
  color: #7a8e78;
}
.qimen-cell strong {
  font-size: 19px;
  color: #194f33;
  line-height: 1.2;
}
.qm-star {
  font-size: 11px;
  color: #587c51;
  min-height: 16px;
}
.qimen-cell small {
  font-size: 9px;
}
.qm-badges {
  font-size: 9px;
  color: #c58142;
  min-height: 13px;
}
.qimen-cell.center {
  justify-content: center;
  align-items: center;
  background: #e2f2d6;
  text-align: center;
}
.qimen-cell.center strong {
  font-size: 21px;
  margin: 10px 0;
}
.palace-summary p {
  font-size: 13px;
  margin-top: 15px;
}
.ai-tool-card {
  margin-top: 20px;
  background: linear-gradient(130deg, #edf9e5, #fff);
}
.ai-tool-card .primary {
  margin-top: 18px;
}
.ai-tool-card h3 {
  font-size: 15px;
}
.ai-tool-card small {
  font-size: 11px;
}
.record-open {
  flex: 1;
  text-align: left;
  min-height: 44px;
}
.record-open strong,
.record-open small {
  display: block;
}
.record-open strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.record-open small {
  margin-top: 4px;
}
.field input[type="datetime-local"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
}
.auth-screen .segmented {
  display: flex;
}
.auth-screen .segmented button {
  width: 50%;
}
@media (max-width: 365px) {
  .qimen-cell {
    padding: 8px 6px;
    min-height: 165px;
    gap: 7px;
  }
  .qimen-cell.selected {
    padding: 7px 5px;
  }
  .qimen-cell strong {
    font-size: 17px;
  }
  .yao-table-row,
  .yao-table-header {
    grid-template-columns: 33px 52px 1fr 20px 48px;
    gap: 4px;
  }
  .coin-disc {
    width: 60px;
    height: 60px;
  }
  .div-hero img {
    width: 150px;
    right: -35px;
  }
  .div-hero h1 {
    font-size: 26px;
  }
  .auth-art {
    height: 160px;
  }
}
.auth-art img {
  width: 280px;
  height: 180px;
  display: block;
  object-fit: contain;
}
.auth-art {
  overflow: hidden;
}
@media (max-width: 365px) {
  .auth-art img {
    height: 150px;
    width: 240px;
  }
}

[hidden] {
  display: none !important;
}
#onboarding-fields .form-grid {
  grid-template-columns: 1fr;
}

.house-tags{display:flex;gap:7px;margin-top:10px}
