:root {
  color-scheme: dark;
  --ink: #e7f0f5;
  --muted: #a9bbc6;
  --navy: #101e2e;
  --panel: #172b3e;
  --line: #294257;
  --mint: #6ee7d7;
  --red: #ffb4bd;
  font-family: "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 82% 5%, #203f58 0, #101e2e 35rem, #0c1622 100%);
}
.shell { width: min(800px, calc(100% - 48px)); margin: 42px auto 64px; }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: .02em; }
.version { display: inline-block; margin-left: 10px; padding: 3px 8px; border: 1px solid #4f6d80; border-radius: 999px; color: #9be9df; font-size: .72rem; font-weight: 700; vertical-align: middle; letter-spacing: .06em; }
.intro { margin: 0; color: var(--muted); line-height: 1.6; }
.pill { flex: none; border: 1px solid #416178; border-radius: 999px; color: var(--mint); font-size: .82rem; padding: 7px 11px; }
.card { padding: 24px; border: 1px solid #2b4860; border-radius: 16px; background: rgba(23, 43, 62, .86); box-shadow: 0 16px 44px #02070d55; }
label { display: block; margin: 14px 0 7px; font-size: .94rem; font-weight: 700; }
textarea, select, input, button { font: inherit; }
textarea, select, input[type="date"] { width: 100%; padding: 11px 12px; border: 1px solid #456077; border-radius: 9px; background: #0f2031; color: var(--ink); font-size: 1rem; }
textarea { min-height: 95px; resize: vertical; line-height: 1.5; }
textarea:focus, select:focus, input:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.hint { margin: 7px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.field-row { max-width: 260px; margin-top: 15px; }
.date-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 12px; }
button { border: 0; border-radius: 9px; cursor: pointer; font-weight: 800; }
button:hover { filter: brightness(1.08); }
.primary { width: 100%; margin-top: 22px; padding: 12px 16px; background: var(--mint); color: #08202a; }
.status { min-height: 1.5em; margin: 14px 0 0; color: var(--mint); font-size: .88rem; line-height: 1.5; }
.status.error { color: var(--red); }
.result { margin-top: 20px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 1.12rem; }
#copy-button { padding: 9px 13px; background: #dff6f1; color: #075c57; white-space: nowrap; }
#fund-list { margin: 18px 0; padding-left: 24px; color: var(--muted); line-height: 1.8; }
#result-link { display: block; overflow-wrap: anywhere; padding: 14px; border: 1px solid #456077; border-radius: 9px; background: #0f2031; color: var(--mint); line-height: 1.6; }
footer { margin-top: 25px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
footer p { margin: 4px 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 800px); margin-top: 28px; }
  header { display: block; }
  .pill { display: inline-block; margin-top: 14px; }
  .date-row { grid-template-columns: 1fr; }
}

