:root {
    --bg: #f3f6fb;
    --ink: #172b47;
    --muted: #5f7087;
    --line: #dce4ef;
    --blue: #2465e8;
    --nav: #101d32;
    --green: #167456;
    --orange: #9b5b0b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #80adff; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; background: var(--nav); color: #b8c7dc; padding: 32px 18px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 14px; align-items: center; color: white; font-weight: 750; letter-spacing: 2px; font-size: 26px; padding: 0 12px; }
.brand-icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--blue); color: white; border-radius: 12px; font-size: 31px; letter-spacing: -2px; font-weight: 800; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 1.4px; color: #9fb4d2; }
.nav-caption { margin: 46px 16px 14px; font-size: 12px; font-weight: 650; letter-spacing: 1.5px; color: #8fa5c2; }
nav a { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 8px; margin-bottom: 8px; font-weight: 550; font-size: 15px; min-height: 50px; }
nav a.active { background: #203e68; color: white; box-shadow: inset 3px 0 #639cff; }
nav a:hover { background: #1b304f; }
nav a > span:first-child { font-size: 23px; line-height: 1; width: 25px; flex-shrink: 0; text-align: center; }
.nav-count { margin-left: auto; background: #314c73; padding: 1px 8px; border-radius: 6px; font-size: 13px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #30415a; padding: 24px 14px 0; font-size: 14px; }
.sidebar-bottom small { display: block; color: #8ca3c1; margin-top: 7px; font-size: 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #42cfa5; border-radius: 50%; margin-right: 8px; }
.workspace { margin-left: 280px; }
.topbar { min-height: 78px; border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 36px; font-size: 14px; }
.user { display: flex; align-items: center; gap: 12px; }
.user a { color: var(--muted); margin-left: 10px; }
.avatar { display: grid; place-items: center; background: #eaf0fc; color: var(--blue); width: 36px; height: 36px; border-radius: 50%; font-weight: bold; }
main { padding: 30px 36px; max-width: 1900px; margin: auto; }
.demo-banner { background: #eaf2ff; color: #355b90; border: 1px solid #cddff9; border-radius: 8px; padding: 13px 17px; font-size: 14px; margin-bottom: 28px; }
.demo-banner strong { font-size: 12px; margin-right: 12px; letter-spacing: 1px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 26px 0 30px; }
.page-heading > div { min-width: 0; }
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: 1.5px; font-weight: 750; margin: 0 0 10px; }
h1 { font-size: 34px; letter-spacing: -.8px; line-height: 1.25; margin: 0 0 12px; font-weight: 720; overflow-wrap: anywhere; }
h2 { font-size: 21px; margin: 0; font-weight: 650; letter-spacing: -.2px; overflow-wrap: anywhere; }
h3 { font-size: 17px; margin: 0; }
.muted { color: var(--muted); }
p { margin: 8px 0 16px; }
.page-heading p:last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #cbd7e6; border-radius: 7px; padding: 11px 16px; font-size: 15px; font-weight: 650; min-height: 44px; text-align: center; }
.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 3px 6px #2465e820; }
.primary:hover { background: #1854ca; }
.secondary { background: white; color: #335275; }
.secondary:hover { border-color: #a9c3ef; background: #f6f9ff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.stat > span { font-size: 15px; color: #526780; }
.stat strong { display: block; font-size: 38px; line-height: 1.25; margin: 12px 0 10px; font-weight: 650; letter-spacing: -1px; }
.stat em { font-style: normal; font-size: 24px; color: #879ab3; }
.stat small { font-size: 13px; color: var(--muted); display: block; }
.orange { color: var(--orange); }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 26px; overflow: hidden; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-heading > div { min-width: 0; }
.panel-heading p { font-size: 14px; color: var(--muted); margin: 7px 0 0; }
.pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 5px; font-size: 13px; color: #516885; background: #eaf0f8; vertical-align: middle; }
.search { border: 1px solid #cbd7e6; padding: 10px 13px; border-radius: 7px; font-size: 15px; width: 240px; min-height: 44px; background: #fbfcfe; flex-shrink: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 850px; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th { background: #edf2f8; font-size: 14px; font-weight: 650; color: #425a78; padding: 14px 18px; border-bottom: 2px solid #cbd8e9; white-space: nowrap; }
td { padding: 17px 18px; border-bottom: 1px solid #e1e8f2; font-size: 15px; vertical-align: middle; }
th:first-child, td:first-child { min-width: 210px; }
td + td, th + th { border-left: 1px solid #e6ecf4; }
tbody tr:nth-child(even) { background: #f8fafd; }
tbody tr:hover { background: #edf4ff; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
td small.orange { color: var(--orange); }
td .action-form { min-width: 230px; max-width: 290px; }
.site-cell { display: flex; align-items: center; gap: 12px; }
.site-cell > div { min-width: 0; }
.site-icon { display: grid; place-items: center; background: #edf3fd; color: #3a6ba9; border: 1px solid #d4e2f7; border-radius: 9px; width: 42px; height: 42px; font-weight: 650; font-size: 19px; flex-shrink: 0; }
.site-name { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.site-name:hover { color: var(--blue); text-decoration: underline; }
.badge { display: inline-block; border-radius: 5px; font-size: 13px; font-weight: 600; padding: 5px 9px; background: #edf1f7; color: #5b6c83; }
.badge.success { background: #e6f5ed; color: #226f52; }
.badge.warning { background: #fff0d7; color: #945a0d; }
.badge.failed { background: #ffecec; color: #ab3535; }
.badge.running { background: #e6efff; color: #2c5fba; }
.text-link { font-size: 15px; color: var(--blue); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
code { font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: #516783; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 42px; color: var(--muted); }
.filter-empty { text-align: center; padding: 24px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 10px 36px 25px; color: #6e819b; font-size: 13px; }
footer span { font-size: 13px; }
.instance-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.instance-meta code, .instance-meta strong { display: block; margin-top: 5px; font-weight: 500; color: #405a7b; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 24px; }
.panel-body { padding: 24px; }
.version { font-size: 40px; font-weight: 650; }
.version-number { font-size: 16px; white-space: nowrap; }
.cache-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.cache-grid p { font-size: 15px; overflow-wrap: anywhere; }
.confirm { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #526680; margin-bottom: 11px; white-space: normal; max-width: 370px; }
.confirm input { accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; }
.flash { padding: 16px 20px; background: #edf3ff; border: 1px solid #d1e0fc; border-radius: 7px; margin-bottom: 20px; font-size: 15px; overflow-wrap: anywhere; }
.flash.success { background: #ecf8f2; border-color: #c8e7d7; color: #286c50; }
.flash.error { background: #fff1f1; border-color: #edcaca; color: #a23737; }
.pagination { display: flex; gap: 18px; align-items: center; font-size: 15px; }
pre { background: #101d32; color: #d5e4f6; border-radius: 8px; padding: 24px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.8 ui-monospace, Consolas, monospace; max-height: 650px; }
.login-workspace { min-height: 100vh; display: flex; flex-direction: column; }
.login-workspace main { width: 100%; flex: 1; }
.login-card { max-width: 480px; margin: 65px auto; background: white; border: 1px solid var(--line); padding: 38px; border-radius: 15px; box-shadow: 0 15px 60px #1c335510; }
.login-card > .brand-icon { margin-bottom: 25px; }
.login-card > small { font-size: 13px; }
.login-form { display: grid; gap: 11px; margin: 26px 0; }
.login-form label { font-size: 15px; font-weight: 600; }
.login-form input { border: 1px solid #cbd7e6; padding: 12px; border-radius: 6px; min-width: 0; min-height: 46px; }
.login-form button { margin-top: 12px; justify-content: space-between; }
.numeric { text-align: right; }
.version-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 140px; }
.version-tag { background: #edf2f9; border: 1px solid #d8e2ee; border-radius: 5px; padding: 3px 8px; font-size: 14px; white-space: nowrap; }
.version-tag > span { color: #5e7490; margin-left: 4px; font-size: 13px; }
.bulk-panel { border-top: 3px solid var(--blue); }
.bulk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: center; gap: 32px; }
.bulk-layout p:last-child { margin-bottom: 0; }
.bulk-update-form { padding-left: 28px; border-left: 1px solid var(--line); }
.bulk-update-form .button { width: 100%; }
@media (min-width: 1700px) {
    main { padding: 38px 46px; }
}
@media (max-width: 1200px) {
    .sidebar { width: 250px; padding: 28px 12px; }
    .workspace { margin-left: 250px; }
    nav a { font-size: 14px; gap: 8px; padding: 13px 10px; }
    main { padding: 24px; }
    .topbar { padding: 16px 24px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-heading { align-items: flex-start; flex-wrap: wrap; }
    .detail-grid { grid-template-columns: 1fr; gap: 0; }
    .panel-heading { flex-wrap: wrap; }
    .bulk-layout { grid-template-columns: 1fr; gap: 22px; }
    .bulk-update-form { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); max-width: 440px; }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: auto; padding: 18px 15px; }
    .brand { font-size: 24px; padding: 0; }
    .brand-icon { width: 40px; height: 40px; font-size: 28px; }
    .nav-caption, .sidebar-bottom { display: none; }
    .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 18px; gap: 8px; }
    nav a { font-size: 14px; padding: 10px; margin: 0; min-height: 44px; }
    .workspace { margin-left: 0; }
    .topbar { min-height: 60px; padding: 12px 18px; }
    .topbar > span { display: none; }
    .user { margin-left: auto; flex-wrap: wrap; }
    main { padding: 22px 15px; }
    h1 { font-size: 28px; }
    h2 { font-size: 20px; }
    .page-heading, .panel-heading { flex-wrap: wrap; gap: 18px; }
    .panel-heading, .panel-body { padding: 20px; }
    .cache-grid { grid-template-columns: 1fr; }
    .search { width: 100%; }
    footer { padding: 15px; flex-wrap: wrap; }
    .demo-banner strong { display: block; margin-bottom: 6px; }
    .login-card { margin: 30px auto; padding: 26px; }
    .stat { padding: 17px; }
    .stat > span { font-size: 14px; }
    .stat strong { font-size: 32px; }
    .stat small { font-size: 12px; }
    .instance-meta { gap: 18px; }
    .bulk-update-form { max-width: none; }
    .table-scroll::before { content: "Weitere Spalten: seitlich scrollen →"; display: block; position: sticky; left: 0; padding: 10px 18px; font-size: 13px; color: var(--muted); background: #f5f8fc; border-bottom: 1px solid var(--line); }
}
