* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: #16233f; background: #f4f5f8; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #162455; color: #fff; }
header h1 { font-size: 17px; margin: 0; font-weight: 600; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.15); }
main { display: grid; grid-template-columns: 1fr 250px 1.1fr; gap: 12px; padding: 12px; height: calc(100vh - 58px); }
.panel { background: #fff; border: 1px solid #e4e6ec; border-radius: 10px; padding: 14px; overflow: auto; display: flex; flex-direction: column; }
.lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-bottom: 8px; }
textarea { flex: 1; width: 100%; min-height: 55vh; font-family: ui-monospace, monospace; font-size: 12px; border: 1px solid #e4e6ec; border-radius: 8px; padding: 10px; resize: none; }
.options label { display: block; margin-bottom: 12px; font-size: 13px; color: #374151; }
.options select { width: 100%; padding: 7px; margin-top: 4px; border: 1px solid #e4e6ec; border-radius: 7px; background: #fff; }
.row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
button, .file { padding: 9px 14px; border: 0; border-radius: 8px; background: #2D48AA; color: #fff; cursor: pointer; font-size: 13px; }
button.primary { background: #21357D; }
button.ghost, .file { background: #eef0f6; color: #2D48AA; }
.file { cursor: pointer; }
.file input { display: none; }
.status { font-size: 12px; color: #6b7280; margin-top: 10px; min-height: 16px; }
.hint { font-size: 11px; color: #9ca3af; font-weight: 400; }
select:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.preview { padding: 0; }
iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; }
