/* ERP PORT - Odoo yonetim paneli. Marka renkleri logodan: mor #9D4A8D, gri #8F8F8F */
:root {
  --brand: #9d4a8d; --brand-grey: #8f8f8f;
  --ink: #1f1a22;
  --rail: #fff; --rail-text: #5f5a66; --rail-hi: #1f1d24; --rail-hover: #f5f1f5; --rail-active: rgba(157, 74, 141, .1);
  --accent: #9d4a8d; --accent-2: #843c76; --accent-soft: rgba(157, 74, 141, .11);
  --bg: #f5f5f7; --surface: #fff; --surface-2: #f9f8fa; --line: #e7e4e9;
  --text: #1f1d24; --muted: #6f6b77;
  --ok: #138a55; --ok-soft: rgba(19, 138, 85, .12);
  --warn: #b7700b; --warn-soft: rgba(183, 112, 11, .13);
  --err: #cf3a48; --err-soft: rgba(207, 58, 72, .11);
  --run: #3b6fd8; --run-soft: rgba(59, 111, 216, .12);
  --idle: #7f7b86; --idle-soft: rgba(127, 123, 134, .14);
  --console: #17151c; --console-head: #211e27; --console-text: #d6d2dc;
  --shadow: 0 1px 2px rgba(20, 16, 24, .04), 0 2px 6px rgba(20, 16, 24, .05);
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #c873b6; --brand-grey: #a5a3a8;
    --ink: #0b0a0e;
    --rail: #141218; --rail-text: #9d98a6; --rail-hi: #f1eef5; --rail-hover: #1e1b24; --rail-active: rgba(200, 115, 182, .15);
    --accent: #cf7fc0; --accent-2: #dc98ce; --accent-soft: rgba(207, 127, 192, .16);
    --bg: #0f0e13; --surface: #18161e; --surface-2: #141219; --line: #2b2832;
    --text: #ece9f1; --muted: #9a96a3;
    --ok: #3fcf8e; --ok-soft: rgba(63, 207, 142, .14);
    --warn: #f2b54d; --warn-soft: rgba(242, 181, 77, .14);
    --err: #ff6b78; --err-soft: rgba(255, 107, 120, .14);
    --run: #7a9dff; --run-soft: rgba(122, 157, 255, .16);
    --idle: #8a8693; --idle-soft: rgba(138, 134, 147, .16);
    --console: #0d0c11; --console-head: #18161e;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #c873b6; --brand-grey: #a5a3a8;
  --ink: #0b0a0e;
  --rail: #141218; --rail-text: #9d98a6; --rail-hi: #f1eef5; --rail-hover: #1e1b24; --rail-active: rgba(200, 115, 182, .15);
  --accent: #cf7fc0; --accent-2: #dc98ce; --accent-soft: rgba(207, 127, 192, .16);
  --bg: #0f0e13; --surface: #18161e; --surface-2: #141219; --line: #2b2832;
  --text: #ece9f1; --muted: #9a96a3;
  --ok: #3fcf8e; --ok-soft: rgba(63, 207, 142, .14);
  --warn: #f2b54d; --warn-soft: rgba(242, 181, 77, .14);
  --err: #ff6b78; --err-soft: rgba(255, 107, 120, .14);
  --run: #7a9dff; --run-soft: rgba(122, 157, 255, .16);
  --idle: #8a8693; --idle-soft: rgba(138, 134, 147, .16);
  --console: #0d0c11; --console-head: #18161e;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { display: flex; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: 12px; }
h2 { font-size: 16px; margin: 0; letter-spacing: -.1px; }
h3 { font-size: 14.5px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.note { color: var(--muted); font-size: 12.5px; margin: 10px 0; }
.grow { flex: 1; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 14px; height: 14px; }

/* logo (erpport yazisi) */
.wordmark { display: block; height: auto; }
.wordmark .wm-erp { stroke: var(--brand); }
.wordmark .wm-port { stroke: var(--brand-grey); }

/* sol menu */
.rail { width: 224px; flex: none; background: var(--rail); color: var(--rail-text); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 12px 16px; }
.logo { padding: 0 10px 26px; text-decoration: none; }
.logo .wordmark { width: 128px; }
.logo small { display: block; margin-top: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rail-text); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .rail-foot button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--rail-text); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.nav a:hover, .rail-foot button:hover { background: var(--rail-hover); color: var(--rail-hi); }
.nav a.active { background: var(--rail-active); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ortam secici */
.envs { display: flex; flex-direction: column; gap: 2px; margin: -6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.envs-h { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rail-text); padding: 0 10px 6px; opacity: .8; }
.env-btn { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--rail-text); font: inherit; cursor: pointer; text-align: left; width: 100%; }
.env-btn:hover { background: var(--rail-hover); color: var(--rail-hi); }
.env-btn.active { border-color: var(--line); background: var(--surface-2); color: var(--rail-hi); }
.env-btn b { display: block; font-size: 13px; font-weight: 600; }
.env-btn small { display: block; font: 11px var(--mono); color: var(--rail-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--err); }
.dot.mid { background: var(--warn); }
.company { padding: 10px 10px 0; font-size: 11px; line-height: 1.4; color: var(--rail-text); opacity: .8; }

/* ust baslik */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 28px 32px 20px; }
.crumb { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }
.head h1 { margin: 2px 0 10px; font-size: 26px; letter-spacing: -.4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { font: 12px var(--mono); padding: 2px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.chip:empty { display: none; }
.chip.stg-chip { font-family: inherit; font-weight: 700; letter-spacing: .8px; background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 9px; border-radius: 999px; background: var(--idle-soft); color: var(--idle); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.pill.on i { animation: pulse 2s infinite; }
.pill.off { background: var(--err-soft); color: var(--err); }
.pill.mid { background: var(--warn-soft); color: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
.head-actions { display: flex; gap: 8px; }
#banner { padding: 0 32px 16px; display: flex; flex-direction: column; gap: 8px; }
#banner:empty { display: none; }
.tab { padding: 4px 32px 48px; width: 100%; max-width: 1180px; }
.tab.wide { max-width: none; }
.section-row { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.tab .section-row:not(:first-child) { margin-top: 26px; }

/* bilesenler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--err); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn.icon { width: 36px; padding: 0; }
.btn.block { width: 100%; height: 40px; }
input, select, textarea { font: inherit; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
textarea { height: auto; padding: 8px 10px; width: 100%; font-family: var(--mono); font-size: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 160px; }
.stack { display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.check input { height: auto; }
label.inline { display: inline-flex; align-items: center; gap: 8px; }
label.inline input { width: 80px; }
.field-label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; margin-bottom: 14px; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid transparent; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.err { background: var(--err-soft); color: var(--err); }
.alert.info { background: var(--accent-soft); color: var(--accent); }
.alert.stg { background: var(--warn-soft); color: var(--warn); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }
.table td.actions { text-align: right; white-space: nowrap; }
.kv { border-collapse: collapse; width: 100%; }
.kv td { padding: 6px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.kv tr:last-child td { border-bottom: 0; }
.kv td:first-child { color: var(--muted); width: 38%; padding-right: 10px; }
.kv code { word-break: break-all; }
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line); padding: 7px 10px; border-radius: 8px; }
pre.conf { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow: auto; font: 12px/1.6 var(--mono); max-height: 420px; margin: 0; }

/* durum renkleri */
.s-success { --st: var(--ok); --st-soft: var(--ok-soft); }
.s-warning { --st: var(--warn); --st-soft: var(--warn-soft); }
.s-failed, .s-interrupted { --st: var(--err); --st-soft: var(--err-soft); }
.s-running { --st: var(--run); --st-soft: var(--run-soft); }
.s-skipped, .s-idle { --st: var(--idle); --st-soft: var(--idle-soft); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; color: var(--st, var(--idle)); background: var(--st-soft, var(--idle-soft)); }
.badge.now { color: #fff; background: var(--ok); }
.avatar { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hash { font: 12px var(--mono); color: var(--accent); text-decoration: none; }
a.hash:hover { text-decoration: underline; }

/* canli surum karti */
.live { position: relative; overflow: hidden; border-radius: 14px; padding: 22px 26px; margin-bottom: 30px; color: #f3ecf2; background: linear-gradient(115deg, #2a1428 0%, #6e2f63 100%); }
.live::after { content: ""; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(222, 150, 205, .35), transparent 68%); pointer-events: none; }
.live-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: #dcbfd6; font-weight: 700; }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: #3fcf8e; color: #3fcf8e; animation: pulse 2s infinite; }
.live-title { font-size: 20px; font-weight: 650; margin: 8px 0 10px; max-width: 780px; line-height: 1.35; position: relative; }
.live-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #e0cfdc; font-size: 13px; position: relative; }
.live-meta code { background: rgba(255, 255, 255, .09); padding: 1px 7px; border-radius: 5px; color: #fff; }
.live-meta .badge { background: rgba(255, 255, 255, .1); }
.live-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.live .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.live .btn:hover { background: rgba(255, 255, 255, .16); }
.live .btn.primary { background: #fff; border-color: #fff; color: #2a1428; }
.live-running { margin-top: 14px; font-size: 13px; color: #f5c9ec; display: flex; gap: 8px; align-items: center; position: relative; }
.live-running svg { animation: spin 1s linear infinite; }
.live.staging { background: linear-gradient(115deg, #2a2110 0%, #6d4c12 100%); }
.live.staging::after { background: radial-gradient(circle, rgba(242, 181, 77, .32), transparent 68%); }
.live.staging .btn.primary { color: #2a2110; }
.live-meta b.n { color: #fff; }

/* zaman cizelgesi */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline .day { position: relative; padding: 14px 0 8px 46px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.timeline .day:first-child { padding-top: 0; }
.ev { position: relative; margin: 0 0 10px 46px; }
.ev .node { position: absolute; left: -46px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--st, var(--idle)); color: var(--st, var(--idle)); }
.ev .node svg { width: 15px; height: 15px; stroke-width: 3; }
.ev.s-running .node svg { animation: spin 1s linear infinite; }
.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 12px 16px; box-shadow: var(--shadow); min-width: 0; }
.ev.is-live .ev-card { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.ev.flash .ev-card { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); } 100% { background: var(--surface); } }
.ev-top { display: flex; align-items: center; gap: 8px; }
.ev-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.ev-meta .sep { opacity: .45; }
.ev-commits { margin-top: 8px; font-size: 12.5px; }
.ev-commits summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.ev-commits summary::-webkit-details-marker { display: none; }
.cm { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--line); }
.cm .msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-commits .cm:first-of-type { margin-top: 6px; }
.more { margin: 6px 0 0 46px; }
.empty { list-style: none; }
.empty-box { text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-box b { color: var(--text); display: block; margin-bottom: 4px; font-size: 15px; }
.empty-list { text-align: left; max-width: 640px; margin: 18px auto 0; }

/* konsol (terminal, log, is ciktisi) */
.console { background: var(--console); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.console-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 9px 12px; background: var(--console-head); color: #b3adbb; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.console-title { font-family: var(--mono); font-size: 12.5px; color: #e4e0ea; }
.console-state { font-size: 12px; }
.console-head select, .console-head input { height: 30px; background: rgba(255, 255, 255, .06); color: #e6ebf5; border-color: rgba(255, 255, 255, .12); }
.console-head select option { background: #211e27; color: #e6ebf5; }
.console-head .btn { background: rgba(255, 255, 255, .06); color: #e6ebf5; border-color: rgba(255, 255, 255, .12); }
.console-head .btn:hover { background: rgba(255, 255, 255, .12); }
.console-head .check { color: #cdd5e3; }
.console-head .badge { margin-left: auto; }
.console-head .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #cdd5e3; }
.console-head .chip.ok { color: #3fcf8e; }
.console-head .chip.warn { color: #f2b54d; }
/* Ic bosluk .xterm'de: fit eklentisi yalnizca onun padding'ini dusuyor; kutuya verilirse
   terminal bir satir fazla hesaplanir ve en alttaki satir (komut satiri) gorunmez kalir */
.term { height: calc(100vh - 260px); min-height: 320px; padding: 0; background: var(--console); overflow: hidden; }
.term .xterm { padding: 8px 10px; height: 100%; }
.logview, .job pre { color: var(--console-text); font: 12px/1.6 var(--mono); padding: 12px 14px; margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.logview { height: calc(100vh - 260px); min-height: 320px; }
.logview.job-log { height: auto; min-height: 0; max-height: 420px; }
.logview.modal-log { height: auto; min-height: 120px; max-height: 70vh; background: var(--console); border-radius: 8px; }
.job { margin: 16px 0; }
.job pre { max-height: 420px; }
/* log seviyeleri: uyari sari, hata kirmizi (koyu konsol zemininde okunur tonlar) */
.ll.lv-debug { color: #7d889d; }
.ll.lv-warning { color: #ffd24a; }
.ll.lv-error { color: #ff5f5f; }
.ll.lv-critical { color: #ff5f5f; font-weight: 700; }

/* izleme */
.tiles-h { font-size: 11.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .7px; font-weight: 700; margin: 0 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 26px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.gauge-tile { display: flex; gap: 14px; align-items: center; }
.gauge-tile > div { flex: 1; min-width: 0; }
.gauge { width: 76px; height: 76px; flex: none; }
.gauge .track { fill: none; stroke: var(--line); stroke-width: 8; }
.gauge .val { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 40px 40px; transition: stroke-dashoffset .6s; }
.hot .gauge .val { stroke: var(--warn); }
.crit .gauge .val { stroke: var(--err); }
.gauge text { fill: var(--text); font-size: 15px; font-weight: 700; font-family: inherit; }
.tile-label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.tile-value { font-size: 22px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.3px; }
.tile-sub { font-size: 12.5px; color: var(--muted); }
.spark { width: 100%; height: 30px; margin-top: 8px; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* yedekler, araclar */
.bar-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px; min-width: 150px; box-shadow: var(--shadow); }
.stat small { display: block; color: var(--muted); font-size: 11.5px; }
.stat b { font-size: 14px; }
.stat.bad b { color: var(--err); }
/* google drive karti */
h3 .pill { margin-left: 6px; vertical-align: middle; }
.stack.wide { max-width: none; }
.stack .field-label { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; }
.bk-row { align-items: flex-end; }
.bk-row .field-label { flex: 1; min-width: 130px; }
/* .row input'un flex:1'i dikey etikette yuksekligi ezerdi */
.bk-row .field-label input { min-width: 0; flex: none; }
.drive-help { margin: 2px 0 12px; font-size: 13px; }
.drive-help summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.drive-help ol { margin: 8px 0 0; padding-left: 20px; }
.drive-help li { margin: 4px 0; }
/* remote control karti (asistan) */
.rc-card { margin-bottom: 14px; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rc-head > div:first-child { flex: 1; min-width: 280px; }
.rc-head p { margin: 0 0 8px; }
.rc-card .drive-help { margin: 6px 0 0; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.action-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ac-head { display: flex; gap: 12px; align-items: flex-start; }
.ac-head h3 { margin-bottom: 4px; }
.ac-head p { margin: 0; }
.ac-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }

/* modal, bildirim */
#modal { position: fixed; inset: 0; background: rgba(5, 9, 18, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--surface); color: var(--text); border-radius: 14px; width: min(980px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.modal-head button { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
#modalBody { padding: 16px 18px; overflow: auto; }
#modalBody pre { margin: 0; background: var(--console); color: var(--console-text); font: 12px/1.6 var(--mono); padding: 12px 14px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; }
#toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; z-index: 60; max-width: 420px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#toast.show { opacity: 1; transform: none; }
#toast.err { background: var(--err); }

/* giris */
body.login-page { flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 0; background: radial-gradient(900px 520px at 0% 0%, rgba(157, 74, 141, .16), transparent 60%), radial-gradient(760px 460px at 100% 100%, rgba(143, 143, 143, .16), transparent 55%), var(--bg); }
.login-box { width: min(380px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px 26px; box-shadow: 0 24px 60px rgba(40, 20, 40, .12); display: flex; flex-direction: column; gap: 14px; }
.login-box label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.login-brand { text-align: center; margin-bottom: 8px; }
.login-brand .wordmark { width: 170px; margin: 0 auto; }
.login-brand small { display: block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.login-box .note { margin: 0; text-align: center; }
.login-foot { font-size: 12px; color: var(--muted); margin: 0; }

/* dar ekran */
@media (max-width: 820px) {
  body { flex-direction: column; }
  .rail { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; gap: 6px; padding: 8px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { padding: 0 8px 0 4px; }
  .logo .wordmark { width: 84px; }
  .logo small, .company, .nav a span, .rail-foot span, .envs-h, .env-btn small { display: none; }
  .envs { flex-direction: row; margin: 0; padding: 0 6px 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .env-btn { width: auto; }
  .nav { flex-direction: row; }
  .nav a.active { box-shadow: inset 0 -3px 0 var(--brand); }
  .rail-foot { flex-direction: row; margin: 0 0 0 auto; border: 0; padding: 0; }
  .nav a, .rail-foot button { width: auto; }
  .head { padding: 18px 16px 14px; }
  #banner { padding: 0 16px 14px; }
  .tab { padding: 4px 16px 40px; }
  .cards { grid-template-columns: 1fr; }
  .live { padding: 18px; }
}
