:root{color-scheme:dark;--bg: #101723;--bg-elevated: #1a2433;--bg-panel: rgba(18, 26, 39, .86);--bg-card: rgba(27, 37, 53, .92);--bg-card-strong: rgba(20, 29, 42, .98);--bg-soft: rgba(255, 255, 255, .04);--border: rgba(143, 161, 189, .16);--border-strong: rgba(143, 161, 189, .28);--text: #ecf3ff;--muted: #97a8c7;--primary: #4d87ff;--primary-strong: #2f6ff4;--success: #2ec58d;--warning: #f4c15d;--danger: #f06161;--shadow: 0 18px 45px rgba(1, 7, 17, .42);--shadow-soft: 0 10px 30px rgba(1, 7, 17, .22);font-family:Inter,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100vh;background:radial-gradient(circle at top left,rgba(77,135,255,.14),transparent 28%),radial-gradient(circle at bottom right,rgba(46,197,141,.12),transparent 24%),linear-gradient(180deg,#101723,#0c121b);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}#app,.shell{min-height:100vh}.shell__topbar{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 28px;border-bottom:1px solid var(--border);background:#0a0f18d1;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.shell__brand a{display:inline-flex;align-items:center;gap:12px}.shell__brand-mark{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;background:linear-gradient(135deg,var(--primary) 0%,#79a3ff 100%);color:#09101a;font-weight:800;box-shadow:var(--shadow-soft)}.shell__brand-copy{display:flex;flex-direction:column;gap:2px}.shell__brand-copy strong{font-size:15px}.shell__brand-copy span{color:var(--muted);font-size:12px}.shell__nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}.shell__nav-link{padding:10px 14px;border-radius:999px;color:var(--muted);background:transparent;border:1px solid transparent;transition:.2s ease;white-space:nowrap}.shell__nav-link:hover,.shell__nav-link.active{color:var(--text);background:#ffffff0d;border-color:var(--border)}.shell__userbar{display:flex;align-items:center;gap:12px}.shell__user{display:flex;align-items:center;gap:12px;min-width:0}.shell__user-avatar{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:#ffffff0f;border:1px solid var(--border);font-weight:700}.shell__user-copy{display:flex;flex-direction:column;min-width:0}.shell__user-copy strong{font-size:14px}.shell__user-copy span{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis}.shell__user-role{padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:#ffffff0a;color:var(--muted);font-size:12px;white-space:nowrap}.shell__content{width:min(1560px,calc(100vw - 32px));margin:0 auto;padding:28px 0 40px}.auth-shell{min-height:100vh;width:min(460px,calc(100vw - 32px));margin:0 auto;padding:48px 0;display:grid;align-items:center;justify-items:center}.auth-shell__hero{padding:20px 12px 20px 0}.auth-shell__hero h1{margin:0 0 18px;font-size:clamp(36px,4vw,60px);line-height:1.05}.auth-shell__hero p{margin:0 0 28px;max-width:720px;color:var(--muted);font-size:18px;line-height:1.65}.auth-shell__features{display:grid;gap:16px}.auth-feature{padding:18px 20px;border-radius:20px;background:#ffffff0a;border:1px solid var(--border);box-shadow:var(--shadow-soft)}.auth-feature strong,.auth-feature span{display:block}.auth-feature strong{margin-bottom:6px;font-size:16px}.auth-feature span{color:var(--muted);line-height:1.6}.auth-shell__card{width:100%}.eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:#8fb6ff;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.page{display:flex;flex-direction:column;gap:20px}.page__header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.page__header h2{margin:0 0 8px;font-size:clamp(28px,3vw,40px);line-height:1.1}.page__header p{margin:0;color:var(--muted);line-height:1.6}.page-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(320px,380px);gap:20px;align-items:start}.page-grid__main,.page-grid__aside{display:flex;flex-direction:column;gap:20px}.grid{display:grid;gap:16px}.grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}.split{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:20px}.card{padding:20px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(180deg,#1f2b3ef0,#131c29fa);box-shadow:var(--shadow)}.card h3,.card h4{margin:0}.card__header,.surface-card__header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.stats{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.stat{padding:18px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(180deg,#151f2ed6,#0e1520eb)}.stat__label{color:var(--muted);font-size:13px}.stat__value{margin-top:10px;font-size:30px;font-weight:800}.dashboard-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.machine-card{display:flex;flex-direction:column;gap:18px}.machine-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.machine-card__title{display:flex;flex-direction:column;gap:8px}.machine-card__title h3{font-size:24px}.machine-card__eyebrow{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.machine-card__metrics{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.machine-metric{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:18px;border:1px solid var(--border);background:#ffffff08}.machine-card__actions{margin-top:auto}.console-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(320px,360px);gap:20px;align-items:start}.console-panel{display:flex;flex-direction:column;gap:18px}.console-panel__toolbar,.console-panel__footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.console-panel__status{display:flex;flex-direction:column;gap:8px;min-width:0}.console-toolbar-group{justify-content:flex-end}.console-stage{display:flex;flex-direction:column;gap:14px;min-height:68vh;padding:12px;border-radius:20px;border:1px solid var(--border-strong);background:linear-gradient(180deg,#050a11f5,#0a1017)}.console-stage__meta,.console-stage__summary{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.console-canvas-shell{position:relative;min-height:64vh}.console-canvas{width:100%;min-height:64vh;height:100%;border-radius:14px;background:#05080d;overflow:hidden;border:1px solid rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px #ffffff05}.console-canvas--scaled{overflow:hidden}.console-canvas--scaled>div{width:100%!important;height:100%!important;overflow:hidden!important}.console-canvas--scaled canvas{width:100%!important;height:auto!important;max-width:100%}.console-canvas--native{overflow:auto}.console-canvas--native>div{width:max-content!important;height:max-content!important;min-width:100%;min-height:100%;overflow:visible!important}.console-canvas--native canvas{width:auto!important;height:auto!important;max-width:none!important}.console-canvas canvas{border-radius:14px;display:block}.console-stage__placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:var(--muted);background:radial-gradient(circle at center,#141f2f66,#05080deb);border-radius:14px}.console-stage__placeholder strong{color:var(--text);font-size:18px}.console-control-grid{align-items:end}.console-range{width:100%;accent-color:var(--primary)}.console-sidebar{display:flex;flex-direction:column;gap:20px}.surface-card{background:linear-gradient(180deg,#1e2939fa,#111925)}.surface-list{display:flex;flex-direction:column;gap:12px}.surface-list__item{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:18px;background:#ffffff08;border:1px solid rgba(255,255,255,.06)}.button-row{display:flex;flex-wrap:wrap;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid transparent;border-radius:14px;background:var(--primary);color:#08111f;font-weight:700;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease}.button:hover{transform:translateY(-1px);background:var(--primary-strong)}.button:disabled{opacity:.6;cursor:not-allowed;transform:none}.button--ghost{border-color:var(--border);background:#ffffff05;color:var(--text)}.button--success{background:var(--success);color:#072118}.button--danger{background:var(--danger);color:#22080d}.button--small{padding:8px 12px;font-size:13px}.button--wide{width:100%}.status,.badge{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#ffffff14;color:var(--text);font-size:12px;font-weight:700}.badge--online,.status--running,.status--online{background:#2ec58d2e;color:#b5f2d8}.badge--offline,.status--shutoff,.status--failed,.status--offline{background:#f061612e;color:#ffc4c4}.badge--warning,.status--warning,.status--missing,.status--unknown{background:#f4c15d2e;color:#ffe3a3}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.field label{font-size:13px;color:var(--muted)}.field-row{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.checkbox-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.input,.select,.textarea{width:100%;border:1px solid var(--border);border-radius:14px;background:#090e16b8;color:var(--text);padding:12px 13px;outline:none;transition:border-color .18s ease,background .18s ease}.input:focus,.select:focus,.textarea:focus{border-color:#76a2ffcc;background:#070c12eb}.textarea{min-height:110px;resize:vertical}.checkbox{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:16px;background:#ffffff08}.panel-message{padding:14px 16px;border:1px solid rgba(77,135,255,.4);border-radius:16px;background:#4d87ff1f}.panel-message--error{border-color:#f0616166;background:#f061611f}.table-wrapper{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:14px 10px;text-align:left;border-bottom:1px solid rgba(255,255,255,.08);vertical-align:top}.table th{color:var(--muted);font-size:13px;font-weight:600}.table td{font-size:14px}.list{display:flex;flex-direction:column;gap:12px}.list-item{padding:14px 16px;border-radius:18px;border:1px solid var(--border);background:#ffffff08}.section-stack{display:flex;flex-direction:column;gap:16px}.code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.55;padding:10px 12px;border-radius:14px;background:#080c12e0;border:1px solid rgba(255,255,255,.06);word-break:break-word}.muted{color:var(--muted)}.text-wrap{word-break:break-word}@media(max-width:1200px){.shell__topbar{grid-template-columns:1fr}.shell__userbar{justify-content:space-between;flex-wrap:wrap}.page-grid,.console-layout,.split,.grid--two{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr;padding-top:32px;padding-bottom:32px}}@media(max-width:860px){.shell__content{width:min(100vw - 24px,100%);padding-top:20px}.shell__topbar{padding:16px 12px}.page__header{flex-direction:column}.dashboard-grid,.grid--three,.stats{grid-template-columns:1fr}.console-stage{min-height:54vh}}
