/* Shapekin pro PC: rozložení editoru jako v Blenderu (desktop-shell.js). Platí jen s body.pc-shell. */
html.pc body.pc-shell.selection-workspace {
  --pc-head: 46px; --pc-rail: 56px; --pc-outliner: 236px; --pc-right: 324px; --pc-status: 26px;
  --pc-bg: #0b1017; --pc-panel2: #0f151f; --pc-card: #121a26; --pc-line2: #1e2a3a; --pc-hi: #2dd4bf; --pc-sel: #f97316;
}
/* Telefonní ovládání na PC nepotřebujeme (vše je v nabídkách, liště nástrojů a panelech). */
html.pc body.pc-shell.selection-workspace :is(#mobile-sheet, #mobile-toolbar, #context-actions, #workshop-bottom-toggle, #workshop-left-tools,
  #workshop-left-actions, #quick-tools, #gizmo-bar, #selection-chip, #workspace-project-actions, #edit-task-heading, #property-tabs, #viewport-move-hint) { display: none !important; }
html.pc body.pc-shell.selection-workspace .header-actions > button[aria-label="Nabídka projektu"] { display: none !important; }

/* Hlavička s nabídkami */
html.pc body.pc-shell.selection-workspace .app-header { height: var(--pc-head); min-height: var(--pc-head); gap: 8px; padding: 0 10px; }
html.pc body.pc-shell.selection-workspace .app-header .brand { display: none; }
html.pc body.pc-shell.selection-workspace .project-status { flex: 0 1 auto; min-width: 0; max-width: 240px; }
#pc-menubar { display: flex; gap: 2px; margin-right: auto; }
#pc-menubar .pc-menu { min-height: 32px; height: 32px; padding: 0 10px; border: 0; background: transparent; color: #cbd5e1; font-weight: 600; font-size: 13.5px; border-radius: 7px; box-shadow: none; }
#pc-menubar .pc-menu:hover, #pc-menubar .pc-menu[aria-expanded="true"] { background: #1a2535; color: #fff; }
#pc-dropdown, #pc-context { position: fixed; z-index: 1000; min-width: 260px; padding: 5px; background: #141d2a; border: 1px solid #2a3a50; border-radius: 10px; box-shadow: 0 18px 44px #000b; }
#pc-context { min-width: 220px; }
:is(#pc-dropdown, #pc-context)[hidden] { display: none; }
:is(#pc-dropdown, #pc-context) button { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; width: 100%; min-height: 30px; height: 30px; padding: 0 10px 0 6px;
  border: 0; border-radius: 6px; background: transparent; color: #e2e8f0; font-size: 13px; font-weight: 500; text-align: left; box-shadow: none; }
#pc-context button { grid-template-columns: 1fr auto; padding: 0 10px; }
:is(#pc-dropdown, #pc-context) button:hover:not(:disabled) { background: #1f3a3a; color: #fff; }
:is(#pc-dropdown, #pc-context) button:disabled { color: #4b5b70; }
:is(#pc-dropdown, #pc-context) button.danger { color: #f87171; }
:is(#pc-dropdown, #pc-context) .check { color: #5eead4; font-weight: 800; }
:is(#pc-dropdown, #pc-context) kbd { font: 11px ui-monospace, monospace; color: #64748b; background: none; border: 0; padding: 0; }
:is(#pc-dropdown, #pc-context) hr { border: 0; border-top: 1px solid #243246; margin: 4px 2px; }

/* Mřížka editoru: vlevo nástroje + objekty, uprostřed 3D, vpravo vlastnosti, dole stav. */
html.pc body.pc-shell.selection-workspace #editor-content {
  display: grid !important; height: calc(100vh - var(--pc-head)) !important;
  grid-template-columns: calc(var(--pc-rail) + var(--pc-outliner)) minmax(0, 1fr) var(--pc-right) !important;
  grid-template-rows: minmax(0, 1fr) var(--pc-status) !important; grid-template-areas: "left views right" "status status status";
}
html.pc body.pc-shell.pc-left-closed.selection-workspace #editor-content { grid-template-columns: var(--pc-rail) minmax(0, 1fr) var(--pc-right) !important; }
html.pc body.pc-shell.pc-right-closed.selection-workspace #editor-content { grid-template-columns: calc(var(--pc-rail) + var(--pc-outliner)) minmax(0, 1fr) 0 !important; }
html.pc body.pc-shell.pc-left-closed.pc-right-closed.selection-workspace #editor-content { grid-template-columns: var(--pc-rail) minmax(0, 1fr) 0 !important; }
html.pc body.pc-shell.pc-left-closed #pc-outliner, html.pc body.pc-shell.pc-right-closed #pc-right { display: none; }
html.pc body.pc-shell.selection-workspace #workspace-views { grid-area: views; min-width: 0; min-height: 0; height: 100%; }

/* Lišta nástrojů */
#pc-left { grid-area: left; padding: 0 !important; margin: 0; display: flex; min-height: 0; background: var(--pc-panel2); border-right: 1px solid var(--pc-line2); }
#pc-tools { flex: 0 0 var(--pc-rail); display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 8px 5px; background: #0e131b; border-right: 1px solid var(--pc-line2); overflow-y: auto; }
#pc-tools i { height: 1px; background: #243246; margin: 5px 6px; flex: 0 0 1px; }
#pc-tools button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 50px; height: 50px; padding: 2px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; color: #94a3b8; box-shadow: none; }
#pc-tools button .icon { font-size: 18px; line-height: 1.1; }
#pc-tools button .name { font-size: 9.5px; font-weight: 600; color: #8b9bb0; }
#pc-tools button kbd { position: absolute; right: 3px; top: 2px; font: 8.5px ui-monospace, monospace; color: #55657a; background: none; border: 0; padding: 0; }
#pc-tools button:hover:not(:disabled) { background: #172231; color: #e2e8f0; }
#pc-tools button[aria-pressed="true"] { background: #133b3a; border-color: #2dd4bf77; color: #5eead4; }
#pc-tools button[aria-pressed="true"] .name { color: #5eead4; }
#pc-tools button:disabled { opacity: .35; }

/* Okno objektů */
#pc-outliner { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; }
.pc-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #64748b; }
#pc-object-search { width: 100%; min-height: 32px; height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; background: #0b1017; border: 1px solid #243246; color: #e2e8f0; }
#pc-objects { display: flex; flex-direction: column; gap: 6px; }
#pc-objects .outliner-bar, #pc-objects .outliner-multi-bar { display: flex; flex-wrap: wrap; gap: 4px; }
#pc-objects .outliner-bar button, #pc-objects .outliner-multi-bar button { min-height: 28px; height: 28px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
#pc-objects #objects { display: flex; flex-direction: column; gap: 3px; }
#pc-objects #objects > * { min-height: 34px; font-size: 13px; border-radius: 8px; }
.pc-add-toggle { min-height: 34px; border: 1px dashed #2dd4bf88 !important; background: transparent !important; color: #5eead4 !important; font-weight: 800; border-radius: 9px; box-shadow: none !important; }
.pc-add-toggle kbd { font: 10px ui-monospace, monospace; color: #3a8f84; background: none; border: 0; }
#pc-add[hidden] { display: none; }
#pc-add { display: flex; flex-direction: column; gap: 6px; }
#pc-add h2 { display: none; }
#pc-add .section-label { font-size: 10.5px; letter-spacing: .12em; color: #64748b; margin: 4px 0 0; }
#pc-add .shapes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0; }
#pc-add .shapes button { min-height: 34px; height: 34px; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 0 8px; font-size: 12.5px; }
#pc-add .shapes button b { font-size: 14px; }
#pc-add .create-actions-grid { display: grid !important; grid-template-columns: 1fr; gap: 5px; }
#pc-add .create-actions-grid button, #pc-add #shape-open { min-height: 32px; height: 32px; font-size: 12.5px; justify-content: flex-start; padding: 0 10px; }

/* Panel vlastností */
#pc-right { grid-area: right; padding: 0 !important; margin: 0; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--pc-panel2); border-left: 1px solid var(--pc-line2); }
#pc-tabs { display: flex; gap: 3px; margin: 8px 8px 0; padding: 3px; background: #0b1017; border: 1px solid #1f2b3c; border-radius: 10px; }
#pc-tabs button { flex: 1; min-height: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #94a3b8; font-weight: 700; font-size: 13px; box-shadow: none; }
#pc-tabs button[aria-selected="true"] { background: #1a2535; color: #fff; }
.pc-pane { flex: 1 1 auto; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pc-pane[hidden] { display: none; }
html.pc body.pc-shell #pc-right #properties, html.pc body.pc-shell #pc-right #cad-panel { display: flex; flex-direction: column; gap: 10px; position: static; max-height: none; overflow: visible; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
html.pc body.pc-shell #pc-right #properties[hidden] { display: none; }
html.pc body.pc-shell #pc-right .property-section[hidden] { display: flex !important; }
html.pc body.pc-shell #pc-right .property-section { flex-direction: column; gap: 8px; padding: 10px; background: var(--pc-card); border: 1px solid #1f2b3c; border-radius: 0 0 10px 10px; margin-top: -10px; }
html.pc body.pc-shell #pc-right .property-section.pc-collapsed { display: none !important; }
.pc-section-title { margin: 0; padding: 9px 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8b9bb0; background: var(--pc-card);
  border: 1px solid #1f2b3c; border-bottom: 0; border-radius: 10px 10px 0 0; cursor: pointer; user-select: none; }
.pc-section-title::before { content: '▾ '; color: #5eead4; }
.pc-section-title:has(+ .pc-collapsed) { border-bottom: 1px solid #1f2b3c; border-radius: 10px; }
.pc-section-title:has(+ .pc-collapsed)::before { content: '▸ '; }
html.pc body.pc-shell #pc-right .numeric-details > summary { display: none; }
html.pc body.pc-shell #pc-right .fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
html.pc body.pc-shell #pc-right .fields input { min-height: 30px; height: 30px; font: 12.5px ui-monospace, monospace; padding: 0 6px; }
html.pc body.pc-shell #pc-right .fields label:nth-child(3n+1) input { border-left: 3px solid #ef4444; }
html.pc body.pc-shell #pc-right .fields label:nth-child(3n+2) input { border-left: 3px solid #22c55e; }
html.pc body.pc-shell #pc-right .fields label:nth-child(3n+3) input { border-left: 3px solid #3b82f6; }
html.pc body.pc-shell #pc-right button { min-height: 32px; font-size: 12.5px; }
html.pc body.pc-shell #pc-right .mesh-notice { padding: 10px; margin: 0; }
html.pc body.pc-shell #pc-right .pick-modes { display: none; }   /* přepínač je ve 3D ploše */
#pc-pane-select #selection-empty, #pc-pane-select #mesh-selection { margin: 0; }
.pc-card { background: var(--pc-card); border: 1px solid #1f2b3c; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.pc-card h3 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.pc-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-seg button { flex: 1 1 auto; min-height: 30px !important; height: 30px; padding: 0 9px; font-size: 12.5px !important; border-radius: 7px; }
.pc-seg button[aria-pressed="true"] { background: #133b3a; border-color: #2dd4bf; color: #5eead4; }
.pc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cbd5e1; min-height: 28px; }
.pc-check input { width: 16px; height: 16px; accent-color: #2dd4bf; }
.pc-field { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #94a3b8; }
.pc-field input { width: 80px; min-height: 28px; height: 28px; }
.pc-field[hidden] { display: none; }

/* Ve 3D ploše */
#pc-pickbar, #pc-viewbar { position: absolute; z-index: 6; display: flex; gap: 3px; padding: 3px; background: #0e131bee; border: 1px solid #1e2a3a; border-radius: 11px; box-shadow: 0 8px 24px #0007; }
#pc-pickbar { left: 12px; top: 12px; }
#pc-viewbar { left: 12px; bottom: 12px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 120px); }
#pc-viewbar i { width: 1px; align-self: stretch; background: #243246; margin: 3px 2px; }
#pc-pickbar button, #pc-viewbar button { min-height: 30px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; font-weight: 600; font-size: 12.5px; box-shadow: none; }
#pc-viewbar .pc-seg { flex-wrap: nowrap; gap: 2px; }
#pc-viewbar .pc-seg button { flex: 0 0 auto; border: 0; background: transparent; }
#pc-pickbar button kbd { font: 10px ui-monospace, monospace; color: #55657a; margin-left: 4px; background: none; border: 0; padding: 0; }
#pc-pickbar button[aria-pressed="true"] { background: #3a2a14; color: #fdba74; box-shadow: inset 0 0 0 1px #f9731688; }
#pc-viewbar button[aria-pressed="true"], #pc-viewbar .pc-seg button[aria-pressed="true"] { background: #1f3a3a; color: #5eead4; }
#pc-pickbar button:hover:not(:disabled), #pc-viewbar button:hover { background: #1a2535; color: #e2e8f0; }
#pc-pickbar button:disabled { opacity: .4; }
html.pc body.pc-shell #viewport #overhang-legend { bottom: 58px; }

/* Stavový řádek */
#pc-status { grid-area: status; display: flex; align-items: center; gap: 18px; padding: 0 12px; background: #0e131b; border-top: 1px solid var(--pc-line2); font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; }
#pc-status b { color: #e2e8f0; }
#pc-status .pc-status-hint { overflow: hidden; text-overflow: ellipsis; }
#pc-status .pc-status-sel { margin-left: auto; color: #cbd5e1; }

/* Klávesové zkratky */
#pc-shortcuts { width: min(980px, 94vw); max-height: 88vh; padding: 18px 20px; }
#pc-shortcuts header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#pc-shortcuts h2 { margin: 0; }
.pc-shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; overflow: auto; }
.pc-shortcuts-grid h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; }
.pc-shortcuts-grid .row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #1a2433; font-size: 13px; }
.pc-shortcuts-grid kbd { font: 12px ui-monospace, monospace; color: #fdba74; background: none; border: 0; }

/* Řádek dílu v okně objektů: název, oko, zámek. */
#pc-objects .object-row { display: grid !important; grid-template-columns: minmax(0, 1fr) 28px 28px; gap: 2px; align-items: center; min-height: 0 !important; }
#pc-objects .object-row .object { display: flex !important; align-items: center; gap: 7px; min-height: 30px !important; height: 30px; padding: 0 8px !important; font-size: 13px !important; text-align: left; justify-content: flex-start; flex-direction: row !important; writing-mode: horizontal-tb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 7px; }
#pc-objects .object-row .object small { margin-left: auto; font-size: 10.5px; color: #5eead4; }
#pc-objects .object-row .object .dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 3px; }
#pc-objects .object-row .obj-icon-btn { min-height: 28px !important; height: 28px; width: 28px; padding: 0 !important; font-size: 12px; border-radius: 7px; }
#pc-pickbar i { width: 1px; align-self: stretch; background: #243246; margin: 3px 2px; }
#pc-snap, #pc-space { font-size: 12px !important; }
/* Přesná tabulka hodnot nahoře, krokování a zarovnání pod ní. */
html.pc body.pc-shell #pc-right .numeric-details { order: -1; }
html.pc body.pc-shell #pc-right .transform-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 5px; }
html.pc body.pc-shell #pc-right .transform-actions button { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; min-height: 30px; height: auto; padding: 4px 8px; }
html.pc body.pc-shell #pc-right .property-section:not(.pc-collapsed) { display: flex !important; }
/* Krokování hodnoty po jedné ose je na telefonu; na PC je tabulka X/Y/Z a gizmo. Zarovnání zůstává. */
html.pc body.pc-shell #transform-tools > :is(.transform-tabs, .transform-axes, #transform-description, #transform-presets, #transform-size-note, #transform-title),
html.pc body.pc-shell #transform-tools > label.control-label:has(#transform-value, #transform-minus) { display: none !important; }
html.pc body.pc-shell #transform-tools { padding: 0; border: 0; background: none; box-shadow: none; }
#pc-outliner { overflow-x: hidden; }

.pc-card[hidden] { display: none; }
.pc-hint { margin: 0; font-size: 12.5px; color: #94a3b8; }
.pc-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pc-ops button { min-height: 34px !important; font-size: 12.5px !important; justify-content: center; }
#pc-face-ops { border-color: #f9731655; }
#pc-face-ops h3, #pc-edge-ops h3 { color: #fdba74; }
#pc-face-scale { grid-column: 1 / -1; }

/* Přetahování souborů z počítače (file-drop.js) */
#file-drop-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #05080ecc; pointer-events: none; }
#file-drop-overlay[hidden] { display: none; }
#file-drop-overlay > div { display: grid; gap: 6px; padding: 28px 40px; border: 2px dashed #2dd4bf; border-radius: 18px; background: #0e131bee; text-align: center; color: #e2e8f0; }
#file-drop-overlay strong { font-size: 20px; color: #5eead4; }
#file-drop-overlay span { font-size: 14px; color: #94a3b8; }
.pc-ops .pc-needs-face { opacity: .45; }
#pc-drag-readout { position: absolute; z-index: 30; pointer-events: none; padding: 4px 9px; border-radius: 8px; background: rgba(8, 15, 25, .88); border: 1px solid rgba(94, 234, 212, .45); color: #e2f8f5; font: 600 12.5px/1.3 system-ui, sans-serif; white-space: nowrap; }

/* ---------- Přestavba 2.38: přehlednější PC rozhraní ---------- */
/* Vyskakovací panely (Přidat díl, Zobrazení) */
.pc-popover { position: absolute; z-index: 40; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #0f151f; border: 1px solid #2a3a50; border-radius: 12px; box-shadow: 0 18px 40px #000a; overflow-y: auto; }
.pc-popover[hidden] { display: none !important; }
#pc-outliner { position: relative; }
.pc-add-toggle.primary { border: 0 !important; background: #14b8a6 !important; color: #04211d !important; min-height: 38px; font-size: 14px; }
.pc-add-toggle.primary kbd { color: #075e55; }
#pc-add.pc-popover { position: fixed; left: 70px; top: 96px; width: 300px; max-height: calc(100vh - 140px); }
#pc-add .shapes button { min-height: 44px; height: 44px; font-size: 13.5px; }
#pc-view-pop.pc-popover { bottom: calc(100% + 8px); left: 0; width: 330px; max-height: min(70vh, 560px); padding: 10px; }
#pc-viewbar { flex-wrap: nowrap; overflow: visible; }
#pc-view-toggle { color: #e2e8f0 !important; font-weight: 700; }
#pc-view-pop .pc-card { background: #121a26; }
#pc-view-pop .pc-seg { flex-wrap: wrap; }
/* Pravý panel podle výběru */
#pc-right-head { padding: 12px 12px 4px; text-transform: none; letter-spacing: 0; font-size: 15px; color: #e2e8f0; }
#pc-right-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pc-empty { margin: 10px; display: flex; flex-direction: column; gap: 10px; }
#pc-empty[hidden] { display: none; }
#pc-empty .pc-ops { display: grid; gap: 6px; }
#pc-empty .pc-ops button.primary { background: #14b8a6; color: #04211d; border: 0; font-weight: 800; min-height: 38px; }
/* Bublina s nápovědou u kurzoru */
#pc-cursor-tip { position: absolute; z-index: 25; pointer-events: none; max-width: 260px; padding: 6px 10px; border-radius: 9px; background: rgba(8, 15, 25, .92); border: 1px solid #2a3a50; color: #e2e8f0; font: 500 12.5px/1.35 system-ui, sans-serif; box-shadow: 0 8px 20px #0008; }
#pc-cursor-tip[hidden] { display: none; }
#pc-cursor-tip b { color: #5eead4; }
/* Prohlídka pro začátečníky */
#pc-tour { position: fixed; z-index: 120; width: 340px; padding: 14px 16px; background: #0f151f; border: 1px solid #2dd4bf; border-radius: 14px; box-shadow: 0 22px 50px #000c; color: #e2e8f0; }
#pc-tour[hidden] { display: none; }
#pc-tour h3 { margin: 0 0 6px; font-size: 15px; }
#pc-tour p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: #cbd5e1; }
#pc-tour footer { display: flex; gap: 8px; align-items: center; }
#pc-tour footer span { margin-right: auto; font-size: 12px; color: #64748b; }
#pc-tour button { min-height: 32px; padding: 0 12px; }
#pc-tour button.primary { background: #14b8a6; color: #04211d; border: 0; font-weight: 800; }
.pc-tour-target { outline: 3px solid #2dd4bf !important; outline-offset: 3px; border-radius: 10px; }
/* Nastavitelné klávesové zkratky (Nastavení → Modelování) */
.pc-keys-card { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.pc-keys-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 18px; }
.pc-key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; border-bottom: 1px solid #1e2a3a; font-size: 13.5px; }
.pc-key-btn { min-width: 110px; min-height: 28px; padding: 0 10px; font: 600 12.5px ui-monospace, monospace; border-radius: 7px; }
.pc-key-btn:focus-visible, .pc-key-btn:active { outline: 2px solid #2dd4bf; }
.pc-keys-note { min-height: 1.2em; margin: 0; }
#pc-shortcuts header { display: flex; gap: 8px; align-items: center; }
#pc-shortcuts header h2 { margin-right: auto; }
/* Historie úprav */
#cad-history.busy { opacity: .55; pointer-events: none; }
.cad-history-box { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.cad-history-box[hidden] { display: none !important; }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.history-step { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; min-height: 34px; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; }
.history-step.open { outline: 2px solid #2dd4bf; }
.history-num { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1f3a3a; color: #5eead4; font-size: 11px; font-weight: 800; }
.history-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.history-edit { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px 4px 30px; }
.history-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.history-field input { width: 96px; min-height: 28px; }
.history-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.history-hint { margin: 0 0 4px; font-size: 12px; }
.history-field input.bound { border-color: #a78bfa !important; color: #ddd6fe; }
