:root {
  --bg: #020c19;
  --surface: rgba(5, 21, 36, 0.78);
  --surface-strong: rgba(6, 25, 42, 0.94);
  --border: rgba(25, 211, 237, 0.54);
  --border-soft: rgba(34, 105, 145, 0.66);
  --text: #f5f8fc;
  --muted: #aabbd1;
  --primary: #1ee681;
  --primary-strong: #10c96b;
  --cyan: #17dae4;
  --danger: #ff6066;
  --up: #21e783;
  --down: #ff6066;
  --radius: 14px;
  --stock-diagnosis-background-opacity: .68;
  --stock-diagnosis-background-opacity-mobile: .54;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse 60% 48% at 50% 40%, rgba(7, 36, 61, 0.76), transparent 72%), var(--bg);
}
button, input { font: inherit; }
a { color: var(--cyan); }
[hidden] { display: none !important; }

.simple-page { min-height: 100vh; padding: 92px 24px 36px; }
.query-page { display: flex; flex-direction: column; align-items: center; }
.query-main { width: min(100%, 680px); }
/* Fixed corner controls — same vertical band as home history icon */
.page-corner {
  position: fixed;
  z-index: 50;
  top: max(16px, env(safe-area-inset-top));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.page-corner-left { left: max(16px, env(safe-area-inset-left)); }
.page-corner-right { right: max(16px, env(safe-area-inset-right)); }
.history-entry {
  position: fixed;
  z-index: 50;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--primary);
  background: linear-gradient(120deg, rgba(7, 29, 49, .92), rgba(3, 15, 28, .88));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(0, 0, 0, .22);
  text-decoration: none;
  transition: .16s ease;
}
.history-entry:hover { filter: brightness(1.1); transform: translateY(-1px); border-color: var(--cyan); }
.history-entry-icon { display: block; }
.language-toggle { position: fixed; z-index: 51; top: max(16px, env(safe-area-inset-top)); right: max(78px, calc(env(safe-area-inset-right) + 78px)); display: inline-flex; align-items: center; gap: 2px; min-height: 48px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(120deg, rgba(7, 29, 49, .92), rgba(3, 15, 28, .88)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(0, 0, 0, .22); }
.language-option { min-width: 31px; min-height: 34px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800; cursor: pointer; }
.language-option:hover, .language-option.is-active { background: rgba(30, 230, 129, .16); color: var(--primary); }
.topbar .language-toggle { position: static; min-height: 36px; padding: 2px; border-radius: 10px; box-shadow: none; }
.topbar .language-option { min-height: 28px; min-width: 30px; }
.overlay-top .language-toggle { position: static; min-height: 36px; padding: 2px; border-radius: 10px; box-shadow: none; }
.overlay-top .language-option { min-height: 28px; min-width: 30px; }
.history-page .language-toggle { right: max(16px, env(safe-area-inset-right)); }
.history-page .page-corner-right { top: 72px; right: max(16px, env(safe-area-inset-right)); }
.history-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--primary);
  color: #042214;
  font-size: .7rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(30, 230, 129, .35);
}
.history-list { display: grid; gap: 14px; }
.history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 105px;
  padding: 18px 22px;
  margin-bottom: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: .16s ease;
}
.history-card:hover { border-color: var(--cyan); transform: translateY(-1px); }
.history-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.history-card-body { min-width: 0; flex: 1; }
.history-card-body strong { display: block; font-size: 1.15rem; }
.history-card-name {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-card-body .muted { margin-top: 4px; font-size: .86rem; }
.history-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
.history-card-actions .resume-btn { min-width: 112px; min-height: 48px; }
.history-delete { font-size: .85rem; text-align: center; opacity: .85; }
.history-empty {
  padding: 36px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(7, 29, 49, .9), rgba(3, 15, 28, .8));
  text-align: center;
}
.history-empty-title { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; }
.history-empty .muted { margin: 0 0 24px; }
.history-empty .analyze-btn { display: inline-flex; width: auto; min-width: min(100%, 280px); padding: 0 28px; }
.brand-hero { position: relative; isolation: isolate; text-align: center; margin: 0 0 53px; }
.brand-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -104px;
  left: 50%;
  width: min(calc(100vw - 32px), 900px);
  height: 332px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(2, 12, 25, .12) 0%, rgba(2, 12, 25, .74) 72%, var(--bg) 100%),
    image-set(
      url("../assets/stock-diagnosis-terminal.webp") type("image/webp"),
      url("../assets/stock-diagnosis-terminal.jpg") type("image/jpeg")
    ) center top / 100% auto no-repeat;
  opacity: var(--stock-diagnosis-background-opacity);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 40%, #000 32%, transparent 82%);
  mask-image: radial-gradient(ellipse 72% 76% at 50% 40%, #000 32%, transparent 82%);
}
.bot-mark { width: 70px; height: 58px; margin: 0 auto 20px; position: relative; border: 4px solid var(--primary); border-radius: 13px; box-shadow: 0 0 24px rgba(30, 230, 129, .3); }
.bot-mark::before, .bot-mark::after { content: ""; position: absolute; width: 13px; height: 13px; top: 20px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.bot-mark::before { left: 14px; }.bot-mark::after { right: 14px; }
.bot-mark i, .bot-mark i::before { position: absolute; display: block; content: ""; background: var(--primary); }
.bot-mark i { width: 22px; height: 4px; left: 20px; bottom: 11px; border-radius: 4px; }
.bot-mark i::before { width: 4px; height: 15px; left: 8px; bottom: 42px; box-shadow: -22px 0 0 var(--primary), 22px 0 0 var(--primary); }
.brand-hero h1 { margin: 0; color: var(--primary); font-size: clamp(2.45rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: 0; text-shadow: 0 3px 0 rgba(0, 48, 32, .8); }
.brand-hero p { margin: 18px 0 0; color: #e6eaf1; font-size: clamp(1.05rem, 2vw, 1.4rem); }

.resume-banner, .history-card, .input, .email-panel, .phase-box, .card { border: 1px solid var(--border); background: linear-gradient(120deg, rgba(7, 29, 49, .9), rgba(3, 15, 28, .8)); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 16px 34px rgba(0, 0, 0, .16); }
.resume-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 105px; padding: 20px 28px; margin-bottom: 30px; border-radius: var(--radius); }
.resume-banner strong { display: block; font-size: 1.35rem; }.resume-banner .muted { margin-top: 5px; }
.search-wrap { position: relative; z-index: 1; isolation: isolate; }
.query-page .search-wrap::before { content: ""; position: absolute; z-index: -1; inset: -2px; border: 1px solid rgba(23, 218, 228, .58); border-radius: calc(var(--radius) + 2px); box-shadow: 0 0 0 1px rgba(30, 230, 129, .1), 0 0 24px rgba(23, 218, 228, .13), inset 0 0 18px rgba(23, 218, 228, .06); opacity: .72; pointer-events: none; transition: .2s ease; }
.query-page .search-wrap::after { content: ""; position: absolute; z-index: 2; left: 22px; right: 22px; top: 13px; height: 1px; border-radius: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(30, 230, 129, .42); opacity: .42; pointer-events: none; animation: search-scan 4.8s ease-in-out infinite; }
.query-page .search-wrap:focus-within::before { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(30, 230, 129, .3), 0 0 30px rgba(30, 230, 129, .28), inset 0 0 22px rgba(23, 218, 228, .1); opacity: 1; }
.query-page .search-wrap:focus-within::after { background: var(--primary); box-shadow: 0 0 12px var(--primary), 0 0 26px rgba(30, 230, 129, .58); animation-duration: 1.7s; }
.input { width: 100%; height: 82px; padding: 0 26px; border-radius: var(--radius); color: var(--text); font-size: 1.35rem; outline: none; }
.input::placeholder { color: #bdc5d1; opacity: 1; }.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(23, 218, 228, .14); }
.query-bottom { margin-top: 29px; }.query-bottom .error-text { min-height: 1.2em; margin: 0 0 10px; }.query-bottom #index-hint { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; color: #fff; font-size: 1.12rem; font-weight: 800; cursor: pointer; text-decoration: none; transition: .16s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary, .btn-tg { background: linear-gradient(120deg, var(--primary), var(--primary-strong)); box-shadow: 0 10px 22px rgba(10, 201, 105, .16); }.btn-secondary { border-color: var(--border-soft); background: rgba(255,255,255,.035); }.btn-fb { background: #1266dc; }
.resume-btn { min-width: 130px; min-height: 54px; }.analyze-btn { position: relative; width: 100%; min-height: 74px; overflow: hidden; border-color: rgba(151, 255, 208, .52); box-shadow: 0 10px 22px rgba(10, 201, 105, .16), inset 0 1px rgba(255,255,255,.24); font-size: 1.35rem; }.analyze-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -36%; width: 24%; background: rgba(255,255,255,.27); transform: skewX(-22deg); animation: button-sweep 5.2s ease-in-out infinite; pointer-events: none; }.analyze-btn span { display: none; }
.muted { color: var(--muted); }.error-text { color: var(--danger); font-size: .88rem; }.disclaimer { margin: 58px auto 0; max-width: 620px; color: #c7d0de; text-align: center; line-height: 1.55; font-size: .92rem; }

.ac-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 7px); max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #071a2b; box-shadow: 0 18px 40px rgba(0,0,0,.38); }
.ac-item { display: flex; width: 100%; min-height: 50px; gap: 10px; align-items: center; padding: 10px 14px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }.ac-item:hover, .ac-item.active { background: rgba(30, 230, 129, .11); }.ac-market { padding: 2px 6px; border-radius: 5px; color: var(--primary); background: rgba(30,230,129,.12); font-size: .7rem; font-weight: 800; }.ac-main { flex: 1; min-width: 0; }.ac-name, .ac-code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ac-name { font-weight: 700; }.ac-code, .ac-match { color: var(--muted); font-size: .74rem; }

.overlay { position: fixed; z-index: 100; inset: 0; overflow: auto; background: radial-gradient(ellipse 60% 45% at 50% 38%, rgba(5, 35, 57, .92), transparent 74%), #020c19; }
.overlay-inner { width: min(100%, 720px); min-height: 100%; margin: 0 auto; padding: 40px 24px 56px; }.overlay-top { display: flex; justify-content: space-between; align-items: center; }.linkish { padding: 5px 0; border: 0; background: transparent; color: var(--cyan); cursor: pointer; font-size: 1rem; text-decoration: none; }
.progress-hero { padding: 43px 0 27px; text-align: center; }.progress-bot { width: 58px; height: 48px; margin: 0 auto 20px; transform-origin: center bottom; animation: robot-work 1.7s ease-in-out infinite; }.progress-bot::before, .progress-bot::after { top: 16px; width: 11px; height: 11px; animation: robot-blink 3.4s ease-in-out infinite; }.progress-bot::before { left: 11px; }.progress-bot::after { right: 11px; }.progress-bot i { width: 18px; left: 16px; bottom: 8px; }.progress-bot i::before { bottom: 34px; height: 12px; }.progress-hero h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }.progress-hero h2::after { content: attr(data-subtitle); display: block; margin-top: 13px; color: var(--muted); font-size: 1.05rem; font-weight: 400; }.progress-hero #progress-code { margin-top: 8px; color: #d1daea; }
.progress-bar-track { height: 10px; margin: 8px 0 8px; overflow: hidden; border-radius: 99px; background: #0d263b; }.progress-bar-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #18e485, #20d99c); transition: width .35s ease; }.progress-pct { margin-bottom: 14px; text-align: right; font-size: 1.1rem; font-weight: 800; }
.phase-box { position: relative; min-height: 104px; padding: 22px 72px 20px 26px; border-radius: var(--radius); }.phase-box::after { content: ""; position: absolute; right: 25px; top: 35px; width: 25px; height: 25px; border: 5px solid var(--cyan); border-left-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }.phase-box.is-complete::after { content: "\2713"; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--primary); color: #042116; font-size: 1.45rem; font-weight: 900; line-height: 1; animation: none; }.phase-box .muted { font-size: 1rem !important; }.phase-box #progress-phase { margin-top: 7px !important; color: var(--primary); font-size: 1.22rem; font-weight: 700; }
.email-panel { margin-top: 20px; padding: 24px; border-radius: var(--radius); }.email-panel h3 { margin: 0 0 10px; font-size: 1.35rem; }.email-panel .input { height: 68px; margin-top: 18px; font-size: 1.1rem; }.email-panel .btn { width: 100%; margin-top: 16px; }.email-panel.is-complete { border-color: rgba(30, 230, 129, .45); }.email-panel.is-complete .input, .email-panel.is-complete .btn, .email-panel.is-complete .privacy, .email-panel.is-complete > .muted:not(#email-status) { display: none; }.email-panel.is-complete #email-status { color: var(--primary); font-weight: 700; }.privacy { margin: 16px 0 0; color: var(--muted); font-size: .84rem; }.force-email { border-color: rgba(255, 190, 59, .6); }
#view-report-btn, #retry-btn { width: 100%; margin-top: 20px; }.overlay #progress-main::after { content: ""; display: none; }

.report-page { width: min(100%, 620px); margin: 0 auto; padding: 26px 20px 36px; }.topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(32, 146, 195, .38); }.topbar-actions { display: inline-flex; align-items: center; gap: 12px; }.report-live { display: none; }.report-page .linkish { font-size: .95rem; }.card { margin-top: 12px; padding: 20px; border-radius: 12px; }.report-header { overflow: hidden; }.report-kicker { display: none; }.rh-row { display: flex; justify-content: space-between; gap: 12px; }.rh-name { margin: 0; font-size: clamp(1.55rem, 6vw, 2rem); }.rh-code { margin-top: 3px; color: var(--muted); }.rh-price { text-align: right; }.rh-px { font-size: 1.5rem; font-weight: 800; }.rh-ch { margin-top: 4px; font-weight: 700; }.rh-price.up { color: var(--up); }.rh-price.down { color: var(--down); }.rh-meta { margin-top: 13px; font-size: .82rem; }.insight { margin-top: 16px; }.insight h2, .card h2 { margin: 0 0 9px; font-size: 1rem; }.insight p { margin: 0; font-size: 1rem; line-height: 1.48; white-space: pre-wrap; }.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }.grid-2 .card { margin-top: 0; }.mini-label { color: var(--muted); font-size: .88rem; }.mini-val { margin-top: 7px; color: var(--primary); font-size: 1.04rem; font-weight: 800; }.chips { display: flex; flex-wrap: wrap; gap: 8px; }.chip { padding: 5px 10px; border-radius: 99px; background: rgba(46, 42, 131, .35); color: #e6eaff; font-size: .84rem; }.gauge { display: grid; grid-template-columns: 1fr; }.gauge-score { text-align: center; font-size: 2rem; font-weight: 800; }.gauge-bar { height: 8px; margin: 10px 0 7px; overflow: hidden; border-radius: 6px; background: #263446; }.gauge-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4d50, #ffd02d 50%, #20e783); }.level-list { display: grid; gap: 9px; }.level { padding: 11px 12px; border-left: 4px solid; border-radius: 8px; }.level-label { font-size: .78rem; font-weight: 800; }.level-text { margin-top: 4px; line-height: 1.4; }.level-ideal { border-color: #20e783; background: rgba(32,231,131,.09); }.level-ideal .level-label { color: #20e783; }.level-secondary { border-color: #24d9f4; background: rgba(36,217,244,.09); }.level-secondary .level-label { color: #24d9f4; }.level-stop { border-color: #ff565b; background: rgba(255,86,91,.09); }.level-stop .level-label { color: #ff7378; }.level-take { border-color: #ffca2c; background: rgba(255,202,44,.09); }.level-take .level-label { color: #ffcf40; }.cta-line { margin: 12px 0 0; }.follow p { margin: 0; }.follow .btn { width: 100%; margin-top: 12px; min-height: 48px; }.news-item { display: block; padding: 11px 0; border-top: 1px solid var(--border-soft); color: inherit; text-decoration: none; }.news-item:first-child { border-top: 0; }.news-title { font-weight: 700; }.news-src { margin-top: 5px; font-size: .78rem; } #report-status { margin: 48px 0; color: var(--muted); text-align: center; }
.level-list { gap: 9px; }
.level { display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 74px; padding: 0; overflow: hidden; border: 1px solid; border-radius: 8px; }
.level-icon { position: relative; display: grid; place-items: center; border-right: 1px solid currentColor; color: inherit; font-size: 1.7rem; font-weight: 800; }
.level-icon::before { line-height: 1; }.level-icon-ideal::before { content: "◎"; }.level-icon-secondary::before { content: "⌖"; }.level-icon-stop::before { content: "!"; width: 22px; height: 27px; padding-top: 2px; border: 2px solid currentColor; border-radius: 11px 11px 13px 13px; font-size: 1rem; text-align: center; }.level-icon-profit::before { content: "⚑"; }
.level-content { min-width: 0; padding: 10px 12px; }.level-ideal { color: #20e783; }.level-secondary { color: #24d9f4; }.level-stop { color: #ff7378; }.level-take { color: #ffcf40; }.level-content { color: var(--text); }
.soq-toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; max-width: 90%; padding: 10px 14px; border-radius: 8px; background: #162537; color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .2s ease; }.soq-toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes search-scan { 0%, 16%, 100% { transform: translateY(0); opacity: .18; } 40%, 56% { transform: translateY(54px); opacity: .72; } 72% { transform: translateY(54px); opacity: .18; } }
@keyframes button-sweep { 0%, 55%, 100% { transform: translateX(0) skewX(-22deg); opacity: 0; } 63% { opacity: .72; } 79% { transform: translateX(560%) skewX(-22deg); opacity: 0; } }
@keyframes robot-work { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-5px) rotate(-2deg); } 68% { transform: translateY(1px) rotate(2deg); } }
@keyframes robot-blink { 0%, 43%, 49%, 100% { transform: scaleY(1); opacity: 1; } 46% { transform: scaleY(.14); opacity: .72; } }
@keyframes home-bot-greet { 0%, 62%, 100% { transform: translateY(0) rotate(0) scale(var(--home-bot-scale, 1)); } 9% { transform: translate(-2px, -6px) rotate(-5deg) scale(var(--home-bot-scale, 1)); } 18% { transform: translate(3px, -3px) rotate(5deg) scale(var(--home-bot-scale, 1)); } 27% { transform: translate(-1px, -5px) rotate(-3deg) scale(var(--home-bot-scale, 1)); } 36% { transform: translate(1px, 1px) rotate(2deg) scale(var(--home-bot-scale, 1)); } 45% { transform: translateY(-1px) rotate(0) scale(var(--home-bot-scale, 1)); } }
@keyframes home-bot-glow { 0%, 62%, 100% { box-shadow: 0 0 24px rgba(30, 230, 129, .3); } 20% { box-shadow: 0 0 34px rgba(30, 230, 129, .62); } 42% { box-shadow: 0 0 28px rgba(30, 230, 129, .42); } }
@keyframes home-bot-blink { 0%, 15%, 18%, 52%, 54%, 100% { transform: scaleY(1); opacity: 1; } 16%, 53% { transform: scaleY(.12); opacity: .72; } }
@keyframes home-bot-antenna { 0%, 62%, 100% { transform: rotate(0); } 10% { transform: rotate(-9deg); } 19% { transform: rotate(9deg); } 28% { transform: rotate(-6deg); } 37% { transform: rotate(4deg); } }
.brand-hero .bot-mark { transform-origin: center bottom; animation: home-bot-greet 4s ease-in-out infinite, home-bot-glow 4s ease-in-out infinite; }
.brand-hero .bot-mark::before, .brand-hero .bot-mark::after { transform-origin: center; animation: home-bot-blink 4s ease-in-out infinite; }
.brand-hero .bot-mark i::before { transform-origin: center bottom; animation: home-bot-antenna 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .progress-bot, .progress-bot::before, .progress-bot::after, .brand-hero .bot-mark, .brand-hero .bot-mark::before, .brand-hero .bot-mark::after, .brand-hero .bot-mark i::before, .query-page .search-wrap::after, .analyze-btn::after { animation: none; } }
@media (max-width: 600px) {
  .simple-page { padding: 78px 22px 30px; }
  .page-corner { top: max(12px, env(safe-area-inset-top)); min-height: 44px; font-size: .95rem; }
  .page-corner-left { left: max(12px, env(safe-area-inset-left)); }
  .page-corner-right { right: max(12px, env(safe-area-inset-right)); }
  .history-entry { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 44px; height: 44px; }
  .language-toggle { top: max(12px, env(safe-area-inset-top)); right: max(68px, calc(env(safe-area-inset-right) + 68px)); min-height: 44px; }
  .language-option { min-height: 30px; min-width: 29px; }
  .history-page .language-toggle { right: max(12px, env(safe-area-inset-right)); }
  .history-page .page-corner-right { top: max(64px, calc(env(safe-area-inset-top) + 52px)); right: max(12px, env(safe-area-inset-right)); }
  .brand-hero { margin-bottom: 54px; }
  .brand-hero::before { top: -82px; left: 50%; width: calc(100vw - 24px); height: 306px; opacity: var(--stock-diagnosis-background-opacity-mobile); }
  .bot-mark { transform: scale(1.06); margin-bottom: 28px; }
  .brand-hero .bot-mark { --home-bot-scale: 1.06; }
  .progress-bot { margin-bottom: 20px; transform: none; }
  .brand-hero h1 { font-size: 2.48rem; }
  .brand-hero p { margin-top: 22px; font-size: 1.03rem; }
  .resume-banner, .history-card { min-height: 112px; padding: 18px; margin-bottom: 0; }
  .resume-banner strong, .history-card-body strong { font-size: 1.1rem; }
  .resume-btn { min-width: 104px; }
  .history-card { gap: 12px; }
  .history-card-actions .resume-btn { min-width: 100px; min-height: 46px; font-size: 1rem; }
  .input { height: 74px; padding: 0 18px; font-size: .94rem; }
  .analyze-btn { min-height: 66px; font-size: 1.18rem; }
  .disclaimer { margin-top: 78px; font-size: .86rem; }
  .overlay-inner { padding: 28px 20px 44px; }
  .progress-hero { padding-top: 45px; }
  .progress-hero h2 { font-size: 1.7rem; }
  .progress-hero h2::after { font-size: .94rem; }
  .email-panel { padding: 19px; }
  .report-page { padding: 21px 14px 30px; }
  .card { padding: 18px 15px; }
  .insight p { font-size: .98rem; }
}
