* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif; background: #f4f6f9; color: #1c2430; font-size: 14px; line-height: 1.45; }
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
aside { background: #16202e; color: #c9d3e0; padding: 18px 14px; }
.brand { font-weight: 700; color: #fff; font-size: 16px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: #3ecf8e; }
.who { font-size: 12px; color: #8494aa; margin-bottom: 18px; }
.who b { color: #fff; }
nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b7c93; margin: 14px 10px 6px; }
nav a { display: block; padding: 8px 10px; border-radius: 7px; color: #c9d3e0; text-decoration: none; margin-bottom: 2px; cursor: pointer; }
nav a.active, nav a:hover { background: #24324a; color: #fff; }
.badge { float: right; background: #2563eb; color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; }
.side-foot { margin-top: 26px; font-size: 12px; color: #8494aa; border-top: 1px solid #24324a; padding-top: 14px; line-height: 1.9; }
.side-foot a { color: #8494aa; cursor: pointer; text-decoration: underline; }
main { padding: 22px 28px; min-width: 0; }
h1 { font-size: 20px; margin-bottom: 4px; }
h3 { font-size: 14px; }
.sub { color: #66758a; margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.btn { background: #2563eb; color: #fff; border: 0; padding: 9px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; }
.btn:hover { background: #1d4fd8; }
.btn:disabled { background: #9db5ef; cursor: default; }
.btn.ghost { background: #fff; color: #1c2430; border: 1px solid #d5dbe4; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.danger { background: #fff; color: #b42318; border: 1px solid #f3c1bd; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.card { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.card h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.num { width: 22px; height: 22px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.full { grid-column: 1 / -1; }
label { font-size: 12px; color: #4a5568; font-weight: 600; display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #d5dbe4; border-radius: 7px; font-size: 13px; font-family: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bcd3ff; border-color: #2563eb; }
textarea { resize: vertical; line-height: 1.5; }
.hint { font-size: 11px; color: #8494aa; margin-top: 3px; }
.okline { font-size: 11px; color: #137a4b; margin-top: 3px; }
.inline { display: flex; gap: 6px; align-items: center; }
.seg { display: flex; border: 1px solid #d5dbe4; border-radius: 8px; overflow: hidden; }
.seg div { flex: 1; text-align: center; padding: 8px; cursor: pointer; font-size: 13px; border-right: 1px solid #d5dbe4; }
.seg div:last-child { border-right: 0; }
.seg div.on { background: #2563eb; color: #fff; font-weight: 600; }
.seg div.locked { color: #a0aec0; cursor: not-allowed; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ok { background: #e3f8ee; color: #137a4b; }
.bad { background: #fde8e8; color: #b42318; }
.warn { background: #fff4dc; color: #8a5a00; }
.info { background: #e8efff; color: #1d4fd8; }
.grey { background: #eef1f5; color: #4a5568; }
.muted { color: #8494aa; font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; overflow: hidden; }
th { text-align: left; font-size: 12px; color: #66758a; font-weight: 600; padding: 9px 12px; background: #f8fafc; border-bottom: 1px solid #e3e8ef; }
td { padding: 9px 12px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
tr.click:hover td { background: #fafcff; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 4px 0 16px; }
.stat { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 11px 14px; }
.stat b { font-size: 21px; display: block; }
.stat span { color: #66758a; font-size: 12px; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.lane { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; padding: 12px; }
.lane h4 { font-size: 14px; display: flex; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.job { border: 1px solid #eef1f5; border-radius: 8px; padding: 8px 10px; margin-bottom: 7px; font-size: 13px; }
.job .r { display: flex; justify-content: space-between; gap: 6px; }
.job.run { border-color: #93b4ff; background: #f5f8ff; }
.result { border: 1px solid #eef1f5; border-left: 4px solid #2563eb; border-radius: 6px; padding: 9px 12px; margin-bottom: 7px; font-size: 13px; }
.result.duplicate { border-left-color: #d97706; }
.result.needs_attention { border-left-color: #dc2626; }
.check li { list-style: none; padding: 6px 0; border-bottom: 1px dashed #eef1f5; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.check li:last-child { border-bottom: 0; }
.fixed li { list-style: none; font-size: 12px; color: #4a5568; padding: 3px 0; }
.fixed li::before { content: "🔒 "; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #d5dbe4; border-radius: 99px; padding: 3px 10px; font-size: 12px; background: #fff; }
.accrow { display: grid; grid-template-columns: 24px 1fr 1.4fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #eef1f5; }
.accrow:last-child { border-bottom: 0; }
.toast { position: fixed; bottom: 22px; right: 22px; background: #16202e; color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 13px; display: none; max-width: 420px; z-index: 20; }
.toast.err { background: #b42318; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 35, .45); display: flex; align-items: flex-start; justify-content: center; padding-top: 6vh; z-index: 10; }
.modal { background: #fff; border-radius: 12px; width: min(760px, 92vw); max-height: 86vh; overflow: auto; padding: 18px 20px; }
.modal pre { white-space: pre-wrap; word-break: break-word; background: #f8fafc; border: 1px solid #eef1f5; border-radius: 8px; padding: 10px; font-family: inherit; font-size: 13px; max-height: 40vh; overflow: auto; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login .card { width: 360px; }
.login h1 { margin-bottom: 14px; }
.login .fields { grid-template-columns: 1fr; }
.empty { color: #8494aa; padding: 18px; text-align: center; }
