:root { color-scheme: light; font-family: "Segoe UI", system-ui, sans-serif; color: #17213d; background: #f3f5fa; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1280px; margin: auto; padding: 32px; }
h1 { margin: 6px 0 12px; font-size: 30px; letter-spacing: -.5px; }
h2 { font-size: 19px; margin: 0 0 18px; }
p { line-height: 1.5; }
header { margin-bottom: 24px; }
.eyebrow { color: #5263a0; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin: 0; }
.badges, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.badges span { padding: 7px 12px; background: #e7ecfa; border: 1px solid #d5def6; border-radius: 20px; font-size: 13px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
section { background: white; border: 1px solid #e0e5f0; border-radius: 12px; padding: 24px; min-width: 0; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 7px; }
label.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
input, select, textarea { font: inherit; border: 1px solid #bac4d9; border-radius: 6px; padding: 9px 10px; background: white; color: inherit; }
input:not([type=checkbox]), select, textarea { width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #4357c1; }
textarea { font: 12px/1.6 Consolas, monospace; resize: vertical; }
button, .button { font: 600 13px "Segoe UI", system-ui, sans-serif; border: 1px solid #4357c1; border-radius: 6px; background: #4357c1; color: white; padding: 10px 15px; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .button.secondary { background: white; color: #344a9b; border-color: #b7c3e3; }
button.danger { background: white; color: #9c2635; border-color: #e4bbc0; }
button:disabled, .button[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
button:hover:enabled, .button:hover { filter: brightness(.95); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9aafff; outline-offset: 2px; }
.muted, footer { font-size: 13px; color: #65708b; }
.error { background: #fff0f1; color: #8d1d2c; border: 1px solid #efbac1; border-radius: 6px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.status { font-size: 14px; overflow-wrap: anywhere; }
.trace { list-style: none; padding: 0; margin: 0; max-height: 640px; overflow: auto; font: 11px/1.6 Consolas, monospace; }
.trace li { border-bottom: 1px solid #edf0f7; padding: 8px 0; overflow-wrap: anywhere; }
.trace strong { display: block; color: #4257a0; }
footer { margin: 24px 0 0; padding: 14px 0; border-top: 1px solid #e0e5f0; }
.page-body { padding: 20px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin: 0; gap: 20px; }
.page-header h1 { font-size: 23px; }
iframe { border: 1px solid #d8dfef; border-radius: 10px; background: white; width: 100%; min-height: 720px; }
.app-body { background: white; }
.app-body main { padding: 24px; }
.app-body h1 { font-size: 26px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.fields label { margin-top: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
th, td { min-width: 110px; padding: 12px 10px; border-bottom: 1px solid #e7ebf3; text-align: left; vertical-align: middle; overflow-wrap: break-word; }
th:first-child, td:first-child { min-width: 180px; }
th { color: #59667f; font-weight: 600; }
td.actions { min-width: 150px; white-space: nowrap; }
td.actions button { margin-right: 8px; padding: 6px 10px; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; } main { padding: 18px; } }
