@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/vendor/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC; }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/vendor/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
:root { --m: #7D2453; --mt: #f3e6ed; --g: #B8863B; --k: #FAF7F3; --d: #1E1B20; --r: #B23A3A; --ok: #2f7d4f; --ink: #1E1B20; --mut: #6d6670; --line: #e7e0e3; --card: #fff; --bg: #f6f3f0; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, -apple-system, system-ui, sans-serif; }
button { font: inherit; cursor: pointer; border: 0; }
input, textarea, select { font: inherit; }
a { color: var(--m); }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
nav { background: var(--d); color: #fff; padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
nav .brand { font-weight: 800; font-size: 18px; padding: 0 10px 4px; }
nav .ca { color: #b9b0b5; font-size: 12px; padding: 0 10px 18px; }
nav a { display: flex; justify-content: space-between; color: #e9e3e6; text-decoration: none; padding: 9px 10px; border-radius: 10px; font-weight: 600; }
nav a.on, nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
nav .cnt { background: var(--r); border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 20px; }
nav .foot { position: absolute; bottom: 16px; left: 12px; right: 12px; font-size: 13px; color: #b9b0b5; }
nav .foot button { background: none; color: #e9e3e6; padding: 4px 0; }
main { padding: 26px 28px 60px; max-width: 1280px; width: 100%; }
h1 { font-size: 24px; margin: 0 0 18px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 0 0 12px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.kpi b { display: block; font-size: 30px; letter-spacing: -.02em; }
.kpi span { color: var(--mut); font-size: 13px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { color: var(--mut); font-weight: 600; font-size: 12.5px; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--k); }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--mt); color: var(--m); font-weight: 700; font-size: 12px; white-space: nowrap; }
.chip.ok { background: #e1f1e7; color: var(--ok); } .chip.warn { background: #f8e3e3; color: var(--r); } .chip.gold { background: #f5ecdc; color: #85601f; } .chip.gray { background: #eee; color: #555; }
.btn { background: var(--m); color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 700; }
.btn.sec { background: #fff; color: var(--m); border: 1.5px solid var(--m); }
.btn.red { background: var(--r); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.muted { color: var(--mut); } .small { font-size: 13px; }
.field { display: block; margin-bottom: 10px; } .field span { display: block; font-size: 13px; color: var(--mut); font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vids { display: flex; gap: 14px; flex-wrap: wrap; }
.vids figure { margin: 0; width: 260px; }
.vids video, .vids img { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 9/16; object-fit: contain; display: block; }
.vids figcaption { font-size: 13px; margin-top: 6px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv div:nth-child(odd) { color: var(--mut); }
.ok { color: var(--ok); font-weight: 700; } .bad { color: var(--r); font-weight: 700; }
.ev { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ev time { color: var(--mut); white-space: nowrap; font-size: 12.5px; min-width: 92px; }
.ev .a { font-weight: 700; color: var(--m); min-width: 110px; font-size: 12.5px; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; padding: 4px; }
.msg { max-width: 80%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 14px; }
.msg.doktor { background: var(--k); border: 1px solid var(--line); }
.msg.ekip { margin-left: auto; background: var(--m); color: #fff; }
.msg.sistem { margin: 0 auto; color: var(--mut); font-size: 12.5px; }
.msg .who { font-weight: 700; font-size: 12px; margin-bottom: 2px; } .msg.ekip .who { color: #f3d9e6; } .msg.doktor .who { color: var(--m); }
.msg .tm { font-size: 11px; opacity: .6; margin-top: 3px; }
.msg video, .msg img { max-width: 260px; max-height: 300px; border-radius: 10px; display: block; background: #000; }
.msg .tr { font-style: italic; margin-top: 4px; }
.reply { display: flex; gap: 8px; margin-top: 10px; } .reply textarea { flex: 1; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; min-height: 44px; }
.login { max-width: 380px; margin: 12vh auto; } .login h1 { margin-bottom: 4px; }
.err { color: var(--r); font-size: 14px; }
#toast { position: fixed; right: 20px; bottom: 20px; background: var(--d); color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 50; font-weight: 600; }
.cmp td.diff { font-weight: 700; }
.mtop { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  nav .brand, nav .ca { display: none; } nav .foot { position: static; width: 100%; }
  main { padding: 16px; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: 1fr; }
  .vids figure { width: calc(50% - 7px); } .kv { grid-template-columns: 130px 1fr; }
  table { display: block; overflow-x: auto; }
}
