/* Rust++ — header + cameras (iOS 27 edition) */

/* ───── Header ───── */
.top-header[data-lp] {
  display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important;
  padding: 10px 12px !important; border-radius: 24px !important; min-height: 64px;
}
.hd-server { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 10px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--ios-border-subtle); min-width: 0; flex-shrink: 1; }
.hd-server .server-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--ios-text-3); }
.hd-server .server-dot.online { background: var(--ios-green); box-shadow: 0 0 10px rgba(52,211,153,.6); animation: ios27Breathe 2.4s ease-in-out infinite; }
.hd-server .server-dot.offline { background: var(--ios-red); }
.hd-server-text { display: flex; flex-direction: column; min-width: 0; }
.hd-server-name { font-size: 14.5px; font-weight: 700; color: var(--ios-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hd-server-sub { font-size: 11.5px; color: var(--ios-text-3); }

.hd-stats { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; min-width: 0; }
.hd-stat { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 16px; min-width: 0; }
.hd-stat + .hd-stat::before { content: ""; position: absolute; left: -3px; top: 25%; bottom: 25%; width: 1px; background: var(--ios-divider); }
.hd-ico { width: 18px; height: 18px; color: var(--ios-text-2); flex-shrink: 0; }
.hd-stat-text { display: flex; flex-direction: column; line-height: 1.15; }
.hd-stat-text b { font-size: 15px; font-weight: 700; color: var(--ios-text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-stat-text small { font-size: 10.5px; color: var(--ios-text-3); white-space: nowrap; }
.hd-bar { position: absolute; left: 44px; right: 16px; bottom: 3px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.06); overflow: hidden; }
.hd-bar i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.55); border-radius: 1px; transition: width .8s var(--ios-curve-sheet); }

.hd-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hd-team { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; border: 1px solid var(--ios-border); background: rgba(255,255,255,.04); color: var(--ios-text-1); cursor: pointer; font-family: var(--ios-font); }
.hd-team:hover { background: rgba(255,255,255,.08); }
.hd-avatars { display: flex; }
.hd-avatars img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #141416; margin-left: -8px; filter: none !important; }
.hd-avatars img:first-child { margin-left: 0; }
.hd-avatars img.dead { filter: grayscale(1) brightness(.6) !important; }
.hd-team-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.hd-team-text b { font-size: 14px; }
.hd-team-text small { font-size: 10.5px; color: var(--ios-text-3); white-space: nowrap; }
.hd-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ios-border); background: rgba(255,255,255,.04); color: var(--ios-text-1); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hd-icon:hover { background: rgba(255,255,255,.09); }
.hd-icon svg { width: 18px; height: 18px; }
.hd-right .btn-desktop-notif { height: 40px; border-radius: 999px !important; }

@media (max-width: 1200px) { .hd-stat-text small, .hd-team-text small { display: none; } .hd-stat { padding: 8px 10px; } .hd-bar { left: 36px; right: 10px; } }
@media (max-width: 768px) {
  .top-header[data-lp] { overflow-x: auto; justify-content: flex-start !important; }
  .hd-server-name { max-width: 150px; }
  .hd-stats { flex: 0 0 auto; }
  .hd-right .btn-desktop-notif { display: none !important; }
}

/* ───── Cameras ───── */
.cam-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cam-viewer { border-radius: 26px; overflow: hidden; background: #050506; border: 1px solid var(--ios-border); box-shadow: var(--ios-glass-edge), 0 18px 50px rgba(0,0,0,.5); }
.cam-screen { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #121215, #050506 70%); }
.cam-screen img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: none !important; }
.cam-live { position: absolute; top: 14px; left: 14px; font: 800 11px var(--ios-font); letter-spacing: .1em; color: #fff; background: var(--ios-red); padding: 4px 9px; border-radius: 6px; box-shadow: 0 0 14px rgba(248,113,113,.5); }
.cam-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px; max-width: 360px; }
.cam-placeholder b { font-size: 16px; color: var(--ios-text-1); }
.cam-placeholder span { font-size: 12.5px; color: var(--ios-text-3); }
.cam-ph-ico { width: 44px; height: 44px; color: var(--ios-text-3); margin-bottom: 6px; }
.cam-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ios-surface-1); border-top: 1px solid var(--ios-border-subtle); }
.cam-viewer-bar b { font-size: 15px; color: var(--ios-text-1); display: block; }
.cam-viewer-bar small { font-size: 12px; color: var(--ios-text-3); }
.cam-btn-ico { width: 14px; height: 14px; }
.cam-side { display: flex; flex-direction: column; gap: 12px; }
.cam-add { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px; background: var(--ios-glass-fill), var(--ios-surface-1); border: 1px solid var(--ios-border); box-shadow: var(--ios-glass-edge); }
.cam-add-title { font-size: 15px; font-weight: 700; color: var(--ios-text-1); margin-bottom: 2px; }
.cam-add .pp-input { height: 40px; }
.cam-list { display: flex; flex-direction: column; gap: 8px; }
.cam-item { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 18px; background: var(--ios-surface-1); border: 1px solid var(--ios-border-subtle); cursor: pointer; }
.cam-item:hover { background: var(--ios-surface-2); }
.cam-item.active { border-color: rgba(255,255,255,.22); background: var(--ios-surface-2); }
.cam-thumb { width: 72px; height: 44px; border-radius: 10px; overflow: hidden; background: #050506; display: flex; align-items: center; justify-content: center; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; filter: none !important; }
.cam-thumb-ico { width: 20px; height: 20px; color: var(--ios-text-3); }
.cam-item-main { display: flex; flex-direction: column; min-width: 0; }
.cam-item-main b { font-size: 13.5px; color: var(--ios-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-item-main small { font-size: 11.5px; color: var(--ios-text-3); font-family: var(--ios-font-mono); }
.cam-del { width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; color: var(--ios-text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cam-del:hover { color: #FCA5A5; background: var(--ios-red-tint); }
.cam-del svg { width: 16px; height: 16px; }
.cam-hints { border-radius: 18px; background: var(--ios-surface-1); border: 1px solid var(--ios-border-subtle); padding: 12px 14px; }
.cam-hints summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ios-text-2); }
.cam-hints > div { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.cam-hint { display: flex; flex-direction: column; gap: 4px; }
.cam-hint b { font-size: 12.5px; color: var(--ios-text-1); }
.cam-hint span { display: flex; flex-wrap: wrap; gap: 4px; }
.cam-hint code { font: 600 11px var(--ios-font-mono); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--ios-text-2); }
.cam-hint code.pick { cursor: pointer; }
.cam-hint code.pick:hover { background: rgba(255,255,255,.14); color: var(--ios-text-1); }
.cam-hint small { font-size: 10.5px; color: var(--ios-text-3); }
@media (max-width: 1000px) { .cam-wrap { grid-template-columns: 1fr; } }
