:root {
  --navy: #14254a; --navy-2: #1f3566; --orange: #f08a24; --orange-d: #d4741a;
  --teal: #1a9a9a; --bg: #f4f6fa; --line: #dde3ee; --text: #1c2333; --muted: #66708a;
  --ok: #1e8e5a; --err: #c0392b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--teal); }
header.top { background: var(--navy); color: #fff; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 4px solid var(--orange); }
.brand { font-weight: 600; font-size: 17px; }
.brand .mark { color: var(--orange); font-weight: 800; }
.brand .sys { color: #5fd0d0; }
.brand .divider { opacity: .4; margin: 0 6px; }
nav { display: flex; align-items: center; gap: 16px; }
nav a { color: #fff; text-decoration: none; }
nav a:hover { color: var(--orange); }
nav .who { color: #aab6d3; font-size: 13px; }
main { flex: 1; width: 100%; margin: 32px auto; padding: 0 20px; }
main.narrow { max-width: 440px; }
main.wide { max-width: 1100px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
h1 { color: var(--navy); margin-top: 0; }
h2 { font-size: 16px; color: var(--navy); margin: 0 0 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow: 0 2px 8px rgba(20,37,74,.05); }
label { display: block; margin: 0 0 14px; font-weight: 500; }
label.row { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 10px 0 0; }
input[type=email], input[type=password], input:not([type]), select { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #c7cfdf; border-radius: 6px; font: inherit; background: #fff; }
label.row select { width: auto; margin: 0; }
label.stack { font-weight: 400; margin: 12px 0 0; }
input:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid #c7cfdf; background: #fff; cursor: pointer; }
button:hover { border-color: var(--navy-2); }
button.primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--orange-d); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.big { padding: 10px 28px; font-size: 16px; }
button.link { background: none; border: 0; color: #fff; padding: 0; text-decoration: underline; }
form.inline { display: inline; }
.opt, .muted { color: var(--muted); font-weight: 400; }
.small { font-size: 13px; }
.alert { background: #fdecea; color: var(--err); border: 1px solid #f5c6c0; padding: 10px 12px; border-radius: 6px; }
.note { background: #fff6ea; border: 1px solid #f6d3a8; padding: 10px 14px; border-radius: 6px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; margin-right: 6px; }
.bar { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.bar #summary { flex: 1; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.grid th, table.grid td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid th { background: #eef1f7; color: var(--navy); font-size: 13px; }
table.grid td.actions { white-space: nowrap; }
table.grid td.actions button { padding: 4px 10px; font-size: 13px; }
.files td:nth-child(3) { white-space: nowrap; color: var(--muted); }
.status { font-size: 13px; white-space: nowrap; }
.st-done, .s-approved { color: var(--ok); font-weight: 600; }
.st-failed, .s-rejected, .s-disabled { color: var(--err); }
.st-skipped { color: var(--muted); }
.st-working, .s-pending { color: var(--orange-d); font-weight: 600; }
.tag { background: var(--teal); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.prog { display: inline-block; width: 70px; height: 6px; background: #e4e8f0; border-radius: 3px; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 40%; background: var(--teal); animation: slide 1.2s infinite ease-in-out; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
