* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #222; background: #f4f5f7; line-height: 1.45; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding: 10px 20px; background: #1f2d3d; }
.nav .brand { color: #fff; font-weight: 600; margin-right: 18px; }
.nav a { color: #c9d4e0; text-decoration: none; padding: 4px 2px; }
.nav a.active, .nav a:hover { color: #fff; border-bottom: 2px solid #4da3ff; }
.container { max-width: 880px; margin: 24px auto; padding: 0 16px 48px; }
h1 { font-size: 1.5rem; margin: 0 0 14px; }
h2 { font-size: 1.2rem; margin: 0 0 8px; }
h3 { font-size: 1.05rem; }
small, .hint { color: #667; font-weight: normal; }
.card { background: #fff; border: 1px solid #dfe3e8; border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
label { display: block; margin: 14px 0 4px; font-weight: 600; }
label.check { font-weight: normal; display: flex; gap: 8px; align-items: flex-start; }
label.check input { margin-top: 4px; }
input[type=text], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #b9c0c8; border-radius: 4px; font: inherit; background: #fff; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1 1 200px; }
details { margin: 16px 0; padding: 8px 12px; border: 1px solid #dfe3e8; border-radius: 4px; background: #fafbfc; }
summary { cursor: pointer; font-weight: 600; }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid #aab3bd; border-radius: 4px; background: #fff; color: #222; text-decoration: none; cursor: pointer; font: inherit; }
.btn-primary { background: #1f6feb; border-color: #1f6feb; color: #fff; margin-top: 18px; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e8ec; vertical-align: top; }
.table td.actions { white-space: nowrap; }
.table .btn-primary { margin-top: 0; }
.alert { padding: 10px 14px; border-radius: 4px; margin: 12px 0; border: 1px solid; }
.alert ul { margin: 6px 0 0 18px; padding: 0; }
.alert-ok { background: #e8f6ec; border-color: #9fd3ac; }
.alert-warn { background: #fff7e0; border-color: #e6cf85; }
.alert-err { background: #fdecea; border-color: #e6a39d; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 10px; color: #fff; vertical-align: middle; }
.badge-ok { background: #2e9e4f; } .badge-err { background: #c9372c; } .badge-run { background: #b27d00; }
.steps { list-style: none; padding: 0; margin: 10px 0; }
.step { padding: 3px 0; }
.step .ico { display: inline-block; width: 1.4em; font-weight: 700; }
.step-ok .ico { color: #2e9e4f; } .step-error .ico { color: #c9372c; } .step-running .ico { color: #b27d00; } .step-pending, .step-skipped { color: #889; }
.pwbox { border-color: #e6cf85; background: #fffdf3; }
code { background: #eef0f3; padding: 1px 5px; border-radius: 3px; }
code.pw { font-size: 1.25rem; padding: 6px 10px; letter-spacing: .5px; user-select: all; }
textarea.ficha { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; resize: vertical; }
pre { background: #f0f2f5; padding: 10px; border-radius: 4px; overflow: auto; margin: 0; }
pre.log { max-height: 480px; font-size: .8rem; }
.upload progress { width: 100%; height: 14px; margin-top: 6px; }
.upload .upload-status { display: block; font-size: .85rem; margin-top: 4px; color: #456; }
.upload .upload-status.err { color: #c9372c; font-weight: 600; }
.upload.uploading input[type=file] { opacity: .55; }
fieldset { border: 1px solid #dfe3e8; border-radius: 4px; margin: 14px 0; padding: 8px 14px 14px; background: #fafbfc; }
fieldset legend { font-weight: 600; padding: 0 6px; }
.radio-mode { display: flex; gap: 20px; margin: 10px 0 2px; }
.radio-mode label { display: flex; gap: 8px; font-weight: 600; margin: 0; align-items: center; }
.hidden { display: none; }
