.sn-dialog{width:min(1030px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;border:1px solid var(--line);border-radius:20px;}
.sn-dialog [hidden]{display:none!important;}.sn-dialog :is(input,textarea,select){width:100%;min-width:0;max-width:100%;}
.sn-subtitle{font-size:.79rem;color:var(--muted);line-height:1.7;margin:7px 0 0;}
.sn-toolbar,.sn-tabs,.sn-editor-actions,.sn-recovery-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;}.sn-toolbar{justify-content:space-between;margin:22px 0;}.sn-tabs .active{border-color:var(--blue);color:var(--blue);background:var(--ice);}
.sn-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;min-height:425px;}.sn-list-panel{min-width:0;border-right:1px solid var(--line);padding-right:18px;}.sn-search{display:grid;gap:7px;font-size:.77rem;font-weight:700;color:var(--muted);}
.sn-list{display:grid;gap:11px;align-content:start;max-height:430px;overflow:auto;margin:16px 0;padding:2px;}.sn-card{display:grid;gap:8px;text-align:left;padding:17px;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--sn-color,#f0cf65);border-radius:12px;cursor:pointer;min-width:0;color:var(--ink);}.sn-card.selected{outline:2px solid var(--blue);outline-offset:0;}.sn-card strong{font-size:.88rem;line-height:1.5;overflow-wrap:anywhere;}.sn-card-body{font-size:.79rem;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-height:96px;overflow:hidden;}.sn-card-meta,.sn-card small{font-size:.65rem;color:var(--muted);}.sn-card-meta{font-weight:800;text-transform:uppercase;letter-spacing:.08em;}
.sn-color-yellow{--sn-color:#e5bd48;}.sn-color-blue{--sn-color:#659eea;}.sn-color-green{--sn-color:#45b99a;}.sn-color-pink{--sn-color:#dd87ad;}
.sn-editor{min-width:0;border:1px solid var(--line);border-top:5px solid var(--sn-color,var(--line));border-radius:13px;background:var(--surface);padding:22px;}.sn-editor label{display:grid;gap:8px;color:var(--muted);font-size:.78rem;font-weight:700;margin:15px 0;}.sn-editor textarea{resize:vertical;min-height:225px;line-height:1.75;font-weight:400;}
.sn-editor-heading,.sn-editor-options{display:flex;justify-content:space-between;gap:13px;align-items:center;flex-wrap:wrap;}.sn-draft-label{font-size:.75rem;font-weight:700;color:var(--muted);}.sn-editor .sn-pin{display:flex;gap:8px;align-items:center;margin:0;}.sn-pin input{width:17px;min-width:17px;height:17px;min-height:17px;accent-color:var(--blue);}.sn-editor-options label{min-width:150px;margin:8px 0;}.sn-editor-actions{justify-content:flex-start;padding-top:15px;border-top:1px solid var(--line);margin-top:15px;}.sn-editor-actions .button{padding:11px 15px;font-size:.77rem;}
.sn-editor-empty{display:grid;justify-items:center;align-content:center;min-height:380px;text-align:center;color:var(--muted);}.sn-editor-empty>span{font-size:3rem;color:var(--sn-color,var(--blue));}.sn-editor-empty h3{font-size:1.1rem;color:var(--ink);margin:15px 0 7px;}.sn-editor-empty p,.sn-empty{font-size:.8rem;line-height:1.8;color:var(--muted);}
.sn-status,.sn-recovery{padding:15px 18px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:11px;background:var(--ice);font-size:.81rem;line-height:1.75;margin:15px 0;overflow-wrap:anywhere;}.sn-status.sn-error{border-left-color:var(--danger);}.sn-recovery{border-left-color:var(--warning);}.sn-recovery h3{font-size:1rem;}.sn-recovery-actions{margin:15px 0 9px;}.sn-reference{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.67rem;overflow-wrap:anywhere;}
@media(max-width:760px){.sn-workspace{grid-template-columns:1fr;}.sn-list-panel{border-right:0;border-bottom:1px solid var(--line);padding:0 0 16px;}.sn-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;}.sn-editor{padding:19px;}.sn-dialog{width:calc(100vw - 20px);}.sn-editor-empty{min-height:200px;}.sn-toolbar .button{padding:11px 14px;}}
@media(max-width:480px){.sn-list{grid-template-columns:1fr;}.sn-toolbar{align-items:stretch;}.sn-editor-actions .button{flex:1;}.sn-toolbar>.button{flex:1;}}
@media print{.sn-dialog{display:none!important;}}
