/* Operatör paneli görünümü. Gece jetonları onaylı tasarımdan (docs/design/operator-panel/*.dc.html), gündüz jetonları
   apps/web `.ag-v1.ag-light` kartelasından (K173/K186). Tema çerezi `__Host-ephesus-admin-theme` ('light' = gündüz).
   Dosya yalnız bu kökenden yüklenir (style-src 'self'); satır içi <style> yoktur. */
@font-face { font-family: "Ow Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ow Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.op { --bg: #0f1715; --surface: #16201d; --surface-2: #1f2b28; --ink: #eef2f0; --ink-2: #d5dedb; --muted: #a9b7b3; --line: #26332f;
  --accent: #58c4aa; --accent-ink: #7fdcc4; --field-bg: #111a18; --field-line: #3a4a46; --nav-on-bg: #1d3a33; --sel-bg: #14302a; --sel-line: #3fae94;
  --pri: #3fae94; --pri-fg: #04201a; --pri-hover: #57c3a9; --warn-bg: #33291a; --warn-fg: #f3d39a; --warn-line: #5a4523; --warn: #dba24a;
  --alert-line: #7a5212; --alert-ink: #f2c063; --badge-wait-bg: #dba24a; --badge-wait-fg: #231804; --badge-ok-bg: #237565; --badge-ok-fg: #fff;
  --badge-off-bg: #3a4744; --badge-off-fg: #d5dedb; --err-bg: #3d1d1b; --err-fg: #f0a990; --err-line: #7a3f30; --danger-line: #7a3f30; --danger-fg: #f0a990;
  --link: #58c4aa; --link-hover: #7fdcc4; --shadow: 0 1px 2px rgba(0, 0, 0, .35); color-scheme: dark; }
.op.op-light { --bg: #f3f1ea; --surface: #ffffff; --surface-2: #ece9df; --ink: #1d2725; --ink-2: #2f3b38; --muted: #4f5c59; --line: #dedad0;
  --accent: #1f6b5c; --accent-ink: #1f6b5c; --field-bg: #faf9f5; --field-line: #7d8985; --nav-on-bg: rgba(31, 107, 92, .10); --sel-bg: rgba(31, 107, 92, .08); --sel-line: #1f6b5c;
  --pri: #1f6b5c; --pri-fg: #ffffff; --pri-hover: #194d45; --warn-bg: #fdf3dc; --warn-fg: #6b4700; --warn-line: #e3c98a; --warn: #b7791f;
  --alert-line: #b7791f; --alert-ink: #8a5a00; --badge-wait-bg: #f2c063; --badge-wait-fg: #3a2700; --badge-ok-bg: #1f6b5c; --badge-ok-fg: #fff;
  --badge-off-bg: #5d6966; --badge-off-fg: #fff; --err-bg: #fdecea; --err-fg: #8f2f1b; --err-line: #e2a99c; --danger-line: #b4432b; --danger-fg: #9a3320;
  --link: #1f6b5c; --link-hover: #194d45; --shadow: 0 1px 3px rgba(18, 61, 55, .08); color-scheme: light; }

html, body { margin: 0; padding: 0; background: #0f1715; }
body:has(.op-light) { background: #f3f1ea; }
.op { font-family: "Ow Inter", Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1fr); align-content: start; -webkit-font-smoothing: antialiased; }
.op * { box-sizing: border-box; }
.op a { color: var(--link); } .op a:hover { color: var(--link-hover); }
.op a:focus-visible, .op button:focus-visible, .op input:focus-visible, .op select:focus-visible, .op textarea:focus-visible, .op summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Sol menü (K186 deseni): ≥1024 px sabit kenar çubuğu; altında üstte, menü yatay kayar. */
.rail { background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rail > div, .foot { min-width: 0; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px; margin: 0; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--pri); color: var(--pri-fg); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.brand strong { display: block; font-size: 15px; } .brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.nav a, .nav .off { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--nav-on-bg); color: var(--accent-ink); font-weight: 600; }
.nav .off { color: var(--muted); opacity: .75; cursor: default; }
.nav .count { margin-left: auto; background: var(--badge-wait-bg); color: var(--badge-wait-fg); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.nav .soon { margin-left: auto; font-size: 11px; border: 1px solid var(--field-line); border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.foot { display: flex; flex-direction: column; gap: 8px; }
.toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--field-bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 0; }
.toggle button { min-height: 38px; border: 0; background: transparent; color: var(--muted); font: 500 13px "Ow Inter", Inter, sans-serif; border-radius: 8px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.who { font-size: 13px; color: var(--muted); padding: 6px 8px; margin: 0; } .who strong { color: var(--ink); display: block; }
.ghost { min-height: 44px; width: 100%; border: 1px solid var(--field-line); background: transparent; color: var(--ink); border-radius: 9px; font: 600 13px "Ow Inter", Inter, sans-serif; text-align: left; padding: 0 12px; cursor: pointer; }
.ghost:hover { background: var(--surface-2); }
.foot form { margin: 0; }
@media (min-width: 1024px) {
  .op { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .rail { position: sticky; top: 0; height: 100svh; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--line); justify-content: space-between; padding: 20px 14px; gap: 24px; }
  .brand { padding: 4px 6px 18px; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: column; overflow: visible; margin-top: 14px; padding-bottom: 0; }
  .nav a { min-height: 42px; }
}

.main { min-width: 0; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) { .main { padding: 28px 40px 40px; max-width: 1240px; } }
.strip { display: flex; gap: 10px; align-items: center; background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 0; }
.strip svg { flex: none; }
.flash { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0; border: 1px solid var(--line); }
.flash.ok { background: var(--sel-bg); border-color: var(--sel-line); color: var(--ink); }
.flash.warn { background: var(--err-bg); border-color: var(--err-line); color: var(--err-fg); margin-top: 8px; }
.flash.warn ul { margin: 6px 0 6px 18px; padding: 0; }
.flash.err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-fg); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.crumb { margin: 0; color: var(--muted); font-size: 13px; }
.head h1 { margin: 4px 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.head p { margin: 0; color: var(--muted); font-size: 14px; }
.btn { min-height: 44px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--field-line); background: transparent; color: var(--ink); font: 600 14px "Ow Inter", Inter, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.op .btn.pri { background: var(--pri); border-color: var(--pri); color: var(--pri-fg); } .op .btn.pri:hover { background: var(--pri-hover); color: var(--pri-fg); }
.op .btn.warn { border-color: var(--danger-line); color: var(--danger-fg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tile small { color: var(--muted); font-size: 13px; } .tile b { font-size: 30px; } .tile span { color: var(--muted); font-size: 12px; }
.tile.alert { border-color: var(--alert-line); } .tile.alert b { color: var(--alert-ink); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h2 { margin: 0; font-size: 16px; } .card h3 { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.card .sub { margin: 0; color: var(--muted); font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.row > div { min-width: 0; overflow-wrap: anywhere; flex: 1 1 auto; }
.row > .badge, .item > .badge { max-width: 55%; flex: 0 1 auto; }
.meta { color: var(--muted); font-size: 12px; }
.badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; align-self: flex-start; display: inline-block; }
.b-wait { background: var(--badge-wait-bg); color: var(--badge-wait-fg); } .b-ok { background: var(--badge-ok-bg); color: var(--badge-ok-fg); }
.b-off { background: var(--badge-off-bg); color: var(--badge-off-fg); } .b-err { white-space: normal; overflow-wrap: anywhere; background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); }
.pilot { color: var(--muted); font-size: 12px; margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field-line); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.tabs a.on { background: var(--nav-on-bg); border-color: var(--sel-line); color: var(--accent-ink); font-weight: 600; }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--field-bg); text-decoration: none; color: var(--ink); min-height: 44px; }
.op a.item { color: var(--ink); } .item > div { min-width: 0; overflow-wrap: anywhere; }
.item.sel { border-color: var(--sel-line); background: var(--sel-bg); }
dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 10px 16px; font-size: 14px; } dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); } .check .ok { color: var(--accent-ink); } .check .no { color: var(--alert-ink); }
label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 9px; color: var(--ink); font: 14px "Ow Inter", Inter, sans-serif; padding: 0 12px; min-height: 44px; }
textarea { min-height: 80px; padding: 10px 12px; resize: vertical; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; flex: none; accent-color: var(--pri); }
.f { display: block; margin: 0; } .f small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; gap: 10px; flex-wrap: wrap; } .search input { flex: 1 1 240px; width: auto; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.inline-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.inline-check input { margin-top: 1px; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 10px; border-bottom: 1px solid var(--line); }
tbody th { color: var(--ink); font-size: 14px; font-weight: 700; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; }
tr.open td { background: var(--sel-bg); }
.subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 6px 0 4px; }
.prop { border: 1px solid var(--line); background: var(--field-bg); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mem { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; align-items: start; }
.act { border: 1px solid var(--line); background: var(--field-bg); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.act p { margin: 0; font-size: 12px; color: var(--muted); }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary { margin-bottom: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.inv { border: 1px solid var(--sel-line); background: var(--sel-bg); border-radius: 10px; padding: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.caution { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 12px; font-size: 14px; }
.secret { border: 1px dashed var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.secret code { font: 600 18px ui-monospace, Menlo, monospace; letter-spacing: .04em; color: var(--warn-fg); overflow-wrap: anywhere; user-select: all; }
ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.center { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.center .card { max-width: 440px; width: 100%; }
.sr { position: absolute; left: -9999px; }
@media (max-width: 520px) { dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } dt { margin-top: 8px; } .two { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
