:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #292426; background: #fff8f5; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% 0%, #ffe5e8 0, transparent 32rem), #fff8f5; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(760px, 100%); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 18px 48px; }
.hero { padding: 24px 6px 18px; }
.eyebrow { color: #c83b4a; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 0 0 8px; text-transform: uppercase; }
h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -.05em; margin: 0; }
.subhead { color: #776e6f; line-height: 1.6; margin: 12px 0 0; }
.card { background: rgba(255,255,255,.9); border: 1px solid #f0dfdd; border-radius: 18px; box-shadow: 0 10px 32px rgba(115,48,54,.07); padding: 18px; }
.access-card { margin-bottom: 14px; }
.access-card label, .section-header h2 { font-size: 16px; font-weight: 750; }
.access-row, .query-row { display: flex; gap: 10px; margin-top: 10px; }
input { width: 100%; border: 1px solid #e4d5d3; border-radius: 12px; padding: 13px 14px; color: #332d2f; background: #fff; outline: none; }
input:focus { border-color: #e94454; box-shadow: 0 0 0 4px rgba(233,68,84,.12); }
button { border: 0; border-radius: 12px; padding: 12px 16px; background: #e94454; color: white; font-weight: 700; white-space: nowrap; }
button:hover { background: #cf3546; }
.muted { color: #93898a; font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-header h2 { margin: 0; }
.status { color: #8b8182; font-size: 12px; }
.status.ready { color: #33835d; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips button { background: #fff0f0; color: #b52e3e; font-size: 13px; padding: 8px 10px; }
.results { margin-top: 14px; }
.empty { text-align: center; color: #716768; padding: 34px 18px; }
.empty p { color: #93898a; line-height: 1.6; margin: 8px 0 0; }
.result { margin-bottom: 12px; }
.result h3 { font-size: 17px; line-height: 1.4; margin: 8px 0; }
.result p { color: #675e5f; font-size: 14px; line-height: 1.7; margin: 0; white-space: pre-line; }
.tag { background: #f7eeee; border-radius: 99px; color: #a9404b; display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 8px; }
.result-footer { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; }
.result-footer small { color: #9b9192; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-footer button { background: transparent; color: #d53d4d; padding: 2px; }
dialog { border: 0; border-radius: 20px; box-shadow: 0 24px 80px rgba(35,20,22,.3); max-width: min(760px, calc(100% - 28px)); max-height: min(82vh, 900px); padding: 0; }
dialog::backdrop { background: rgba(45,31,33,.35); }
dialog article { padding: 24px; position: relative; }
.close { background: #f6eded; color: #7a6a6c; font-size: 24px; line-height: 1; padding: 3px 10px; position: absolute; right: 14px; top: 14px; }
dialog h2 { font-size: 21px; line-height: 1.4; margin: 6px 38px 18px 0; }
dialog pre { color: #4b4244; font-family: inherit; font-size: 14px; line-height: 1.75; margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
@media (max-width: 430px) { .shell { padding-left: 14px; padding-right: 14px; } .query-row button { padding: 12px 13px; } }
