.magazine-editor { max-width: 52rem; margin-inline: auto; } /* Panel + fieldset stacking: legend controls must stay above sibling content and decorative rails. */ .magazine-editor__panel { position: relative; } .magazine-editor__node > legend.magazine-editor__legend--row { position: relative; z-index: 2; } .magazine-editor__legend-actions { position: relative; z-index: 3; } .magazine-editor__toolbar, .magazine-editor__actions { position: relative; z-index: 2; } .magazine-editor__node--nested::before { pointer-events: none; } .magazine-editor__panel button { pointer-events: auto; cursor: pointer; touch-action: manipulation; } .magazine-editor__intro { margin: 0 0 1.25rem; line-height: 1.5; color: var(--color-text-mid, inherit); } .magazine-editor__toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; } .magazine-editor__legend--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; box-sizing: border-box; } .magazine-editor__legend-main { flex: 1 1 auto; min-width: 0; } .magazine-editor__add-sub { flex: 0 0 auto; } .magazine-editor__legend-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; flex-shrink: 0; } .magazine-editor__label--d-tag { margin-bottom: 0.65rem; } .magazine-editor__node--new { border-style: dashed; } .magazine-editor__input--mono { font-family: ui-monospace, monospace; font-size: 0.88rem; } .magazine-editor__status { margin: 0 0 0.75rem; padding: 0.65rem 0.85rem; border-radius: 5px; font-size: 0.95rem; line-height: 1.4; } .magazine-editor__status[hidden] { display: none; } .magazine-editor__status--info { background-color: var(--color-bg-light); color: var(--color-text); border: 1px solid var(--color-border, #3a3a3a); } .magazine-editor__status--success { background-color: color-mix(in srgb, var(--color-bg-light) 80%, #2d7a4a); color: var(--color-text); border: 1px solid color-mix(in srgb, #2d7a4a 35%, transparent); } .magazine-editor__status--error { background-color: color-mix(in srgb, var(--color-bg-light) 85%, #c0392b); color: var(--color-text); border: 1px solid color-mix(in srgb, #c0392b 35%, transparent); } .magazine-editor__actions .btn[aria-busy='true'] { cursor: wait; opacity: 0.85; } .magazine-editor__nodes { display: flex; flex-direction: column; gap: 1.5rem; } .magazine-editor__node { position: relative; isolation: isolate; margin: 0; padding: 1rem 1rem 1.1rem; border: 1px solid var(--color-border); background: var(--color-bg-light, var(--color-bg)); --mag-node-depth: 0; /* Fieldsets can impose min-content width; allow nested grids to shrink. */ min-width: 0; } /* Tree rail for nested kind-30040 sections (depth ≥ 2 under root). */ .magazine-editor__node--nested { position: relative; padding-left: calc(1rem + 0.35rem); border-left: 2px solid var(--color-border, rgba(120, 120, 120, 0.42)); border-radius: 0 2px 2px 0; } .magazine-editor__node--nested::before { content: ""; position: absolute; left: -2px; top: 0.85rem; width: 0.65rem; height: 2px; background: var(--color-border, rgba(120, 120, 120, 0.42)); border-radius: 1px; } .magazine-editor__legend { padding: 0 0.35rem; font-weight: 600; font-size: 0.95rem; } .magazine-editor__slug { font-weight: 400; font-size: 0.85rem; margin-left: 0.35rem; } .magazine-editor__label { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 0.9rem; } .magazine-editor__label-text { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; } .magazine-editor__input, .magazine-editor__textarea { width: 100%; box-sizing: border-box; } .magazine-editor__textarea--mono { font-family: ui-monospace, monospace; font-size: 0.82rem; line-height: 1.45; } .magazine-editor__actions { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-border); } .magazine-editor__a-block { margin: 0 0 0.9rem; } .magazine-editor__a-block-label { display: block; margin-bottom: 0.35rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; } .magazine-editor__a-hint { margin: 0 0 0.65rem; font-size: 0.8rem; line-height: 1.45; color: var(--color-text-mid, inherit); } .magazine-editor__a-list { display: flex; flex-direction: column; gap: 0.5rem; } /* Grid: drag-handle | input | remove-btn */ .magazine-editor__a-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.35rem; width: 100%; min-width: 0; } /* Drag handle is a (not a