
.tag-editor{margin:7px 0 13px}.tag-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tag-actions span{font:12px Georgia,serif;opacity:.75}.tag-chips{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.tag-chip{font:12px Georgia,serif!important;padding:5px 8px!important;min-height:0!important}.lore-inline-tag{display:inline!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;font-weight:700!important;text-transform:none!important;letter-spacing:normal!important;cursor:pointer!important;text-decoration:none!important}.lore-inline-tag:hover{text-decoration:underline!important}.lore-nav-section{margin-top:14px;border-top:1px solid #6b5141;padding-top:10px}.lore-nav-link{display:block;width:100%;text-align:left!important;font:14px Georgia,serif!important;min-height:0!important;padding:5px 8px!important;border:0!important;background:transparent!important}.tag-picker-overlay{position:fixed;inset:0;z-index:999999;background:#08070bc9;display:flex;align-items:center;justify-content:center;padding:15px}.tag-picker{position:relative;max-width:530px;width:100%;max-height:85vh;overflow:auto;background:#2b2228;color:#f0d7ad;border:1px solid #967650;padding:25px;box-shadow:0 15px 50px #000a}.tag-picker h4{font:28px Georgia,serif;margin:0 0 15px}.tag-picker input,.tag-picker select{display:block;width:100%;box-sizing:border-box;margin:5px 0 15px}.tag-picker-buttons{display:flex;justify-content:flex-end;gap:9px}.tag-close{position:absolute;right:10px;top:8px}.tag-result-list{display:flex;flex-direction:column;gap:8px}.tag-result-list button{text-align:left!important;white-space:normal!important}

.tag-note-body{white-space:pre-wrap;line-height:1.6;max-height:55vh;overflow-y:auto}

/* Keep tag dialog ABOVE diary and board modals (board modal z-index 2147483200). */
.tag-picker-overlay{z-index:2147483600!important;isolation:isolate!important}
.tag-picker{z-index:1}
.tag-picker-overlay input,.tag-picker-overlay select{color:#f4e7d3;background:#201a20;border:1px solid #8f7254;padding:10px;font:16px Georgia,serif}
.tag-picker-overlay .tag-picker-buttons button{width:auto;min-height:38px}

/* Inline mentions must behave like text, not as a button or a flex item. */
.lore-inline-tag{display:inline!important;position:static!important;float:none!important;vertical-align:baseline!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:inherit!important;box-shadow:none!important;border-radius:0!important;cursor:pointer!important}
.lore-inline-tag:focus-visible{outline:1px dotted currentColor;outline-offset:2px}
.tag-picker.tag-results{position:relative}
.tag-picker.tag-results>.tag-close{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;background:transparent!important;border:0!important;color:#eac99c!important;font:22px/1 Georgia,serif!important;letter-spacing:0!important}
.tag-picker.tag-results>h4{padding-right:35px}
.lore-description{margin:12px 0 20px;padding-bottom:16px;border-bottom:1px solid #695044}
.lore-description-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lore-description h5,.lore-mentions-title{font:19px Georgia,serif;margin:12px 0!important}
.lore-description-edit{font:12px Georgia,serif!important;min-height:30px!important;padding:5px 9px!important}
.lore-description-text{font:15px/1.55 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere}
.lore-description-text.lore-empty{opacity:.65;font-style:italic}
.lore-description-form[hidden],.lore-description-text[hidden],.lore-description-edit[hidden]{display:none!important}
.lore-description-input{width:100%;box-sizing:border-box;resize:vertical;min-height:115px;max-height:350px;font:15px/1.5 Georgia,serif;background:#201a20;color:#f0d7ad;border:1px solid #8f7254;padding:10px}
.lore-description-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}
.lore-description-buttons button{font:12px Georgia,serif!important;min-height:34px!important;padding:7px 12px!important}

.lore-rename{margin:-6px 0 18px}.lore-rename-edit{font:12px Georgia,serif!important;min-height:30px!important;padding:5px 9px!important}.lore-rename-form[hidden],.lore-rename-edit[hidden]{display:none!important}.lore-rename-form label{display:block;margin:0 0 6px}.lore-rename-input{width:100%;box-sizing:border-box;margin:0 0 10px!important}.lore-rename-form .lore-description-buttons button{font:12px Georgia,serif!important;min-height:34px!important;padding:7px 12px!important}

.lore-delete-row{display:flex;justify-content:flex-end;margin:8px 0 15px}
.lore-delete-button{width:auto!important;min-height:32px!important;padding:6px 11px!important;font:12px Georgia,serif!important;border:1px solid #9e635c!important;color:#e5afa5!important;background:transparent!important}
.lore-delete-button:hover{background:#6b323255!important}
.lore-delete-button:disabled{opacity:.5}

/* v62: compact contextual pencil controls */
.tag-picker.tag-results .lore-title-row{display:flex;align-items:center;gap:8px;padding-right:36px;min-height:35px}
.tag-picker.tag-results .lore-title-row h4{margin:0!important;padding:0!important;flex:0 1 auto}
.tag-picker.tag-results .lore-rename{display:inline-flex;align-items:center;flex:0 0 auto;margin:0!important;padding:0!important}
.tag-picker.tag-results .lore-rename-edit,.tag-picker.tag-results .lore-description-edit{display:inline-grid!important;place-items:center!important;width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;font:23px/1 Georgia,serif!important;color:#e4bf8e!important;letter-spacing:0!important}
.tag-picker.tag-results .lore-rename-edit:hover,.tag-picker.tag-results .lore-description-edit:hover{color:#fff0d1!important}
.tag-picker.tag-results .lore-rename-form{position:absolute;left:22px;right:22px;top:65px;background:#30262c;border:1px solid #82684b;padding:12px;z-index:3;box-shadow:0 10px 30px #0008}
.tag-picker.tag-results .lore-rename-form[hidden]{display:none!important}
.tag-picker.tag-results .lore-description-head{justify-content:flex-start!important;gap:8px!important}
.tag-picker.tag-results .lore-description-head h5{margin:0!important}
.tag-picker.tag-results .lore-delete-row{position:absolute;right:48px;top:10px;margin:0!important;z-index:2}
.tag-picker.tag-results .lore-delete-button{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;padding:0!important;border:0!important;background:transparent!important;font:17px/1 Georgia,serif!important}
.tag-picker.tag-results .tag-result-list button{white-space:normal!important;overflow-wrap:anywhere}
#boardEditNote{display:inline-grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;margin:5px 0!important;border:0!important;background:transparent!important;font:24px/1 Georgia,serif!important;color:#dcb988!important;letter-spacing:0!important}
#editProfileLink{font-size:25px!important;letter-spacing:0!important}
