:root{--bg:#f4f7fb;--surface:#fff;--surface-soft:#eef8f7;--border:#dfe8ea;--text:#0e1b2e;--muted:#607185;--teal:#0f8176;--teal-dark:#087064;--lime:#d9f28f;--blue:#dff2ff;--amber:#fff2d4;--red:#ffe5e7;--violet:#f0e9ff;--shadow:0 18px 60px #1c354b14;color:var(--text);background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html[data-theme=dark]{--bg:#0e1520;--surface:#151f2c;--surface-soft:#172f31;--border:#26364a;--text:#e9f0f8;--muted:#9caabe;--teal:#21a79a;--teal-dark:#6ee1d4;--lime:#31472e;--blue:#162c43;--amber:#40341d;--red:#3d2026;--violet:#2d2545;--shadow:0 18px 60px #00000052}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100vh;margin:0}body,.shell,.workspace{color:var(--text)}a{color:var(--teal);font-weight:700;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.boot-screen,.login-screen{background:radial-gradient(circle at 70% 20%,#d9f28f52,#0000 34%),linear-gradient(#f8faf8,#f3f8fb);place-items:center;min-height:100vh;display:grid}.loader{border:3px solid #d7e8e8;border-top-color:var(--teal);border-radius:50%;width:34px;height:34px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.login-panel{border:1px solid var(--border);width:min(1080px,100vw - 32px);min-height:620px;box-shadow:var(--shadow);background:#ffffffe0;border-radius:28px;grid-template-columns:1.1fr .9fr;gap:48px;padding:56px;display:grid}.login-brand{align-self:start}.login-copy{align-self:center;max-width:520px}.login-copy h1{letter-spacing:0;margin:18px 0;font-size:clamp(42px,6vw,76px);line-height:.96}.login-copy p{color:var(--muted);font-size:18px;line-height:1.6}.login-form{border:1px solid var(--border);background:#fff;border-radius:18px;align-self:center;gap:18px;padding:28px;display:grid}.shell{grid-template-columns:292px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);background:#fbfcfe;flex-direction:column;height:100vh;padding:28px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;margin-bottom:34px;display:flex}.brand-mark{background:var(--surface-soft);width:40px;height:40px;color:var(--teal);border:1px solid #c8e5e3;border-radius:12px;place-items:center;font-weight:900;display:grid}.brand strong{font-size:18px;display:block}.brand span,.role-card span,.user-row span{color:var(--muted);font-size:13px;display:block}.sidebar nav{gap:4px;display:grid}.nav-section{color:#718196;letter-spacing:2px;text-transform:uppercase;margin:18px 10px 8px;font-size:11px;font-weight:900}.sidebar a{color:#1a2a42;border-radius:12px;align-items:center;gap:12px;min-height:44px;padding:0 12px;font-weight:700;display:flex}.sidebar a.active{color:var(--teal-dark);background:#e4f5f3}.sidebar-footer{gap:12px;margin-top:auto;display:grid}.role-card,.date-chip{border:1px solid var(--border);background:#fff;border-radius:14px;align-items:center;gap:10px;padding:12px;display:flex}.workspace{min-width:0}.topbar{border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:3;background:#ffffffb8;justify-content:space-between;align-items:center;height:94px;padding:0 36px;display:flex;position:sticky;top:0}.topbar h1{letter-spacing:0;margin:4px 0 0;font-size:24px}.topbar-actions{align-items:center;gap:12px;display:flex}.avatar{width:42px;height:42px;color:var(--teal-dark);background:#e1f2ef;border:1px solid #b8dbd7;border-radius:14px;place-items:center;font-weight:900;display:grid}.avatar.large{width:84px;height:84px;font-size:32px}.page-stack{gap:24px;width:min(1480px,100% - 64px);margin:32px auto 72px;display:grid}.hero-panel,.surface{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:20px}.hero-panel{background:radial-gradient(circle at 18% 12%,#0f81761f,#0000 28%),radial-gradient(circle at 82% 30%,#d9f28f47,#0000 32%),#fff;justify-content:space-between;align-items:center;gap:24px;min-height:230px;padding:38px;display:flex}.hero-panel.compact{min-height:170px}.hero-panel h2{letter-spacing:0;max-width:820px;margin:14px 0 12px;font-size:clamp(30px,4vw,54px);line-height:1}.hero-panel p{max-width:780px;color:var(--muted);margin:0;font-size:17px;line-height:1.55}.eyebrow,.overline{color:var(--teal-dark);letter-spacing:2px;text-transform:uppercase;align-items:center;gap:8px;font-size:12px;font-weight:900;display:inline-flex}.overline{color:#66788e}.primary-button,.ghost-button{border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:0 18px;font-weight:900;display:inline-flex}.primary-button{background:var(--teal);color:#fff}.primary-button:hover{background:var(--teal-dark)}.primary-button:disabled,.ghost-button:disabled,input:disabled,select:disabled,textarea:disabled{opacity:.6;cursor:not-allowed}.ghost-button{color:var(--text);border-color:var(--border);background:#fff}.icon-button{border:1px solid var(--border);background:var(--surface);width:44px;height:44px;color:var(--text);border-radius:12px;place-items:center;display:grid}.icon-button.danger{color:#a1353d;background:#fff5f6;border-color:#fac8cd}.ghost-button.wide{width:100%}.metrics-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;display:grid}.metric-card{border:1px solid var(--border);background:#fff;border-radius:18px;justify-content:space-between;gap:14px;min-height:146px;padding:22px;display:flex}.metric-card.green{border-top:4px solid var(--teal)}.metric-card.blue{background:var(--blue)}.metric-card.amber{background:var(--amber)}.metric-card.red{background:var(--red)}.metric-card.violet{background:var(--violet)}.metric-card strong{letter-spacing:0;margin:12px 0 8px;font-size:34px;display:block}.metric-card p{color:var(--muted);margin:0}.metric-icon{width:44px;height:44px;color:var(--teal);background:#e4f4f2;border-radius:14px;flex:0 0 44px;place-items:center;display:grid}.surface{padding:24px}.section-heading{justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;display:flex}.section-heading h3{margin:4px 0 0;font-size:22px}.section-subtitle{color:var(--muted);margin:8px 0 0;line-height:1.45}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:15px 14px}th{color:#66788e;text-transform:uppercase;letter-spacing:1.3px;font-size:12px}.status-pill{min-height:28px;color:var(--teal-dark);background:#ddf3ee;border:1px solid #bfe6dd;border-radius:999px;align-items:center;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.status-pill.blocked,.status-pill.failed{color:#a1353d;background:#ffe8ea;border-color:#fac8cd}.status-pill.generated{color:#0f6b24;background:#e4f8df;border-color:#c4eeb9}.status-pill.processing,.status-pill.generating{color:#7b5200;background:#fff2d4;border-color:#f1d28e}.pill-stack{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.workflow-pill{color:#1f4e7a;background:#e6f2ff;border:1px solid #bad9f7;border-radius:999px;align-items:center;min-height:28px;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.workflow-pill.transferred,.workflow-pill.signed{color:#0f6b24;background:#e4f8df;border-color:#c4eeb9}.workflow-pill.error{color:#a1353d;background:#ffe8ea;border-color:#fac8cd}.workflow-pill.archived{color:#5b6470;background:#eef1f4;border-color:#d5dce4}.shipment-pill{color:#7b5200;background:#fff2d4;border:1px solid #f1d28e;border-radius:999px;align-items:center;min-height:28px;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.shipment-pill.ready,.shipment-pill.transferred{color:#0f6b24;background:#e4f8df;border-color:#c4eeb9}.shipment-pill.planned{color:#1f4e7a;background:#e6f2ff;border-color:#bad9f7}.shipment-pill.archived{color:#5b6470;background:#eef1f4;border-color:#d5dce4}.notification-pill{color:#1f4e7a;background:#e6f2ff;border:1px solid #bad9f7;border-radius:999px;align-items:center;min-height:28px;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.notification-pill.critical{color:#a1353d;background:#ffe8ea;border-color:#fac8cd}.notification-pill.warning{color:#7b5200;background:#fff2d4;border-color:#f1d28e}.run-status{color:#7b5200;background:#fff2d4;border:1px solid #f1d28e;border-radius:999px;align-items:center;min-height:28px;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.run-status.generated{color:#0f6b24;background:#e4f8df;border-color:#c4eeb9}.run-status.failed{color:#a1353d;background:#ffe8ea;border-color:#fac8cd}.upload-surface{gap:18px;display:grid}.dropzone{min-height:220px;color:var(--muted);text-align:center;cursor:pointer;background:#f8fcfc;border:1px dashed #a9cac8;border-radius:18px;place-items:center;gap:8px;display:grid}.dropzone strong{color:var(--text);font-size:18px}.dropzone input{display:none}.mini-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px;display:grid}.mini-metrics div{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;min-height:94px;padding:18px}.mini-metrics span{color:var(--muted);margin-bottom:8px;display:block}.mini-metrics strong{overflow-wrap:anywhere;font-size:28px;line-height:1.15}.progress-panel{gap:14px;display:grid}.progress-head{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.progress-head h3{margin:4px 0 0;font-size:20px;line-height:1.35}.progress-head strong{text-align:right;min-width:62px;color:var(--teal-dark);font-size:24px}.progress-track{background:#e7eef0;border:1px solid #d7e5e7;border-radius:999px;height:12px;overflow:hidden}.progress-fill{border-radius:inherit;background:linear-gradient(90deg, var(--teal), #7aa83e);height:100%;transition:width .25s}.progress-current{border:1px solid var(--border);color:#30435c;overflow-wrap:anywhere;background:#f8fcfc;border-radius:12px;padding:12px 14px}.live-log{gap:8px;max-height:220px;padding-right:4px;display:grid;overflow:auto}.live-log div{border:1px solid var(--border);color:#30435c;overflow-wrap:anywhere;background:#fbfcfd;border-radius:10px;padding:10px 12px;font-size:13px}.issue-grid,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.issue-panel{border:1px solid var(--border);background:#fbfcfd;border-radius:16px;padding:18px}.issue-panel h4{align-items:center;gap:8px;margin:0 0 12px;display:flex}.issue-panel p,.issue-panel ul{color:var(--muted);margin:0}.issue-panel li{margin-bottom:8px}.previous-transfer-report{background:#fffaf0;border:1px solid #f0c36d;border-radius:16px;gap:18px;margin:18px 0;padding:18px;display:grid}.previous-transfer-head{color:#7b5200;align-items:flex-start;gap:12px;display:flex}.previous-transfer-head svg{flex:none;margin-top:2px}.previous-transfer-head strong,.previous-transfer-head span{display:block}.previous-transfer-head strong{color:#503500;margin-bottom:4px}.previous-transfer-section{gap:10px;display:grid}.previous-transfer-section h4{color:#503500;text-transform:uppercase;letter-spacing:.8px;margin:0;font-size:14px}.previous-transfer-table{background:#ffffff94;border:1px solid #7b52002e;border-radius:12px;overflow-x:auto}.previous-transfer-table td span{max-width:260px;color:var(--muted);text-overflow:ellipsis;display:block;overflow:hidden}.previous-transfer-examples{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.previous-transfer-examples div{background:#ffffff94;border:1px solid #7b52002e;border-radius:12px;gap:5px;padding:12px;display:grid}.previous-transfer-examples span{color:var(--muted);overflow-wrap:anywhere}.previous-transfer-examples code{white-space:normal;overflow-wrap:anywhere;color:#503500;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px}.previous-transfer-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.previous-transfer-actions label{color:#503500;background:#ffffff94;border:1px solid #7b520033;border-radius:12px;grid-template-columns:20px 1fr;align-items:start;gap:10px;min-height:auto;padding:12px;display:grid}.previous-transfer-actions label.selected{border-color:#0f8176;box-shadow:0 0 0 2px #0f81761f}.previous-transfer-actions label.danger.selected{border-color:#c46122;box-shadow:0 0 0 2px #c461221f}.previous-transfer-actions input{width:18px;min-height:18px;margin-top:2px}.previous-transfer-actions span,.previous-transfer-actions strong,.previous-transfer-actions em{display:block}.previous-transfer-actions em{color:var(--muted);margin-top:4px;font-size:13px;font-style:normal;line-height:1.45}.issue-list-wide{gap:10px;display:grid}.issue-row{border:1px solid var(--border);border-radius:12px;grid-template-columns:150px 1fr 120px;gap:12px;padding:14px;display:grid}.issue-row.error{background:#fff5f6}.issue-row.warning{background:#fffaf0}.issue-row em{color:var(--muted);text-align:right;font-style:normal}.action-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.info-counts{gap:12px;display:grid}.info-counts.inline{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}.info-counts div,.log-list div{border:1px solid var(--border);background:#fbfcfd;border-radius:12px;padding:14px}.info-counts span{color:var(--muted);margin-bottom:6px;display:block}.info-counts strong{font-size:22px}.log-list{scrollbar-gutter:stable;color:#30435c;gap:10px;max-height:420px;padding-right:4px;display:grid;overflow-y:auto}.admin-list{gap:14px;max-height:640px;padding-right:4px;display:grid;overflow-y:auto}.admin-row,.store-row{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;gap:14px;padding:14px;display:grid}.admin-row{grid-template-columns:48px 1fr 180px;align-items:start}.admin-row-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.admin-shop-grid{grid-template-columns:minmax(220px,.7fr) minmax(280px,1fr) auto;align-items:end}.admin-row-actions{align-content:start;gap:10px;display:grid}.admin-row-actions span{color:var(--muted);overflow-wrap:anywhere;font-size:13px}.store-row{grid-template-columns:minmax(120px,.8fr) minmax(180px,1.2fr) auto auto;align-items:end}.inline-check{align-items:center;gap:9px;min-height:46px;display:flex}.inline-check input{width:auto;min-height:auto}.lookup-row{grid-template-columns:1fr auto;gap:12px;display:grid}.lookup-result{border:1px solid var(--border);color:var(--muted);background:#fbfcfd;border-radius:14px;gap:6px;margin-top:14px;padding:14px;display:grid}.lookup-result.found{background:#fffaf0;border-color:#f1d692}.lookup-result strong{color:var(--text)}.audit-list{gap:10px;max-height:420px;padding-right:4px;display:grid;overflow-y:auto}.audit-row{border:1px solid var(--border);background:#fbfcfd;border-radius:12px;grid-template-columns:120px 170px 170px 1fr 160px;align-items:start;gap:12px;padding:14px;display:grid}.audit-row p{overflow-wrap:anywhere;margin:0}.audit-row span,.audit-row em{color:var(--muted);font-style:normal}.help-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.help-card,.preset-card,.selected-template-help,.diadoc-structure{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:18px}.help-card{align-content:start;gap:12px;min-height:168px;padding:20px;display:grid}.help-icon{width:42px;height:42px;color:var(--teal);background:#e4f5f3;border-radius:12px;place-items:center;display:grid}.help-card strong,.preset-card strong,.diadoc-map-grid strong{font-size:17px}.help-card p,.preset-card p,.diadoc-structure p,.diadoc-map-grid span,.selected-template-help p,.diadoc-run-warning span{color:var(--muted);margin:0;line-height:1.55}.template-toolbar{grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) minmax(160px,.8fr) 150px;align-items:end;gap:16px;display:grid}.preset-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.preset-card{text-align:left;min-height:160px;color:var(--text);align-content:start;gap:9px;padding:18px;display:grid}.preset-card span{color:var(--teal-dark);letter-spacing:1.4px;text-transform:uppercase;font-size:11px;font-weight:900}.preset-card.active{box-shadow:0 0 0 3px #0f81761f, var(--shadow);border-color:#73bdb5}.preset-card.diadoc{background:linear-gradient(135deg, #0f81761c, #d9f28f2e), var(--surface);border-color:#5aaea7}.diadoc-structure{background:linear-gradient(135deg, #0f81761f, #dff2ff85), var(--surface);border-color:#5aaea7;padding:24px}.diadoc-structure-head,.template-help-main{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.diadoc-structure h3,.selected-template-help h3{margin:6px 0 8px;font-size:26px}.diadoc-badge,.diadoc-run-warning{color:#73520a;white-space:nowrap;background:#fff6dd;border:1px solid #f1d692;border-radius:999px;align-items:center;gap:10px;padding:10px 14px;font-weight:900;display:inline-flex}.structure-path{flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0;display:flex}.structure-path span{min-height:34px;color:var(--teal-dark);background:#e5f6f3;border:1px solid #9cd2cc;border-radius:999px;align-items:center;gap:8px;padding:0 11px;font-size:13px;font-weight:900;display:inline-flex}.structure-path em{color:var(--muted);font-style:normal}.diadoc-map-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.diadoc-map-grid div{background:#ffffffb8;border:1px solid #bde1dd;border-radius:14px;align-content:start;gap:8px;min-height:118px;padding:16px;display:grid}.template-grid{grid-template-columns:minmax(0,1.28fr) minmax(380px,.72fr);align-items:start;gap:24px;display:grid}.side-stack,.xml-tree,.template-file-panel{gap:16px;display:grid}.xml-tree{max-height:780px;padding-right:6px;overflow:auto}.xml-node{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;gap:14px;padding:14px;display:grid}.xml-node.diadoc-node{box-shadow:inset 4px 0 0 var(--teal);background:linear-gradient(135deg,#0f81761a,#dff2ff6b),#fbfcfd;border-color:#67b9b1}.xml-node-head{grid-template-columns:24px minmax(140px,1fr) 150px 44px 44px;align-items:end;gap:12px;display:grid}.xml-node-head>svg{color:var(--teal);align-self:center}.xml-node-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;display:grid}.xml-block{border:1px solid var(--border);background:var(--surface);border-radius:12px;gap:12px;padding:12px;display:grid}.xml-block-title{justify-content:space-between;align-items:center;gap:10px;display:flex}.attribute-row{grid-template-columns:minmax(130px,.7fr) minmax(180px,1.3fr) 44px;align-items:end;gap:12px;display:grid}.value-editor{grid-template-columns:minmax(130px,.8fr) minmax(160px,1.2fr);gap:12px;display:grid}.xml-children{border-left:2px solid var(--border);gap:14px;margin-left:22px;padding-left:18px;display:grid}.template-columns{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;gap:10px;padding:14px;display:grid}.template-columns div{flex-wrap:wrap;gap:8px;display:flex}.template-columns span{min-height:28px;color:var(--teal-dark);background:#e4f5f3;border-radius:999px;align-items:center;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.xml-preview{border:1px solid var(--border);color:#d8f6ef;white-space:pre;background:#0e1520;border-radius:14px;min-height:360px;max-height:720px;margin:0;padding:16px;font-size:13px;line-height:1.55;overflow:auto}.universal-grid{grid-template-columns:minmax(320px,.76fr) minmax(0,1.24fr);align-items:start;gap:24px;display:grid}.selected-template-help{gap:14px;padding:22px;display:grid}.selected-template-help.diadoc{background:linear-gradient(135deg, #0f81761a, #fff2d48c), var(--surface);border-color:#5aaea7}.diadoc-run-warning{white-space:normal;border-radius:14px;justify-content:flex-start}.template-help-main{justify-content:flex-start}.template-help-main .help-icon{flex:0 0 42px}.run-progress{grid-template-columns:1fr auto;align-items:center;gap:12px;margin-bottom:18px;display:grid}.run-progress p{color:var(--muted);grid-column:1/-1;margin:0}.run-progress strong{color:var(--teal-dark);font-size:22px}html[data-theme=dark] .login-screen,html[data-theme=dark] .boot-screen{background:radial-gradient(circle at 72% 18%,#21a79a2e,#0000 34%),linear-gradient(#0e1520,#111927)}html[data-theme=dark] .sidebar,html[data-theme=dark] .topbar,html[data-theme=dark] .login-panel,html[data-theme=dark] .login-form,html[data-theme=dark] .surface,html[data-theme=dark] .ghost-button,html[data-theme=dark] .role-card,html[data-theme=dark] .date-chip,html[data-theme=dark] .metric-card,html[data-theme=dark] .mini-metrics div,html[data-theme=dark] .issue-panel,html[data-theme=dark] .issue-row,html[data-theme=dark] .info-counts div,html[data-theme=dark] .log-list div,html[data-theme=dark] .live-log div,html[data-theme=dark] .progress-current,html[data-theme=dark] .admin-row,html[data-theme=dark] .store-row,html[data-theme=dark] .audit-row,html[data-theme=dark] .lookup-result,html[data-theme=dark] .notification-row,html[data-theme=dark] .integration-requirement,html[data-theme=dark] .integration-links a,html[data-theme=dark] .device-flow-grid>div,html[data-theme=dark] .bar-row,html[data-theme=dark] .compact-stat-list div,html[data-theme=dark] .xml-node,html[data-theme=dark] .xml-block,html[data-theme=dark] .template-columns,html[data-theme=dark] .help-card,html[data-theme=dark] .preset-card,html[data-theme=dark] .diadoc-structure,html[data-theme=dark] .diadoc-map-grid div,html[data-theme=dark] .selected-template-help,html[data-theme=dark] .previous-transfer-table,html[data-theme=dark] .previous-transfer-examples div,html[data-theme=dark] .previous-transfer-actions label,html[data-theme=dark] .dropzone,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:var(--surface);color:var(--text)}html[data-theme=dark] .hero-panel{background:radial-gradient(circle at 18% 12%, #21a79a2e, transparent 28%), radial-gradient(circle at 82% 30%, #d9f28f1f, transparent 32%), var(--surface)}html[data-theme=dark] .sidebar a,html[data-theme=dark] label,html[data-theme=dark] .log-list,html[data-theme=dark] .live-log div{color:var(--text)}html[data-theme=dark] .sidebar a.active,html[data-theme=dark] .brand-mark,html[data-theme=dark] .avatar{color:var(--teal-dark);background:#173a3c;border-color:#24575a}html[data-theme=dark] .metric-card.blue,html[data-theme=dark] .metric-card.amber,html[data-theme=dark] .metric-card.red,html[data-theme=dark] .metric-card.violet{background:var(--surface)}html[data-theme=dark] .integration-state.ready,html[data-theme=dark] .integration-requirement.ready code,html[data-theme=dark] .integration-check.ok{color:var(--teal-dark);background:#173a3c;border-color:#24575a}html[data-theme=dark] .integration-state.pending,html[data-theme=dark] .integration-requirement.missing code,html[data-theme=dark] .integration-check.warn{color:#f6d995;background:#40341d;border-color:#765d27}html[data-theme=dark] .integration-requirement code{background:#1a2634}html[data-theme=dark] .icon-button.danger{color:#ffb2bb;background:#3d2026;border-color:#71414a}html[data-theme=dark] .template-columns span{color:var(--teal-dark);background:#173a3c}html[data-theme=dark] .help-icon,html[data-theme=dark] .structure-path span{color:var(--teal-dark);background:#173a3c;border-color:#24575a}html[data-theme=dark] .preset-card.diadoc,html[data-theme=dark] .selected-template-help.diadoc,html[data-theme=dark] .diadoc-structure,html[data-theme=dark] .xml-node.diadoc-node{background:linear-gradient(135deg, #21a79a24, #162c4359), var(--surface)}html[data-theme=dark] .diadoc-badge,html[data-theme=dark] .diadoc-run-warning,html[data-theme=dark] .previous-transfer-report{color:#f6d995;background:#40341d;border-color:#765d27}html[data-theme=dark] .previous-transfer-head,html[data-theme=dark] .previous-transfer-head strong,html[data-theme=dark] .previous-transfer-section h4,html[data-theme=dark] .previous-transfer-examples code,html[data-theme=dark] .previous-transfer-actions label{color:#f6d995}.field-help{color:var(--muted);margin:-6px 0 2px;font-size:13px;font-weight:600;line-height:1.5}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.form-grid.one{grid-template-columns:1fr}.filters-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.compact-filters{grid-template-columns:repeat(3,minmax(0,1fr)) auto}.shipment-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.wide-field{grid-column:span 2}.muted-cell{max-width:360px;color:var(--muted);text-overflow:ellipsis;margin-top:4px;display:block;overflow:hidden}.link-button{color:var(--teal);background:0 0;border:0;padding:0;font-weight:800}.table-actions{align-items:center;gap:12px;display:flex}.notification-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-select{width:min(260px,100%)}.notification-list{gap:12px;display:grid}.notification-list.compact{gap:10px}.notification-row{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;grid-template-columns:120px 1fr auto;align-items:center;gap:14px;padding:14px;display:grid}.notification-row.critical{background:#fff5f6}.notification-row.warning{background:#fffaf0}.notification-row p{color:var(--muted);white-space:normal;margin:4px 0;line-height:1.45}.notification-row span{color:var(--muted);font-size:13px}.hero-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.integration-summary-grid,.integration-grid{gap:18px;display:grid}.integration-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-card{gap:18px;display:grid}.integration-state{border:1px solid var(--border);min-height:34px;color:var(--muted);text-transform:uppercase;white-space:nowrap;border-radius:999px;align-items:center;padding:0 12px;font-size:12px;font-weight:900;display:inline-flex}.integration-state.ready{color:var(--teal-dark);background:#ecfbf7;border-color:#b6eadf}.integration-state.pending{color:#8f6312;background:#fff8e7;border-color:#f2d89a}.integration-requirements{gap:10px;display:grid}.integration-requirement,.integration-check{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;display:grid}.integration-requirement.ready svg,.integration-check.ok svg{color:var(--teal-dark)}.integration-requirement.missing svg,.integration-check.warn svg{color:#b98012}.integration-requirement strong,.integration-check strong{overflow-wrap:anywhere;display:block}.integration-requirement span,.integration-check span{color:var(--muted);overflow-wrap:anywhere;margin-top:3px;font-size:13px;line-height:1.4;display:block}.integration-requirement code{color:var(--muted);background:#eff4f8;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:900}.integration-requirement.ready code{color:var(--teal-dark);background:#ecfbf7}.integration-requirement.missing code{color:#8f6312;background:#fff8e7}.integration-notes{gap:8px;display:grid}.integration-notes p{color:var(--muted);margin:0;line-height:1.5}.integration-links{flex-wrap:wrap;gap:10px;display:flex}.integration-links a{border:1px solid var(--border);min-height:38px;color:var(--text);border-radius:12px;align-items:center;gap:8px;padding:0 12px;font-weight:850;text-decoration:none;display:inline-flex}.integration-check{border-radius:16px;grid-template-columns:28px minmax(0,1fr)}.integration-check.ok{background:#ecfbf7;border-color:#b6eadf}.integration-check.warn{background:#fff8e7;border-color:#f2d89a}.device-flow-panel{gap:16px;display:grid}.device-flow-grid{grid-template-columns:minmax(240px,.6fr) minmax(280px,1.4fr);gap:14px;display:grid}.device-flow-grid>div{border:1px solid var(--border);background:#fbfcfd;border-radius:16px;align-content:start;gap:10px;padding:16px;display:grid}.device-flow-grid span{color:var(--muted);font-weight:850}.device-flow-grid strong{letter-spacing:1px;overflow-wrap:anywhere;font-size:34px}.device-flow-grid a{color:var(--teal-dark);font-weight:900}.device-flow-grid p{color:var(--muted);margin:0;line-height:1.5}.shipment-detail-grid{grid-template-columns:minmax(180px,.5fr) minmax(280px,1fr) auto;align-items:end}.registry-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.registry-summary div{border:1px solid var(--border);background:var(--surface);min-height:108px;box-shadow:var(--shadow);border-radius:16px;padding:18px}.registry-summary span{color:var(--muted);margin-bottom:10px;font-weight:800;display:block}.registry-summary strong{overflow-wrap:anywhere;font-size:30px;line-height:1.15;display:block}.registry-analytics{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:stretch;gap:24px;display:grid}.registry-days{grid-column:1/-1}.bar-list,.compact-stat-list{gap:12px;display:grid}.bar-row{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;grid-template-columns:1fr auto;align-items:center;gap:12px;min-height:76px;padding:14px;display:grid;position:relative;overflow:hidden}.bar-row>div,.bar-row>em{z-index:1;position:relative}.bar-row strong,.compact-stat-list strong{margin-bottom:5px;display:block}.bar-row span,.compact-stat-list span,.compact-stat-list em,.section-note,.muted-text{color:var(--muted);font-style:normal}.bar-row em{font-size:22px;font-weight:900}.bar-row i{background:linear-gradient(90deg, var(--teal), #7aa83e);border-radius:0 999px 999px 0;height:5px;position:absolute;bottom:0;left:0}.compact-stat-list div{border:1px solid var(--border);background:#fbfcfd;border-radius:14px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px;display:grid}.day-bars{align-items:end;gap:10px;min-height:190px;padding:8px 2px 2px;display:flex;overflow-x:auto}.day-bars div{flex:0 0 42px;grid-template-rows:1fr auto;place-items:end center;gap:8px;height:160px;display:grid}.day-bars i{background:linear-gradient(180deg, var(--teal), #7aa83e);border-radius:10px 10px 4px 4px;width:100%;min-height:8px}.day-bars span{color:var(--muted);font-size:12px;font-weight:800}.section-note{margin:6px 0 0}.registry-table{scrollbar-gutter:stable;max-height:660px;overflow:auto}.registry-table th{z-index:1;background:var(--surface);position:sticky;top:0}.registry-code{white-space:normal;overflow-wrap:anywhere;max-width:360px;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.45}.registry-product{white-space:normal;overflow-wrap:anywhere;max-width:420px}.pager{align-items:center;gap:10px;display:flex}.pager span{text-align:center;min-width:42px;color:var(--muted);font-weight:900}.filter-actions{align-items:end;gap:10px;display:flex}label{color:#23364f;gap:8px;font-weight:800;display:grid}input,select,textarea{border:1px solid var(--border);width:100%;min-height:46px;color:var(--text);background:#fff;border-radius:12px;outline:none;padding:10px 13px}textarea{resize:vertical;min-height:112px}input:focus,select:focus,textarea:focus{border-color:#88bbb6;box-shadow:0 0 0 3px #0f81761f}.span-2{grid-column:span 2}.form-error,.success-box,.notice{border-radius:14px;padding:14px 16px;font-weight:800}.form-error{color:#9f2330;background:#ffe8eb;border:1px solid #ffc4cc}.success-box{color:#0f6b24;background:#e9f9e6;border:1px solid #caefbf}.notice{color:#73520a;background:#fff5d9;border:1px solid #f1d692}.preset-notice{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;display:flex}.user-list{gap:12px;display:grid}.user-row{border:1px solid var(--border);border-radius:14px;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;min-height:74px;padding:12px;display:grid}.profile-card{align-items:center;gap:22px;display:flex}.profile-card h3{margin:6px 0 8px;font-size:28px}.profile-card p{color:var(--muted);align-items:center;gap:8px;margin:6px 0;display:flex}@media (width<=1100px){.shell{grid-template-columns:1fr}.sidebar{gap:18px;height:auto;position:static}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-section{grid-column:1/-1}.metrics-grid,.registry-summary,.help-grid,.preset-cards,.diadoc-map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-panel,.login-panel,.settings-grid,.issue-grid{grid-template-columns:1fr}.login-panel,.hero-panel{display:grid}.admin-row{grid-template-columns:48px 1fr}.audit-row{grid-template-columns:1fr 1fr}.admin-row-actions{grid-column:1/-1}.store-row{grid-template-columns:1fr 1fr}.template-toolbar,.template-grid,.universal-grid,.integration-summary-grid,.integration-grid,.device-flow-grid,.registry-analytics,.xml-node-body{grid-template-columns:1fr}.xml-node-head{grid-template-columns:24px minmax(160px,1fr) 130px 44px 44px}}@media (width<=720px){.shell{display:block}.page-stack{gap:16px;width:calc(100% - 24px);margin-top:16px}.sidebar{padding:16px}.sidebar nav,.sidebar-footer{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start;gap:12px;height:auto;padding:18px;position:static}.topbar-actions{justify-content:space-between;width:100%}.hero-panel,.surface,.login-panel{border-radius:16px;padding:20px}.metrics-grid,.registry-summary,.help-grid,.preset-cards,.diadoc-map-grid,.previous-transfer-examples,.previous-transfer-actions,.mini-metrics,.form-grid,.compact-filters,.shipment-form-grid,.shipment-detail-grid,.admin-shop-grid,.filters-grid,.info-counts.inline,.admin-row-grid,.store-row{grid-template-columns:1fr}.hero-panel{min-height:auto}.hero-panel h2{font-size:32px}.wide-field{grid-column:auto}.hero-panel .primary-button,.section-heading,.action-row{width:100%}.section-heading{flex-direction:column;align-items:flex-start}.action-row>*{width:100%}.filter-actions{flex-direction:column;align-items:stretch}.issue-row,.notification-row{grid-template-columns:1fr}.hero-actions{justify-content:stretch;width:100%}.hero-actions .ghost-button,.hero-actions .primary-button,.integration-links a{width:100%}.integration-requirement{grid-template-columns:24px minmax(0,1fr)}.integration-requirement code{grid-column:1/-1;justify-self:start}.admin-row{grid-template-columns:1fr}.admin-row .avatar{display:none}.admin-list,.log-list,.audit-list{max-height:360px}.audit-row,.lookup-row{grid-template-columns:1fr}.xml-tree{max-height:620px}.xml-node-head,.attribute-row,.value-editor{grid-template-columns:1fr}.xml-node-head>svg{display:none}.xml-node-head .icon-button,.attribute-row .icon-button{width:100%}.xml-children{margin-left:0;padding-left:10px}.diadoc-structure-head,.template-help-main{display:grid}.diadoc-badge{white-space:normal;justify-content:center}.progress-head{flex-direction:column;align-items:flex-start}.progress-head strong{text-align:left}.preset-notice .ghost-button{width:100%}.pager{grid-template-columns:1fr auto 1fr;width:100%;display:grid}.compact-stat-list div{grid-template-columns:1fr}.span-2{grid-column:span 1}}
