.amiable-sketch{--sketch-ink:#062b52;--sketch-muted:#61788b;--sketch-line:#d7e4ec;--sketch-teal:#008c99;color:var(--sketch-ink);font:inherit}.sketch-toolbar,.sketch-controls,.sketch-signs{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.sketch-toolbar{justify-content:space-between;background:#f0f6f8;padding:16px;border:1px solid var(--sketch-line);border-radius:12px 12px 0 0}.sketch-field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700}.sketch-field select,.sketch-field input{font:inherit;font-size:13px;font-weight:500;border:1px solid #c8dce5;border-radius:7px;background:white;min-height:43px;padding:9px 11px;color:var(--sketch-ink);max-width:100%}.sketch-field select{min-width:155px}.sketch-mode-buttons,.sketch-move-controls,.sketch-rotate-controls{display:flex;gap:6px;align-items:center}.sketch-button{font:inherit;font-size:11px;font-weight:700;color:var(--sketch-ink);background:white;border:1px solid #cbdce5;min-height:42px;padding:9px 13px;border-radius:7px;cursor:pointer;line-height:1.5;touch-action:manipulation}.sketch-button:hover:not(:disabled){background:#e4f4f4}.sketch-button[aria-pressed=true]{background:var(--sketch-ink);border-color:var(--sketch-ink);color:white}.sketch-button:disabled{opacity:.42;cursor:not-allowed}.amiable-sketch button:focus-visible,.amiable-sketch select:focus-visible,.amiable-sketch input:focus-visible{outline:3px solid #4babb4;outline-offset:3px}.sketch-help{margin:0;padding:13px 16px;font-size:11px;color:var(--sketch-muted);background:#f8fbfc;border-inline:1px solid var(--sketch-line);line-height:1.8}.sketch-canvas{fill:none;stroke:none;display:block;width:100%;height:auto;aspect-ratio:8/5;border:1px solid var(--sketch-line);background:#fbfdfe;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}.sketch-canvas:focus-visible{outline:3px solid #4babb4;outline-offset:3px}.sketch-canvas .sketch-object{cursor:grab}.sketch-canvas .sketch-object:active{cursor:grabbing}.sketch-canvas.is-drawing,.sketch-canvas.is-drawing .sketch-object{cursor:crosshair}.sketch-controls{padding:15px 0}.sketch-controls .sketch-move-controls{margin-left:auto}.sketch-move-controls .sketch-button{font-size:18px;padding:5px 11px;min-width:42px}.sketch-signs{padding:12px 0 16px;border-top:1px solid var(--sketch-line)}.sketch-signs>span{font-size:11px;font-weight:650;margin-right:4px}.sketch-signs .sketch-button{font-size:10px;min-height:39px;padding:8px 11px;background:#f1f7f9}.sketch-road-labels{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sketch-road-labels .sketch-field{min-width:0}.sketch-road-labels .sketch-field input{width:100%}.sketch-status{font-size:11px;line-height:1.8;color:var(--sketch-teal);margin:10px 0}.sketch-status:empty{display:none}.sketch-keyboard-help{display:block;font-size:10px;line-height:1.8;color:var(--sketch-muted);margin-top:12px}.sketch-reset-dialog{border:1px solid var(--sketch-line);border-radius:15px;width:min(460px,calc(100% - 36px));padding:26px;color:var(--sketch-ink);font:inherit;box-shadow:0 20px 60px #062b5240}.sketch-reset-dialog::backdrop{background:#062b5270;backdrop-filter:blur(2px)}.sketch-reset-dialog h3{margin:0;font-size:22px;letter-spacing:-.6px}.sketch-reset-dialog p{font-size:12px;color:var(--sketch-muted);line-height:1.9;margin:14px 0 0}.sketch-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.sketch-dialog-actions .sketch-button:last-child{background:var(--sketch-ink);color:white;border-color:var(--sketch-ink)}
@media(max-width:760px){.sketch-toolbar{padding:14px;gap:13px;justify-content:flex-start}.sketch-toolbar>.sketch-field{width:100%}.sketch-toolbar>.sketch-field select{font-size:16px}.sketch-mode-buttons{flex:1}.sketch-mode-buttons>.sketch-button{flex:1}.sketch-toolbar>.sketch-button{font-size:10px;min-height:40px}.sketch-help{font-size:10px;line-height:1.9;padding:12px 14px}.sketch-controls{gap:12px}.sketch-controls>.sketch-field{width:100%}.sketch-controls>.sketch-field select{font-size:16px;width:100%}.sketch-controls .sketch-move-controls{margin-left:0;flex:1}.sketch-move-controls .sketch-button{min-width:44px;min-height:45px}.sketch-rotate-controls .sketch-button{font-size:10px;padding-inline:9px;min-height:45px}.sketch-signs{gap:8px}.sketch-signs>span{width:100%;font-size:12px;margin-bottom:2px}.sketch-signs .sketch-button{font-size:10px;min-height:43px;padding-inline:10px}.sketch-road-labels{grid-template-columns:1fr;gap:13px}.sketch-road-labels .sketch-field{font-size:12px}.sketch-road-labels input{font-size:16px;min-height:46px}.sketch-keyboard-help{font-size:10px;line-height:1.9}.sketch-reset-dialog{padding:23px}.sketch-dialog-actions{display:grid;grid-template-columns:1fr;width:100%}}
@media print{.sketch-toolbar,.sketch-help,.sketch-controls,.sketch-signs,.sketch-road-labels,.sketch-status,.sketch-keyboard-help,.sketch-reset-dialog{display:none!important}.sketch-canvas{width:100%;border:1px solid #ccc}}
.amiable-sketch [hidden]{display:none!important}.sketch-vehicle-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:14px 16px;background:#f8fbfc;border-inline:1px solid var(--sketch-line)}.sketch-vehicle-controls .sketch-field{min-width:0}.sketch-vehicle-controls select{width:100%;min-width:0}.sketch-vehicle-controls .sketch-field:first-child>span{color:#245aab}.sketch-vehicle-controls .sketch-field:last-child>span{color:#008b88}.sketch-selection-options{padding:0 0 16px;display:grid;grid-template-columns:minmax(0,1fr);max-width:600px}.sketch-selection-options .sketch-field{min-width:0}.sketch-selection-options input,.sketch-selection-options select{width:100%;min-width:0}.sketch-signs .sketch-button:last-child{border-color:#b7baa0;background:#f8f7ec}.sketch-signs .sketch-button:last-child:hover{background:#efedd9}
@media(max-width:760px){.sketch-vehicle-controls{padding:13px 14px;gap:12px;grid-template-columns:1fr}.sketch-vehicle-controls .sketch-field,.sketch-selection-options .sketch-field{font-size:12px}.sketch-vehicle-controls select,.sketch-selection-options input,.sketch-selection-options select{font-size:16px;min-height:46px}.sketch-controls>.sketch-field select{min-width:0}.sketch-toolbar>.sketch-field select{min-width:0;width:100%}}
@media print{.sketch-vehicle-controls,.sketch-selection-options{display:none!important}}
.sketch-input-help{font-size:11px;font-weight:400;line-height:1.6;color:var(--sketch-muted)}
.sketch-participant-tools{padding:16px;background:#fcfaf2;border:1px solid #e3ddca;border-bottom:0}.sketch-participant-tools h4{margin:0 0 12px;font-size:13px;color:#66552f}.sketch-participant-add{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.sketch-participant-add>.sketch-field{flex:1;min-width:0}.sketch-participant-add select{min-width:0;width:100%}.sketch-participant-add>.sketch-button{background:#f3eddc;border-color:#d4c59f;color:#66552f}.sketch-participant-tools>.sketch-input-help{margin:10px 0 0}.sketch-participant-count{margin:7px 0 0;font-size:11px;color:#7b6b48;line-height:1.6}.sketch-selection-options{gap:12px}.sketch-selection-options>.sketch-button{justify-self:start}
@media(max-width:760px){.sketch-participant-tools{padding:14px}.sketch-participant-add{display:grid;grid-template-columns:minmax(0,1fr)}.sketch-participant-add select{font-size:16px;min-height:46px}.sketch-participant-add>.sketch-button{width:100%;min-height:46px}.sketch-participant-tools h4{font-size:14px}.sketch-participant-tools .sketch-field{font-size:12px}}
@media print{.sketch-participant-tools{display:none!important}}

/* Size controls locally; the vehicle SVG geometry keeps its own proportions. */
.amiable-sketch,.sketch-toolbar,.sketch-controls,.sketch-signs,.sketch-vehicle-controls,.sketch-participant-tools{min-width:0;max-width:100%}
@media screen and (max-width:760px){
 .sketch-field{min-width:0;font-size:13px}
 .sketch-field input,.sketch-field select{font-size:16px;min-height:48px;min-width:0;width:100%;max-width:100%}
 .sketch-toolbar,.sketch-controls{gap:10px}
 .sketch-toolbar>.sketch-field{flex-basis:100%}
 .sketch-mode-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-basis:100%;gap:8px}
 .sketch-button,.sketch-toolbar>.sketch-button,.sketch-signs .sketch-button{min-height:46px;font-size:12px;line-height:1.55;max-width:100%;white-space:normal;overflow-wrap:break-word}
 .sketch-toolbar>.sketch-button{flex:1 1 100px}
 .sketch-help,.sketch-keyboard-help,.sketch-input-help,.sketch-status,.sketch-participant-count{font-size:12px;line-height:1.8;overflow-wrap:break-word}
 .amiable-sketch .sketch-canvas{width:100%;max-width:100%;height:auto;aspect-ratio:8/5;min-width:0}
 .sketch-controls .sketch-move-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex-basis:100%;width:100%;gap:8px}
 .sketch-move-controls .sketch-button{min-width:0;min-height:48px;font-size:22px;padding:6px}
 .sketch-rotate-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1;gap:8px}
 .sketch-rotate-controls .sketch-button{min-height:46px;font-size:13px;padding-inline:8px}
 .sketch-controls>.sketch-button{min-height:46px;font-size:12px;flex:1}
 .sketch-signs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sketch-signs>span{grid-column:1/-1;font-size:13px}
 .sketch-signs .sketch-button{padding:9px 6px;min-width:0}
 .sketch-selection-options>.sketch-button{justify-self:stretch;width:100%}
 .sketch-participant-add>.sketch-button{min-height:48px;font-size:13px}
 .sketch-vehicle-controls .sketch-field,.sketch-road-labels .sketch-field,.sketch-selection-options .sketch-field,.sketch-participant-tools .sketch-field{font-size:13px}
 .sketch-dialog-actions .sketch-button{min-height:48px;font-size:14px}
}
