/* Dorak — HOLOLY colors */
:root {
  --navy: #193966; --navy-d: #10264A; --navy-2: #24477A; --navy-line: #3E5C8C;
  --teal: #00B5BB; --teal-d: #00718A; --teal-dd: #00566A; --teal-l: #E0F5F6;
  --bg: #F4F6F8; --card: #FFFFFF; --ink: #10264A; --muted: #5A6478; --line: #CDD4DE; --line-l: #E3E8EE;
  --amber: #F5A524; --red: #C62828; --red-d: #A51F1F; --red-line: #E57373;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: var(--teal-d); }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.end { margin-inline-start: auto; }

.topbar { background: var(--navy); color: #fff; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo img { width: 32px; height: auto; }
.pill { border-radius: 999px; padding: 7px 14px; font-size: 14px; background: var(--navy-2); color: #fff; white-space: nowrap; }
.pill.teal { background: var(--teal-d); }
.btn { height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--teal-d); color: #fff; font-weight: 600; font-size: 15px; }
.btn.navy { background: var(--navy); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.btn.ghost-dark { background: transparent; border: 1px solid var(--navy-line); color: #fff; font-weight: 500; }
.btn.danger { background: transparent; border: 1px solid var(--red-line); color: var(--red); font-weight: 500; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 14px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.card { background: var(--card); border-radius: 20px; padding: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: #33415C; }
.input, select.input { height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font-size: 16px; background: #fff; color: var(--ink); width: 100%; }
.input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.error { color: var(--red); font-size: 14px; min-height: 20px; }
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin: auto; width: max-content; max-width: 90vw; background: var(--navy-d); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 15px; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.err { background: var(--red); }
h1, h2, h3 { margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; flex-shrink: 0; }
.conn { width: 10px; height: 10px; border-radius: 5px; background: var(--amber); }
.conn.on { background: #4ADE80; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: start; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line-l); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line-l); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.badge { font-size: 12px; border-radius: 999px; padding: 3px 10px; background: var(--teal-l); color: var(--teal-dd); white-space: nowrap; }
.badge.off { background: #FDECEC; color: var(--red); }
.switch { width: 52px; height: 30px; border-radius: 15px; background: #B8C1CE; padding: 3px; display: flex; justify-content: flex-start; border: 0; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ''; width: 24px; height: 24px; border-radius: 12px; background: #fff; }
.switch[aria-checked="true"] { background: var(--teal-d); justify-content: flex-end; }
