.entry-edit{width:44px;height:44px;min-width:44px;flex:none;padding:0;border-radius:11px;color:var(--accent,#46a1ff);font-size:18px;line-height:1;background:rgba(52,139,255,.1);border:1px solid rgba(52,139,255,.28)}
.entry-edit:hover,.entry-edit:focus-visible{background:rgba(52,139,255,.2);outline:2px solid var(--accent,#46a1ff);outline-offset:2px}
#entryEditorDialog{width:min(520px,calc(100% - 28px));max-height:min(88dvh,760px);padding:0;border:1px solid var(--line,#29447e);border-radius:20px;background:var(--card,#0d1a3d);color:var(--ink,#eef3ff);box-shadow:0 24px 70px rgba(0,0,0,.55);overflow:auto}
#entryEditorDialog::backdrop{background:rgba(2,7,22,.76);backdrop-filter:blur(3px)}
#entryEditorForm{padding:20px;display:grid;gap:16px}
.entry-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.entry-editor-head h2{margin:0;font:700 21px Georgia,serif;color:var(--ink,#eef3ff)}
.entry-editor-head p{margin:5px 0 0;color:var(--mute,#a9b9d8);font-size:13px}
.entry-editor-close{flex:none;width:38px;height:38px;padding:0;border-radius:50%;font-size:22px;line-height:1}
.entry-editor-fields{display:grid;gap:12px}
.entry-editor-field{display:grid;gap:6px;color:var(--mute,#a9b9d8);font-size:13px;font-weight:600}
.entry-editor-field input,.entry-editor-field select{width:100%;min-height:46px;padding:10px 12px;border-radius:12px;border:1px solid var(--line,#29447e);background:var(--bg,#0f1a21);color:var(--ink,#eef3ff);font:inherit;font-size:16px;box-sizing:border-box}
.entry-editor-field input:focus,.entry-editor-field select:focus{outline:2px solid var(--accent,#46a1ff);outline-offset:1px}
.entry-editor-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:2px}
.entry-editor-actions button{min-height:44px;border-radius:12px;font-weight:700}
.entry-editor-cancel{background:transparent;color:var(--ink,#eef3ff)}
.entry-editor-save{border-color:var(--accent,#46a1ff);background:var(--accent,#2676e8);color:white;padding-inline:16px}
.va-undo{width:100%;min-height:46px;margin-top:8px;border:1px solid rgba(61,212,164,.6);border-radius:13px;background:rgba(61,212,164,.12);color:var(--ink,#eef3ff);font-weight:700}
.va-undo:hover,.va-undo:focus-visible{outline:2px solid #3dd4a4;outline-offset:2px;background:rgba(61,212,164,.2)}
.va-undo[hidden]{display:none}
@media(max-width:380px){#entryEditorForm{padding:16px}.entry-editor-actions{display:grid;grid-template-columns:1fr 1.3fr}.entry-editor-actions button{padding-inline:8px}}
@media(prefers-reduced-motion:no-preference){#entryEditorDialog[open]{animation:entry-pop .16s ease-out}@keyframes entry-pop{from{opacity:0;transform:translateY(7px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}}
