[hidden]{display:none!important}button,a,input,textarea,select,summary{touch-action:manipulation}button{min-height:40px}body{overflow-wrap:anywhere}main{max-width:1050px}.results{flex-wrap:wrap}.results button{display:flex;gap:7px;align-items:center;font-size:19px}.results button small{font-size:11px;color:var(--muted)}.reference-tabs{display:flex;gap:8px;margin-bottom:16px}.reference-tabs button[aria-pressed=true]{background:var(--wash);border-color:var(--accent)}.reference-secondary{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}.reference-source{max-width:100%;margin-bottom:18px}.ref-footer{justify-content:flex-end}.ref-footer details{margin:0 auto 0 0}.qr-keywords{font-size:21px}.qr-facts .qr-row dd{white-space:pre-wrap;overflow-wrap:anywhere}.ref-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.ref-caption{font-size:12px;color:var(--muted);margin-bottom:4px}.reference-content-source{margin-top:0;font-size:12px}.correspondences{padding-top:10px}.correspondences dl>div{padding:8px 0;display:grid;grid-template-columns:5em 1fr;gap:12px}.correspondences dt{color:var(--muted);font-size:12px}.correspondences dd{margin:0;white-space:pre-wrap}.correspondences small{display:block;color:var(--muted)}#reference .dialog-head{position:static;flex:none}#reference.is-composing #ref-content{height:100%;display:flex;flex-direction:column;min-height:0}.standard-editor{display:flex;flex-direction:column;min-height:0;flex:1}.editor-scroll{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:18px 26px;scroll-padding-block:16px}.editor-section{border-top:1px solid var(--line);padding:15px 0}.editor-section:first-child{border-top:0;padding-top:0}.editor-section>summary{margin:0;font-size:15px;font-weight:600}.editor-row{padding:10px 0 15px;border-bottom:1px dotted var(--line)}.editor-row textarea{white-space:pre-wrap}.editor-row .keyword-edit{align-items:flex-start;gap:5px}.editor-row .row-actions{display:flex;gap:4px;flex-wrap:wrap;align-items:center;margin-top:7px}.editor-row .row-actions button{font-size:12px;padding:5px 7px}.editor-row details{margin-top:3px}.editor-row summary{font-size:12px}.editor-row.is-hidden{color:var(--muted)}.editor-row.is-hidden>p{margin-bottom:8px}.editor-label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.editor-add-actions{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.editor-add-actions button{font-size:13px}.editor-footer{padding:12px 26px;border-top:1px solid var(--line);background:var(--paper);flex:none;max-height:45%;overflow:auto}.editor-footer .actions{margin:6px 0;justify-content:flex-end}.editor-footer .small{margin:0}.editor-message:empty{display:none}.editor-message{white-space:pre-wrap;font-size:13px;color:#934439}.editor-footer .error-actions{margin:7px 0;justify-content:flex-start}.editor-footer .error-actions button{font-size:12px}.readonly-label{color:var(--muted);font-size:12px}.section-label{margin:0 0 12px;font-size:15px}.manage-source{font-size:16px}.manager .row button{flex:none}.confirm-panel{padding:20px 26px 26px;overflow:auto;min-height:0}.confirm-panel .actions{gap:8px}.confirm-panel h3{font-size:18px}.confirm-panel p{white-space:pre-wrap}.import-preview{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.import-preview .error{white-space:pre-wrap}.import-preview dd{white-space:pre-wrap}.source-line{color:var(--muted);font-size:12px}.ref-status{font-size:12px;color:var(--muted);padding-bottom:12px}.notice button{font-size:12px}.manager-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tool-section{padding:22px 0;border-top:1px solid var(--line)}.tool-section:first-child{border:0}.recovery-row{padding:12px 0;border-bottom:1px solid var(--line)}.recovery-row p{margin-bottom:7px}#reference:has(.confirm-panel) .reference-card{height:auto;max-height:calc(var(--usable-height,100dvh) - 112px)}#reference:has(.confirm-panel) #ref-content{height:auto}.short-text{resize:vertical}.editor-row textarea.note-field{min-height:110px}.symbol-picker{max-width:460px}.medical-note{font-size:11px;color:var(--muted)}
@media(max-width:600px),(max-height:500px) and (max-width:1000px){#reference.reference-shell,#reference.reference-shell.is-composing{max-height:calc(var(--usable-height,100dvh) - 24px - env(safe-area-inset-bottom));margin:auto auto calc(12px + env(safe-area-inset-bottom))}#reference .reference-card{max-height:calc(var(--usable-height,100dvh) - 112px - env(safe-area-inset-bottom))}#reference.is-composing .reference-card{height:min(760px,calc(var(--usable-height,100dvh) - 112px - env(safe-area-inset-bottom)))}.editor-scroll{padding:12px 16px}.editor-footer{padding:10px 16px}.editor-footer .actions>button{flex:1}.editor-row .keyword-edit{flex-wrap:wrap}.editor-row .keyword-edit textarea{flex-basis:100%}.dialog-body{padding:16px 18px}.dialog-head{padding:16px 18px 12px}.dialog-head h2{font-size:22px}.confirm-panel{padding:18px}.confirm-panel .actions{flex-direction:column;align-items:stretch}.manager-grid{display:block}.results{gap:5px}.results button{font-size:17px;padding:12px 9px}.results button small{display:none}.entry-columns{grid-template-columns:1fr}.apphead>small{font-size:11px}.correspondences dl>div{grid-template-columns:4.6em 1fr}}
/* Keep one edit entry and the PC close action reachable through long references. */
#reference:not(.is-composing) .dialog-head{position:sticky;top:0}.reference-heading-actions,.confirm-heading{display:flex;gap:8px;align-items:center;justify-content:space-between}.reference-heading-actions{flex:none}.dialog-head .heading-edit{font-size:13px;border:1px solid var(--line);padding:7px 12px;min-height:40px}.confirm-heading h3{margin:0}.confirm-heading{margin-bottom:14px}.confirm-heading .reference-desktop-close{background:transparent;border:0;font-size:24px}
