.noce-shared-drawer-open { overflow: hidden !important; }
.noce-shared-overlay { position: fixed; z-index: 2800; inset: 0; display: flex; justify-content: flex-end; background: rgba(7,11,16,.66); backdrop-filter: blur(4px); }
.noce-shared-overlay[hidden] { display: none; }
.noce-shared-drawer { width: min(720px,96vw); height: 100%; overflow-y: auto; color: #18202a; background: #fff; box-shadow: -28px 0 70px rgba(0,0,0,.28); font-family: var(--nv-font-sans,"Noto Sans SC",sans-serif); }
.noce-shared-drawer > header { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; gap: 24px; padding: 28px 30px 22px; border-bottom: 1px solid #d8dde5; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.noce-shared-drawer > header small { color: #0d7068; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.noce-shared-drawer > header h2 { margin: 8px 0 0; font-size: 28px; }
.noce-shared-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #cbd2dc; border-radius: 50%; background: transparent; color: #687381; font-size: 25px; cursor: pointer; }
.noce-shared-body { display: grid; gap: 22px; padding: 28px 30px 42px; }
.noce-shared-body > section { padding: 22px; border: 1px solid #d8dde5; background: #f8fafb; }
.noce-shared-body h3 { margin: 0 0 12px; font-size: 13px; }
.noce-shared-body p { margin: 0; color: #56616e; font-size: 12px; line-height: 1.75; }
.noce-shared-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.noce-shared-meta span { padding: 12px; border: 1px solid #d8dde5; background: #f8fafb; }
.noce-shared-meta small,.noce-shared-boundary small,.noce-shared-ai small { display: block; color: #687381; font-size: 9px; }
.noce-shared-meta b { display: block; margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
.noce-shared-boundary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.noce-shared-boundary div { padding: 12px; border-left: 3px solid #0d7068; background: #eef6f4; }
.noce-shared-boundary strong { display: block; margin-top: 5px; font-size: 11px; line-height: 1.55; }
.noce-shared-related { display: flex; flex-wrap: wrap; gap: 7px; }
.noce-shared-related span { padding: 5px 8px; border: 1px solid #cbd2dc; font-size: 10px; }
.noce-shared-ai { padding: 0 !important; overflow: hidden; border-top: 3px solid var(--ai-color,#0d7068) !important; background: #fff !important; }
.noce-shared-ai-toggle { display: flex; width: 100%; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.noce-shared-ai-toggle span > * { display: block; }
.noce-shared-ai-toggle strong { margin-top: 3px; font-size: 15px; }
.noce-shared-ai-toggle em { margin-top: 5px; color: #687381; font-size: 10px; font-style: normal; }
.noce-shared-ai-toggle i { color: #687381; font-size: 10px; font-style: normal; }
.noce-shared-ai-body { display: grid; gap: 16px; padding: 0 20px 20px; }
.noce-shared-ai-result { display: flex; justify-content: space-between; gap: 20px; padding: 15px; background: color-mix(in srgb,var(--ai-color) 12%,#fff); }
.noce-shared-ai-result > div:first-child strong,.noce-shared-ai-result > div:first-child span { display: block; }
.noce-shared-ai-result > div:first-child strong { font-size: 19px; }
.noce-shared-ai-result > div:first-child span { margin-top: 4px; font-size: 10px; }
.noce-shared-ai-result > div:last-child { display: grid; grid-template-columns: repeat(3,minmax(90px,1fr)); gap: 14px; }
.noce-shared-ai-result b { display: block; margin-top: 3px; font-size: 11px; }
.noce-shared-ai-body p strong { margin-right: 8px; color: #18202a; }
.noce-shared-ai-body p,.noce-shared-ai-result span,.noce-shared-ai-grid li,.noce-shared-ai-boundary { word-break: normal; overflow-wrap: break-word; text-wrap: pretty; }
.noce-shared-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.noce-shared-ai-grid > div { padding: 14px; background: #f1f4f6; }
.noce-shared-ai-grid ul { margin: 9px 0 0; padding-left: 18px; color: #56616e; font-size: 10px; line-height: 1.7; }
.noce-shared-ai-boundary { padding: 12px; border-left: 3px solid var(--ai-color); background: #f8fafb; }
.noce-shared-ai-meta { color: #89919c !important; }
.noce-shared-relations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.noce-shared-relations > div { padding: 12px; border-top: 3px solid #0d7068; background: #fff; }
.noce-shared-relations strong,.noce-shared-relations span,.noce-shared-relations b { display: block; font-size: 10px; }
.noce-shared-relations span { margin: 8px 0; color: #0d7068; }
.noce-shared-relations p { margin-top: 8px; font-size: 10px; }
.noce-shared-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.noce-shared-methods a { padding: 14px; border: 1px solid #d8dde5; color: inherit; text-decoration: none; }
.noce-shared-methods a > * { display: block; }
.noce-shared-methods strong { margin: 4px 0; font-size: 11px; }
.noce-shared-methods span { color: #687381; font-size: 9px; line-height: 1.55; }
.noce-shared-footnote { color: #687381; font-size: 9px; line-height: 1.6; }
@media (max-width:640px) { .noce-shared-drawer{width:100vw}.noce-shared-drawer>header,.noce-shared-body{padding-left:20px;padding-right:20px}.noce-shared-meta,.noce-shared-boundary,.noce-shared-relations,.noce-shared-methods,.noce-shared-ai-grid{grid-template-columns:1fr}.noce-shared-ai-result{display:block}.noce-shared-ai-result>div:last-child{grid-template-columns:1fr;margin-top:12px} }
[data-theme="dark"] .noce-shared-drawer { color:#edf5ff; background:#0a1018; }
[data-theme="dark"] .noce-shared-drawer > header { border-color:#2b3542; background:rgba(10,16,24,.96); }
[data-theme="dark"] .noce-shared-body > section,[data-theme="dark"] .noce-shared-meta span,[data-theme="dark"] .noce-shared-relations>div,[data-theme="dark"] .noce-shared-methods a { border-color:#2b3542; background:#101924; }
[data-theme="dark"] .noce-shared-body p,[data-theme="dark"] .noce-shared-ai-toggle em,[data-theme="dark"] .noce-shared-ai-grid ul { color:#aab8c8; }
[data-theme="dark"] .noce-shared-ai,[data-theme="dark"] .noce-shared-ai-grid>div,[data-theme="dark"] .noce-shared-ai-boundary { background:#101924 !important; }
