.robot-section { max-width: none; }
.robot-viewer { border: 1px solid var(--line); margin-block: 24px; background: #eef0e8; }
#robot-canvas { display: block; width: 100%; height: 490px; touch-action: none; cursor: grab; }
#robot-canvas:active { cursor: grabbing; }
.robot-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--paper); border-top: 1px solid var(--line); }
.robot-toolbar label { display: flex; align-items: center; gap: 8px; font-size: .8rem; flex-wrap: wrap; }
.robot-toolbar button, .robot-toolbar select, #component-list button { font: inherit; font-size: .8rem; background: var(--paper); border: 1px solid #a8afa0; color: var(--ink); padding: 8px 10px; border-radius: 3px; cursor: pointer; min-height: 38px; }
#component-list { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
#component-list button[aria-pressed=true] { background: var(--accent); border-color: #55712a; }
.part-card { background: #e9eddf; padding: 22px; border-left: 3px solid #657e3b; min-height: 225px; }
.part-card h3 { margin: 5px 0 !important; font-size: 1.3rem !important; }
#part-machine { color: #354d30; font-weight: 600; }
#part-lesson { border-top: 1px solid #c2cdb4; padding-top: 12px; }
#viewer-status { font-size: .8rem; min-height: 2em; color: var(--muted); }
.robot-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-block: 24px; }
.robot-metrics div { border-top: 2px solid #8b9c68; padding-top: 12px; }
.robot-metrics strong { display: block; font-size: 1.3rem; font-weight: 500; }
.robot-metrics span { font-size: .8rem; color: var(--muted); }
.machine-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.machine-table th, .machine-table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.machine-table th { background: #e9eddf; }
.machine-table caption { text-align: left; margin-bottom: 12px; }
.flow { padding: 18px; background: #e9eddf; font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; }
@media(max-width:640px){ #robot-canvas { height: 390px; } .robot-metrics { grid-template-columns: 1fr 1fr; } .machine-table th,.machine-table td { padding: 10px 7px; min-width: 125px; } .robot-toolbar { padding: 10px; } }
