.recurring-note-dialog{width:min(740px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid var(--divider);border-radius:6px;background:var(--surface);color:var(--ink)}
.recurring-note-dialog::backdrop{background:#0007}.recurring-note-dialog>form,.recurring-note-body{padding:24px}.recurring-note-dialog h2{font-size:21px;margin:0 0 18px}.recurring-note-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--divider)}.recurring-note-dialog>header h2{margin:0}.recurring-note-dialog footer{display:flex;gap:12px;justify-content:flex-end;padding:18px 24px;border-top:1px solid var(--divider);position:sticky;bottom:0;background:var(--surface)}.recurring-note-dialog fieldset{display:grid;gap:16px;margin:22px 0}.recurring-note-dialog fieldset label{display:flex;align-items:center;gap:12px}.recurring-note-dialog fieldset input{width:auto}.recurring-note-table{max-height:260px;overflow:auto}.recurring-note-dialog [role=alert]{color:#b42318;white-space:pre-wrap}.recurring-note-dialog details{margin:20px 0}.recurring-note-dialog .pre-line{padding:16px;background:var(--canvas);border:1px solid var(--divider);max-height:180px;overflow:auto}.linked-note-status{display:block;margin:8px 0;color:var(--secondary);font-size:12px}.inline-note-composer .linked-note-scope{font-weight:600;line-height:1.5}

[data-theme=dark] .recurring-note-dialog [role=alert]{color:#ffb4ab}

.record-note .note-author-row,.note-version-history .note-author-row{display:flex;align-items:flex-start;gap:10px;position:relative}.note-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:var(--primary);color:white;font-size:14px;font-weight:500}.note-author-row>div{min-width:0;flex:1}.note-author-row strong{font-size:15px;font-weight:500}.note-author-row small{display:block;font-size:12px;color:var(--secondary);margin-top:3px}.record-note .note-actions{position:relative;flex:0 0 28px;margin:0}.record-note .note-actions summary{font-size:22px;min-width:28px;padding:0 5px;list-style:none}.record-note .note-actions>div{position:absolute;right:0;top:28px;z-index:5;min-width:155px;background:var(--surface);border:1px solid var(--divider);box-shadow:0 4px 15px #0002}.record-note .note-actions button{display:block;width:100%;text-align:left}.record-note>p,.note-version-history article>p{font-size:14px;line-height:1.5;font-weight:400;margin:12px 0}.record-note .note-origin{display:block;color:var(--secondary);font-size:12px}.note-version-history article{padding:16px 0;border-bottom:1px solid var(--divider)}.note-version-history article:first-child{padding-top:0}.note-history-footer{display:flex;justify-content:flex-end;margin-top:20px}dialog:has(.note-version-history){width:min(600px,calc(100vw - 32px))}.recurring-note-dialog fieldset label{min-height:32px;padding:0}.recurring-note-dialog fieldset input{min-height:0;height:16px;width:16px;margin:0}

.recurring-note-dialog p,.recurring-note-dialog td,.recurring-note-dialog li,.recurring-note-dialog fieldset label{font-weight:400;line-height:1.5}.recurring-note-dialog p,.recurring-note-dialog td,.recurring-note-dialog li{font-size:14px}
.recurring-note-choice>header{border:0;padding-bottom:0}.recurring-note-choice h2{font-weight:600}.recurring-note-choice .recurring-note-body{padding-top:0}.recurring-note-choice .recurring-note-body>p:first-child{font-size:18px}.recurring-note-choice .recurring-note-preserved{font-size:13px;color:var(--secondary)}.recurring-note-choice>footer{border:0;padding-top:0}.recurring-note-choice>footer button{border:0;background:transparent;color:var(--accent);font-weight:600}

