* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, Segoe UI, sans-serif; color: #1b1f24; background: #f6f7f9; }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #16324f; color: #fff; }
header h1 { font-size: 18px; margin: 0; }
button { cursor: pointer; padding: 6px 12px; border: 1px solid #16324f; background: #fff; color: #16324f; border-radius: 4px; }
button:hover { background: #e8eef5; }
main { padding: 16px 20px; }
#msg { color: #b00020; }
#crumbs { margin: 8px 0; }
#crumbs a { color: #16324f; cursor: pointer; text-decoration: underline; }
.split { display: flex; gap: 16px; align-items: flex-start; }
.left { flex: 1; min-width: 0; }
#preview { flex: 1.2; min-width: 0; background: #fff; border: 1px solid #d5d9de; border-radius: 4px; padding: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #e3e6ea; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #eef3f8; }
#pvHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; word-break: break-all; }
#pvBody iframe { width: 100%; height: 70vh; border: 0; }
#pvBody pre { max-height: 70vh; overflow: auto; background: #f6f7f9; padding: 8px; white-space: pre-wrap; word-break: break-word; }
#pvBody .sheet { max-height: 62vh; overflow: auto; }
#pvBody .tabs button { margin: 0 4px 6px 0; }
#pvBody .tabs button.active { background: #16324f; color: #fff; }
.note { color: #5a6570; font-size: 13px; }
