:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-soft: #0b1626;
  --surface: #0f1c2e;
  --surface-2: #142338;
  --surface-3: #192a42;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #f4f7fb;
  --muted: #8fa1b8;
  --muted-2: #6f829a;
  --accent: #58e3a3;
  --accent-strong: #23c985;
  --accent-ink: #032318;
  --blue: #63a9ff;
  --violet: #a88cff;
  --amber: #ffbd66;
  --danger: #ff7184;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --sidebar: 250px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted-2); }
.eyebrow { margin: 0; color: var(--accent); font-size: .69rem; font-weight: 800; letter-spacing: .16em; }

.button {
  min-height: 42px; border: 1px solid transparent; border-radius: 11px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 750; font-size: .86rem; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(35, 201, 133, .18); }
.button-primary:hover { background: #6aebaf; }
.button-ghost { background: rgba(255,255,255,.035); color: #dbe5f1; border-color: var(--border); }
.button-ghost:hover { background: rgba(255,255,255,.065); border-color: var(--border-strong); }
.button-large { min-height: 52px; width: 100%; font-size: .95rem; }
.button-small { min-height: 34px; padding: 0 12px; font-size: .78rem; }
.button-run { background: rgba(88, 227, 163, .12); color: var(--accent); border-color: rgba(88, 227, 163, .22); }
.button-run:hover { background: rgba(88, 227, 163, .2); }
.icon-button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.025); cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.07); border-color: var(--border-strong); }
.icon-button.danger { color: var(--danger); }
.link-button { padding: 4px; border: 0; background: transparent; color: var(--accent); font-size: .8rem; font-weight: 750; cursor: pointer; }

/* Kimlik doğrulama */
.auth-body {
  display: grid; place-items: center; min-height: 100vh; padding: 28px;
  background: radial-gradient(circle at 12% 20%, rgba(44, 160, 126, .22), transparent 34%), radial-gradient(circle at 88% 82%, rgba(83, 115, 212, .14), transparent 36%), #07101d;
}
.auth-shell { width: min(1120px, 100%); min-height: min(720px, calc(100vh - 56px)); display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid var(--border); border-radius: 30px; background: rgba(10, 22, 37, .92); box-shadow: 0 35px 100px rgba(0,0,0,.42); }
.auth-shell.single { grid-template-columns: minmax(0, 560px); justify-content: center; min-height: 360px; }
.auth-brand { padding: clamp(48px, 7vw, 94px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; border-right: 1px solid var(--border); }
.auth-brand::after { content: ""; width: 420px; height: 420px; position: absolute; right: -230px; bottom: -180px; border-radius: 50%; border: 90px solid rgba(88, 227, 163, .035); box-shadow: 0 0 0 60px rgba(99, 169, 255, .025); }
.brand-mark { width: 43px; height: 43px; border-radius: 13px; display: inline-grid; place-items: center; background: linear-gradient(140deg, var(--accent), #39b8ac); color: var(--accent-ink); font-size: .82rem; font-weight: 950; letter-spacing: -.04em; box-shadow: 0 9px 22px rgba(35, 201, 133, .19); }
.brand-mark-large { width: 66px; height: 66px; border-radius: 20px; font-size: 1.15rem; margin-bottom: 44px; }
.auth-brand h1 { margin: 14px 0 22px; max-width: 620px; font-size: clamp(2.5rem, 5vw, 4.75rem); line-height: .98; letter-spacing: -.055em; }
.auth-brand h1 span { color: var(--accent); }
.auth-brand > p:not(.eyebrow) { max-width: 570px; margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.auth-feature-row { display: flex; gap: 10px; margin-top: 38px; flex-wrap: wrap; }
.auth-feature-row span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--border); color: #cbd6e3; font-size: .75rem; font-weight: 700; }
.auth-card { align-self: center; margin: 32px; padding: clamp(30px, 5vw, 54px); border-radius: 24px; background: rgba(18, 33, 52, .92); border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-card-heading h2 { margin: 12px 0 10px; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.auth-card-heading > p:last-child, .auth-card > p { margin: 0; color: var(--muted); line-height: 1.65; }
.auth-form { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 8px; }
label > span, .field-block > span { color: #cbd7e5; font-size: .79rem; font-weight: 750; }
label > span small { color: var(--muted-2); font-weight: 550; margin-left: 5px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(4, 12, 23, .54); color: var(--text); padding: 11px 13px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
input { min-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
select { min-height: 46px; color-scheme: dark; }
input:focus, textarea:focus, select:focus { border-color: rgba(88, 227, 163, .66); background: rgba(5, 15, 28, .82); box-shadow: 0 0 0 3px rgba(88, 227, 163, .08); outline: none; }
.security-note { padding: 12px 14px; border: 1px solid rgba(255, 189, 102, .2); border-radius: 11px; background: rgba(255, 189, 102, .07); color: #e8c793; font-size: .78rem; line-height: 1.55; }
.form-error { padding: 12px 14px; border: 1px solid rgba(255,113,132,.22); border-radius: 11px; background: rgba(255,113,132,.07); color: #ffc1ca; font-size: .78rem; line-height: 1.5; }

/* Uygulama kabuğu */
.app-body { background: var(--bg); }
.app-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20; display: flex; flex-direction: column; padding: 22px 16px; background: #091422; border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 23px; border-bottom: 1px solid var(--border); }
.brand > span:last-child { display: grid; line-height: 1.18; }
.brand strong { font-size: .93rem; letter-spacing: -.02em; }
.brand small { color: var(--muted-2); font-size: .69rem; margin-top: 4px; }
.main-nav { display: grid; gap: 7px; padding: 24px 0; }
.nav-item { width: 100%; min-height: 46px; border: 1px solid transparent; border-radius: 11px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 700; cursor: pointer; text-align: left; }
.nav-item .icon { color: #8295ad; }
.nav-item:hover { color: #dce5ef; background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--accent); background: rgba(88, 227, 163, .085); border-color: rgba(88, 227, 163, .12); }
.nav-item.active .icon { color: var(--accent); }
.sidebar-foot { display: grid; gap: 15px; margin-top: auto; }
.server-chip { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.018); font-size: .68rem; }
.server-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(88, 227, 163, .08); }
.server-chip span { color: var(--muted); }
.server-chip strong { color: var(--accent); font-size: .67rem; }
.account-button { width: 100%; padding: 10px; border: 0; border-radius: 11px; display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; cursor: pointer; }
.account-button:hover { background: rgba(255,255,255,.035); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #263a53; color: #dce7f4; font-size: .78rem; font-weight: 850; }
.account-button > span:last-child { display: grid; }
.account-button strong { font-size: .76rem; }
.account-button small { color: var(--muted-2); font-size: .66rem; margin-top: 3px; }
.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: 0 clamp(24px, 4vw, 58px) 60px; }
.topbar { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.topbar h1 { margin: 7px 0 0; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.topbar-actions { display: flex; gap: 10px; }
.view { display: none; padding-top: 30px; animation: viewIn .22s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.mobile-nav { display: none; }

/* Genel bakış */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.summary-card { min-height: 138px; padding: 19px; display: flex; align-items: flex-start; gap: 15px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(145deg, rgba(20, 36, 57, .95), rgba(13, 26, 43, .95)); }
.summary-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(99, 169, 255, .11); color: var(--blue); }
.summary-card.green .summary-icon { color: var(--accent); background: rgba(88, 227, 163, .1); }
.summary-card.violet .summary-icon { color: var(--violet); background: rgba(168, 140, 255, .1); }
.summary-card.amber .summary-icon { color: var(--amber); background: rgba(255, 189, 102, .1); }
.summary-card > div:last-child { display: grid; }
.summary-card p { margin: 1px 0 6px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.summary-card strong { font-size: 2rem; letter-spacing: -.05em; }
.summary-card small { color: var(--muted-2); font-size: .66rem; margin-top: 7px; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .7fr); gap: 16px; margin-top: 16px; }
.panel { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: rgba(14, 28, 46, .92); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 1.15rem; letter-spacing: -.025em; }
.job-list { display: grid; }
.job-row { width: 100%; min-height: 67px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 4px; color: var(--text); text-align: left; background: transparent; border: 0; border-top: 1px solid var(--border); cursor: pointer; }
.job-row:first-child { border-top: 0; }
.job-row:hover { background: rgba(255,255,255,.018); }
.job-row > .icon { color: var(--muted-2); }
.job-main { display: grid; min-width: 0; }
.job-main strong { overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.job-main small { overflow: hidden; text-overflow: ellipsis; color: var(--muted-2); font-size: .68rem; margin-top: 5px; }
.job-state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.job-state-dot.running, .job-state-dot.queued { background: var(--accent); box-shadow: 0 0 0 5px rgba(88,227,163,.07); animation: pulse 1.7s infinite; }
.job-state-dot.completed { background: var(--blue); }
.job-state-dot.failed { background: var(--danger); }
.job-state-dot.stopped { background: var(--amber); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(88,227,163,0); } }
.status-badge, .risk-badge, .source-badge { width: max-content; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; font-size: .65rem; font-weight: 800; }
.status-badge.running, .status-badge.queued { color: var(--accent); background: rgba(88,227,163,.09); }
.status-badge.completed { color: var(--blue); background: rgba(99,169,255,.09); }
.status-badge.failed { color: var(--danger); background: rgba(255,113,132,.09); }
.status-badge.stopped, .status-badge.stopping { color: var(--amber); background: rgba(255,189,102,.09); }
.quick-panel { display: grid; align-content: start; }
.quick-action { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; width: 100%; min-height: 68px; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; }
.quick-action:nth-of-type(1) { border-top: 0; }
.quick-action > span:nth-child(2) { display: grid; }
.quick-action strong { font-size: .77rem; }
.quick-action small { color: var(--muted-2); font-size: .67rem; margin-top: 4px; }
.quick-action > .icon:last-child { color: var(--muted-2); }
.quick-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(99,169,255,.08); color: var(--blue); }

/* Betikler */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-box { flex: 1 1 300px; max-width: 480px; position: relative; display: block; }
.search-box .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search-box input { padding-left: 40px; }
.segmented { display: flex; padding: 4px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.segmented button { min-height: 34px; border: 0; border-radius: 8px; padding: 0 12px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 750; cursor: pointer; }
.segmented button.active { color: var(--text); background: var(--surface-3); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.script-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.script-card { min-height: 300px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, rgba(19, 36, 57, .95), rgba(12, 25, 42, .98)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.script-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 18px 45px rgba(0,0,0,.16); }
.script-card > header { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 0; }
.script-file-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: rgba(99,169,255,.1); }
.risk-badge .icon { width: .8rem; }
.risk-badge.safe { color: var(--accent); background: rgba(88,227,163,.08); }
.risk-badge.caution { color: var(--amber); background: rgba(255,189,102,.09); }
.risk-badge.danger { color: var(--danger); background: rgba(255,113,132,.09); }
.script-card-body { padding: 17px 18px; display: flex; flex-direction: column; flex: 1; }
.script-card h3 { margin: 0; font-size: 1rem; letter-spacing: -.022em; }
.filename { margin: 5px 0 0; color: var(--accent); font: 600 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.script-description { margin: 15px 0; color: var(--muted); font-size: .76rem; line-height: 1.63; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.option-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.option-row code, .detected-options code { padding: 4px 6px; border-radius: 6px; color: #b9c8dc; background: rgba(255,255,255,.04); font-size: .6rem; }
.option-row .muted { font-size: .64rem; }
.script-card > footer { display: flex; gap: 7px; padding: 13px 18px; border-top: 1px solid var(--border); background: rgba(0,0,0,.08); }
.script-card > footer .button-run { flex: 1; }

/* Zamanlama */
.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-intro h2 { margin: 0; font-size: 1.2rem; }
.section-intro p { margin: 7px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.cron-list { display: grid; gap: 11px; }
.cron-card { min-height: 112px; display: grid; grid-template-columns: 200px 1fr auto; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(15,29,47,.94); }
.cron-time { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding-right: 18px; border-right: 1px solid var(--border); }
.cron-time > span { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--violet); background: rgba(168,140,255,.09); }
.cron-time strong { font-size: .78rem; }
.cron-time code { color: var(--muted-2); font-size: .64rem; margin-top: 5px; }
.cron-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cron-main h3 { margin: 0; font-size: .92rem; }
.cron-main > p { margin: 5px 0 0; color: var(--muted); font: .66rem ui-monospace, monospace; }
.source-badge.webmin { color: var(--blue); background: rgba(99,169,255,.08); }
.source-badge.manager { color: var(--accent); background: rgba(88,227,163,.08); }
.source-badge.system { color: var(--amber); background: rgba(255,189,102,.08); }
.cron-main details { margin-top: 9px; color: var(--muted-2); font-size: .65rem; }
.cron-main summary { cursor: pointer; }
.cron-main pre { max-width: 100%; overflow: auto; padding: 9px; border-radius: 8px; background: rgba(0,0,0,.2); color: #aebfd3; white-space: pre-wrap; overflow-wrap: anywhere; }
.cron-actions { display: flex; gap: 7px; }
.readonly-chip { color: var(--muted-2); font-size: .67rem; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; }

/* İş tablosu */
.job-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(14,28,46,.9); }
.job-table-head, .job-table-row { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 110px 70px 125px; gap: 15px; align-items: center; }
.job-table-head { min-height: 42px; padding: 0 18px; color: var(--muted-2); background: rgba(255,255,255,.025); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.job-table-row { min-height: 75px; padding: 12px 18px; border-top: 1px solid var(--border); }
.job-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.job-name > span:last-child { display: grid; min-width: 0; }
.job-name strong { overflow: hidden; text-overflow: ellipsis; font-size: .8rem; }
.job-name small { color: var(--muted-2); font-size: .65rem; margin-top: 5px; }
.job-table-row time { color: var(--muted); font-size: .7rem; }
.job-table-row > code { color: var(--muted); font-size: .72rem; }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; }

/* İşlem kaydı */
.audit-list { display: grid; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.audit-row { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 13px 17px; background: rgba(14,28,46,.92); border-top: 1px solid var(--border); }
.audit-row:first-child { border-top: 0; }
.audit-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(88,227,163,.08); }
.audit-row > div:nth-child(2) { min-width: 0; }
.audit-row strong { font-size: .76rem; }
.audit-row p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.audit-row > div:last-child { display: grid; justify-items: end; gap: 4px; color: var(--muted-2); font-size: .65rem; }

/* Modallar */
.app-dialog { width: min(640px, calc(100vw - 28px)); max-height: min(88vh, 900px); padding: 0; color: var(--text); background: transparent; border: 0; overflow: visible; }
.app-dialog.wide { width: min(980px, calc(100vw - 28px)); }
.app-dialog::backdrop { background: rgba(2, 7, 14, .78); backdrop-filter: blur(5px); }
.dialog-shell { max-height: min(88vh, 900px); display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 22px; background: #0d1a2b; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.dialog-header { min-height: 82px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 7px 0 0; font-size: 1.28rem; letter-spacing: -.03em; }
.dialog-body { padding: 20px; overflow: auto; overscroll-behavior: contain; }
.dialog-footer { min-height: 70px; padding: 13px 20px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); background: rgba(0,0,0,.08); }
.footer-spacer { flex: 1; }
.stack-form { display: grid; gap: 17px; }
.two-columns, .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-grid { grid-template-columns: repeat(4, 1fr); }
.detail-stat { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); display: grid; gap: 6px; }
.detail-stat span { color: var(--muted-2); font-size: .63rem; }
.detail-stat strong { overflow: hidden; text-overflow: ellipsis; font-size: .7rem; }
.docstring-box { border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.018); overflow: hidden; }
.docstring-box summary { padding: 12px 14px; cursor: pointer; color: #ced9e6; font-size: .75rem; font-weight: 750; }
.docstring-box > div { padding: 0 14px 14px; color: var(--muted); font-size: .73rem; line-height: 1.65; }
.detected-options { padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.018); }
.detected-options > span { display: block; color: var(--muted); font-size: .68rem; margin-bottom: 9px; }
.detected-options > div { display: flex; gap: 5px; flex-wrap: wrap; }
.detected-options ul { margin: 10px 0 0 18px; padding: 0; color: var(--amber); font-size: .67rem; }
.confirm-panel { display: flex; gap: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; }
.confirm-panel.safe { color: var(--accent); background: rgba(88,227,163,.06); border-color: rgba(88,227,163,.14); }
.confirm-panel.caution { color: var(--amber); background: rgba(255,189,102,.06); border-color: rgba(255,189,102,.16); }
.confirm-panel.danger { color: var(--danger); background: rgba(255,113,132,.06); border-color: rgba(255,113,132,.16); }
.confirm-panel > div { color: var(--text); }
.confirm-panel strong { display: block; font-size: .8rem; line-height: 1.5; }
.confirm-panel p { margin: 5px 0 0; color: var(--muted); font: .65rem ui-monospace, monospace; }
.field-block { display: grid; gap: 8px; margin-top: 16px; }
.field-block pre { margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.18); color: #b8c8da; font-size: .7rem; line-height: 1.5; white-space: pre-wrap; }
.schedule-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.schedule-fields > label { display: none; }
.schedule-fields > label.visible { display: grid; }
.schedule-fields > label[data-field="custom"] { grid-column: 1 / -1; }
.schedule-fields small { color: var(--muted-2); font-size: .64rem; }
.schedule-preview { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(88,227,163,.14); border-radius: 11px; background: rgba(88,227,163,.045); }
.schedule-preview > span { color: var(--accent); }
.schedule-preview > div { display: grid; gap: 4px; }
.schedule-preview small { color: var(--muted-2); font-size: .62rem; }
.schedule-preview strong { color: var(--accent); font: .77rem ui-monospace, monospace; }

/* Kod ve log */
.editor-warning { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(88,227,163,.12); border-radius: 10px; color: #b7d7c9; background: rgba(88,227,163,.045); font-size: .68rem; }
.code-editor { height: min(58vh, 620px); display: grid; grid-template-columns: 54px 1fr; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 11px; background: #07111e; }
.code-editor pre { margin: 0; padding: 14px 10px; overflow: hidden; color: #486077; background: #091624; border-right: 1px solid var(--border); text-align: right; font: 12px/1.62 ui-monospace, SFMono-Regular, Menlo, monospace; user-select: none; }
.code-editor textarea { height: 100%; resize: none; overflow: auto; border: 0; border-radius: 0; padding: 14px 16px; color: #d7e3ef; background: transparent; font: 12px/1.62 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 4; white-space: pre; }
.code-editor textarea:focus { box-shadow: none; }
.editor-meta { display: flex; gap: 14px; margin-top: 8px; color: var(--muted-2); font: .62rem ui-monospace, monospace; }
.editor-meta span:first-child { color: var(--accent); }
.editor-loading, .loading-block { min-height: 180px; display: grid; place-items: center; color: var(--muted); font-size: .78rem; }
.log-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--muted-2); font-size: .68rem; }
.terminal-log { height: min(60vh, 620px); margin: 0; padding: 16px; overflow: auto; border: 1px solid var(--border); border-radius: 11px; background: #040b13; color: #b9d0c5; font: 12px/1.62 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.empty-state { min-height: 210px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; color: var(--muted); }
.empty-state > div { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 14px; color: var(--blue); background: rgba(99,169,255,.08); }
.empty-state strong { color: var(--text); font-size: .9rem; }
.empty-state p { max-width: 430px; margin: 7px 0 0; font-size: .72rem; line-height: 1.55; }
.skeleton-grid { min-height: 140px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.02) 35%, rgba(255,255,255,.045) 50%, rgba(255,255,255,.02) 65%); background-size: 300% 100%; animation: shimmer 1.7s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 9px; width: min(390px, calc(100vw - 30px)); pointer-events: none; }
.toast { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(88,227,163,.18); border-radius: 12px; background: #12273a; color: #dce8f3; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .22s ease; font-size: .76rem; }
.toast.show { opacity: 1; transform: none; }
.toast.success .icon { color: var(--accent); }
.toast.error { border-color: rgba(255,113,132,.22); }
.toast.error .icon { color: var(--danger); }

@media (max-width: 1180px) {
  .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-table-head, .job-table-row { grid-template-columns: minmax(220px, 1fr) 135px 100px 105px; }
  .job-table-head span:nth-child(4), .job-table-row > code { display: none; }
}

@media (max-width: 900px) {
  :root { --sidebar: 78px; }
  .sidebar { padding: 17px 10px; align-items: center; }
  .brand { padding: 0 0 20px; }
  .brand > span:last-child, .nav-item span:last-child, .server-chip, .account-button > span:last-child { display: none; }
  .main-nav { width: 100%; }
  .nav-item { justify-content: center; padding: 0; }
  .sidebar-foot { width: 100%; }
  .account-button { justify-content: center; padding: 8px 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; max-width: 620px; }
  .auth-brand { display: none; }
}

@media (max-width: 680px) {
  :root { --radius: 14px; --radius-lg: 17px; }
  .app-layout { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 0 14px 26px; }
  .topbar { min-height: 92px; padding-top: env(safe-area-inset-top); }
  .topbar h1 { font-size: 1.45rem; }
  .topbar-actions .button-ghost { display: none; }
  .topbar-actions .button-primary { width: 42px; padding: 0; font-size: 0; }
  .topbar-actions .button-primary .icon { width: 1rem; }
  .view { padding-top: 18px; }
  .mobile-nav { position: fixed; inset: auto 0 0 0; z-index: 30; min-height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 6px env(safe-area-inset-bottom); border-top: 1px solid var(--border-strong); background: rgba(8,19,32,.94); backdrop-filter: blur(18px); }
  .mobile-nav button { min-height: 52px; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 10px; color: var(--muted-2); background: transparent; cursor: pointer; }
  .mobile-nav button.active { color: var(--accent); background: rgba(88,227,163,.06); }
  .mobile-nav small { font-size: .57rem; font-weight: 750; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .summary-card { min-height: 126px; padding: 14px; gap: 10px; flex-direction: column; }
  .summary-icon { width: 34px; height: 34px; }
  .summary-card strong { font-size: 1.55rem; }
  .summary-card small { display: none; }
  .panel { padding: 16px; }
  .quick-panel { display: none; }
  .job-row { grid-template-columns: auto 1fr auto; }
  .job-row > .icon, .job-row .status-badge { display: none; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-box { flex-basis: 100%; max-width: none; }
  .segmented { flex: 1; overflow-x: auto; }
  .segmented button { flex: 1 0 auto; }
  .toolbar > .button { width: 44px; padding: 0; font-size: 0; }
  .script-grid { grid-template-columns: 1fr; gap: 11px; }
  .script-card { min-height: 274px; }
  .script-card:hover { transform: none; }
  .section-intro { align-items: flex-start; }
  .section-intro > .button { width: 42px; padding: 0; font-size: 0; }
  .cron-card { grid-template-columns: 1fr auto; gap: 13px; padding: 15px; }
  .cron-time { grid-column: 1 / -1; padding: 0 0 13px; border-right: 0; border-bottom: 1px solid var(--border); }
  .cron-main { min-width: 0; }
  .cron-main pre { max-height: 100px; }
  .job-table { border: 0; background: transparent; display: grid; gap: 9px; overflow: visible; }
  .job-table-head { display: none; }
  .job-table-row { min-height: 105px; grid-template-columns: 1fr auto; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(14,28,46,.92); }
  .job-table-row time { grid-column: 1; }
  .job-table-row .status-badge { grid-row: 1; grid-column: 2; }
  .row-actions { grid-column: 2; }
  .audit-row { grid-template-columns: auto 1fr; }
  .audit-row > div:last-child { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .app-dialog, .app-dialog.wide { width: 100vw; max-width: none; max-height: 94vh; margin: auto 0 0; }
  .dialog-shell { max-height: 94vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .dialog-header { min-height: 74px; padding: 15px; }
  .dialog-body { padding: 15px; }
  .dialog-footer { padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .dialog-footer .button { flex: 1; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .two-columns, .schedule-fields { grid-template-columns: 1fr; }
  .code-editor { height: 58vh; grid-template-columns: 42px 1fr; }
  .code-editor pre { padding-left: 4px; padding-right: 7px; }
  .terminal-log { height: 58vh; }
  .auth-body { padding: 0; align-items: end; }
  .auth-shell { width: 100%; min-height: 100vh; border: 0; border-radius: 0; background: var(--bg); }
  .auth-card { align-self: center; margin: 18px; padding: 26px 20px; }
  .toast-region { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
