/* MCK panel — "Kartlı" tasarımı (docs/design-20261112 referansı): üst menü, Manrope, mavi vurgu, açık/koyu. */
@font-face { font-family: Manrope; src: url(/fonts/Manrope-Variable.ttf) format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f5f8fc; --panel: #ffffff; --panel2: #f4f7fb; --line: #dce5ef; --ink: #19324d; --dim: #53677e; --faint: #8296ad;
  --acc: #2364ed; --acc2: #edf3ff; --accInk: #fff;
  --mint: #e4f5f1; --pos: #087f74; --yellow: #fff2df; --orange: #b95212; --pink: #fff0f0; --blueSoft: #eaf1ff;
  --ok: #087f74; --okBg: #e4f5f1; --warn: #b95212; --warnBg: #fff2df; --bad: #cf3c49; --badBg: #fff0f0; --info: #2364ed; --infoBg: #edf3ff;
  --shadow: 0 4px 18px rgba(25,50,77,.05); --r: 14px; --fs: 15px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101c2c; --panel: #162538; --panel2: #1c3046; --line: #31455d; --ink: #edf4ff; --dim: #bac9da; --faint: #8ea2b9;
  --acc: #5b8cff; --acc2: #213f62; --mint: #143f3e; --pos: #62d5c2; --yellow: #48381f; --orange: #ffb16e; --pink: #452d39; --blueSoft: #203d60;
  --ok: #62d5c2; --okBg: #143f3e; --warn: #ffb16e; --warnBg: #48381f; --bad: #ff8593; --badBg: #452d39; --info: #8fb2ff; --infoBg: #213f62;
  --shadow: 0 4px 18px rgba(0,0,0,.25); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #101c2c; --panel: #162538; --panel2: #1c3046; --line: #31455d; --ink: #edf4ff; --dim: #bac9da; --faint: #8ea2b9;
    --acc: #5b8cff; --acc2: #213f62; --mint: #143f3e; --pos: #62d5c2; --yellow: #48381f; --orange: #ffb16e; --pink: #452d39; --blueSoft: #203d60;
    --ok: #62d5c2; --okBg: #143f3e; --warn: #ffb16e; --warnBg: #48381f; --bad: #ff8593; --badBg: #452d39; --info: #8fb2ff; --infoBg: #213f62;
    --shadow: 0 4px 18px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-accent="teal"] { --acc: #0f8f8a; --acc2: #dcf5f3; }
:root[data-accent="orange"] { --acc: #d35400; --acc2: #fdeadc; }
:root[data-accent="purple"] { --acc: #6a3df0; --acc2: #eee9ff; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 var(--fs)/1.5 Manrope, "Segoe UI Variable", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: 26px; font-weight: 750; letter-spacing: -.7px; display: flex; align-items: center; gap: 12px; }
h1 .ic { color: var(--acc); }
h2 { font-size: 20px; font-weight: 750; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
h2 .ic { color: var(--orange); }
h3 { font-size: 17px; font-weight: 750; letter-spacing: -.2px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
h3 .ic { color: var(--acc); }
a { color: var(--acc); }
.muted { color: var(--dim); } .faint { color: var(--faint); font-size: .9em; } .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ic { flex: none; }

/* --- üst çubuk + menü --- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.hdr { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 2.5vw, 42px); background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-size: 26px; font-weight: 850; letter-spacing: -1px; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand .logo { color: var(--acc); }
.brand small { font-size: 17px; font-weight: 550; color: var(--dim); letter-spacing: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.venueName { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; min-width: 0; }
.venueName span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.venueName .ic { color: var(--acc); }
.rolebadge { background: #b95212; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 7px; display: inline-flex; gap: 6px; align-items: center; }
.rolebadge.staff { background: var(--acc); }
.rolebadge.service { background: #19324d; }
.hdrRight { display: flex; align-items: center; gap: 10px; }
.userbtn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font-size: 16px; font-weight: 650; padding: 8px 10px; border-radius: 9px; }
.userbtn:hover { background: var(--panel2); }
.theme { display: flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 22px; padding: 3px; }
.theme button { width: 38px; height: 32px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--dim); }
.theme button.on { background: var(--panel); color: var(--orange); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
:root[data-theme="dark"] .theme button.on { color: var(--acc); }
.topnav { display: flex; align-items: stretch; gap: 4px; padding: 0 clamp(16px, 2.5vw, 42px); background: var(--panel); border-bottom: 1px solid var(--line); min-height: 58px; }
.topnav > a, .topnav > .more > button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; color: var(--dim); text-decoration: none; font-size: 15.5px; font-weight: 650; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; white-space: nowrap; position: relative; }
.topnav > a.on, .topnav > .more.on > button { color: var(--acc); border-bottom-color: var(--acc); }
.topnav > a:hover:not(.on), .topnav > .more > button:hover { background: var(--panel2); color: var(--ink); }
.topnav .sep { width: 1px; background: var(--line); margin: 16px 0; flex: none; }
.topnav .cnt { background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; font-weight: 800; }
.more { position: relative; flex: 1; display: flex; }
.more > button { width: 100%; }
.menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.16); padding: 6px; z-index: 40; display: none; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; border: 0; background: transparent; cursor: pointer; font-weight: 600; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--panel2); }
.menu a.on { background: var(--acc2); color: var(--acc); }
.menu .mhd { padding: 8px 12px 4px; font-size: 12px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.statusline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { flex: 1; width: 100%; max-width: 1840px; margin: 0 auto; padding: 22px clamp(16px, 2.5vw, 42px) 32px; }
.phead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; min-height: 44px; }
.phead .back { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); text-decoration: none; font-weight: 650; padding-right: 14px; border-right: 1px solid var(--line); background: none; border-top: 0; border-left: 0; border-bottom: 0; cursor: pointer; font-size: 16px; }
.phead h1 { flex: 1; }
.pact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; text-decoration: none; color: var(--ink); }
.pill.ok { color: var(--pos); background: var(--mint); border-color: transparent; }
.pill.bad { color: var(--bad); background: var(--pink); border-color: transparent; }
.pill.warn { color: var(--orange); background: var(--yellow); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* --- yüzeyler --- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1150px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .brand small, .venueName { display: none; } }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.stat .k { color: var(--dim); font-size: 14px; font-weight: 650; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.empty { padding: 28px; text-align: center; color: var(--dim); border: 1px dashed var(--line); border-radius: 12px; }
.note { padding: 10px 14px; border-radius: 9px; background: var(--infoBg); color: var(--info); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; font-weight: 600; }
.note.warn { background: var(--yellow); color: var(--orange); } .note.bad { background: var(--pink); color: var(--bad); } .note.ok { background: var(--mint); color: var(--pos); }
.note .ic { margin-top: 1px; }

/* --- düğmeler --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover:not(:disabled) { border-color: var(--acc); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--acc); color: #fff; border-color: var(--acc); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn.outline { color: var(--acc); border-color: var(--acc); background: var(--panel); }
.btn.outline.green { color: var(--pos); border-color: var(--pos); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.big { min-height: 58px; font-size: 19px; padding: 0 28px; border-radius: 11px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.soft { background: var(--panel2); color: var(--acc); }
.iconbtn { border: 0; background: transparent; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--dim); display: inline-grid; place-items: center; }
.iconbtn:hover { background: var(--panel2); color: var(--ink); }

/* --- form --- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field .lbl { font-size: 13.5px; font-weight: 700; color: var(--dim); }
.field .hint { font-size: 12.5px; color: var(--faint); }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); width: 100%; }
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .segb:focus-visible, button:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
input.money { font-size: 28px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; min-height: 60px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 38px; cursor: pointer; font-weight: 650; }
.check input { width: 22px; height: 22px; accent-color: var(--acc); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segb { min-height: 42px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.segb.on { background: var(--acc); color: #fff; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.form .full { grid-column: 1 / -1; }
.is-dirty .savebar { display: flex; }
.savebar { display: none; position: sticky; bottom: 0; margin: 16px -20px -20px; padding: 12px 20px; background: var(--yellow); color: var(--orange); border-radius: 0 0 var(--r) var(--r); align-items: center; gap: 10px; font-weight: 700; }

/* --- tablo --- */
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; font-weight: 750; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: var(--panel2); }
.tbl tr.bad td { background: var(--pink); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.pager .muted { margin-right: auto; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters > * { min-width: 150px; }
.filters .grow { flex: 1; min-width: 240px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 750; background: var(--panel2); color: var(--dim); white-space: nowrap; }
.badge.ok { background: var(--mint); color: var(--pos); } .badge.bad { background: var(--pink); color: var(--bad); }
.badge.warn { background: var(--yellow); color: var(--orange); } .badge.info { background: var(--acc2); color: var(--acc); }
.badge.muted { opacity: .75; } .badge.acc { background: var(--acc2); color: var(--acc); }
.tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a, .tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 16px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16.5px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; white-space: nowrap; }
.tabs > :last-child { border-right: 0; }
.tabs .on { background: var(--acc); color: #fff; }
.tabs a:hover:not(.on), .tabs button:hover:not(.on) { background: var(--acc2); }
.tabs .ic { opacity: .9; }

/* --- modal, bildirim --- */
.mbg { position: fixed; inset: 0; background: rgba(16,28,44,.45); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .12s; }
.modal { background: var(--panel); border-radius: 16px; width: min(540px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.modal.wide { width: min(820px, 100%); }
.mhead { display: flex; align-items: center; padding: 18px 18px 8px 24px; } .mhead h2 { flex: 1; }
.mbody { padding: 8px 24px 18px; overflow-y: auto; } .mbody p { margin: 4px 0 10px; }
.mfoot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--panel); box-shadow: 0 10px 30px rgba(0,0,0,.15); border-left: 4px solid var(--pos); max-width: 440px; font-weight: 650; transition: opacity .3s, transform .3s; }
.toast.bad { border-color: var(--bad); } .toast.warn { border-color: var(--orange); }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes fade { from { opacity: 0; } }

/* --- giriş / kurulum --- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.authbox { width: min(460px, 100%); }
.authbox .card { padding: 30px; }
.authbox .logo { font-size: 34px; font-weight: 850; letter-spacing: -1px; text-align: center; margin-bottom: 2px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.authbox .logo .ic { color: var(--acc); }
.steps { display: flex; gap: 6px; margin-bottom: 18px; } .steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); } .steps i.on { background: var(--acc); }

/* --- yükleme (kasa) ekranı: kart · tutar · ödeme --- */
.pos { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(360px, 1.12fr) minmax(360px, 1.12fr); gap: 16px; align-items: stretch; }
@media (max-width: 1180px) { .pos { grid-template-columns: 1fr 1fr; } .pos > .reader { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pos { grid-template-columns: 1fr; } }
.pos > section { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.reader .top { display: flex; align-items: center; gap: 14px; }
.reader .rIcon { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--pos); display: grid; place-items: center; flex: none; }
.reader .rIcon.wait { background: var(--panel2); color: var(--faint); }
.reader .rIcon.badc { background: var(--pink); color: var(--bad); }
.rstate { font-size: 15.5px; font-weight: 750; padding: 6px 12px; border-radius: 18px; background: var(--panel2); color: var(--dim); display: inline-flex; gap: 6px; align-items: center; }
.rstate.ready { background: var(--mint); color: var(--pos); }
.rstate.working { background: var(--yellow); color: var(--orange); }
.rstate.bad { background: var(--pink); color: var(--bad); }
.cname { font-size: 24px; font-weight: 750; display: flex; align-items: center; gap: 9px; overflow: hidden; }
.cname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnum { font-size: 16px; color: var(--dim); display: flex; align-items: center; gap: 9px; letter-spacing: .5px; font-family: Consolas, monospace; }
.cbal { border-top: 1px solid var(--line); padding-top: 14px; }
.cbal span { font-size: 16px; color: var(--dim); font-weight: 650; }
.cbal strong { display: block; font-size: 42px; font-weight: 800; color: var(--pos); letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.shares { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shares div { background: var(--panel2); border-radius: 9px; padding: 8px 11px; }
.shares b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; } .shares span { font-size: 12.5px; color: var(--dim); font-weight: 650; }
.rnote { background: var(--mint); color: var(--pos); padding: 8px 10px; border-radius: 7px; font-size: 13px; font-weight: 650; display: flex; gap: 8px; align-items: center; }
.amountBox { display: flex; align-items: center; border: 1.5px solid var(--acc); border-radius: 10px; padding: 6px 16px; height: 82px; background: var(--panel); }
.amountBox .val { flex: 1; font-size: 48px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.amountBox .val.ph { color: var(--faint); }
.amountBox .cur { font-size: 23px; font-weight: 750; color: var(--acc); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { min-height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); font-weight: 750; font-size: 16px; cursor: pointer; }
.quick button.on { border-color: var(--orange); color: var(--orange); background: var(--yellow); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.keypad button { min-height: 52px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); font-size: 25px; font-weight: 750; cursor: pointer; display: grid; place-items: center; }
.keypad button:active { transform: scale(.97); }
.keypad .clr { color: var(--bad); background: var(--pink); border-color: #e9adb4; }
.payTitle .ic { color: var(--orange); }
.campSel { background: var(--yellow); color: var(--orange); font-weight: 700; border-color: transparent; }
.sumrows { display: flex; flex-direction: column; }
.sumrows > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.sumrows > div.big { font-size: 18px; font-weight: 800; padding: 9px 0; }
.sumrows > div:last-child { border-bottom: 0; }
.sumrows strong { font-variant-numeric: tabular-nums; }
.chip { padding: 3px 9px; border-radius: 6px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chip.mint { background: var(--mint); color: var(--pos); } .chip.yellow { background: var(--yellow); color: var(--orange); }
.paybar { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); padding: 12px 22px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.paybar .tot { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750; padding-right: 22px; border-right: 1px solid var(--line); }
.paybar .tot strong { font-size: 26px; color: var(--pos); font-variant-numeric: tabular-nums; }
.paybar .go { flex: 1; display: flex; justify-content: center; }
.paybar .go .btn { min-width: min(560px, 100%); min-height: 62px; font-size: 22px; border-radius: 11px; }
.opgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 750; text-align: left; font-size: 15.5px; }
.tile:hover:not(:disabled) { border-color: var(--acc); }
.tile.on { border-color: var(--acc); background: var(--acc2); color: var(--acc); }
.tile.danger .ic { color: var(--bad); }
.tile:disabled { opacity: .4; cursor: not-allowed; }
.tile .ic { color: var(--acc); }
.sum { width: 100%; border-collapse: collapse; margin: 6px 0; }
.sum td { padding: 9px 0; border-bottom: 1px solid var(--line); } .sum td:last-child { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.sum tr.big td { font-size: 1.25em; font-weight: 800; border-bottom: 0; }
.result { text-align: center; padding: 10px 0; } .result .ic { margin-bottom: 6px; }
.result.ok .ic { color: var(--pos); } .result.bad .ic { color: var(--bad); } .result.warn .ic { color: var(--orange); }

/* --- süreli oyun --- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.area { border-radius: 12px; padding: 14px; border: 2px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; font-weight: 650; }
.area.empty { border-color: var(--pos); } .area.busy { border-color: var(--orange); } .area.full { border-color: var(--bad); background: var(--pink); cursor: not-allowed; }
.area.passive { opacity: .5; cursor: not-allowed; border-style: dashed; }
.area.sel { outline: 3px solid var(--acc); }
.area b { display: block; font-size: 1.1em; }
.left { font-variant-numeric: tabular-nums; font-weight: 800; }
.left.low { color: var(--bad); }
.desk2 { display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .desk2 { grid-template-columns: 1fr; } }

.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 16px; }
.perms h4 { grid-column: 1 / -1; margin: 12px 0 2px; font-size: 13px; color: var(--dim); }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; background: var(--panel2); white-space: pre-wrap; }
.msg.service { align-self: flex-start; background: var(--acc2); } .msg.venue { align-self: flex-end; }
.msg small { display: block; color: var(--dim); margin-bottom: 3px; }
.log { font-family: Consolas, monospace; font-size: 12.5px; max-height: 340px; overflow: auto; background: var(--panel2); border-radius: 10px; padding: 10px; white-space: pre-wrap; word-break: break-all; }
.log .o { color: var(--info); } .log .i { color: var(--pos); } .log .n { color: var(--orange); }
.kpi { display: flex; align-items: center; gap: 14px; background: var(--panel2); border-radius: 12px; padding: 14px 16px; }
.kpi .flag { width: 56px; height: 38px; border-radius: 6px; display: grid; place-items: center; font-weight: 850; color: #fff; font-size: 15px; flex: none; }
.kpi .k { font-size: 15px; color: var(--dim); font-weight: 650; } .kpi .v { font-size: 30px; font-weight: 850; letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bigstat { text-align: center; } .bigstat .n { font-size: 46px; font-weight: 850; line-height: 1; } .bigstat .ok { color: var(--pos); } .bigstat .bad { color: var(--bad); }
.plist > div { display: flex; align-items: center; gap: 10px; background: var(--panel2); border-radius: 9px; padding: 9px 12px; margin-bottom: 6px; font-weight: 700; }
