:root { color-scheme: light; --bg: #f4f6f8; --panel: #ffffff; --text: #17202a; --muted: #627083; --line: #d8dee7; --line-strong: #b9c3cf; --blue: #1d4ed8; --blue-dark: #1e40af; --green: #047857; --green-dark: #065f46; --red: #b42318; --red-soft: #fff1f0; --amber: #b45309; --shadow: 0 14px 34px rgba(17, 24, 39, 0.08); } * { box-sizing: border-box; } body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; } .shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 36px; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; } .title-block { min-width: 0; } h1 { margin: 0; font-size: clamp(1.35rem, 1.2rem + 0.8vw, 2rem); line-height: 1.1; font-weight: 720; } .summary { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 0.92rem; } .summary strong { color: var(--text); font-weight: 720; } .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; } .refresh-form { margin: 0; } .refresh-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0; background: #ffffff; color: #1f3a5f; cursor: pointer; } .refresh-button:hover { border-color: var(--blue); color: var(--blue-dark); } .refresh-button:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.25); outline-offset: 2px; } .refresh-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; } .refresh-button.is-refreshing svg { animation: refresh-spin 0.9s linear infinite; } .refresh-status { display: none; max-width: 260px; color: var(--muted); font-size: 0.86rem; line-height: 1.25; } .refresh-status.is-visible { display: inline-flex; } .refresh-status.is-success { color: var(--green-dark); } .refresh-status.is-error { color: var(--red); } @keyframes refresh-spin { to { transform: rotate(360deg); } } .language-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; } label { color: var(--muted); font-size: 0.9rem; } select { min-height: 38px; padding: 6px 34px 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); } .control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 420px)); gap: 16px; justify-content: center; align-items: start; } .grid-single { grid-template-columns: minmax(0, 860px); } .camera-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); } .grid-single .camera-card { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr); } .grid-single .media { height: 100%; min-height: 320px; aspect-ratio: auto; } .media { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #dce3eb; } .snapshot { display: block; width: 100%; height: 100%; object-fit: cover; } .snapshot-refresh { position: absolute; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 6px; background: rgba(15, 23, 42, 0.72); color: #ffffff; cursor: pointer; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24); } .snapshot-refresh:hover { background: rgba(15, 23, 42, 0.88); } .snapshot-refresh:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.35); outline-offset: 2px; } .snapshot-refresh.is-refreshing svg { animation: refresh-spin 0.9s linear infinite; } .snapshot-refresh svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; } .media-empty { display: grid; place-items: center; border-bottom: 1px solid var(--line); color: #6b7788; font-size: 0.9rem; } .media-empty span { margin-top: 78px; } .visual-stack { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; } .visual-badge { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 8px; background: rgba(15, 23, 42, 0.74); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28); } .visual-badge svg { width: 38px; height: 38px; } .media-empty .visual-stack { top: 50%; right: auto; bottom: auto; left: 50%; transform: translate(-50%, -58%); } .media-empty .visual-badge { width: 76px; height: 76px; border-color: var(--line); background: rgba(255, 255, 255, 0.82); } .visual-siren { color: #dc2626; } .visual-red-blue { color: #1d4ed8; } .visual-white-light { color: #facc15; } .visual-all-off { color: #334155; } .visual-generic { color: #2563eb; } .card-body { display: flex; flex: 1; flex-direction: column; gap: 15px; padding: 15px; } .grid-single .card-body { justify-content: center; padding: 18px; } .card-main { min-width: 0; } .card-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: start; } h2 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; } .stream-link { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #ffffff; color: #1f3a5f; text-decoration: none; } .stream-link:hover { border-color: var(--blue); color: var(--blue-dark); } .stream-link:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.25); outline-offset: 2px; } .stream-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; } .camera-count { display: inline-flex; color: var(--muted); font-size: 0.84rem; } .control-stack { display: grid; gap: 11px; } .grid-single .control-stack { gap: 12px; } .action-control { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfe; } .control-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; } .control-head .visual-badge { width: 42px; height: 42px; border-color: var(--line); background: #ffffff; box-shadow: none; } .control-head .visual-badge svg { width: 28px; height: 28px; } h3 { margin: 0; font-size: 0.94rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; } .action-id { display: block; max-width: 100%; color: var(--muted); font-size: 0.78rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .meta-row { display: flex; flex-wrap: wrap; gap: 8px; } .chip { display: inline-flex; min-height: 28px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: #f8fafc; color: #465568; font-size: 0.82rem; line-height: 1; } .chip-state-on { border-color: #f2b2aa; background: var(--red-soft); color: var(--red); } .chip-state-off { border-color: #9dd8bd; background: #edfdf5; color: var(--green-dark); } .chip-state-unknown { border-color: #e6d2a6; background: #fff8e7; color: var(--amber); } .timer { display: inline-flex; min-height: 30px; align-items: center; width: fit-content; border: 1px solid #bfdbfe; border-radius: 6px; padding: 5px 9px; background: #eff6ff; color: #1e40af; font-size: 0.84rem; font-weight: 650; } .timer-idle { border-color: var(--line); background: #f8fafc; color: var(--muted); } .timer-expired { border-color: #e6d2a6; background: #fff8e7; color: var(--amber); } .command-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 9px; } .command-form { min-width: 0; margin: 0; } .cmd { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 12px; background: #ffffff; color: var(--text); cursor: pointer; font: inherit; font-weight: 680; line-height: 1.1; } .cmd span { display: block; overflow-wrap: anywhere; } .cmd:hover { border-color: var(--blue); } .cmd:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.25); outline-offset: 2px; } .cmd:disabled { border-color: var(--line); background: #eef2f6; color: #8290a2; cursor: not-allowed; } .cmd-on, .cmd-press { border-color: var(--blue); background: var(--blue); color: #ffffff; } .cmd-on:disabled { border-color: var(--line); background: #eef2f6; color: #8290a2; } .cmd-on:hover, .cmd-press:hover { border-color: var(--blue-dark); background: var(--blue-dark); } .cmd-on:disabled:hover { border-color: var(--line); background: #eef2f6; color: #8290a2; } .cmd-off { border-color: #9dd8bd; background: #ffffff; color: var(--green-dark); } .cmd-off:hover { border-color: var(--green); background: #edfdf5; } .global-strip { flex: 1; display: flex; justify-content: center; min-width: min(100%, 360px); } .global-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(100%, 520px); border: 1px solid #c9d2df; border-radius: 8px; padding: 10px; background: #ffffff; box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08); } .global-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; } .global-main .visual-badge { width: 44px; height: 44px; border-color: var(--line); background: #f8fafc; box-shadow: none; } .global-main .visual-badge svg { width: 30px; height: 30px; } .global-action h2 { margin-bottom: 4px; font-size: 0.96rem; } .global-controls { min-width: 120px; } .empty-state { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 28px; background: rgba(255, 255, 255, 0.7); color: var(--muted); text-align: center; } @media (max-width: 720px) { .shell { width: min(100% - 20px, 1280px); padding-top: 18px; } .topbar { align-items: flex-start; flex-direction: column; } .global-strip, .toolbar, .language-form { width: 100%; } .global-strip, .toolbar { justify-content: space-between; } .global-action { width: 100%; } .refresh-form { margin-left: auto; } .refresh-status { max-width: 100%; } .grid-single, .control-grid { grid-template-columns: 1fr; } .grid-single .camera-card { display: flex; } .grid-single .media { min-height: 0; aspect-ratio: 16 / 9; } select { max-width: 60%; } }