:root { color-scheme: light; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
body { margin: 0; min-height: 100vh; background: #f5f7fb; color: #172033; }
main { box-sizing: border-box; max-width: 640px; min-height: 100vh; margin: auto; padding: 7vh 24px 32px; display: flex; flex-direction: column; }
#runtime { margin-top: auto; padding-top: 42px; color: #63708a; font-size: .85rem; text-align: center; }
button { width: 100%; min-height: 64px; border: 0; border-radius: 16px; background: #1769e0; color: white; font-size: 1.2rem; font-weight: 700; box-shadow: 0 6px 18px #1769e055; }
#takePhoto { display: block; width: min(72vw, 310px); min-height: 0; aspect-ratio: 1; margin: 0 auto 42px; border-radius: 50%; font-size: 1.55rem; box-shadow: 0 14px 32px #1769e066; }
button:disabled { opacity: .65; }
#status { min-height: 24px; margin: 12px 0; color: #526078; text-align: center; opacity: 0; transition: opacity .35s ease; }
#status.visible { opacity: 1; }
.history { margin-top: 36px; }
.history-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.history-header a { color: #1769e0; font-size: .9rem; }
.record { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; padding: 14px; background: white; border-radius: 12px; box-shadow: 0 2px 10px #1f2a4415; }
.record-info { display: flex; min-width: 0; align-items: center; gap: 10px; }
.record strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record small { flex: none; color: #63708a; white-space: nowrap; }
.record > button { flex: none; }
.record button, .secondary { width: auto; min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: .9rem; box-shadow: none; }
.failed { border-left: 4px solid #c23934; }
.empty { color: #63708a; text-align: center; }
#pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
#pagination button { width: auto; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: .9rem; box-shadow: none; }
#pageInfo { color: #63708a; font-size: .9rem; }
dialog { width: min(90vw, 600px); border: 0; border-radius: 16px; box-shadow: 0 16px 50px #0005; }
dialog::backdrop { background: #11182788; }
dialog article { position: relative; padding: 8px; }
#detailImage { display: block; max-width: 100%; max-height: 32vh; margin: 0 auto 16px; border-radius: 10px; }
.close { position: absolute; right: 0; top: 0; width: 36px; min-height: 36px; padding: 0; background: transparent; color: #172033; box-shadow: none; font-size: 1.8rem; }
.secondary { margin-top: 18px; }
.result-divider { margin: 16px 0; border: 0; border-top: 1px solid #dce2eb; }
h2 { margin: 0 0 12px; font-size: 1rem; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; }
