:root {
  --ink: #20302f;
  --ink-soft: #536462;
  --paper: #f4f6f2;
  --card: #ffffff;
  --line: #dfe6e1;
  --mint: #dcece3;
  --mint-strong: #2d766d;
  --blue: #dce9f3;
  --peach: #f2e1d6;
  --lavender: #e6e3f1;
  --danger: #a64c4c;
  --shadow: 0 18px 50px rgba(40, 60, 55, .07);
  --radius: 22px;
  --sans: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 258px; padding: 28px 22px 20px; display: flex; flex-direction: column; background: #233331; color: #edf5f0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.brand small { margin-top: 6px; color: #a9c1b8; font-size: 9px; letter-spacing: 3px; }
.brand-mark { position: relative; width: 39px; height: 39px; display: block; border-radius: 12px; background: #dcece3; overflow: hidden; }
.brand-mark i { position: absolute; display: block; border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 23px; height: 23px; left: -5px; top: -4px; background: #f0d8ca; }
.brand-mark i:nth-child(2) { width: 20px; height: 20px; right: -4px; bottom: -3px; background: #9fcfc0; }
.brand-mark i:nth-child(3) { width: 8px; height: 8px; left: 16px; top: 16px; background: #233331; }
.main-nav { display: grid; gap: 7px; margin-top: 55px; }
.main-nav a { display: flex; align-items: center; gap: 13px; height: 48px; padding: 0 14px; border-radius: 14px; color: #b9cbc5; font-weight: 560; transition: .2s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #1f302e; background: #dcece3; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.nav-icon { width: 24px; text-align: center; font-size: 20px; line-height: 1; }
.sidebar-note { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.04); }
.sidebar-note div, .sidebar-footer div { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.sidebar-note strong, .sidebar-footer strong { font-size: 13px; font-weight: 600; }
.sidebar-note small, .sidebar-footer small { color: #9db1ab; font-size: 11px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #a3aaa7; }
.status-dot.online { background: #6fc399; box-shadow: 0 0 0 5px rgba(111,195,153,.12); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 4px 0; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #213330; background: var(--peach); font-weight: 700; }
.icon-button { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; color: inherit; background: transparent; }
.icon-button:hover { background: rgba(255,255,255,.1); }
.icon-button.danger { color: var(--danger); font-size: 20px; }

.main-content { min-height: 100vh; margin-left: 258px; }
.topbar { min-height: 112px; display: flex; align-items: center; gap: 20px; padding: 25px 42px 20px; border-bottom: 1px solid var(--line); background: rgba(244,246,242,.9); backdrop-filter: blur(12px); }
.topbar h1 { margin: 2px 0 0; font-size: clamp(25px, 2.5vw, 34px); font-weight: 630; letter-spacing: -.8px; }
.eyebrow { margin: 0; color: #7c8d89; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.mobile-menu { display: none; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 30px 42px 55px; }
.page-footer { display: flex; justify-content: space-between; max-width: 1500px; margin: 0 auto; padding: 24px 42px 32px; border-top: 1px solid var(--line); color: #83918e; font-size: 11px; }
.messages { max-width: 1500px; margin: 20px auto -10px; padding: 0 42px; }
.message { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border: 1px solid #c9e2d6; border-radius: 13px; background: #eaf5ef; color: #2e6457; box-shadow: var(--shadow); }
.message span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #bfe1d0; font-size: 12px; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 650; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(35,51,49,.12); }
.button.primary { color: #f8fbf9; background: #2d6d65; }
.button.secondary { color: var(--ink); border-color: #d7e0db; background: #fff; }
.button.dark { color: white; background: #273735; }
.button.danger { color: #8e3f3f; border-color: #e7c5c5; background: #fff3f1; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.wide { width: 100%; margin-top: 9px; }
.button.tiny { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.text-link { color: #2d6d65; font-size: 13px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }

.card { border: 1px solid #e0e7e2; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.hero-panel { min-height: 250px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 44px 50px; border-radius: 28px; color: #eef6f1; background: linear-gradient(135deg, #263a37 0%, #314d48 100%); overflow: hidden; position: relative; }
.hero-panel:after { content: ""; position: absolute; width: 420px; height: 420px; right: -210px; top: -250px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.hero-panel h2 { margin: 10px 0 13px; font-size: clamp(31px, 4vw, 52px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 560; }
.hero-panel h2 em { color: #c5e2d7; font-style: normal; }
.hero-panel p:last-child { max-width: 590px; margin: 0; color: #aec3bd; font-size: 16px; }
.hero-panel .eyebrow { color: #92b1a8; }
.hero-diagram { display: flex; align-items: center; justify-content: flex-end; z-index: 2; }
.hero-diagram .node { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.08); font-family: var(--mono); font-size: 13px; }
.hero-diagram .node.central { width: 76px; height: 76px; background: var(--mint); color: #263a37; font-size: 24px; font-weight: 800; }
.hero-diagram i { width: clamp(18px, 3vw, 45px); height: 1px; background: repeating-linear-gradient(90deg,#9db8b0 0 4px,transparent 4px 8px); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.stat-card { min-height: 132px; display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 13px; padding: 23px; border-radius: 20px; }
.stat-card.mint { background: var(--mint); }.stat-card.blue { background: var(--blue); }.stat-card.peach { background: var(--peach); }.stat-card.lavender { background: var(--lavender); }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.55); font-size: 20px; }
.stat-card strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -1px; }
.stat-card span { display: block; margin-top: 5px; font-weight: 620; }
.stat-card small { grid-column: 2; margin-top: -19px; color: #63736f; font-size: 11px; }
.content-grid { display: grid; gap: 20px; }
.content-grid.two-thirds { grid-template-columns: 1.6fr .8fr; }
.content-grid > .card { padding: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.4px; }
.compact-list { display: grid; }
.compact-row { display: grid; grid-template-columns: auto minmax(160px,1fr) auto auto auto; align-items: center; gap: 13px; min-height: 72px; padding: 10px 4px; border-top: 1px solid #edf0ee; }
.compact-row:first-child { border-top: 0; }
.compact-row:hover .row-arrow { transform: translateX(3px); }
.installation-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue); color: #355869; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.installation-avatar.type-factory { background: var(--peach); color: #75513f; }
.installation-avatar.type-mixed { background: var(--lavender); color: #554f79; }
.installation-avatar.large { width: 78px; height: 78px; border-radius: 22px; font-size: 18px; }
.row-main { display: flex; min-width: 0; flex-direction: column; }
.row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small, .data-table td small { display: block; margin-top: 3px; color: #7d8b88; font-size: 11px; }
.device-pill, .soft-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 999px; color: #566762; background: #f0f3f1; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px; border-radius: 999px; color: #65736f; background: #eef1ef; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-badge i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6a2; }
.status-badge.active { color: #2e725d; background: #e2f1e9; }.status-badge.active i { background: #4faf80; }
.status-badge.offline { color: #9a4c46; background: #fae9e6; }.status-badge.offline i { background: #cf665d; }
.status-badge.service { color: #8a6a2c; background: #f8efd8; }.status-badge.service i { background: #c6973d; }
.status-badge.draft { color: #556e8e; background: #e6edf6; }.status-badge.draft i { background: #7895bb; }
.status-badge.retired { opacity: .65; }
.row-arrow { color: #578078; transition: .2s; }
.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 13px 1fr; gap: 12px; position: relative; }
.timeline-item > span { width: 10px; height: 10px; margin-top: 5px; border: 3px solid #d8ebe3; border-radius: 50%; background: #559881; }
.timeline-item:not(:last-child):after { content: ""; position: absolute; left: 4px; top: 17px; bottom: -17px; width: 1px; background: #dfe8e4; }
.timeline-item div { display: flex; flex-direction: column; }
.timeline-item strong { font-size: 12px; line-height: 1.4; }
.timeline-item small { margin-top: 3px; color: #899591; font-size: 10px; }
.mini-empty { padding: 25px 5px; color: #768581; text-align: center; }
.mini-empty a { color: var(--mint-strong); font-weight: 650; }

.filter-panel { margin-bottom: 18px; padding: 18px; }
.filters { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px,.65fr)) auto; gap: 10px; align-items: center; }
.filters select, .filters input { min-width: 0; height: 42px; border: 1px solid #dbe3df; border-radius: 11px; outline: none; background: #fafbf9; color: var(--ink); }
.filters select { padding: 0 30px 0 12px; }
.search-field { position: relative; }
.search-field span { position: absolute; left: 14px; top: 9px; color: #81908d; font-size: 18px; }
.search-field input { width: 100%; padding: 0 14px 0 40px; }
.filters input:focus, .filters select:focus, .form-control:focus { border-color: #72a99c; box-shadow: 0 0 0 3px rgba(74,137,123,.11); }
.clear-filters { grid-column: 1/-1; color: #7a8985; font-size: 11px; }
.table-card { padding: 25px; }
.list-note { color: #899591; font-size: 11px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 13px; border-bottom: 1px solid var(--line); color: #899591; font-size: 10px; letter-spacing: .8px; text-align: left; text-transform: uppercase; }
.data-table td { padding: 15px 13px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table code, code { color: #385f59; font-family: var(--mono); font-size: 12px; }
.software-table .release-notes-row:hover { background: transparent; }
.software-table .release-notes-row td { padding: 0 13px 14px; background: #fbfcfb; }
.release-notes-row details { border-left: 3px solid #bedbd2; padding: 9px 12px; }
.release-notes-row summary { cursor: pointer; color: #356d63; font-size: 12px; font-weight: 700; }
.release-notes-body { max-width: 980px; padding: 9px 0 2px; color: #52605d; font-size: 13px; line-height: 1.5; }
.release-notes-body p { margin: 0 0 7px; }
.release-notes-body small { display: block; margin-top: 7px; color: #7d8b88; }
.muted-copy { margin: 8px 0 0; color: #7d8b88; font-size: 12px; }
.table-title { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.table-title > span:last-child { display: flex; flex-direction: column; }
.row-action { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #dce4df; border-radius: 9px; background: #fff; color: #47766d; }
.row-action:hover { background: var(--mint); }
.empty-inline { display: flex; flex-direction: column; align-items: center; padding: 42px; color: #7b8986; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 20px; color: #74837f; font-size: 12px; }
.pagination a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #dce4df; border-radius: 9px; background: #fff; }

.content-narrow { max-width: 880px; margin: 0 auto; }.content-narrow.wide-form { max-width: 1050px; }
.form-intro { display: flex; gap: 21px; margin-bottom: 22px; padding: 4px 5px; }
.form-intro > span { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 15px; color: #2f685e; background: var(--mint); font-family: var(--mono); font-weight: 700; }
.form-intro h2 { margin: 4px 0 5px; font-size: 24px; }.form-intro p:last-child { margin: 0; color: #75837f; }
.form-card { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid.one-column { grid-template-columns: 1fr; }.form-grid.one-column .span-2 { grid-column: auto; }
.form-field { display: flex; flex-direction: column; gap: 7px; }.form-field.span-2, .span-2 { grid-column: 1/-1; }
.form-field label { font-size: 12px; font-weight: 700; }.form-field sup { color: #b75b54; }
.form-control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d7e0db; border-radius: 11px; outline: 0; background: #fbfcfb; color: var(--ink); }
textarea.form-control { resize: vertical; }.form-check { width: 20px; height: 20px; accent-color: #377b70; }
.help-text { color: #87948f; font-size: 10px; }.field-error { color: #a64646; font-size: 11px; }
.form-alert { padding: 12px 14px; border: 1px solid #e5c0bc; border-radius: 10px; color: #8f4440; background: #fff0ed; font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; border-top: 1px solid #edf0ee; }
input[type=file].form-control { padding: 9px; border-style: dashed; background: #f6faf8; }

.installation-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 35px; padding: 29px; }
.installation-identity { display: flex; align-items: center; gap: 20px; }
.identity-line { display: flex; gap: 8px; margin-bottom: 7px; }
.installation-identity h2 { margin: 0; font-size: 27px; }.installation-identity p { margin: 3px 0 0; color: #74837f; }
.head-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 25px; margin: 0; }
.head-facts div { padding-left: 13px; border-left: 2px solid #e5ebe8; }.head-facts dt, .info-list dt, .device-card dt { color: #899591; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }.head-facts dd { margin: 3px 0 0; font-size: 12px; font-weight: 650; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 2px 18px; }.tag-row span { padding: 5px 10px; border-radius: 8px; color: #577069; background: #e9efec; font-size: 10px; }
.detail-grid { grid-template-columns: 1.25fr .75fr; }.detail-grid > .card { padding: 26px; }.detail-grid .span-2 { grid-column: 1/-1; }
.count-bubble { padding: 3px 8px; border-radius: 999px; background: #edf2ef; color: #6c7a76; font-size: 11px; vertical-align: middle; }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.device-card { min-width: 0; padding: 18px; border: 1px solid #e1e8e4; border-radius: 17px; background: #fafcfb; }
.device-card-head { display: flex; align-items: center; justify-content: space-between; }.device-type-icon { min-width: 38px; height: 26px; display: grid; place-items: center; padding: 0 7px; border-radius: 8px; color: #42675f; background: var(--mint); font-family: var(--mono); font-size: 9px; font-weight: 800; }
.device-card h3 { margin: 14px 0 2px; font-size: 16px; }.device-card h3 a { color:inherit; }.device-card > p { min-height: 34px; margin: 0; color: #7b8985; font-size: 10px; }
.device-card dl { display: grid; gap: 7px; margin: 14px 0; }.device-card dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.device-card dd { margin: 0; font-size: 11px; }
.device-document-count { margin:-4px 0 10px; color:#70817c; font-size:10px; }.device-actions { display: flex; align-items:center; justify-content: space-between; gap:9px; padding-top: 11px; border-top: 1px solid #e7ece9; }.device-actions a, .device-actions button { padding: 0; border: 0; color: #47766d; background: none; font-size: 10px; font-weight: 650; }.device-actions button { color: #a15a55; }
.secure-chip { padding: 5px 9px; border-radius: 999px; color: #32705f; background: #e2f1e9; font-size: 9px; font-weight: 700; }
.network-map { display: flex; align-items: center; justify-content: center; margin: 22px 0 26px; }.network-map i { width: 28px; height: 1px; background: repeating-linear-gradient(90deg,#91aaa3 0 3px,transparent 3px 6px); }
.network-node { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #dbe5e0; border-radius: 18px; background: #f8faf9; font-family: var(--mono); font-size: 10px; font-weight: 700; }.network-node small { margin-top: 3px; color: #73827e; font-size: 7px; font-weight: 500; }.network-node.hub { background: #263a37; color: white; }.network-node.gateway { background: var(--mint); }.network-node.lan { background: var(--blue); }
.info-list { display: grid; gap: 0; margin: 0; }.info-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0ee; }.info-list dd { margin: 0; font-size: 11px; }
.prose { color: #53625f; font-size: 13px; }.prose p:first-child { margin-top: 0; }
.empty-panel { display: flex; align-items: center; flex-direction: column; padding: 35px 20px; border: 1px dashed #d7e2dc; border-radius: 17px; color: #74837f; text-align: center; background: #fafcfb; }.empty-panel > span { font-size: 29px; color: #6f9e91; }.empty-panel h3 { margin: 8px 0 3px; color: var(--ink); }.empty-panel p { max-width: 500px; margin: 0 0 15px; font-size: 12px; }.empty-panel.compact { padding: 25px; }
.section-hint { margin:-8px 0 15px; color:#70817c; font-size:11px; }.scope-intro { margin-bottom:6px!important; color:#3d655d!important; }.document-list { display: grid; }.document-row { display: grid; grid-template-columns: auto minmax(180px,1fr) minmax(130px,auto) auto repeat(3,auto); align-items: center; gap: 13px; min-height: 65px; padding: 9px 0; border-top: 1px solid #edf0ee; }.document-row:first-child { border-top: 0; }
.file-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #655b82; background: var(--lavender); font-size: 8px; font-weight: 800; }.document-date { color: #899591; font-size: 10px; }
.scope-badge { display:inline-flex; align-items:center; width:max-content; max-width:220px; padding:5px 9px; border-radius:999px; font-size:9px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.scope-badge.installation { color:#53645f; background:#e9efec; }.scope-badge.device { color:#315f78; background:#e2eef5; }
.catalog-filters { grid-template-columns: minmax(260px,1.6fr) repeat(2,minmax(170px,.8fr)) auto; }
.archive-complete_verified { color:#246047; background:#dff2e8; }.archive-complete_unverified { color:#315c79; background:#e1edf7; }.archive-incomplete { color:#8b4c2e; background:#fae7d9; }.archive-no_software { color:#765e58; background:#f2e9e5; }
.warning-note { margin:0 0 1.25rem; border-left-color:#bb805e; background:#fff7ef; color:#76584a; }
.relation-list { display:grid; }.relation-row { display:grid; grid-template-columns:minmax(130px,1fr) auto minmax(130px,1fr) minmax(160px,1.2fr) auto; align-items:center; gap:12px; min-height:54px; padding:10px 0; border-top:1px solid #edf0ee; }.relation-row:first-child { border-top:0; }.relation-row > span { padding:.35rem .65rem; border-radius:999px; color:#315c79; background:#e1edf7; font-size:.72rem; font-weight:700; text-align:center; }.relation-row > small { color:#7d8a87; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #edd9d5; background: #fffaf8; }.danger-zone h2 { margin: 4px 0; font-size: 18px; }.danger-zone p:last-child { margin: 0; color: #826c68; font-size: 11px; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.customer-card { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e1e8e4; border-radius: 17px; background: #fafcfb; }.customer-monogram { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #3f655e; background: var(--mint); font-weight: 800; }.customer-card h3 { margin: 0; font-size: 15px; }.customer-card p { margin: 3px 0 0; color: #7d8a87; font-size: 10px; }

.login-page { background: #243532; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-intro { position: relative; display: flex; flex-direction: column; padding: 45px 7vw; color: #edf5f1; overflow: hidden; background: linear-gradient(145deg,#233633,#34534d); }
.brand-light .brand-mark { background: var(--mint); }.brand-light strong { color: white; }
.login-copy { margin: auto 0; z-index: 2; }.login-copy .eyebrow { color: #94b6ac; }.login-copy h1 { max-width: 800px; margin: 15px 0 20px; font-size: clamp(42px,5vw,76px); line-height: 1.04; font-weight: 520; letter-spacing: -3px; }.login-copy h1 em { color: #c7e6da; font-style: normal; }.login-copy > p:last-child { max-width: 540px; color: #afc4bd; font-size: 17px; }
.login-network { display: flex; align-items: center; margin-bottom: 40px; opacity: .75; }.login-network span { width: 18px; height: 18px; border: 3px solid #abcfc2; border-radius: 6px; }.login-network i { width: 120px; height: 1px; background: repeating-linear-gradient(90deg,#abcfc2 0 4px,transparent 4px 9px); }
.login-intro:after { content:""; position:absolute; width:600px; height:600px; right:-340px; bottom:-280px; border:1px solid rgba(255,255,255,.08); border-radius:50%; box-shadow:0 0 0 70px rgba(255,255,255,.018),0 0 0 140px rgba(255,255,255,.012); }
.login-card-wrap { display: grid; place-items: center; padding: 35px; background: #f3f2ed; }
.login-card { width: min(440px,100%); padding: 45px; border: 1px solid #e0e4df; border-radius: 27px; background: white; box-shadow: 0 25px 80px rgba(27,43,39,.12); }
.login-badge { width: 53px; height: 53px; display: grid; place-items:center; margin-bottom:25px; border-radius:17px; color:#315e56; background:var(--mint); font-weight:800; }
.login-card h2 { margin: 7px 0 3px; font-size: 30px; letter-spacing: -.8px; }.muted { color: #7d8a87; }.stack-form { display: grid; gap: 8px; margin-top: 26px; }.stack-form label { margin-top: 7px; font-size: 11px; font-weight: 700; }.secure-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid #edf0ee; color: #71807c; font-size: 10px; text-align: center; }.secure-note span { color: #4d897b; }
.success-orb { width: 60px; height:60px; display:grid; place-items:center; margin:0 auto 15px; border-radius:50%; color:#2f7764; background:var(--mint); font-size:25px; }.empty-state { padding: 60px; text-align: center; }.empty-state h2 { margin-bottom: 5px; }.empty-state p { margin-top:0; color:#74837f; }.empty-state .button { margin-top:15px; }

@media (max-width: 1500px) {
  .filters { grid-template-columns: minmax(260px, 1.5fr) repeat(2, 1fr); }
  .filters .button { grid-column: auto; }
}
@media (max-width: 1180px) {
  .filters { grid-template-columns: 1.5fr repeat(2, 1fr); }.filters .button { grid-column: auto; }
  .topbar { flex-wrap:wrap; }.topbar-actions { flex-wrap:wrap; justify-content:flex-end; }
  .stat-grid { grid-template-columns: 1fr 1fr; }.device-grid { grid-template-columns: 1fr 1fr; }
  .document-row { display:flex; flex-wrap:wrap; }.document-row .row-main { flex:1 1 190px; }
}
@media (max-width: 1050px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.18); }.sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }.mobile-menu { display: grid; background: #e7ece9; }
  .topbar { min-height: 92px; padding: 20px 24px; }.page-content { padding: 24px; }.messages { padding:0 24px; }.page-footer { padding:22px 24px; }
  .hero-panel { grid-template-columns: 1fr; }.hero-diagram { justify-content: flex-start; }
  .content-grid.two-thirds, .detail-grid, .installation-head { grid-template-columns: 1fr; }.detail-grid .span-2 { grid-column: auto; }
  .login-shell { grid-template-columns: 1fr; }.login-intro { min-height: 45vh; padding: 35px 8vw; }.login-copy { margin: 70px 0; }.login-network { display:none; }
}
@media (max-width: 650px) {
  .topbar-actions .button.secondary { display:none; }.topbar-actions .button { padding:0 12px; font-size:12px; }
  .page-content { padding: 18px 14px 40px; }.topbar { padding: 17px 14px; }.messages { padding:0 14px; }
  .hero-panel { min-height: 0; padding: 33px 25px; }.hero-diagram { display:none; }
  .stat-grid { grid-template-columns: 1fr; }.stat-card { min-height: 105px; }
  .filters { grid-template-columns: 1fr; }.search-field { grid-column:1; }.filters .button { width:100%; }
  .table-card { padding: 17px 12px; }.data-table th:nth-child(3),.data-table td:nth-child(3),.data-table th:nth-child(5),.data-table td:nth-child(5) { display:none; }
  .form-grid { grid-template-columns: 1fr; }.form-field.span-2,.span-2 { grid-column:auto; }.form-card { padding:20px; }.form-actions { flex-direction:column-reverse; }.form-actions .button { width:100%; }
  .installation-identity { align-items:flex-start; }.head-facts { grid-template-columns:1fr; }.device-grid { grid-template-columns:1fr; }.customer-grid { grid-template-columns:1fr; }
  .document-row { display:grid; grid-template-columns:auto 1fr auto; }.document-row .document-date,.document-row .button { display:none; }.document-row .scope-badge { grid-column:2; }.document-row form { grid-column:3; grid-row:1; }
  .relation-row { grid-template-columns:1fr auto 1fr auto; }.relation-row > small { grid-column:1/-1; }
  .danger-zone { align-items:flex-start; flex-direction:column; }.login-card { padding:30px 24px; }.login-card-wrap { padding:20px; }.login-copy h1 { letter-spacing:-1.8px; }
}

.gateway-state { display:inline-flex; align-items:center; gap:.4rem; width:max-content; padding:.35rem .65rem; border-radius:999px; background:#eeeaf8; color:#514a6b; font-size:.78rem; font-weight:750; }
.gateway-state.connected { background:#dff2e8; color:#246047; }
.gateway-state.config_ready { background:#e1edf7; color:#315c79; }
.gateway-state.attention { background:#fae7d9; color:#8b4c2e; }
.gateway-card { overflow:hidden; }
.key-value { display:block; max-width:23rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workflow-strip { display:grid; grid-template-columns:auto 1fr auto 1fr auto; align-items:center; margin:1.4rem 0 1rem; }
.workflow-strip > i { height:2px; background:#dfe6e2; }
.workflow-strip > span { display:grid; place-items:center; width:2rem; height:2rem; border:2px solid #d5ded9; border-radius:50%; color:#85938c; font-size:.75rem; font-weight:800; position:relative; }
.workflow-strip > span.done { border-color:#7eb99d; background:#e3f3eb; color:#255c44; }
.workflow-strip small { position:absolute; top:2.35rem; width:6.5rem; text-align:center; color:#66746d; font-size:.65rem; font-weight:650; }
.technical-note { margin:2.25rem 0 0; padding:.8rem 1rem; border-left:3px solid #9ebda9; background:#f5f8f6; border-radius:0 .6rem .6rem 0; color:#66746d; font-size:.82rem; line-height:1.55; }
