:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #17243b; background: #f3f5fa; font-size: 16px; --line: #e3e8f1; --muted: #526179; --accent: #244be2; --nav: #14213c; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
a { color: #2645c5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6a80ed; outline-offset: 3px; }
.sidebar { background: var(--nav); color: #fff; padding: 29px 18px; display: flex; flex-direction: column; gap: 30px; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 7px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { color: #c1cde3; margin-top: 3px; font-size: .86rem; }
.brand-icon { width: 40px; height: 40px; display: grid; place-content: center; gap: 3px; background: #3e61ef; border-radius: 10px; }
.brand-icon i { width: 18px; height: 3px; background: #fff; border-radius: 2px; }
.brand-icon i:nth-child(2) { width: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a, .sidebar .logout { border-radius: 7px; padding: 10px 12px; color: #d3ddf2; font-size: .9rem; font-weight: 600; text-decoration: none; }
.sidebar nav a[aria-current] { background: #283a66; color: #fff; }
.sidebar nav a:hover, .sidebar .logout:hover { background: #27375a; }
.sidebar form { margin-top: auto; }
.logout, .text-button { cursor: pointer; border: 0; background: transparent; }
.workspace { padding: clamp(24px, 4vw, 56px); max-width: 1540px; width: 100%; }
.headline { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.15; letter-spacing: -.036em; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
p { line-height: 1.55; }
.headline p, .login-card p { margin-top: 8px; color: var(--muted); }
.button { padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 41px; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #1738bb; }
.secondary { background: white; color: #263d80; border-color: #cfdaee; }
.sync { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: 19px; }
.sync time { font-variant-numeric: tabular-nums; }
.text-button { color: #2645c5; text-decoration: none; font-size: .85rem; font-weight: 700; padding: 4px; }
.text-button:hover { text-decoration: underline; }
.dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 8px; border-radius: 50%; background: currentColor; }
.green { color: #158053; } .amber { color: #a05b08; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.metric, .panel, .login-card { background: white; border: 1px solid var(--line); border-radius: 12px; }
.metric { padding: 16px; display: grid; gap: 7px; }
.metric span, .metric small { font-size: .85rem; color: var(--muted); }
.metric span { font-weight: 650; }
.metric strong { font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.alert { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; background: #fff8e9; border: 1px solid #efd6ab; color: #623806; padding: 14px 16px; border-radius: 10px; }
.alert p { font-size: .89rem; }
.panel-toolbar { padding: 17px 19px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 3px; padding: 3px; background: #edf1f8; border-radius: 8px; }
.filters button { color: #465672; cursor: pointer; background: transparent; border: 1px solid transparent; padding: 6px 10px; border-radius: 6px; font-weight: 650; font-size: .85rem; }
.filters button[aria-pressed=true] { border-color: #dbe2ef; background: white; color: #263d80; }
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; text-align: left; vertical-align: middle; }
th { background: #f8faff; color: #47546b; font-size: .81rem; white-space: nowrap; }
td { border-top: 1px solid var(--line); font-size: .875rem; }
td small { display: block; margin-top: 5px; font-size: .78rem; color: var(--muted); }
td strong { font-size: .91rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 4px 8px; font-size: .8rem; font-weight: 700; white-space: nowrap; color: #48566e; background: #eef1f7; }
.badge.running { color: #096348; background: #e5f6ef; }
.badge.partial { color: #874900; background: #fff0d6; }
.badge.stopped { color: #a02938; background: #fcebef; }
.version { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.empty { padding: 27px 19px; color: var(--muted); }
.form-panel { padding: 20px; margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.form-grid label { display: grid; gap: 6px; font-size: .92rem; font-weight: 625; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #cbd6e5; color: #1b2944; background: #fff; padding: 8px 10px; min-height: 41px; border-radius: 7px; }
select { appearance: none; padding-right: 28px; background: linear-gradient(45deg, transparent 50%, #526179 50%) calc(100% - 15px) 55% / 5px 5px no-repeat, linear-gradient(135deg, #526179 50%, transparent 50%) calc(100% - 10px) 55% / 5px 5px no-repeat #fff; }
.form-actions, .pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.log-entry { padding: 16px 20px; display: grid; gap: 8px; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
.log-entry small { color: var(--muted); }
.log-entry .badge { align-self: start; }
.log-entry p { grid-column: 1 / -1; }
.log-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { padding: 14px 20px; }
.notice, .error { padding: 10px 13px; border-radius: 8px; background: #e9f2ff; margin: 12px 0; }
.error { background: #fcebef; }
.login-page { display: grid; grid-template-columns: 1fr; place-items: center; padding: 20px; background: radial-gradient(ellipse at 20% 5%, #e1e9ff 0, #f3f5fa 60%); }
.login-card { width: min(100%, 448px); padding: clamp(20px, 5vw, 38px); box-shadow: 0 18px 55px #21396216; }
.login-brand { padding: 0; margin-bottom: 28px; }
.login-brand small { color: var(--muted); }
.login-card form { margin-top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1020px) { body { grid-template-columns: 177px minmax(0, 1fr); } .workspace { padding: 25px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { body { display: block; } .workspace { padding: 18px; } .sidebar { padding: 12px; gap: 9px; display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; } .sidebar nav { display: flex; flex-wrap: wrap; } .sidebar form { margin: 0 0 0 auto; } .sidebar .brand-icon { width: 32px; height: 32px; } .headline, .alert { flex-wrap: wrap; align-items: flex-start; } .form-grid { grid-template-columns: 1fr; } }
