/* ==========================================================================
   Node Panel — tasarım sistemi
   ========================================================================== */
:root, [data-theme="dark"] {
    --bg: #090d15;
    --bg-glow: radial-gradient(900px 420px at 78% -8%, rgba(91, 157, 255, .13), transparent 70%), radial-gradient(700px 380px at 5% 0%, rgba(124, 92, 255, .09), transparent 70%);
    --surface: #111827;
    --surface-2: #162033;
    --surface-3: #1b2740;
    --line: #202b42;
    --line-2: #2c3a58;
    --text: #e8edf7;
    --muted: #8d9ab6;
    --faint: #5b6988;
    --accent: #5b9dff;
    --accent-2: #7c5cff;
    --accent-ink: #06101f;
    --ok: #2dd4a0;
    --warn: #fbbf24;
    --bad: #ff6b7a;
    --ok-bg: rgba(45, 212, 160, .12);
    --warn-bg: rgba(251, 191, 36, .12);
    --bad-bg: rgba(255, 107, 122, .12);
    --info-bg: rgba(91, 157, 255, .13);
    --idle-bg: rgba(141, 154, 182, .13);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --term-bg: #070b12;
}
[data-theme="light"] {
    --bg: #f2f5fb;
    --bg-glow: radial-gradient(900px 420px at 78% -8%, rgba(91, 157, 255, .16), transparent 70%), radial-gradient(700px 380px at 5% 0%, rgba(124, 92, 255, .08), transparent 70%);
    --surface: #ffffff;
    --surface-2: #f6f8fd;
    --surface-3: #edf1f9;
    --line: #e1e7f1;
    --line-2: #cfd8e8;
    --text: #0f1a2e;
    --muted: #5a6883;
    --faint: #8794ad;
    --accent: #2f73f2;
    --accent-2: #6a49f0;
    --accent-ink: #ffffff;
    --ok: #0e9f74;
    --warn: #b7791f;
    --bad: #d6364a;
    --ok-bg: rgba(14, 159, 116, .11);
    --warn-bg: rgba(183, 121, 31, .12);
    --bad-bg: rgba(214, 54, 74, .1);
    --info-bg: rgba(47, 115, 242, .1);
    --idle-bg: rgba(90, 104, 131, .1);
    --shadow: 0 1px 2px rgba(15, 26, 46, .05), 0 6px 18px rgba(15, 26, 46, .06);
    --shadow-lg: 0 24px 60px rgba(15, 26, 46, .22);
    --term-bg: #0d1424;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    background-color: var(--bg);
    background-image: var(--bg-glow);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
svg { display: block; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------- yerleşim */
.shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    padding: 20px 14px 16px; border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 18px rgba(91, 157, 255, .35);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-sub { font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
    color: var(--muted); font-weight: 520; text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--info-bg); color: var(--accent); }
.nav .count { margin-left: auto; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.side-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.side-row + .side-row { margin-top: 8px; }
.meter { height: 5px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-top: 5px; }
.meter > i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s; }
.foot-actions { display: flex; gap: 8px; }

.main { min-width: 0; padding: 28px 34px 60px; }
.page { max-width: 1280px; margin: 0 auto; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.topbar-m { display: none; }

.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 16px; }
.section-head .sub { color: var(--muted); font-size: 12.5px; }

/* --------------------------------------------------------------- kart / ızgara */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    padding: 18px;
}
.card.pad-0 { padding: 0; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid > *, .page > * { min-width: 0; }
.g-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-apps { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat { display: flex; gap: 14px; align-items: center; }
.stat-body { min-width: 0; flex: 1; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 560; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.stat-value small { font-size: 13px; font-weight: 560; color: var(--muted); margin-left: 4px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring { position: relative; flex: none; }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.spark-wrap { margin-top: 12px; }

/* --------------------------------------------------------------- durum rozeti */
.pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 99px;
    font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--idle-bg); color: var(--muted);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.ok i { animation: pulse 2s infinite; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--accent); }
.pill.info i { animation: pulse 1s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--accent); }

/* --------------------------------------------------------------- uygulama kartı */
.app-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; position: relative; }
.app-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow), 0 14px 34px rgba(0, 0, 0, .18); }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-name { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-avatar {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; font-size: 15px;
}
.app-url { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metric { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.metric label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.metric b { font-size: 14px; font-weight: 650; white-space: nowrap; }
.health-row { display: flex; align-items: center; gap: 10px; }
.strip { display: flex; gap: 2px; align-items: flex-end; height: 22px; flex: 1; min-width: 0; }
.strip i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-2); height: 40%; }
.strip i.ok { background: var(--ok); opacity: .85; height: 100%; }
.strip i.bad { background: var(--bad); height: 100%; }
.strip.big { height: 34px; gap: 3px; }
.health-ms { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; gap: 8px; }

/* --------------------------------------------------------------- düğmeler */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, transform .08s, opacity .15s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(91, 157, 255, .3); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line-2)); background: var(--bad-bg); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 20%, transparent); }
.btn.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line-2)); background: var(--ok-bg); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 8px; }
.btn.sm.icon { padding: 6px; }
.btn.block { width: 100%; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
    width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input.mono, .textarea.mono { font-size: 13px; }
.input::placeholder { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.env-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 8px; margin-bottom: 8px; }

/* --------------------------------------------------------------- sekmeler / tablo */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; }
.chip b { margin-left: 6px; }

/* --------------------------------------------------------------- terminal / kod */
.terminal {
    background: var(--term-bg); color: #cdd6e8; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
    height: 520px; overflow: auto; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; margin: 0;
}
.terminal .ln { display: block; }
.terminal .ln.err { color: #ff8b97; }
.terminal .ln.warn { color: #fbd36a; }
.terminal .ln.mark { color: #7d8cab; }
.terminal .ln.ok { color: #62e0b5; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; min-width: 160px; }
.code {
    background: var(--term-bg); color: #cdd6e8; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow: auto;
    font-size: 12.5px; line-height: 1.55; white-space: pre; max-height: 460px; margin: 0;
}
.code-line { display: flex; align-items: center; gap: 8px; background: var(--term-bg); color: #cdd6e8; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 14px; font-size: 12.5px; }
.code-line code { flex: 1; overflow-x: auto; white-space: nowrap; }

/* --------------------------------------------------------------- modal / toast */
.overlay { position: fixed; inset: 0; background: rgba(4, 8, 16, .62); backdrop-filter: blur(5px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .2s; }
.modal.wide { width: min(760px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.toast {
    display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 420px; padding: 12px 16px; border-radius: 12px;
    background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: slide .25s;
}
@keyframes slide { from { opacity: 0; transform: translateX(20px); } }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line-2)); }
.toast.ok svg { color: var(--ok); }
.toast.bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--line-2)); }
.toast.bad svg { color: var(--bad); }

/* --------------------------------------------------------------- boş durum / uyarı / adımlar */
.empty { text-align: center; padding: 54px 20px; }
.empty .art { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--info-bg); color: var(--accent); }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 420px; }
.note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); margin-bottom: 14px; font-size: 13px; }
.note svg { flex: none; color: var(--accent); margin-top: 2px; }
.note.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.note.warn svg { color: var(--warn); }
.note.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.note.bad svg { color: var(--bad); }
.note.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.note.ok svg { color: var(--ok); }
.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.step-dot { display: flex; align-items: center; gap: 10px; color: var(--faint); font-weight: 600; }
.step-dot span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 13px; }
.step-dot.on { color: var(--text); }
.step-dot.on span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.step-dot.done span { background: var(--ok-bg); color: var(--ok); }
.step-line { flex: 1; height: 1px; background: var(--line-2); min-width: 24px; max-width: 80px; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card { padding: 18px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface-2); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.choice-card:hover { border-color: var(--accent); }
.choice-card.on { border-color: var(--accent); background: var(--info-bg); }
.choice-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 10px; color: var(--accent); }
.choice-card b { display: block; margin-bottom: 2px; }
.choice-card span { color: var(--muted); font-size: 12.5px; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 16px; padding: 38px 20px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--info-bg); color: var(--text); }
.dropzone svg { margin: 0 auto 10px; color: var(--accent); }
.progress { height: 8px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-top: 14px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.found { list-style: none; margin: 0; padding: 0; }
.found li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.found li:last-child { border-bottom: 0; }
.found .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; background: var(--ok-bg); color: var(--ok); }
.found .mark.no { background: var(--idle-bg); color: var(--faint); }
.found b { display: block; font-size: 13.5px; }
.found span { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.job-steps { list-style: none; margin: 0 0 16px; padding: 0; }
.job-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.job-steps .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.job-steps li.done .st { background: var(--ok-bg); color: var(--ok); }
.job-steps li.warn .st { background: var(--warn-bg); color: var(--warn); }
.job-steps li.error .st { background: var(--bad-bg); color: var(--bad); }
.job-steps li.running .st { background: var(--info-bg); color: var(--accent); }
.job-log { height: 170px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--faint); }
.timeline .dot.error { background: var(--bad); }
.timeline .dot.warn { background: var(--warn); }
.timeline .dot.success { background: var(--ok); }
.timeline .dot.info { background: var(--accent); }
.timeline .when { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; padding-left: 12px; }
.timeline .who { font-weight: 600; margin-right: 6px; }
.sep { height: 1px; background: var(--line); margin: 18px 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.right { text-align: right; }
.mt { margin-top: 16px; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------------- giriş */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); padding: 34px 30px; text-align: center; }
.login-card .brand-mark { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 18px; }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card p { color: var(--muted); margin: 0 0 22px; }
.login-card .field { text-align: left; }
.err-text { color: var(--bad); font-size: 13px; min-height: 20px; margin-bottom: 8px; }

/* --------------------------------------------------------------- mobil */
@media (max-width: 1100px) {
    .g-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .25s; background: var(--surface); }
    .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
    .topbar-m { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
    .main { padding: 18px 16px 50px; }
    .g-apps, .g-2, .form-grid, .choice { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .env-row { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .kv dd { margin-bottom: 10px; }
    .page-head h1 { font-size: 22px; }
}
@media (max-width: 520px) {
    .g-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
