:root {
  color-scheme: light;
  --page: #f7f6f2;
  --heading: #39453c;
  --ink: #46534a;
  --muted: #606b61;
  --accent: #4e6654;
  --action: #354c3e;
  --action-hover: #2e4537;
  --on-action: #fffdf6;
  --notice: #885241;
  --line: #364c4022;
  --rim: #364c402d;
  --panel: #fbfaf7;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 66% at 90% 3%, #dae3d34d, transparent 83%),
    radial-gradient(ellipse 68% 63% at 9% 94%, #eee9da73, transparent 91%),
    var(--page);
  color: var(--ink);
  font-size: 14px;
}
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
button, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- 导航与访客面板 --- */
.app { display: flex; flex-direction: column; overflow: clip; height: 100vh; height: 100dvh; min-height: 652px; }
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: none;
  min-height: 75px;
  width: min(100% - 88px, 1200px);
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 0; color: var(--muted); white-space: nowrap; }
.brand:hover { color: var(--heading); }
.brand-mark {
  display: grid; place-items: center; width: 37px; height: 37px;
  color: inherit;
}
.brand-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.brand-name { font: 400 22px/1 var(--serif); letter-spacing: .115em; }
.modes {
  display: flex; align-items: center; gap: 5px; padding: 4px;
  border: 1px solid #dce2d6a3; border-radius: 999px;
  background: #e9ede4af;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.mode { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 5px 15px; border-radius: 999px; white-space: nowrap; font-size: 12px; }
.mode.current { color: var(--heading); background: #fdfcf8; box-shadow: 0 1px 3px #334c3710; }
.mode:not(.current):hover { background: #fff8; }
.mode { position: relative; flex:1; min-width: 90px; font-size: 14px; }
.mode::after { position: absolute; content: ""; inset: -5px 0; }
.mode svg, .text-button svg, .profile-button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.header-actions { display: flex; gap: 9px; align-items: center; justify-self: end; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 44px; padding: 8px 12px; border-radius: 18px; font-size: 13px; color: var(--muted); }
.text-button:hover:not(:disabled) { color: var(--heading); background: #354c3e0c; }
.text-button:disabled { opacity: .68; }
.header-actions .text-button { white-space: nowrap; }
#history-toggle svg { width: 18px; height: 18px; }
.topbar:has(.history-panel:popover-open) #history-toggle { background: #354c3e0c; color: var(--action); }
.profile-button {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: #fbfaf775;
  box-shadow: inset 0 1px 0 #fff9; transition: background .2s, border-color .2s;
}
.profile-button svg { width: 20px; height: 20px; }
.profile-button:hover, .profile-button[aria-expanded="true"] { background: #fff; border-color: var(--rim); }
.profile, .history-panel {
  position: fixed; inset: 67px max(26px, calc((100vw - 1200px) / 2)) auto auto; margin: 0;
  width: min(270px, calc(100vw - 32px)); padding: 17px; border-radius: 20px; border: 1px solid var(--rim);
  color: var(--ink); background: #fcfbf7eb; box-shadow: 0 10px 36px #273c3022, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(26px) saturate(1.24); backdrop-filter: blur(26px) saturate(1.24);
}
.profile-name { overflow-wrap: anywhere; color: var(--heading); font-size: 16px; }
.profile button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  text-align: left; padding: 0 2px; min-height: 42px; border-top: 1px solid var(--line);
  color: var(--accent); font-size: 13px;
}
.profile { padding-bottom: 7px; }
#open-favorites span { font-size: 20px; line-height: 1; }
.profile button:hover { color: var(--heading); }

/* --- 学员首次进入 --- */
body:not(.has-chat) .app.at-entry {
  min-height: 100dvh; height: auto;
  background:
    radial-gradient(ellipse 55% 68% at 50% 47%, #fffdf4c7, transparent 86%),
    radial-gradient(ellipse 70% 85% at 0% 18%, #f7e9cf99, transparent 82%),
    radial-gradient(ellipse 68% 85% at 100% 10%, #c6ddcfad, transparent 85%),
    linear-gradient(160deg, #f7f6ef 36%, #e4ede1);
}

.at-entry .modes, .at-entry .header-actions { display: none; }
.at-entry .topbar { grid-template-columns: auto 1fr; }
.trial-mark {
  justify-self: end; display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .1em; color: var(--accent);
}
.trial-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #809878; }
.trial-note { color: var(--muted); letter-spacing: .025em; }
@media (max-width: 480px) {
  .trial-mark { display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; justify-items: end; }
  .trial-note { grid-column: 1 / -1; font-size: 11px; }
}
#invitation {
  margin: auto; width: min(344px, 100% - 48px); padding: 24px 0 max(64px, 10dvh);
  text-align: center; animation: arrival .55s var(--ease) both;
}
.invitation-art { position: relative; height: clamp(92px, 15vh, 135px); margin-bottom: clamp(24px, 4vh, 38px); }
.invitation-art .presence-light, .invitation-art .presence-aura { top: 50%; }
.invitation-art .presence-light { width: min(33vw, clamp(90px, 14vh, 128px)); }
#invitation-title { font-size: clamp(30px, 5vw, 39px); }
#invitation .intro { margin-top: 12px; font-size: 14px; }
#login-form { margin: 30px auto 0; display: grid; gap: 13px; }
.entry-field label, #login-form .confirm { display: flex; align-items: center; height: 52px; border-radius: 26px; }
.entry-field label {
  gap: 13px; padding: 0 19px; color: var(--accent); background: #fffef9ac; border: 1px solid #788d764a;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px -12px #435a4638;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color .2s, box-shadow .2s;
}
.entry-field svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.entry-field input {
  min-width: 0; width: 100%; height: 100%; padding: 0; background: none; border: 0; outline: none;
  font: inherit; font-size: 16px; color: var(--heading); letter-spacing: .045em;
}
.entry-field input::placeholder { font-size: 14px; letter-spacing: .03em; color: var(--muted); }
.entry-field label:focus-within { border-color: #7c9481; box-shadow: 0 0 0 4px #7c94811a; }
.entry-field label:has([aria-invalid]) { border-color: var(--notice); color: var(--notice); background: #fff9f2cf; }
.entry-field [role=alert]:not(:empty) { text-align: left; padding: 6px 12px 0; font-size: 12px; color: var(--notice); line-height: 1.55; }
#login-form .confirm { justify-content: center; margin-top: 4px; font-size: 15px; letter-spacing: .08em; transition: background .2s; }
#login-form .confirm:disabled { background: #d4dfd1df; color: #627466; box-shadow: inset 0 1px 0 #fff5; }
#use-code { margin: 8px auto 0; min-height: 44px; color: #546559; font-size: 12px; }
#use-code:hover { text-decoration: underline; text-underline-offset: 4px; }
#wish-status:not(:empty) {
  position: fixed; z-index: 3; top: 82px; left: 50%; translate: -50% 0;
  max-width: calc(100vw - 28px); width: max-content; padding: 11px 18px;
  background: var(--action); color: var(--on-action); border-radius: 24px;
  font-size: 13px; pointer-events: none; animation: arrival .25s var(--ease);
}
#wish-title { font: 400 25px/1.4 var(--serif); }
#wish label { display: block; margin: 14px 0 10px; line-height: 1.65; }
#wish-text { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--rim); padding: 13px; background: #ffffffad; font-size: 16px; resize: vertical; line-height: 1.65; }
.wish-meta { display: flex; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 9px; }
#wish-error { color: var(--notice); font-size: 13px; }
#wish .dialog-actions { margin-top: 18px; }
#wish-text:focus { outline: none; border-color: #7c9481; box-shadow: 0 0 0 3px #7c94811c; }
@media (max-width: 380px) {
  #wish { padding: 21px 17px; }
  #wish label { font-size: 13px; }
}
@media (max-width: 739px) {
  #invitation .intro { font-size: 13px; }
  #invitation { padding-bottom: max(40px, 8dvh); }
}
@media (max-height: 680px) {
  #invitation { padding-block: 14px 26px; }
  .invitation-art { margin-bottom: 18px; }
  #login-form { margin-top: 19px; }
}
#scene-title:focus { outline: none; }
.first-guide, .reaction-guide { color: var(--muted); font-size: 12px; line-height: 1.6; }
.first-guide { text-align: center; margin: 12px 0 0; }
.reaction-guide { margin-left: 6px; }

/* --- 历史记录 --- */
.history-panel {
  width: min(336px, 100vw - 28px); padding: 0;
  background: #fbfaf6f5; overflow: hidden;
}
.history-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 7px 20px; }
.history-header h2 { margin: 0; color: var(--heading); font: 400 19px/1.4 var(--serif); letter-spacing: .05em; }
.history-header .text-button { min-height: 36px; width: 36px; padding: 0; }
.history-header svg { width: 18px; height: 18px; }
.history-list {
  overflow: auto; max-height: min(55dvh, 100dvh - 150px); padding: 0 9px 12px;
  scrollbar-width: thin; scrollbar-color: #909d927a transparent; overscroll-behavior: contain;
}
.history-list h3 { margin: 14px 11px 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.history-list h3:first-child { margin-top: 3px; }
.history-entry {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 43px; border-radius: 12px; padding: 9px 11px; line-height: 1.55;
}
.history-entry span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-entry small { margin-left: auto; flex: none; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.history-entry:hover { background: #354c3e0c; }
.history-entry[aria-current] { background: #e6ede1; color: var(--action); }
.history-entry:focus-visible { outline-offset: -2px; }
.history-list p { margin: 10px 11px 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* --- 首页 / 光与卡片各自成层 --- */
main {
  --landing-center: 53%;
  --composer-offset: 66px;
  --conversation-width: 640px;
  position: relative;
  min-height: 0; flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: clamp(14px, 3vh, 28px);
  padding: clamp(8px, 2.6vh, 26px) 42px max(18px, env(safe-area-inset-bottom));
}
body:not(.has-chat) main { padding-block: 0; }
body:not(.has-chat) .composer-dock {
  position: absolute; z-index: 2; top: calc(var(--landing-center) + var(--composer-offset));
  width: min(100% - 34px, 49vw, 440px);
}
.stage {
  --card-width: clamp(145px, 16.4vw, 200px);
  position: relative; isolation: isolate; flex: 1; width: min(100%, 1200px); min-height: 0;
}
.welcome {
  position: absolute; inset: 0;
  transition: opacity .3s var(--ease), transform .55s var(--ease), visibility .3s;
}
.hero-copy {
  position: absolute; z-index: 1; top: var(--landing-center); left: 50%; translate: -50% -50%;
  width: min(calc(100% - 2 * (var(--card-width) + 20px)), 560px);
  text-align: center;
}
h1 {
  margin: 0; color: var(--heading); font: 400 clamp(32px, 3.4vw, 47px)/1.32 var(--serif);
  letter-spacing: .055em;
}
.intro {
  margin: 15px auto 0; color: var(--muted); max-width: 28em;
  font-size: clamp(13px, 1.25vw, 15px); line-height: 1.75; text-wrap: pretty;
}

.scene-art {
  position: absolute; z-index: -1; overflow: visible; inset: 0; pointer-events: none;
  transform-origin: center; transition: transform 1s var(--ease), opacity .8s var(--ease);
}
.presence-light, .presence-aura {
  position: absolute; left: 50%; top: calc(var(--landing-center) - clamp(103px, 17vh, 157px));
  translate: -50% -50%;
}
.presence-aura {
  width: clamp(165px, 29vh, 280px); aspect-ratio: 1.16;
  background: radial-gradient(ellipse, #d9dcbd40, transparent 64%);
  filter: blur(21px); opacity: .8;
}
.presence-light {
  width: clamp(102px, 15.2vh, 151px); aspect-ratio: 136 / 142;
  border-radius: 48% 52% 49% 51% / 46% 48% 52% 54%;
  background: radial-gradient(ellipse at 34% 29%, #fffcdf 2%, #e6e2bd 25%, #bed0b867 66%, #9ebbb654 87%);
  box-shadow: inset -13px -10px 20px #789b8c2b, 0 0 31px #bbc9b53b;
  filter: blur(3.5px); animation: presence 9s ease-in-out infinite;
}
@keyframes presence {
  0%, 100% { transform: translateY(3px) scale(.97) rotate(-3deg); }
  50% { transform: translateY(-4px) scale(1.04) rotate(3deg); }
}
.question-gallery, .suggestions { position: absolute; inset: 0; pointer-events: none; }
.suggestion {
  --tint: #e6eddf58;
  position: absolute; isolation: isolate; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3px;
  width: var(--card-width); min-height: 53px; padding: 8px 10px 8px 12px;
  border: 1px solid #a4b2a12b; border-radius: 15px; text-align: left; color: var(--muted);
  background:
    radial-gradient(ellipse 105% 125% at 0% 0%, var(--tint), transparent 93%), #fcfbf68f;
  box-shadow: 0 4px 12px -9px #435a4654, inset 0 1px 0 #fff8;
  -webkit-backdrop-filter: blur(24px) saturate(1.14); backdrop-filter: blur(24px) saturate(1.14);
  transition: transform .4s var(--ease), box-shadow .25s, border-color .25s, background-color .25s;
}
.suggestion:nth-child(1) { left: 13%; top: 23%; }
.suggestion:nth-child(2) { right: 15%; top: 18%; }
.suggestion:nth-child(3) { left: 2%; top: 47%; }
.suggestion:nth-child(4) { right: 1%; top: 51%; }
.suggestion:nth-child(5) { left: min(13%, 50% - min(26vw, 260px) - var(--card-width) - 18px); bottom: 15%; }
.suggestion:nth-child(6) { right: min(11%, 50% - min(26vw, 260px) - var(--card-width) - 14px); bottom: 12%; }
.suggestion:is(:nth-child(3), :nth-child(6)) { --tint: #f0e8d467; }
.suggestion:hover:not(:disabled), .suggestion:focus-visible {
  transform: translateY(-3px); border-color: #a4b2a18a;
  box-shadow: 0 7px 17px -10px #435a4675, inset 0 1px #fff;
}
.suggestion:active:not(:disabled) { transform: translateY(-1px); }
.suggestion.is-prefilled {
  border-color: #78967b9e; background-color: #f2f5ec;
  box-shadow: 0 6px 16px -9px #435a4660, inset 0 1px 0 #fff;
}
.suggestion-kind {
  font-size: 10px; font-weight: 500; line-height: 1.3;
  color: #566f5a;
}
.suggestion:is(:nth-child(3), :nth-child(6)) .suggestion-kind { color: #786348; }
.suggestion-text {
  color: var(--muted); font-size: 12px; font-weight: 400;
  line-height: 1.56; overflow-wrap: anywhere; text-wrap: pretty;
}

/* --- 对话态 --- */
.has-chat .app { min-height: 270px; }
.has-chat .welcome { visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.has-chat .scene-art { position: fixed; inset: 0; opacity: .22; transform-origin: center; transform: scale(.96); }
.has-chat .presence-light, .has-chat .presence-aura { top: 50%; }
.has-chat .presence-light {
  animation: none; box-shadow: none;
  filter: blur(clamp(16px, 2.6vmin, 26px));
}
.is-answering .scene-art { opacity: .28; transform: scale(1.01); }
.conversation {
  position: absolute; inset: 0; overflow: auto; width: min(100%, var(--conversation-width)); margin-inline: auto;
  padding: 10px 1px 24px; overscroll-behavior: contain; scrollbar-color: #909d92 transparent; scrollbar-width: thin;
}
.message-row { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0 22px; }
.message-row.user { justify-content: flex-end; padding-left: 16%; }
.message-row.assistant { --avatar-size: 30px; padding-right: 9%; align-items: flex-start; }
.message-row.enter { animation: arrival .35s var(--ease) both; }
@keyframes arrival { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.message-body { min-width: 0; }
.message-label { display: flex; align-items: center; min-height: var(--avatar-size); margin: 0 0 4px; color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.chat-avatar {
  flex: 0 0 var(--avatar-size); width: var(--avatar-size); height: var(--avatar-size);
  border-radius: 50%; border: 1px solid #f7f5e8;
  background: radial-gradient(ellipse at 29% 24%, #f9f4ce, #dde3c8 46%, #a9bcac 83%, #7d9c8b);
}
.bubble { border: 1px solid var(--line); border-radius: 5px 22px 22px 22px; padding: 13px 17px; background: #fcfbf7eb; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.user .bubble { border-color: #c3d2c144; border-radius: 22px 22px 5px 22px; background: #e4ebe1; color: var(--heading); white-space: pre-wrap; }
.answer h3 { margin: 17px 0 6px; color: var(--heading); font-size: 1.02em; font-weight: 600; line-height: 1.55; }
.answer p { margin: 0 0 .72em; white-space: pre-wrap; }
.answer ul, .answer ol { margin: 7px 0 .8em; padding-inline-start: 1.45em; }
.answer li { margin: 3px 0; }
.answer li::marker { color: var(--accent); }
.answer strong { color: var(--heading); font-weight: 600; }
.answer > :first-child { margin-top: 0; }
.answer > :last-child { margin-bottom: 0; }
.answer.partial { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-actions { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 12px; }
.typing { display: flex; align-items: center; min-height: 16px; }
.typing-dots { display: inline-flex; gap: 5px; }
.typing-dots > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: dot 1.3s ease-in-out infinite; }
.typing-dots > span:nth-child(2) { animation-delay: .14s; }
.typing-dots > span:nth-child(3) { animation-delay: .28s; }
@keyframes dot { 0%, 65%, 100% { transform: none; opacity: .55; } 30% { transform: translateY(-3px); opacity: 1; } }
.answer-tools { display: flex; align-items: center; gap: 2px; margin: 4px 0 -10px; }
.reaction {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; color: #69776c; transition: background .2s, color .2s;
}
.reaction svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; fill: transparent; transition: fill .18s; }
@media (hover: hover) {
  .reaction:hover { color: var(--action); background: #354c3e0b; }
}
.favorite[aria-pressed="true"] { color: #b75e57; }
.favorite[aria-pressed="true"] svg { fill: currentColor; }
.rate[data-rating]:not([data-rating=""]) { color: var(--action); }
.rate[data-rating]:not([data-rating=""]) svg { fill: #c4d7c2; }
.rate[data-rating="unhelpful"] svg { transform: rotate(180deg); }
.message-actions { display: flex; justify-content: flex-end; }
.retry { margin-top: 5px; min-height: 33px; padding: 0 9px; border-radius: 10px; text-decoration: underline; text-underline-offset: 3px; color: var(--accent); font-size: 12px; }
.retry:hover:not(:disabled) { background: #354c3e0c; }
.retry:disabled { opacity: .5; }

/* --- 输入框 --- */
.composer-dock { width: min(100%, var(--conversation-width)); flex: none; position: relative; }
.composer {
  display: flex; align-items: flex-end; gap: 8px; min-height: 52px; padding: 5px 5px 5px 17px;
  background: var(--panel); border: 1px solid var(--rim); border-radius: 25px;
  box-shadow: inset 0 1px 0 #fff9, 0 8px 22px -17px #3a4d3e55; transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.composer.has-suggested-draft { border-color: #78967b9e; background: #f8faf3; }
.composer:focus-within { border-color: #7c948198; box-shadow: 0 0 0 3px #7c94811c, inset 0 1px 0 #fff8; }
.composer textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 144px; padding: 9px 0; width: 100%; resize: none; border: 0; outline: none; background: transparent; font-size: 15px; line-height: 22px; scrollbar-width: thin; }
.composer textarea::placeholder { color: var(--muted); }
.composer-action {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--action); color: var(--on-action); transition: background .18s, transform .18s;
}
.composer-action:not(:disabled):hover { background: var(--action-hover); transform: translateY(-1px); }
.composer-action:not(:disabled):active { transform: scale(.95); }
.composer-action:disabled { background: #e9ede5; color: var(--muted); }
.composer-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.composer-action.stop svg { fill: currentColor; stroke: none; }
#error:not(:empty), #reaction-error:not(:empty) { padding: 0 3px 8px; font-size: 12px; line-height: 1.5; color: var(--notice); }

dialog {
  width: min(440px, calc(100% - 32px)); padding: 27px; border: 1px solid var(--rim);
  border-radius: 24px; background: var(--panel); color: var(--ink); box-shadow: 0 18px 60px #28322925;
}
dialog::backdrop { background: #2836293b; backdrop-filter: blur(5px); }
dialog h2 { margin: 0; color: var(--heading); font-size: 21px; font-weight: 550; }
dialog p { color: var(--muted); line-height: 1.8; margin: 13px 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.confirm { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--action); color: var(--on-action); }
.confirm:hover:not(:disabled) { background: var(--action-hover); }
.confirm:disabled { background: #e5e9e1; color: var(--muted); }

/* --- 回答反馈与收藏问答 --- */
dialog [role="alert"]:empty { display: none; }
dialog [role="alert"] { font-size: 13px; color: var(--notice); }
#feedback, #favorites { max-height: calc(100dvh - 36px); overscroll-behavior: contain; }
#feedback h2, #favorites h2 { font: 400 21px/1.5 var(--serif); }
.rating-options { display: flex; gap: 10px; margin: 20px 0 14px; }
.rating-options label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; color: var(--muted); background: #ffffff63;
  border: 1px solid var(--line); border-radius: 15px; cursor: pointer;
}
.rating-options input { accent-color: var(--action); margin: 0; width: 16px; height: 16px; }
.rating-options label:has(:checked) { border-color: #809980; color: var(--action); background: #e9efe4; }
.rating-options label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
#feedback-reason {
  display: block; width: 100%; padding: 12px 14px; min-height: 94px; resize: vertical;
  background: #ffffff87; border: 1px solid var(--line); border-radius: 15px; line-height: 1.65;
}
#feedback-reason::placeholder { color: var(--muted); }
#feedback .dialog-actions { margin-top: 18px; }
#feedback .confirm { min-width: 86px; }
#favorites { width: min(580px, 100% - 30px); padding: 0; overflow: hidden; }
.favorites-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px 12px 24px; }
.favorites-header .text-button { width: 44px; }
.favorites-header svg { width: 18px; height: 18px; }
#favorite-list { max-height: min(65dvh, 100dvh - 150px); overflow: auto; padding: 0 24px 10px; overscroll-behavior: contain; scrollbar-width: thin; }
#favorite-list article {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  padding: 12px 0 19px; border-top: 1px solid var(--line); overflow-wrap: anywhere;
}
#favorite-list article > h3 { margin: 0; font-size: 15px; line-height: 1.65; font-weight: 550; color: var(--heading); white-space: pre-wrap; }
#favorite-list .answer { grid-column: 1 / -1; margin-top: 5px; line-height: 1.8; }
#favorite-list .answer p { color: var(--ink); }
#favorite-error { padding-inline: 24px; }

@media (min-width: 881px) and (max-height: 780px) {
  .suggestion:nth-child(1) { left: 6%; }
  .suggestion:nth-child(2) { right: 8%; }
  .suggestion:nth-child(5) { left: 1%; }
  .suggestion:nth-child(6) { right: 0; }
}

@media (max-width: 880px) {
  .app { min-height: 652px; }
  .topbar { min-height: 62px; width: calc(100% - 30px); }
  .brand { gap: 5px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark svg { width: 15px; height: 15px; }
  .brand-name { font-size: 17px; letter-spacing: .03em; }
  .modes { padding: 3px; gap: 2px; }
  .mode { min-height: 32px; min-width: 74px; padding: 3px 8px; font-size: 13px; }
  .mode svg { width: 12px; height: 12px; }
  .header-actions { gap: 4px; }
  .header-actions .text-button { width: 34px; padding-inline: 4px; }
  .header-actions .text-button span { display: none; }
  .profile-button { width: 35px; height: 35px; }
  .profile-button svg { width: 17px; height: 17px; }
  .profile, .history-panel { inset: 56px 14px auto auto; }
  .history-entry { min-height: 46px; }
  .reaction { width: 44px; height: 44px; }
  .answer-tools { margin: 1px 0 -11px -5px; gap: 0; }
  #feedback { padding: 22px 19px; }
  #feedback-reason { font-size: 16px; }
  #favorite-list { padding-inline: 18px; }
  .favorites-header { padding-left: 18px; }
  main { gap: 13px; padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
  body:not(.has-chat) .app { min-height: 675px; }
  body:not(.has-chat) .app.in-trial { min-height: 698px; }
  body:not(.has-chat) .in-trial .scene-art > * { top: calc(var(--landing-center) - clamp(106px, 30vw, 124px)); }
  .in-trial .question-gallery { top: calc(var(--landing-center) + var(--composer-offset) + 122px); }
  .reaction-guide { font-size: 11px; margin-left: 1px; }
  body:not(.has-chat) .composer-dock { width: min(100% - 50px, 440px); }
  main { --landing-center: 40%; --composer-offset: 48px; }
  .hero-copy { width: min(100% - 10px, 416px); }
  h1 { font-size: clamp(30px, 8.1vw, 40px); }
  .intro { max-width: 24em; margin-top: 12px; font-size: 13px; }
  .presence-light, .presence-aura { top: calc(var(--landing-center) - 94px); }
  .presence-light { width: clamp(94px, 29vw, 125px); }
  .presence-aura { width: 170px; }
  .question-gallery { inset: calc(var(--landing-center) + var(--composer-offset) + 108px) 0 auto; }
  .suggestions {
    position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px; width: min(100%, 408px); margin-inline: auto;
  }
  .suggestion:nth-child(n) {
    position: relative; inset: auto; width: 100%; min-height: 47px;
    row-gap: 2px; padding: 5px 8px; border-radius: 12px;
  }
  .suggestion:nth-child(even) { translate: 0 5px; }
  .suggestion:nth-child(3) { width: calc(100% - 5px); justify-self: end; }
  .suggestion-text { font-size: 11.5px; line-height: 1.34; }
  .has-chat .scene-art { transform: scale(1.08); }
  .has-chat main { padding-top: 8px; }
  .conversation { padding: 6px 2px 12px; }
  .message-row { gap: 7px; margin-bottom: 17px; }
  .message-row.assistant { --avatar-size: 26px; padding-right: 5%; }
  .bubble { font-size: 14px; line-height: 1.75; padding: 10px 13px; border-radius: 4px 18px 18px 18px; }
  .user .bubble { border-radius: 18px 18px 4px 18px; }
  .composer { min-height: 52px; padding: 3px 3px 3px 14px; }
  .composer-action { width: 44px; height: 44px; }
  .composer textarea { min-height: 44px; padding: 11px 0; font-size: 16px; }
  body:not(.has-chat) .composer textarea { max-height: 76px; }
}
@media (max-width: 370px) {
  .brand-mark { display: none; }
  .topbar { gap: 3px; }
  .header-actions { gap: 0; }
  .mode { padding-inline: 6px; }
}
@media (max-width: 325px) {
  .topbar { width: calc(100% - 16px); }
  .mode { padding-inline: 4px; }
  .header-actions .text-button { width: 30px; }
}
@media (max-height: 430px) {
  .has-chat .topbar { min-height: 49px; }
  .has-chat main { gap: 5px; padding-top: 4px; padding-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- 修行星图 --- */
body:has(#map-page:not([hidden])) .app {
  min-height: 510px; height: 100dvh; position: relative; isolation: isolate;
  background:
    radial-gradient(ellipse 52% 54% at 12% 91%, #19454285, transparent),
    radial-gradient(ellipse 55% 62% at 92% 30%, #1b365680, transparent),
    linear-gradient(150deg,#08121e,#0c2129 55%,#081422);
  color: #f2f2e6;
}
.app:has(#map-page:not([hidden])) .topbar { color: #e0e9df; z-index: 2; }
.app:has(#map-page:not([hidden])) :is(.brand,.header-actions .text-button) { color: #d7e4d9; }
.app:has(#map-page:not([hidden])) :is(.modes,.profile-button) {
  background: #aec7bd10; border-color: #cee4d532; box-shadow: none;
}
.app:has(#map-page:not([hidden])) :is(.mode:not(.current),.profile-button,.header-actions .text-button):hover { background: #ebfff21a; }
.app:has(#map-page:not([hidden])) .mode.current { background: #e3eadf; }
.app:has(#map-page:not([hidden])) :is(.topbar > button,.mode,.header-actions button):focus-visible,
#map-page button:focus-visible { outline-color: #ffefc9; }
#map-page {
  display: flex; flex-direction: column; align-items: center; flex: 1; min-height: 0;
  padding: clamp(10px,2.5vh,36px) 0 max(23px,env(safe-area-inset-bottom));
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#lesson-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#atlas { position: relative; width: min(94%,1320px); flex: 1; margin: 0 0 12px; }
#atlas button {
  --size: clamp(58px,8.5vmin,94px); --glow: #91dbce;
  position: absolute; left: var(--x); top: var(--y); width: max-content; padding: 0;
  translate: -50% calc(var(--size) / -2); display: flex; align-items: center;
  flex-direction: column; border-radius: 12px; animation: starlight .7s ease-out both;
}
#atlas button:nth-child(even) { --drift: 11s; --delay: -5s; }
#atlas button:nth-child(3n) { --drift: 17s; --delay: -8s; }
#atlas button canvas, #atlas button::before, #atlas [data-topic="diary"]::after {
  animation: drift var(--drift,14s) var(--delay,0s) ease-in-out infinite;
}
#atlas button:enabled:is(:hover,:focus-visible) canvas { animation-play-state: paused; }
@keyframes drift { 0%,100% { translate: 0 -3px; } 50% { translate: 0 3px; } }
@keyframes starlight { from { opacity: 0; } to { opacity: 1; } }
/* --- 四颗星沿星云错落分布，大小体现远近 --- */
#atlas [data-topic="conversion"] { --x:37%; --y:29%; --size:clamp(104px,16vmin,176px); --glow:#f6db99; }
#atlas [data-topic="diary"] { --x:65%; --y:59%; --size:clamp(86px,12.6vmin,144px); --glow:#9be6c4; }
#atlas [data-topic="release"] { --x:14%; --y:64%; --size:clamp(68px,9vmin,108px); --glow:#89edf3; }
#atlas [data-topic="case"] { --x:83%; --y:20%; --size:clamp(62px,8.6vmin,96px); --glow:#a4cffc; }
#atlas button:disabled { opacity:.78; cursor:default; animation:none; }
#atlas [data-topic="case"] span { color:#c2d5eb; }
#atlas [data-topic="release"] span { color:#cef4fa; }
#atlas [data-topic="diary"] span { color:#d3f3df; }
#atlas canvas {
  display: block; width: var(--size); height: var(--size); border-radius: 50%;
  box-shadow: 0 0 12px color-mix(in srgb,var(--glow) 20%,transparent),0 0 60px color-mix(in srgb,var(--glow) 26%,transparent);
  transition: transform .6s var(--ease), filter .55s;
}
#atlas button:first-child canvas {
  box-shadow: 0 0 16px #fff2bc52,0 0 48px #fde2a445,0 0 112px #ffe69e32;
  animation: moonlight 7s ease-in-out infinite;
}
@keyframes moonlight { 0%,100% { opacity: .91; } 50% { opacity: 1; } }
#atlas button::before {
  content:''; position:absolute; top:calc(var(--size) * -.13); width:calc(var(--size) * 1.26);
  aspect-ratio: 1; border: 1px solid transparent;
  border-radius: 50%; transition: scale .65s var(--ease),border-color .4s;
}
#atlas [data-topic="diary"]::after {
  content:''; position:absolute; top:calc(var(--size)*.36); width:calc(var(--size)*1.68); height:calc(var(--size)*.24);
  border: 2px solid #ccf6e7a6; border-top-color:transparent; rotate:-19deg; border-radius:50%;
}
#atlas button:enabled:is(:hover,:focus-visible) canvas { transform: scale(1.1); filter: brightness(1.12); }
#atlas button:enabled:is(:hover,:focus-visible)::before { scale: 1.04; border-color: color-mix(in srgb,var(--glow) 46%,transparent); }
#atlas button span { margin-top: clamp(14px,2.25vh,24px); font: 400 clamp(18px,2.4vmin,24px)/1.38 var(--serif); letter-spacing: .08em; text-shadow: 0 1px 7px #122726; }
#atlas button span svg { width: .81em; height: .81em; margin-left: 5px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }
#atlas button:first-child span { color: #ffefc2; font-size: clamp(22px,3vmin,30px); }
#atlas button small { margin-top: 5px; color: #bbcfc7; font-size: 12px; letter-spacing: .04em; }
/* --- 练习卡 / 星球地平线 --- */
#lesson {
  width: min(500px,100% - 30px); padding: 0; overflow-x: hidden; max-height: 92dvh;
  color: #dce7df; background: linear-gradient(155deg,#0a1724,#102934 66%,#11282c);
  border: 1px solid #e6f2e238; border-radius: 25px; box-shadow: 0 30px 100px #020d16a6;
  scrollbar-width: thin; scrollbar-color: #b3c2b433 transparent; color-scheme: dark;
}
#lesson::backdrop { background: #020d19a6; backdrop-filter: blur(5px); }
#lesson-close { display: grid; place-items: center; position: absolute; z-index: 2; top: 10px; right: 12px; width: 44px; height: 44px; color: #f1f4ed; border-radius: 50%; }
#lesson-close::before { content: ''; position: absolute; inset: 6px; background: #07152293; border-radius: 50%; z-index: -1; }
#lesson-close:hover::before { background: #071522db; }
#lesson button:focus-visible { outline-color: #e4d6b5; }
#horizon { display: block; width: 100%; height: auto; mask-image: linear-gradient(black 50%,transparent 100%); }
.lesson-copy { position: relative; padding: 0 40px 30px; margin-top: -42px; }
#lesson-topic { display: flex; align-items: center; gap: 12px; color: #f1daab; font-size: 13px; letter-spacing: .17em; }
#lesson-topic::after { content: ''; height: 1px; width: 44px; background: linear-gradient(90deg,#dfcca88a,transparent); }
#lesson-title { margin: 13px 0 21px; font: 400 28px/1.5 var(--serif); letter-spacing: .035em; text-wrap: balance; color: #fff8e9; }
#lesson-title:focus { outline: none; }
.lesson-meta, .practice-actions { display: flex; justify-content: space-between; align-items: center; }
#progress { font: 14px Georgia,serif; letter-spacing: .1em; color: #c2d1ca; }
#practice-guide, #sample p { margin: 0; color: #d5e2df; font-size: 15px; letter-spacing: .018em; line-height: 1.85; text-wrap: pretty; }
#practice-guide:empty { display: none; }
#practice-note { margin: 12px 0 0; padding-left: 12px; border-left: 1px solid #ecd7ae66; color: #f3e4c9; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; max-height: 4.95em; overflow-y: auto; }
#sample summary { cursor: pointer; color: #d8c8a9; font-size: 13px; width: fit-content; padding: 11px 0; }
#sample p { font-size: 14px; color: #c0d5d5; border-left: 1px solid #ecd7ae66; padding-left: 13px; margin-bottom: 13px; }
#practice-input {
  display: block; padding: 14px 16px; border-radius: 16px; background: #03131e55; color: #fffcef;
  border: 1px solid #bcd6d336; width: 100%; font-size: 16px; line-height: 1.65; resize: vertical;
}
#practice-input:focus { outline: none; border-color: #f1dda699; box-shadow: 0 0 20px #f9d6760a; }
#practice-input::placeholder { color: #a2bab9; }
.practice-actions { margin-top: 19px; font-size: 14px; }
#advance { border-radius: 24px; background: #eee3c7; color: #172d32; padding: 0 21px; min-height: 44px; margin-left: auto; }
#advance:disabled { color: #acbebe; background: #aac8c91c; }
#advance:not(:disabled):hover { background: #fff4d7; }
#previous { padding: 0; min-height: 44px; color: #c1d4d3; }
#reflection { margin-top: 12px; }
#reflection button { display: block; width: 100%; text-align: left; padding: 12px 0; border-top: 1px solid #dde5d529; color: #f6f0dd; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
#reflection small { display: block; color: #abc4bc; margin-bottom: 4px; }
#reflection button:hover small { color: #f1daab; }
#ask-lesson { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 19px 0 2px; margin-top: 24px; border-top: 1px solid #d2e6e226; font-size: 14px; letter-spacing: .1em; color: #f1dcae; }
#ask-lesson svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .25s; }
#ask-lesson:hover svg { translate: 4px 0; }
@media (max-width: 660px) {
  .topbar { grid-template-columns: 1fr auto 1fr; gap: 4px; width: calc(100% - 22px); }
  .modes { justify-self: center; gap: 0; }
  .mode { min-height: 33px; min-width: 70px; padding: 0 7px; }
  .brand-mark { display: none; }
  .header-actions { gap: 0; }
  .header-actions .text-button { width: 31px; }
  .profile-button { width: 32px; height: 32px; }
  body:has(#map-page:not([hidden])) .app { min-height: 545px; }
  #map-page { padding-top: 16px; padding-bottom: max(18px,env(safe-area-inset-bottom)); }
  #atlas { width: 100%; margin-block: 10px 0; }
  #atlas [data-topic="conversion"] { --x:29%; --y:17%; --size:clamp(74px,min(24vw,13dvh),118px); }
  #atlas [data-topic="diary"] { --x:73%; --y:37%; --size:clamp(62px,min(20vw,11dvh),100px); }
  #atlas [data-topic="release"] { --x:26%; --y:60%; --size:clamp(50px,min(16vw,9dvh),84px); }
  #atlas [data-topic="case"] { --x:71%; --y:77%; --size:clamp(48px,min(15vw,8.5dvh),76px); }
  #atlas button span { font-size: 16px; margin-top: 11px; }
  #atlas button:first-child span { font-size: 20px; }
  #atlas button small { font-size: 11px; letter-spacing: 0; }
  .lesson-copy { padding: 0 24px 23px; margin-top: -26px; }
  #lesson-title { font-size: clamp(20px,5.7vw,26px); margin: 10px 0 16px; }
  #practice-guide { font-size: 14px; }
  #ask-lesson { margin-top: 19px; padding-top: 15px; }
}
@media (max-width: 359px) {
  .topbar { width: calc(100% - 14px); gap: 2px; }
  .mode { min-width: 60px; font-size: 12px; padding-inline: 4px; }
  .header-actions .text-button { width: 27px; }
  .brand-name { font-size: 15px; }
  .has-chat .brand-name { display: none; }
  .has-chat .brand-mark { display: grid; width: 21px; }
  #atlas button small { font-size: 10px; }
  .lesson-copy { padding-inline: 18px; }
}

@media (orientation: landscape) and (max-height: 510px) {
  body:has(#map-page:not([hidden])) .app { min-height: 320px; }
  .app:has(#map-page:not([hidden])) .topbar { min-height: 50px; }
  #map-page { padding: 4px 0 max(8px,env(safe-area-inset-bottom)); }
  #atlas { width: 96%; margin: 0; }
  #atlas [data-topic="conversion"] { --x:36%; --y:26%; --size:20dvh; }
  #atlas [data-topic="diary"] { --x:64%; --y:57%; --size:16dvh; }
  #atlas [data-topic="release"] { --x:13%; --y:60%; --size:12dvh; }
  #atlas [data-topic="case"] { --x:85%; --y:20%; --size:12.5dvh; }
  #atlas button span { font-size:16px; margin-top:8px; }
  #atlas button:first-child span { font-size:19px; }
  #atlas button small { font-size:10px; letter-spacing:0; }
}

/* --- 换算 / 用同一条书写线接住三句自己的话 --- */
#lesson.conversion { width: min(534px,100% - 24px); background: linear-gradient(155deg,#091724,#102934 65%,#11292e); }
.conversion #horizon { height: clamp(96px,17dvh,150px); object-fit: cover; object-position: center 36%; }
.conversion .lesson-copy { margin-top: -29px; padding-bottom: 20px; }
.conversion #lesson-title { margin: 11px 0 10px; font-size: clamp(22px,4.4vw,27px); line-height: 1.45; }
.conversion #progress { line-height: 1.6; color: #b6ccc7; font-size: 12px; }
.conversion #practice-guide, #afterthought { font-size: 15px; line-height: 1.8; color: #cedddc; }
#pencil-hint { margin: 12px 0; color: #afc8c6; font-size: 14px; line-height: 1.65; }
#pencil-hint { color: #f2d8a6; margin-bottom: 0; }
.conversion #practice-note { margin: 17px 0; max-height: 4.95em; color: #f9e4bd; }
.conversion .writing { display: flex; gap: 10px; margin-top: 12px; align-items: center; padding: 6px 0 9px; border-bottom: 1px solid #b7ccca55; }
.conversion .writing:focus-within { border-color: #ecd6a4; }
.conversion #practice-input { flex: 1; min-width: 0; resize: none; padding: 9px 0; border: 0; background: transparent; max-height: 7.8em; border-radius: 0; box-shadow: none; }
.conversion #practice-input::placeholder { color: #9fb9b9; font-size: 15px; }
.conversion .writing #advance { font-size: 14px; flex: none; padding: 0 16px; }
.conversion .practice-actions { margin: 0; }
.conversion:not(.reviewing) .practice-actions { float: left; margin-top: 10px; }
.conversion #ask-lesson { min-height: 44px; width: fit-content; margin: 10px 0 0 auto; padding: 0; border: 0; gap: 5px; letter-spacing: .02em; }
.conversion #ask-lesson svg { width: 20px; }
.conversion .lesson-copy { display: flow-root; }
.conversion #reflection button { padding: 9px 0; }
.conversion #reflection small { margin-bottom: 1px; }
#afterthought { margin: 12px 0; font-size: 14px; }
.conversion.reviewing #advance { margin: 0; background: transparent; padding: 0; color: #b8cdcb; float: left; }
.conversion.reviewing .practice-actions { float: left; margin-top: 10px; }
.conversion.reviewing #ask-lesson { color: #13292d; background: #f2e3c3; border-radius: 24px; padding: 0 17px; }
@media (max-width: 540px), (max-height: 740px) {
  .conversion #horizon { height: clamp(78px,13dvh,114px); }
  .conversion .lesson-copy { margin-top: -15px; padding-bottom: 14px; }
  .conversion #practice-guide, #afterthought { font-size: 14px; line-height: 1.68; }
  .conversion .writing #advance, .conversion.reviewing #ask-lesson { padding-inline: 12px; font-size: 13px; }
  .conversion #ask-lesson { font-size: 13px; }
  .conversion #previous, .conversion.reviewing #advance { font-size: 13px; }
}

/* --- 知识卡 / 同一件事的两次换算 --- */
#lesson.reading { width: min(598px,100% - 24px); overscroll-behavior: contain; }
.reading #horizon { height: clamp(68px,10dvh,106px); object-position: center 35%; }
#method { position: relative; margin-top: -18px; --gutter: clamp(22px,5vw,44px); }
.method-content { padding-inline: var(--gutter); }
.method-kicker { display: flex; align-items: center; color: #edd9ac; letter-spacing: .16em; font-size: 13px; }
.method-kicker span { display: flex; align-items: center; color: #bdd0cd; }
.method-kicker span::before { content: ''; width: 28px; height: 1px; background: #ebdcb468; margin: 0 12px; }
#method-title { color: #fff5da; font: 400 clamp(23px,5vw,30px)/1.45 var(--serif); margin: 10px 0; outline: 0; }
#method p { color: #c3d5d4; margin: 5px 0 0; font-size: 15px; line-height: 1.75; text-wrap: pretty; }
#method ol { padding: 0; list-style: none; margin: 18px 0 0; counter-reset: method; }
#method li { position: relative; padding-left: 35px; margin: 0 0 20px; counter-increment: method; }
#method li::before { content: counter(method,decimal-leading-zero); position: absolute; left: 0; top: 2px; font: italic 18px/1.3 Georgia,serif; color: #e8c98d; }
#method h3 { margin: 0; color: #fff6df; font: 500 18px/1.55 var(--serif); text-wrap: pretty; }
#method .method-voice { color: #f2dbac; margin-top: 5px; }
#method strong { color: #f5e2b8; font-weight: 500; }
#method aside { border-top: 1px solid #d2e6e229; padding-block: 16px 5px; }
#method footer { background: linear-gradient(transparent,#11292e 18%); position: sticky; bottom: 0; padding: 23px var(--gutter) 17px; display: flex; justify-content: center; }
#method button, #read-method { min-height: 44px; color: #ddd8c1; padding: 0; font-size: 14px; }
#read-method { font-size: 13px; margin: -10px 0 -10px auto; }
.conversion #progress { display: none; }
#method #try-method { color: #172d32; background: #f3e2bc; padding: 0 20px; border-radius: 24px; }
#method #try-method:hover { background: #fff2d4; }
#read-method:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 540px), (max-height: 740px) {
  #method { margin-top: -10px; }
  #method p { font-size: 14px; line-height: 1.68; }
  #method li { padding-left: 28px; margin-bottom: 13px; }
  #method h3 { font-size: 16px; }
  #method button { font-size: 13px; }
  #method #try-method { padding-inline: 14px; }
  #method footer { padding-block: 16px 12px; }
}
