.neural-lab { --neural-border: #353a42; --neural-muted: #a5adb8; --neural-light: #dce7e6; border: 1px solid var(--neural-border); border-radius: 16px; background: radial-gradient(ellipse at 80% 5%, #365f6121, transparent 48%), #161a20; padding: clamp(18px, 3vw, 30px); color: #e2e7ee; }
.neural-lab *, .neural-lab *::before, .neural-lab *::after { box-sizing: border-box; }
.neural-lab [hidden] { display: none !important; }
.neural-lab button, .neural-lab input, .neural-lab select { font: inherit; }
.neural-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.neural-heading h2 { font-size: clamp(22px, 3vw, 29px); font-weight: 450; letter-spacing: -.04em; margin: 0; }
.neural-eyebrow { color: #8fa7ad; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; margin: 0 0 7px; }
.neural-local { font-size: 10px; white-space: nowrap; border: 1px solid #48625b; border-radius: 20px; color: #bad5cb; padding: 7px 11px; }
.neural-intro { color: var(--neural-muted); font-size: 13px; line-height: 1.8; max-width: 850px; margin: 17px 0 24px; }
.neural-guide { border: 1px solid #35444c; border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; background: #15202980; }
.neural-guide summary { cursor: pointer; color: #c0d3d1; font-size: 12px; line-height: 1.8; }
.neural-guide ol { padding-left: 20px; color: #a7b4bf; font-size: 12px; line-height: 1.9; margin: 17px 0; }
.neural-guide li + li { margin-top: 9px; }
.neural-guide strong { color: #ccd9d9; font-weight: 500; }
.neural-guide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid #33424b; padding-top: 17px; }
.neural-guide dt { color: #bad0c7; font-size: 12px; margin-bottom: 5px; }
.neural-guide dd { color: #93a5b1; margin: 0; font-size: 11px; line-height: 1.8; }
.neural-auto { margin: 23px 0 13px; padding: 22px; border: 1px solid #415650; border-radius: 12px; background: linear-gradient(125deg, #20332e50, #161d2560); }
.neural-auto-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.neural-auto-heading h3 { font-size: 17px; font-weight: 450; margin: 0; letter-spacing: -.02em; }
.neural-auto-heading > span { color: #8cae9c; font-size: 10px; line-height: 1.8; }
.neural-auto > p { font-size: 11px; line-height: 1.9; color: #a0b3b7; margin: 13px 0 17px; }
.neural-auto progress { display: block; width: 100%; height: 6px; accent-color: #94bba8; border: none; border-radius: 8px; overflow: hidden; margin: 20px 0 0; }
.neural-auto progress::-webkit-progress-bar { background: #2b393e; }
.neural-auto progress::-webkit-progress-value { background: #94bba8; }
.neural-auto progress::-moz-progress-bar { background: #94bba8; }
.neural-auto [data-output="auto-status"] { color: #c0d5cc; font-variant-numeric: tabular-nums; }
.neural-auto-table-wrap { overflow-x: auto; max-height: 420px; border: 1px solid #34494a; border-radius: 7px; margin: 17px 0; background: #121e24; }
.neural-auto-table { border-collapse: collapse; width: 100%; min-width: 1040px; font-size: 10px; line-height: 1.8; color: #a9bfc3; font-variant-numeric: tabular-nums; }
.neural-auto-table caption { text-align: left; padding: 12px 13px; color: #9cafaf; background: #1a292f; }
.neural-auto-table th { color: #b3c9c6; font-weight: 500; text-align: left; }
.neural-auto-table th, .neural-auto-table td { padding: 9px 11px; border-top: 1px solid #2c3e45; white-space: nowrap; }
.neural-auto-table .neural-auto-chosen { background: #2d494238; }
.neural-auto-table td:last-child { white-space: normal; min-width: 130px; }
.neural-auto-selection { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.neural-auto-selection label { flex: 1 1 270px; }
.neural-auto-selection button { min-height: 41px; font-size: 11px; padding: 10px 13px; border: 1px solid #4a655b; color: #bdd4c7; background: #263a35; border-radius: 6px; cursor: pointer; }
.neural-auto-selection button:disabled { opacity: .4; cursor: default; }
.neural-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.neural-lab label { color: #b9c2cd; font-size: 11px; display: block; line-height: 1.7; }
.neural-lab input:not([type="range"]), .neural-lab select { display: block; color: #e3e9ed; border: 1px solid #3b424d; border-radius: 6px; background: #1e242c; min-height: 41px; padding: 8px 10px; width: 100%; margin-top: 5px; font-size: 12px; }
.neural-lab input[type="range"] { width: 100%; display: block; margin: 10px 0 18px; accent-color: #9cbdaf; }
.neural-lab input:disabled { opacity: .45; }
.neural-lab input:focus-visible, .neural-lab select:focus-visible, .neural-lab button:focus-visible, .neural-edge:focus-visible, .neural-node:focus-visible { outline: 2px solid #b3cbbb; outline-offset: 3px; }
.neural-control-note, .neural-footnote { color: #8f9aa8; font-size: 10px; line-height: 1.7; }
.neural-control-note { margin: 10px 0 20px; }
.neural-footnote { border-top: 1px solid var(--neural-border); margin: 23px 0 0; padding-top: 15px; }
.neural-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.neural-actions button, .neural-edit-panel button { font-size: 11px; min-height: 40px; padding: 9px 14px; border: 1px solid #48535c; color: #d1dde4; background: #263039; border-radius: 6px; cursor: pointer; }
.neural-actions .neural-primary { background: #b9cdc1; color: #15231e; border-color: #c5d9ce; min-width: 100px; font-weight: 600; }
.neural-actions button:hover, .neural-edit-panel button:hover { filter: brightness(1.12); }
.neural-actions button:disabled, .neural-edit-panel button:disabled { opacity: .45; cursor: default; }
.neural-actions [role="status"] { color: #a3b7bb; font-size: 11px; padding: 4px 0; flex: 1 1 180px; text-align: right; }
.neural-files { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; border-bottom: 1px solid var(--neural-border); padding: 15px 0 18px; }
.neural-files button { font-size: 10px; min-height: 35px; padding: 8px 11px; border-color: #3f4e54; background: #1c2a30; color: #aebfc5; }
.neural-files span { color: #8f9fa9; font-size: 10px; line-height: 1.7; flex: 1 1 220px; }
.neural-json-panel { border: 1px solid #394a50; border-radius: 8px; background: #142028; padding: 13px 15px; margin-top: 14px; }
.neural-json-panel summary { font-size: 11px; color: #b3c8cc; cursor: pointer; line-height: 1.8; }
.neural-json-panel label { margin-top: 13px; }
.neural-json-panel textarea { display: block; width: 100%; max-width: 100%; min-height: 140px; resize: vertical; border: 1px solid #43535e; border-radius: 6px; background: #0f1921; color: #bdcfd6; padding: 11px; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; margin: 7px 0 13px; }
.neural-json-panel textarea:focus-visible { outline: 2px solid #b3cbbb; outline-offset: 3px; }
.neural-json-panel button { font-size: 11px; min-height: 37px; padding: 8px 13px; background: #273c3c; border-color: #516b63; color: #d1e1d7; }
.neural-json-panel p { color: #93a6af; font-size: 10px; line-height: 1.8; margin: 12px 0 0; }
.neural-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; padding: 23px 0 15px; }
.neural-stats > div { border-left: 1px solid #46514f; padding-left: 13px; }
.neural-stats span { display: block; color: #a2acb9; font-size: 10px; line-height: 1.5; }
.neural-stats strong { display: block; font-size: 23px; font-weight: 400; letter-spacing: -.035em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.neural-network-wrap { background: radial-gradient(ellipse at center, #26363a55, transparent 75%), #11171de6; border: 1px solid #323e45; border-radius: 12px; margin-top: 12px; overflow-x: auto; }
.neural-network { display: block; width: 100%; min-width: 510px; max-height: 460px; }
.neural-edge, .neural-node[role="button"] { cursor: pointer; }
.neural-edge-line { pointer-events: none; }
.neural-edge-hit { stroke: transparent; stroke-width: 9; }
.neural-edge:hover .neural-edge-line, .neural-edge:focus-visible .neural-edge-line, .neural-edge.neural-selected .neural-edge-line { stroke: #f2e5c8 !important; stroke-width: 4 !important; opacity: 1 !important; }
.neural-node circle { stroke: #7c9a9b; stroke-width: 1.1; }
.neural-node:hover circle, .neural-node:focus-visible circle, .neural-node.neural-selected circle { stroke: #f2e5c8; stroke-width: 2.5; }
.neural-node-value { fill: #e5eee7; font-size: 9px; font-variant-numeric: tabular-nums; pointer-events: none; }
.neural-layer-label { fill: #9eafb6; font-size: 11px; }
.neural-legend { display: flex; gap: 17px; flex-wrap: wrap; color: #8fa0ad; font-size: 10px; margin: 13px 0 23px; line-height: 1.7; }
.neural-positive::before, .neural-negative::before { content: ''; display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 6px; background: #8ebcaf; }
.neural-negative::before { background: #c7a17a; }
.neural-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.neural-workspace > div { border: 1px solid var(--neural-border); border-radius: 10px; padding: 18px; background: #141a20a8; min-width: 0; }
.neural-workspace h3 { margin: 0 0 17px; font-size: 13px; font-weight: 500; color: #c3d0d8; }
.neural-small { color: #96a3af; font-size: 11px; line-height: 1.8; margin: 10px 0 0; }
.neural-input-panel label output { float: right; color: #d1dfda; font-variant-numeric: tabular-nums; }
.neural-prediction { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.neural-prediction span { color: #a5b3bf; font-size: 11px; }
.neural-prediction strong { font-size: 29px; font-weight: 400; color: #bfd8c9; font-variant-numeric: tabular-nums; }
.neural-edit-panel .neural-small { margin-top: 0; min-height: 55px; }
.neural-edit-panel label { margin: 13px 0 11px; }
.neural-edit-panel button { margin-bottom: 14px; }
.neural-map-panel canvas { display: block; width: 100%; max-width: 380px; aspect-ratio: 320 / 250; margin: 0 auto; }
.neural-loss-panel svg { display: block; width: 100%; max-height: 200px; }
.neural-plot-axis { stroke: #45515d; fill: none; stroke-width: 1; }
.neural-plot-line { stroke: #acccbc; fill: none; stroke-width: 2; stroke-linejoin: round; }
.neural-chart-label { fill: #94a3af; font-size: 10px; }
.neural-results { border-top: 1px solid #333e47; margin-top: 16px; padding-top: 11px; color: #aab8c1; font-size: 11px; line-height: 1.9; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .neural-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .neural-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } .neural-actions [role="status"] { text-align: left; flex-basis: 100%; } .neural-workspace { grid-template-columns: 1fr; } .neural-auto { padding: 16px; } .neural-auto-heading { align-items: flex-start; flex-direction: column; gap: 7px; } .neural-guide dl { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .neural-heading { align-items: flex-start; flex-wrap: wrap; } .neural-controls { grid-template-columns: 1fr; } .neural-local { margin-top: 4px; } .neural-actions { gap: 8px; } .neural-actions button { flex-grow: 1; } }
