* { box-sizing: border-box; }
:root { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif; color: #183b52; background: #fff; line-height: 1.6; }
body { margin: 0; }
[hidden] { display: none !important; }
header { background: #def2ff; border-bottom: 1px solid #b9dfee; min-height: 72px; padding: 16px 5%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 6px; }
nav { display: flex; align-items: center; gap: 18px; }
main { max-width: 1240px; margin: auto; padding: 32px 28px 60px; }
a { color: #176ea5; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button { min-height: 42px; border: 1px solid #abd5e9; border-radius: 6px; padding: 8px 16px; background: #fff; color: #176b9c; cursor: pointer; }
button:hover { background: #edf8ff; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #35a7e5; outline-offset: 2px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { font-size: 11px; font-weight: 700; color: #1c85b4; margin: 0; }
h1 { font-size: 28px; margin: 4px 0 20px; }
h2 { font-size: 18px; margin: 0 0 16px; }
h3 { font-size: 15px; margin: 24px 0 10px; }
.badge { font-size: 12px; color: #18745f; white-space: nowrap; }
.status-strip { display: flex; align-items: center; gap: 28px; padding: 16px 0; border-block: 1px solid #dce9f0; }
.status-strip div { display: grid; gap: 2px; min-width: 0; }
.status-strip span { color: #607a8d; font-size: 12px; }
.status-strip strong { font-size: 14px; overflow-wrap: anywhere; }
.status-strip button { margin-left: auto; }
.notice { background: #f0f8fc; border-left: 3px solid #2b94cb; padding: 16px 20px; margin: 20px 0; font-size: 14px; }
.notice ol { margin: 0 0 10px; padding-left: 24px; }
#error { background: #fff1ee; border-left: 3px solid #c3583d; padding: 14px; color: #983d2e; overflow-wrap: anywhere; }
#busy { color: #147a9b; }
.workspace { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.65fr); gap: 36px; margin-top: 28px; }
.pages { border-right: 1px solid #dce9f0; padding-right: 28px; min-width: 0; }
.qa { min-width: 0; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #bbd9e9; border-radius: 6px; padding: 10px 12px; color: #183b52; background: #fcfeff; }
input:focus, textarea:focus { outline: 2px solid #87cff5; }
textarea { resize: vertical; min-height: 88px; max-height: 240px; }
.input-row, .actions { display: flex; gap: 10px; }
.input-row button { flex-shrink: 0; }
.actions { flex-wrap: wrap; margin-top: 14px; }
#ask, #search { background: #168dcc; color: #fff; border-color: #168dcc; }
.secondary { background: #f6fbfe; }
#recent { margin-top: 12px; width: 100%; }
#pageList { list-style: none; padding: 0; margin: 18px 0; }
#pageList li { border-bottom: 1px solid #e2edf4; padding: 12px 0; }
#pageList button { width: 100%; text-align: left; padding: 0; border: 0; border-radius: 0; overflow-wrap: anywhere; font-weight: 600; }
#pageList small { display: block; color: #6d8595; }
.muted { color: #6d8595; font-size: 13px; }
#selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 10px 0; border-block: 1px solid #dce9f0; }
#selectedTitle { overflow-wrap: anywhere; min-width: 0; }
#clear { flex-shrink: 0; font-size: 12px; }
#answer { white-space: pre-wrap; overflow-wrap: anywhere; }
.trace { border-top: 1px solid #dce9f0; margin-top: 30px; }
#trace { padding-left: 22px; }
#trace li { margin-bottom: 14px; overflow-wrap: anywhere; }
summary { cursor: pointer; font-size: 13px; color: #267ba5; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow-y: auto; font-size: 12px; background: #f5f9fb; padding: 12px; }
@media (max-width: 760px) { main { padding: 24px 18px; } .workspace { grid-template-columns: 1fr; gap: 28px; } .pages { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #dce9f0; } .heading { flex-wrap: wrap; gap: 0; } h1 { font-size: 25px; } .badge { margin-bottom: 18px; } .status-strip { flex-wrap: wrap; gap: 14px; } nav { gap: 10px; font-size: 13px; } }
