/* Inline editing (ui/inline.ts, inline.js): only the pencil next to a value opens the field's control. */
/* The value is plain text: no hover fill, no pointer and no click handler. */
.ie-view{display:flex;align-items:flex-start;gap:var(--sp-8);min-width:0}
.ie-view[hidden]{display:none}
.ie-value{flex:1;min-width:0;overflow-wrap:anywhere;white-space:pre-line}
/* The pencil sits centred at the right of its row, out of the flow, so it keeps 44 px without making the row taller. */
.ie{position:relative}
.js .ie:not(.editing){padding-right:calc(var(--tap) + var(--sp-16))}
.ie-edit{position:absolute;top:50%;right:var(--sp-8);transform:translateY(-50%);display:inline-grid;place-items:center;width:var(--tap);height:var(--tap);margin:0;border:0;border-radius:var(--r-md);background:none;color:var(--text-2);cursor:pointer}
.ie[data-ie-multiline] .ie-edit{top:var(--sp-8);transform:none}
.ie-edit[hidden]{display:none}
.ie-edit:hover{background:var(--hover);color:var(--text)}
.ie-edit .icon{width:var(--icon-sm);height:var(--icon-sm)}
@media (min-width:900px){
  .ie-edit{opacity:0}
  .ie:hover .ie-edit,.ie-edit:focus-visible,.ie:focus-within .ie-edit{opacity:1}
  .ie-wide{grid-column:1/-1}
}
.ie.editing{background:var(--surface)}
.ie-form{display:flex;flex-direction:column;gap:var(--sp-4);margin:var(--sp-4) 0 0}
.ie-form .field{margin:0 0 var(--sp-8)}
.ie-single .field:not(.check)>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ie-form fieldset{border:0;margin:0;padding:0}
.ie-actions{display:flex;gap:var(--sp-8)}
.ie-actions .btn{flex:1 1 0}
@media (min-width:900px){.ie-actions .btn{flex:0 0 auto}}
.ie-msg{margin:var(--sp-4) 0 0;font-size:var(--fs-sm);color:var(--text-2)}
.ie-msg:empty{display:none}
.ie-msg.ok{color:var(--status-success-text)}
.ie-msg.err{color:var(--danger-text)}
/* Try-out fields (localList): without JavaScript the control shows in place; with it, the value and the pencil. */
.ie-local .ie-view{display:none}
.js .ie-local:not(.editing) .ie-view{display:flex}
.js .ie-local:not(.editing) .ie-ctl{display:none}
.ie-ctl{display:flex;flex-direction:column;gap:var(--sp-4);margin:var(--sp-4) 0 0}
.ie-ctl .field{margin:0 0 var(--sp-8)}
html:not(.js) .ie-local dt{display:none}
