body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 760px; margin: 40px auto; padding: 0 20px; color: #222; line-height: 1.5; }
h1 { font-size: 1.4rem; }
.promise { background: #eef6ff; border: 1px solid #cfe3fb; padding: 14px 16px; border-radius: 6px; margin-bottom: 20px; }
.disclaimer { background: #f7f7f8; border: 1px solid #e5e5e7; color: #444; font-size: 0.9rem; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.status { padding: 10px 14px; border-radius: 6px; font-weight: 600; margin-bottom: 16px; }
.status.loading { background: #fff3cd; color: #856404; }
.status.ready { background: #d4edda; color: #155724; }
.status.error { background: #f8d7da; color: #721c24; }
progress.load-progress, progress.mask-progress { width: 100%; height: 8px; margin-bottom: 16px; }
progress.load-progress[hidden], progress.mask-progress[hidden] { display: none; }
#log { background: #f7f7f8; border: 1px solid #e5e5e7; border-radius: 6px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: pre-wrap; max-height: 280px; overflow-y: auto; }
.todo { color: #666; font-size: 0.9rem; margin-top: 24px; }
#preview table { border-collapse: collapse; margin-top: 12px; font-size: 13px; max-width: 100%; overflow-x: auto; display: block; }
#preview th, #preview td { border: 1px solid #e5e5e7; padding: 4px 8px; text-align: left; white-space: nowrap; }
#preview th { background: #f7f7f8; }
#preview ul.guesses { font-size: 13px; color: #444; margin: 6px 0 20px; padding-left: 4px; list-style: none; }
#preview ul.guesses li { padding: 3px 0; display: flex; align-items: center; gap: 6px; }
#preview ul.guesses input[type="text"] { font-size: 13px; padding: 2px 6px; }
#config { margin-top: 24px; border-top: 1px solid #e5e5e7; padding-top: 16px; }
#configOutput { background: #f7f7f8; border: 1px solid #e5e5e7; border-radius: 6px; padding: 12px; font-size: 12px; white-space: pre-wrap; max-height: 240px; overflow-y: auto; }
#links { margin-top: 24px; border-top: 1px solid #e5e5e7; padding-top: 16px; }
#linksOutput ul { list-style: none; padding: 0; font-size: 13px; }
#linksOutput li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
#mapping { margin-top: 24px; border-top: 1px solid #e5e5e7; padding-top: 16px; }
#mapping .warning { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
#mappingOutput { background: #f7f7f8; border: 1px solid #e5e5e7; border-radius: 6px; padding: 12px; font-size: 12px; white-space: pre-wrap; max-height: 240px; overflow-y: auto; }
#masking { margin-top: 24px; border-top: 1px solid #e5e5e7; padding-top: 16px; }
#maskOutput ul { list-style: none; padding: 0; font-size: 13px; }
#maskOutput li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
#restore { margin-top: 24px; border-top: 1px solid #e5e5e7; padding-top: 16px; }
#restoreOutput ul { list-style: none; padding: 0; font-size: 13px; }
#restoreOutput li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
#reportOutput iframe { width: 100%; height: 500px; border: 1px solid #e5e5e7; border-radius: 6px; margin-top: 12px; }
