.ref-composer-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:12px;background:#0008;backdrop-filter:blur(3px)}
.ref-composer-dialog{width:min(1080px,100%);height:min(720px,calc(100dvh / var(--ui-zoom,1.1) - 24px));display:flex;flex-direction:column;min-height:0;overflow:hidden;border-radius:18px;background:var(--surface-card);color:rgb(var(--t-ink-900));border:1px solid rgb(var(--c-ink-200));box-shadow:0 24px 100px #0004}
#root .ref-composer-heading{position:static;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:auto;padding:16px 20px;border-bottom:1px solid rgb(var(--c-ink-200));background:transparent}
.ref-composer-heading h2{font-size:20px;font-weight:700;margin:0}.ref-composer-heading p{font-size:12px;margin-top:3px;color:rgb(var(--t-ink-500))}.ref-composer-heading>button{font-size:27px;width:36px;height:36px;border-radius:8px}
.ref-composer-form{display:flex;flex-direction:column;flex:1;min-height:0}.ref-composer-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;padding:18px 20px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.ref-composer-meta{display:flex;flex-direction:column;gap:14px;min-width:0}.ref-document-drop{display:flex;flex-direction:column;justify-content:center;gap:5px;border:1px dashed rgb(var(--c-purple-300));border-radius:10px;padding:12px;min-height:64px;background:rgb(var(--c-purple-50));text-align:center}.ref-document-drop strong{font-size:13px;color:rgb(var(--t-purple-700))}.ref-document-drop span{font-size:10px;color:rgb(var(--t-ink-500))}.ref-document-drop.is-dragging{border-style:solid;background:rgb(var(--c-purple-100))}
.ref-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}.ref-field>span{color:rgb(var(--t-ink-600))}.ref-field :is(input,select){width:100%;min-width:0;height:36px;padding:6px 9px;border:1px solid rgb(var(--c-ink-200));border-radius:7px;background:var(--surface-bg);color:rgb(var(--t-ink-900));font-size:13px}.ref-primary-fields{display:grid;gap:12px}.ref-classification{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ref-templates{margin:0;padding:0;border:0}.ref-templates legend{font-size:12px;margin-bottom:7px;color:rgb(var(--t-ink-600))}.ref-templates>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ref-templates button{border:1px solid rgb(var(--c-ink-200));border-radius:8px;text-align:left;padding:9px;background:var(--surface-bg)}.ref-templates button[aria-pressed=true]{border-color:var(--theme-accent);background:rgb(var(--c-purple-100))}.ref-templates strong{display:block;font-size:12px}.ref-templates small{display:block;font-size:10px;color:rgb(var(--t-ink-500));margin-top:4px}
.ref-composer-editor{display:flex;flex-direction:column;min-width:0;min-height:180px}.ref-editor-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px}.ref-editor-heading label{font-weight:650;font-size:13px}.ref-editor-heading>div{display:flex;gap:10px}.ref-editor-heading button,.ref-editor-bottom button{font-size:11px;min-height:28px;color:rgb(var(--t-purple-700))}.ref-editor-toolbar{flex-shrink:0;margin-bottom:8px}.ref-editor-toolbar button{font-size:11px;min-height:28px;padding:3px 6px}.ref-editor-toolbar>div{padding:6px}
.ref-composer-editor textarea,.ref-body-preview,.ref-gallery-editor{flex:1;min-height:120px;width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid rgb(var(--c-ink-200));border-radius:10px;padding:12px;background:var(--surface-bg);color:rgb(var(--t-ink-900));font-size:13px;line-height:1.8;resize:none;overflow-wrap:anywhere}.ref-body-preview img{max-width:100%;height:auto}.ref-body-preview table{max-width:100%}.ref-editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;color:rgb(var(--t-ink-500));margin-top:5px}.ref-composer-status{min-height:30px;font-size:11px;line-height:1.5;color:rgb(var(--t-ink-500));margin-top:6px}.ref-composer-status[role=alert]{color:rgb(var(--t-accent-red))}
.ref-composer-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-shrink:0;padding:11px 20px;border-top:1px solid rgb(var(--c-ink-200));background:var(--surface-card)}.ref-composer-footer>span{margin-right:auto;font-size:11px;color:rgb(var(--t-ink-500))}.ref-composer-footer button{padding:8px 15px;border-radius:7px;border:1px solid rgb(var(--c-ink-200));font-size:12px;min-height:36px}.ref-composer-footer .ref-save{background:var(--theme-accent);color:var(--button-ink);border-color:var(--theme-accent);font-weight:650}.ref-composer-dialog button:disabled{opacity:.55;cursor:wait}
.ref-gallery-editor{display:flex;flex-direction:column;gap:10px}.ref-image-add{border:1px dashed rgb(var(--c-purple-300));border-radius:8px;min-height:60px;font-size:12px;color:rgb(var(--t-purple-700))}.ref-upload-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ref-upload-images>div{position:relative}.ref-upload-images img{width:100%;height:100px;object-fit:cover;border-radius:6px}.ref-upload-images button{position:absolute;top:3px;right:3px;background:#000b;color:white;border-radius:50%;width:24px;height:24px}.ref-material-picker div.fixed{z-index:100}
@media(max-width:767px){.ref-composer-overlay{padding:7px}.ref-composer-dialog{height:calc(100dvh / var(--ui-zoom,1.1) - 14px);border-radius:12px}#root .ref-composer-heading{padding:9px 12px}.ref-composer-heading h2{font-size:17px}.ref-composer-heading p{display:none}.ref-composer-body{display:flex;flex-direction:column;padding:10px 12px;gap:10px}.ref-composer-meta{gap:8px}.ref-document-drop{min-height:42px;gap:2px;padding:6px}.ref-document-drop strong{font-size:12px}.ref-document-drop span{font-size:9px}.ref-primary-fields{grid-template-columns:1fr 1fr;gap:8px}.ref-classification{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.ref-field{gap:3px;font-size:10px}.ref-field :is(input,select){height:32px;padding:5px;font-size:16px}.ref-templates legend{font-size:10px;margin-bottom:4px}.ref-templates>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.ref-templates button{padding:6px 3px;min-height:36px;text-align:center}.ref-templates strong{font-size:10px}.ref-templates small{display:none}.ref-composer-editor{flex:1;min-height:170px}.ref-editor-heading{margin-bottom:4px}.ref-editor-toolbar{margin-bottom:4px}.ref-editor-toolbar button{font-size:10px;padding:2px 4px;min-height:25px}.ref-composer-editor textarea{min-height:80px;font-size:16px;padding:8px;line-height:1.65}.ref-composer-status{font-size:10px;min-height:16px;margin-top:3px}.ref-editor-bottom{margin-top:2px}.ref-composer-footer{padding:8px 12px;gap:7px}.ref-composer-footer>span{font-size:9px;max-width:110px}.ref-composer-footer button{padding:7px 10px;min-height:36px}.ref-upload-images img{height:75px}}
@media(max-height:650px){.ref-composer-heading p{display:none}.ref-composer-body{gap:10px;padding-top:9px;padding-bottom:9px}.ref-composer-meta{gap:7px}.ref-document-drop{min-height:40px;padding:5px}.ref-templates small{display:none}.ref-templates button{padding:6px}.ref-composer-editor{min-height:180px}}
@media(max-width:767px){.ref-composer-meta{gap:6px}.ref-document-drop{line-height:1.2}.ref-field>span,.ref-templates legend{line-height:1.2}.ref-editor-heading,.ref-editor-bottom,.ref-composer-status{flex-shrink:0}}
.ref-classification.is-note{grid-template-columns:repeat(3,minmax(0,1fr))}
.shiye-notes{min-width:0}.shiye-notes-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0 26px}.shiye-notes-heading h1{margin:6px 0 10px}.shiye-notes-heading p{font-size:13px;color:rgb(var(--t-ink-500));line-height:1.8}.shiye-notes-heading .shiye-notes-eyebrow{font-size:11px;color:rgb(var(--t-purple-700));letter-spacing:.06em}
.shiye-notes-primary{border:0;border-radius:8px;background:var(--theme-accent);color:var(--button-ink);font-size:13px;font-weight:650;padding:11px 18px;white-space:nowrap;min-height:40px}.shiye-notes-toolbar{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid rgb(var(--c-ink-200));border-radius:12px;background:var(--surface-card);margin-bottom:22px}.shiye-notes-toolbar input,.shiye-notes-toolbar select{border:1px solid rgb(var(--c-ink-200));border-radius:7px;background:var(--surface-bg);color:rgb(var(--t-ink-900));font-size:13px;padding:10px 12px;min-width:0}.shiye-notes-toolbar input{flex:1}.shiye-notes-toolbar>span{font-size:11px;color:rgb(var(--t-ink-500));white-space:nowrap}
.shiye-notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.shiye-note-card{min-width:0;display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid rgb(var(--c-ink-200));border-radius:12px;background:var(--surface-card)}.shiye-note-tags{display:flex;flex-wrap:wrap;gap:5px}.shiye-note-tags span{font-size:10px;padding:3px 6px;background:rgb(var(--c-purple-50));color:rgb(var(--t-purple-700));border-radius:4px}.shiye-note-card h2 button{font-size:16px;line-height:1.6;font-weight:650;text-align:left;overflow-wrap:anywhere}.shiye-note-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.8;font-size:13px;color:rgb(var(--t-ink-500));overflow-wrap:anywhere}.shiye-note-cover{width:100%;height:130px;object-fit:cover;border-radius:7px}.shiye-note-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;border-top:1px solid rgb(var(--c-ink-200));padding-top:10px;font-size:11px;color:rgb(var(--t-ink-500))}.shiye-note-footer button{color:rgb(var(--t-purple-700));font-weight:600;min-height:32px}.shiye-notes-empty{padding:65px 20px;text-align:center;border:1px dashed rgb(var(--c-ink-200));border-radius:12px;color:rgb(var(--t-ink-500));background:var(--surface-card)}.shiye-notes-empty h2{font-size:19px;color:rgb(var(--t-ink-800));margin-bottom:12px}.shiye-notes-empty p{font-size:13px;margin-bottom:20px;line-height:1.8}.shiye-notes-error{padding:12px;border:1px solid rgb(var(--c-accent-red));color:rgb(var(--t-accent-red));border-radius:8px;font-size:13px;margin-bottom:15px}.shiye-notes-error button{margin-left:15px;text-decoration:underline}.shiye-notes-pagination,.shiye-note-actions{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;margin-top:20px}.shiye-notes-pagination button,.shiye-note-actions button{border:1px solid rgb(var(--c-ink-200));border-radius:7px;padding:8px 14px;color:rgb(var(--t-purple-700));background:var(--surface-card)}.shiye-notes-pagination button:disabled{opacity:.4}
@media(max-width:1100px){.shiye-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.shiye-notes-heading{align-items:flex-start;gap:10px;padding-top:8px}.shiye-notes-heading h1{font-size:27px!important}.shiye-notes-heading>div{min-width:0}.shiye-notes-heading>div>p:last-child{font-size:12px}.shiye-notes-primary{padding:9px 11px;font-size:12px}.shiye-notes-grid{grid-template-columns:minmax(0,1fr)}.shiye-notes-toolbar{flex-wrap:wrap;gap:8px;padding:10px}.shiye-notes-toolbar input{flex-basis:100%;font-size:16px}.shiye-notes-toolbar select{flex:1;font-size:16px}.shiye-note-card{padding:16px}.shiye-note-actions{flex-wrap:wrap}}
