.lact-heading h1 { flex: 1; }
.lact-admin-add { flex: 0 0 36px; color: var(--blue); border: 1px solid var(--border); }
.lact-admin-edit { color: var(--blue); border: 1px solid var(--risk-border); flex: 0 0 34px; }
.lact-admin-edit .icon { width: 17px; height: 17px; }
.safety-editor { padding: 20px; width: min(650px, calc(100vw - 28px)); max-height: 88dvh; overflow: auto; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.safety-editor::backdrop { background: #07101b80; backdrop-filter: blur(4px); }
.safety-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:15px; }
.safety-editor-heading h2 { font-size:calc(19px * var(--pelison-type-scale, 1)); margin:0; }
.safety-editor-fields { display:grid; gap:12px; }
.safety-editor-fields label { display:grid; gap:5px; font-size:calc(12px * var(--pelison-type-scale, 1)); color:var(--muted); }
.safety-editor input, .safety-editor textarea, .safety-editor select { width:100%; padding:10px 12px; border:1px solid var(--border); background:var(--surface-soft); color:var(--text); border-radius:9px; font:inherit; }
.safety-editor textarea { resize:vertical; min-height:70px; }
.safety-editor-original { color:var(--muted); font-size:calc(11px * var(--pelison-type-scale, 1)); line-height:1.5; margin:0; }
.safety-editor-actions { display:flex; justify-content:space-between; margin-top:16px; }
.safety-picker .button { margin:12px 0; }
.safety-picker-list { display:grid; max-height:50dvh; overflow:auto; }
.safety-picker-list button { padding:12px 8px; text-align:left; color:var(--text); background:transparent; border:0; border-bottom:1px solid var(--border); }
.safety-picker-list button:hover { background:var(--surface-soft); }
@media(max-width:480px) { .safety-editor { padding:16px; } .lact-detail-header { flex-wrap:wrap; } }

/* Same step layout as the other content editors. */
.safety-editor:has(.se-steps-layout) { width: min(1180px, calc(100vw - 28px)); }
.se-steps-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 380px); gap: 16px; align-items: start; }
.se-steps-nav { position: sticky; top: 0; display: grid; gap: 4px; }
.se-step { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: calc(13px * var(--pelison-type-scale, 1)); text-align: left; cursor: pointer; }
.se-step b { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); font-size: 11px; }
.se-step:hover { background: var(--surface-soft); }
.se-step.active { background: var(--blue-soft); color: var(--blue); }
.se-step.active b { background: var(--blue); border-color: var(--blue); color: #fff; }
.se-step-panel[hidden] { display: none; }
.se-preview { position: sticky; top: 0; max-height: calc(88dvh - 150px); overflow: auto; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.se-preview > summary { cursor: pointer; font-weight: 700; font-size: calc(13px * var(--pelison-type-scale, 1)); }
.se-preview[open] > summary { margin-bottom: 8px; }
.se-preview-body { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.se-preview-header { padding: 12px 14px; }
.se-preview-header strong { display: block; color: var(--text); font-size: calc(16px * var(--pelison-type-scale, 1)); }
.se-preview-header .lact-detail-symbol { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--risk-soft); }
.se-preview-header .lact-detail-symbol svg { width: 20px; height: 20px; }
.se-preview-detail { max-height: none; overflow: visible; padding: 10px 14px; font-size: calc(13px * var(--pelison-type-scale, 1)); }
@media (max-width: 980px) { .se-steps-layout { grid-template-columns: 160px minmax(0, 1fr); } .se-preview { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 640px) { .se-steps-layout { grid-template-columns: 1fr; } .se-steps-nav { position: static; display: flex; overflow-x: auto; } .se-step { white-space: nowrap; } }
