.internal-notes-dialog{width:min(980px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 28px 90px rgba(20,35,28,.32)}
.internal-notes-dialog::backdrop{background:rgba(25,42,33,.52);backdrop-filter:blur(3px)}
.internal-notes-dialog:not([open]){display:none!important}.internal-notes-shell{display:flex;flex-direction:column;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
.internal-notes-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;padding:22px 26px;border-bottom:1px solid var(--line)}
.internal-notes-dialog-header h2{margin:0 0 5px;font:600 26px/1.2 Georgia,serif}.internal-notes-dialog-header span{font-size:12px;color:var(--muted)}
.internal-notes-dialog-header .dialog-close{width:44px;height:44px;min-width:44px;border:0;border-radius:50%;background:#eeece6;color:#52645a;font-size:28px;cursor:pointer}
.internal-notes-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 26px 26px}.internal-notes-modal-open,.internal-notes-modal-open body{overflow:hidden}
@media(max-width:600px){.internal-notes-dialog-header{padding:16px}.internal-notes-dialog-body{padding:4px 16px 16px}}
@media print{.internal-notes-dialog{display:none!important}}
.internal-note-form{display:grid;gap:12px;margin:16px 0}.internal-note-form textarea{display:block;width:100%;max-width:100%;min-height:100px;resize:vertical;box-sizing:border-box}.internal-notes-dialog .internal-note-check{display:flex;align-items:flex-start;gap:10px;font-weight:500;line-height:1.5}.internal-notes-dialog .internal-note-check input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0}.internal-note-entry{margin:16px 0;padding:16px;background:#f4f1e9;border:1px solid #d5dfd1;border-radius:12px}.internal-note-entry>header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;color:#52645a}.internal-note-entry>header strong{color:#304d40}.internal-note-copy,.internal-note-history p{overflow-wrap:anywhere;white-space:normal}.internal-note-share{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.internal-note-entry>details{margin-top:12px}.internal-note-entry summary{cursor:pointer}.internal-note-history article{padding:10px;border-top:1px solid #d5dfd1}.internal-note-form .button{justify-self:start;min-height:44px}.internal-note-share .button{min-height:44px}
@media(max-width:600px){.internal-note-entry{padding:12px}.internal-note-share{display:grid}.internal-note-share .button,.internal-note-form .button{width:100%;justify-self:stretch}.internal-notes-dialog textarea{font-size:16px}}
