/* Edit link only: the bar, the small Edit / Add buttons, the PIN screen and the pop-up form. */
.editbar { background: var(--warn-soft); color: var(--text); font-size: 13.5px; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; }
.mini { font: 600 12.5px var(--font); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--accent-text); cursor: pointer; white-space: nowrap; }
.mini:hover { background: var(--fill-hover); }
.mini.add { border-style: dashed; }

.login { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.login-form { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.form-status { color: var(--bad); font-size: 14px; min-height: 1em; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field > span, .sub > span, legend { font-size: 13px; font-weight: 600; color: var(--text-2); }
.help { font-size: 12.5px; color: var(--text-3); }
input, select, textarea { font: 15px var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }

.editor { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); }
.editor::backdrop { background: rgb(6 18 47 / 0.45); }
.editor-form { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); }
.editor-form header, .editor-form footer { display: flex; align-items: center; gap: 8px; padding: 14px 18px; }
.editor-form header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.editor-form header h2 { font: 700 18px var(--font-display); }
.editor-form footer { border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.editor-form footer .form-status { margin-right: auto; color: var(--text-2); }
.editor-body { overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }

.upload { display: flex; flex-direction: column; gap: 8px; }
.upload-preview img { max-height: 140px; border-radius: 10px; }
.upload-preview audio { width: 100%; }
.upload-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.rows { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; }
.row-list { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) auto; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sub { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
