:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
  font-synthesis: none;
  --navy: #101a2e;
  --navy-soft: #1a2945;
  --primary: #245fd6;
  --primary-dark: #1749ad;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --border: #dfe5ef;
  --muted: #66738a;
  --success: #137a4f;
  --warning: #93600a;
  --danger: #b4233b;
  --focus: #245fd6;
  --shadow: 0 16px 44px rgba(26, 41, 69, 0.10);
  --shadow-soft: 0 8px 24px rgba(26, 41, 69, 0.07);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #f4f7fb; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 8px; color: #fff; background: #111; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.boot-screen, .auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 10%, #dce9ff 0, transparent 35%), linear-gradient(145deg, #f7f9fd, #edf3fb); }
.boot-card, .auth-card { width: min(100%, 460px); padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.96); box-shadow: var(--shadow); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; color: #fff; background: var(--primary); font-weight: 800; letter-spacing: -1px; }
.boot-card h1, .auth-card h1 { margin: 0 0 8px; font-size: 27px; }
.auth-card > p, .boot-card p { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.auth-meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; background: #fff; color: #526078; border-right: 1px solid var(--border); overflow-y: auto; box-shadow: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; color: #26344d; font-size: 15px; font-weight: 750; }
.brand .brand-mark { width: 38px; height: 38px; margin: 0; border-radius: 10px; font-size: 14px; }
.nav-label { margin: 8px 12px; color: #8fa0bb; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.nav-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border-radius: 9px; color: #526078; text-decoration: none; font-size: 14px; font-weight: 620; }
.nav-link:hover { background: #f3f6fb; color: #245fd6; }
.nav-link[aria-current="page"] { color: #245fd6; background: #edf2ff; box-shadow: none; }
.nav-icon { width: 20px; text-align: center; font-size: 15px; }
.sidebar-footer { margin-top: auto; padding: 18px 10px 2px; border-top: 1px solid var(--border); }
.user-name { color: #26344d; font-weight: 650; word-break: break-word; }
.user-role { margin-top: 3px; color: #91a0b8; font-size: 12px; }
.logout-button { width: 100%; margin-top: 13px; border: 1px solid var(--border); background: transparent; color: #526078; }

.workspace { min-width: 0; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(18px, 4vw, 42px); border-bottom: 1px solid rgba(223,229,239,.8); background: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-title { font-size: 14px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 13px; font-weight: 650; }
.connection-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 30px clamp(18px, 4vw, 42px) 52px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.page-header h1 { margin: 0; font-size: clamp(24px, 3vw, 31px); letter-spacing: -0.025em; }
.page-header p { max-width: 760px; margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 650; line-height: 1.2; }
.button:hover:not(:disabled) { background: var(--primary-dark); }
.button.secondary { border-color: var(--border); background: #fff; color: #26344d; }
.button.secondary:hover:not(:disabled) { background: #f0f4fa; }
.button.danger { background: var(--danger); }
.button.small { min-height: 33px; padding: 6px 10px; font-size: 13px; }
.button.link-like { padding-inline: 7px; border-color: transparent; background: transparent; color: var(--primary); }
.button.link-like:hover:not(:disabled) { background: #eaf1ff; }

.panel { margin-bottom: 20px; border: 1px solid rgba(211,220,234,.85); border-radius: 10px; background: var(--surface); box-shadow: none; }
.panel-body { padding: 20px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 59px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 17px; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.stat-card { min-height: 126px; padding: 20px; border: 1px solid rgba(211,220,234,.85); border-radius: 10px; background: #fff; box-shadow: none; transition: transform .18s ease, box-shadow .18s ease; }
.stat-card:hover { border-color: #b5c5df; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 620; }
.stat-value { display: block; margin-top: 12px; font-size: clamp(24px, 3vw, 31px); font-weight: 760; word-break: break-word; }
.stat-note { margin-top: 7px; color: var(--muted); font-size: 12px; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-shortcut { display: grid; align-content: start; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; background: var(--surface); }
.dashboard-shortcut:hover { border-color: var(--primary); background: #f6f9ff; }
.dashboard-shortcut strong { font-size: 17px; }
.dashboard-shortcut > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.65; }
.shortcut-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eaf1ff; color: var(--primary); font-size: 22px; }
.two-column { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.install-step { padding: 22px 0; border-bottom: 1px solid var(--border); }
.install-step h3 { margin: 0 0 14px; font-size: 16px; color: #24334c; }
.install-step > p { margin: 0 0 18px; }
.install-advanced { margin: 20px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.install-advanced summary { cursor: pointer; padding: 15px 18px; color: var(--muted); font-size: 13px; font-weight: 650; }
.install-advanced > .form-grid { padding: 4px 18px 18px; }
.form-field input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--primary); justify-self: start; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .fieldset-legend { color: #344158; font-size: 13px; font-weight: 680; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd4e1; border-radius: 8px; background: #fff; color: #172033; }
.form-field textarea { min-height: 94px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,95,214,0.12); }
.help-text { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px 20px; }
.inline-form .form-field { min-width: 170px; flex: 1; }
.inline-form .search-field { min-width: 230px; flex: 2; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: #344158; }
.checkbox-row input { margin-top: 3px; }
.collection-picker { margin: 20px 0; }
.collection-devices { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; max-height: 300px; overflow: auto; margin-top: 12px; }
.collection-device { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.collection-device:has(input:checked) { border-color: var(--primary); background: #f2f7ff; }
.collection-device > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.collection-device input { width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-row + .checkbox-row { margin-top: 12px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid #e8edf4; text-align: left; vertical-align: middle; font-size: 13px; }
th { color: #637087; background: #f8fafc; font-weight: 680; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.primary-cell { font-weight: 680; color: #1d2a40; }
.secondary-line { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #eef2f7; color: #536178; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.success { color: var(--success); background: #e8f7f0; }
.status.warning { color: var(--warning); background: #fff5dc; }
.status.danger { color: var(--danger); background: #fdecef; }
.status.info { color: #2457a7; background: #eaf2ff; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

.state-block { display: grid; justify-items: center; gap: 10px; padding: 42px 22px; text-align: center; color: var(--muted); }
.state-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #edf2f8; color: #43536d; font-weight: 800; }
.state-block h2, .state-block h3 { margin: 0; color: #26344d; font-size: 17px; }
.state-block p { max-width: 620px; margin: 0; line-height: 1.6; }
.notice { padding: 13px 15px; border: 1px solid #cbd9ee; border-radius: 9px; background: #f2f7ff; color: #27466f; line-height: 1.55; font-size: 13px; }
.notice.warning { border-color: #eed59d; background: #fff9e9; color: #75510f; }
.notice.danger { border-color: #edb8c1; background: #fff2f4; color: #8c1e32; }
.notice.success { border-color: #addbc8; background: #effbf6; color: #12623f; }
.definition-list { display: grid; grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr); margin: 0; }
.definition-list dt, .definition-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.definition-list dt { color: var(--muted); font-size: 13px; }
.definition-list dd { color: #27344b; word-break: break-word; }

.wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wall-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.wall-card.live { box-shadow: none; }
.wall-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c1422; }
.wall-preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #0c1422; pointer-events: none; transform-origin: top left; }
.wall-preview-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; background: linear-gradient(180deg, transparent 58%, rgba(7, 15, 29, .76)); opacity: 0; transition: opacity .18s ease; }
.wall-preview:hover .wall-preview-overlay, .wall-preview:focus-within .wall-preview-overlay { opacity: 1; }
.wall-preview-overlay .button { border-color: rgba(255,255,255,.28); background: rgba(18, 34, 61, .88); color: #fff; }
.wall-card.error { border-color: #edb8c1; }
.wall-placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 18px; background: repeating-linear-gradient(135deg, #eff3f8, #eff3f8 10px, #e9eef5 10px, #e9eef5 20px); color: #526078; text-align: center; font-size: 13px; font-weight: 650; }
.wall-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; }
.wall-meta strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.secret-box { margin-top: 18px; padding: 18px; border: 1px solid #e5c36f; border-radius: 14px; background: linear-gradient(145deg,#fffaf0,#fff5d9); box-shadow: none; }
.secret-box h3 { margin: 0 0 8px; font-size: 16px; }
.secret-box p { color: #75510f; }
.code-box { display: block; max-height: 220px; overflow: auto; margin: 12px 0; padding: 14px; border-radius: 8px; background: #101827; color: #e8eef8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 1200; display: grid; gap: 10px; width: min(390px, calc(100vw - 40px)); }
.toast { padding: 13px 15px; border: 1px solid #bed0eb; border-radius: 10px; background: #fff; box-shadow: var(--shadow); color: #26344d; line-height: 1.45; }
.toast.error { border-color: #e3a6b0; }

.dialog { width: min(620px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(8,18,37,0.32); }
.dialog::backdrop { background: rgba(11,20,36,0.62); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { min-width: 0; margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.dialog-header .button { flex-shrink: 0; white-space: nowrap; }
.dialog-body { max-height: min(70vh, 680px); overflow: auto; padding: 20px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.collection-result { margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.collection-result-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.collection-result-heading strong { min-width: 0; overflow-wrap: anywhere; }
.collection-result-heading .badge { flex-shrink: 0; }
.collection-result p { margin: 10px 0; font-size: 13px; line-height: 1.6; }
.collection-result details { margin-top: 10px; font-size: 13px; }
.collection-result summary { cursor: pointer; color: var(--primary); }
.collection-file-list { list-style: none; padding: 0; margin: 8px 0 0; }
.collection-file-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.collection-file-list span, .collection-job-id { overflow-wrap: anywhere; }
.collection-file-list small { color: var(--muted); }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 13px 14px; }
  .brand { padding-bottom: 12px; }
  .nav-label { display: none; }
  .nav-list { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .nav-link { min-width: max-content; min-height: 40px; }
  .nav-icon { display: none; }
  .sidebar-footer { display: flex; align-items: center; gap: 10px; margin: 9px 0 0; padding: 11px 4px 0; }
  .sidebar-user { min-width: 0; flex: 1; }
  .logout-button { width: auto; margin: 0; }
  .topbar { display: none; }
  .content { padding-top: 23px; }
  .page-header { display: block; }
  .header-actions { margin-top: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .wall-grid { grid-template-columns: 1fr; }
  .dashboard-shortcuts { grid-template-columns: 1fr; }
  .device-table, .device-table tbody { display: block; }
  .device-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .device-table tbody { padding: 0 14px 14px; }
  .device-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
  .device-table td { display: block; min-width: 0; padding: 8px 4px; border: 0; overflow-wrap: anywhere; }
  .device-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
  .device-table td:first-child, .device-table td:last-child { grid-column: 1 / -1; }
  .device-table td:first-child { font-size: 16px; }
  .device-table td:first-child::before, .device-table td:last-child::before { display: none; }
  .device-table .row-actions { gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
  .device-table .row-actions .button { min-height: 40px; }
}

@media (max-width: 520px) {
  .auth-screen { padding: 12px; }
  .auth-card { padding: 24px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 108px; }
  .inline-form { display: grid; align-items: stretch; }
  .inline-form .form-field { min-width: 0; }
  .pagination { justify-content: space-between; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 3px; border-bottom: 0; }
  .definition-list dd { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Device operations share a compact primary action and an accessible secondary group. */
.device-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border)}
.device-list-heading span{font-size:12px;color:var(--muted)}
.hardware-cell{max-width:300px}.hardware-cell .hardware-cpu{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hardware-cell .secondary-line{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-tools{position:relative;font-size:12px}.device-tools summary{cursor:pointer;list-style:none;padding:8px 10px;border:1px solid var(--border);border-radius:6px;white-space:nowrap}.device-tools summary::after{content:'⌄';margin-left:10px}.device-tools[open] summary{color:var(--primary);background:#edf2ff}.device-tools-menu{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-width:230px}.device-tools .button{flex:1;white-space:nowrap}.device-table .row-actions{align-items:flex-start;flex-wrap:wrap;min-width:195px}.device-table .primary-cell{min-width:150px}.device-table .secondary-line{font-size:11px;color:var(--muted);margin-top:5px}.device-table td{vertical-align:top}.device-table th{font-size:11px}.inline-form{background:#fafbfd}.panel-header h2{font-size:15px}
@media(max-width:760px){.device-list-heading{align-items:flex-start;flex-direction:column;gap:6px}.sidebar{border-bottom:1px solid var(--border)}.device-tools-menu{max-width:none}.brand{padding-bottom:12px}.device-table .row-actions{min-width:0}}

.integration-layout{display:grid;gap:16px}.integration-layout h2,.integration-layout h3,.integration-layout p{margin:0}.integration-layout form{display:grid;gap:12px;max-width:700px}.cli-guide{padding:16px;background:#f5f7fa;border:1px solid var(--border);border-radius:8px;overflow:auto;font-size:12px;line-height:1.8}.secret-box>details{margin-bottom:16px}.secret-box>.code-box{max-height:300px;overflow:auto}.install-advanced summary{cursor:pointer;padding:12px 0}.install-advanced[open]>.form-grid{padding:16px 0}

.page-header h1:focus-visible{outline:none}

.remote-open{overflow:hidden}.remote-workspace{position:fixed;inset:0;z-index:100;background:#eef0f4}.remote-frame{display:block;width:100%;height:100%;border:0}.app-shell[hidden]{display:none!important}

.remote-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:16px;background:var(--surface);color:var(--muted)}
.jobs-layout{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(0,1.35fr);gap:18px;align-items:start}.jobs-layout>.panel{margin-bottom:0}.jobs-layout>.panel .panel-body{padding:18px}.jobs-layout .collection-picker{max-height:330px;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:10px}.jobs-layout .collection-devices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.jobs-layout .collection-device{padding:7px 8px;border:1px solid transparent;border-radius:6px}.jobs-layout .collection-device:hover{background:#f4f7fc;border-color:var(--border)}.jobs-layout .collection-table{font-size:12px}.jobs-layout .collection-table td,.jobs-layout .collection-table th{padding:10px 12px}.jobs-layout .collection-table td:nth-child(4){max-width:190px}.jobs-layout>div>.help-text{margin:0 0 8px;padding:8px 12px;background:#f5f7fb;border-radius:6px}.wall-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.wall-card{overflow:hidden;border-radius:12px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-soft)}.wall-preview{aspect-ratio:16/9;background:#0d1523;position:relative}.wall-preview-frame{width:100%;height:100%;border:0;display:block}.wall-preview-overlay{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-end;padding:10px;background:linear-gradient(transparent 60%,#08111dcc)}.wall-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}.wall-meta strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wall-card.error .wall-placeholder{aspect-ratio:16/9;display:grid;place-items:center;background:#f3f5f8;color:var(--muted)}
@media(max-width:1000px){.jobs-layout{grid-template-columns:1fr}.jobs-layout .collection-devices{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.jobs-layout .collection-devices{grid-template-columns:repeat(2,minmax(0,1fr))}.jobs-layout .form-grid{grid-template-columns:1fr}.wall-grid{grid-template-columns:1fr}}
body{font-size:13px}.content{max-width:1680px;padding:20px clamp(18px,2.8vw,34px) 30px}.page-header{margin-bottom:14px;align-items:center}.page-header h1{font-size:24px;letter-spacing:-.02em}.page-header p{margin-top:3px;font-size:13px}.header-actions{gap:7px}.button{min-height:34px;padding:7px 12px;font-size:13px}.button.small{min-height:28px;padding:4px 8px;font-size:12px}.panel{margin-bottom:14px;border-radius:10px;box-shadow:none}.panel-header{min-height:46px;padding:10px 14px}.panel-header h2,.panel-header h3{font-size:15px}.panel-header p{font-size:12px}.panel-body{padding:14px}.stats-grid{gap:10px;margin-bottom:14px}.stat-card{min-height:94px;padding:14px 16px;border-radius:10px}.stat-label{font-size:12px}.stat-value{margin-top:8px;font-size:24px;line-height:1.18}.stat-note{margin-top:5px;font-size:11px}.stats-grid .stat-card:last-child .stat-value{font-size:18px;line-height:1.3;max-width:100%;white-space:normal}.dashboard-shortcuts{gap:10px}.dashboard-shortcut{gap:7px;padding:14px}.dashboard-shortcut strong{font-size:14px}.dashboard-shortcut>span:last-child{font-size:12px;line-height:1.45}.shortcut-icon{width:30px;height:30px;font-size:16px}.form-grid{gap:12px}.form-field{min-width:0}.form-field>label{font-size:12px;margin-bottom:5px}.form-field input,.form-field select,.form-field textarea{min-width:0;width:100%;padding:8px 10px}.help-text{font-size:11px;line-height:1.45}.notice{padding:10px 12px;font-size:12px;line-height:1.5}.table-wrap{overflow:auto}.table-wrap table{font-size:12px}.table-wrap td,.table-wrap th{padding:9px 11px}.pagination{padding:9px 12px;font-size:12px}.inline-form{gap:8px;padding:10px 12px}.inline-form .form-field{min-width:150px}.collection-picker{margin:12px 0}.install-step{padding:14px 0}.install-step h3{font-size:14px;margin-bottom:8px}.install-advanced{margin:12px 0}.install-advanced summary{padding:10px 12px;font-size:12px}.jobs-layout{gap:12px}.jobs-layout .panel-body{padding:14px}.jobs-layout .collection-picker{max-height:250px}.jobs-layout .collection-devices{gap:3px}.jobs-layout .collection-device{font-size:12px;padding:5px 6px}.wall-grid{gap:10px}.wall-meta{padding:8px 10px}.wall-meta strong{font-size:12px}.definition-list dt,.definition-list dd{padding:8px 0;font-size:12px}
@media(max-width:760px){.content{padding:14px 12px 22px}.page-header{margin-bottom:10px}.page-header h1{font-size:21px}.page-header p{font-size:12px}.stats-grid{gap:8px}.stat-card{min-height:78px;padding:11px 12px}.stat-value{font-size:21px}.stat-note{font-size:10px}.form-grid{gap:9px}.jobs-layout .collection-devices{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-form .form-field{min-width:0}.panel-header{padding:9px 12px}}
.jobs-layout{grid-template-columns:minmax(0,520px) minmax(0,1fr);max-width:1420px}.jobs-layout .panel{min-width:0}.jobs-layout .panel-header{min-height:52px}.jobs-layout .panel-header h2{font-size:16px}.jobs-layout .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.jobs-layout .collection-picker{margin:10px 0}.jobs-layout .collection-picker .row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.jobs-layout .consent-row{margin-top:10px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:#f8fafc}.jobs-layout .form-actions{margin-top:12px}.jobs-layout .collection-table{table-layout:fixed}.jobs-layout .collection-table th:nth-child(1){width:23%}.jobs-layout .collection-table th:nth-child(2){width:13%}.jobs-layout .collection-table th:nth-child(3){width:8%}.jobs-layout .collection-table th:nth-child(4){width:23%}.jobs-layout .collection-table th:nth-child(5){width:11%}.jobs-layout .collection-table th:nth-child(6){width:14%}.jobs-layout .collection-table th:nth-child(7){width:18%}.jobs-layout .collection-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jobs-layout .collection-table td:last-child{white-space:normal}.jobs-layout .collection-table .row-actions{display:flex;gap:4px;flex-wrap:wrap}.jobs-layout>div:nth-child(2){min-width:0}@media(max-width:1000px){.jobs-layout{grid-template-columns:1fr;max-width:none}.jobs-layout .collection-table{table-layout:auto}.jobs-layout .collection-table td{white-space:normal}}@media(max-width:600px){.jobs-layout .form-grid{grid-template-columns:1fr}.jobs-layout .panel-header{padding:10px 12px}.jobs-layout .panel-body{padding:12px}}
