/* 저장 상태와 안전한 초안 복구 */
.sync-notice,.import-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #dec8ad;border-radius:12px;background:#fff9ee;padding:15px 18px;margin-bottom:18px;font-size:.83rem;line-height:1.7;color:#704619}.sync-actions{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}.sync-actions .button,.import-notice .button{font-size:.78rem;min-height:40px}.import-notice{background:#f5f0fc;border-color:#ded2f0;color:#5a417e}.library-counter{display:flex;justify-content:flex-end;padding:16px 24px 12px}.library-panel .search-row{padding-top:0}.topbar-right [hidden],[hidden]{display:none!important}
@media(max-width:1000px){.sync-notice{align-items:flex-start;flex-direction:column}.sync-actions{width:100%}}
@media(max-width:640px){.sync-notice,.import-notice{padding:13px;font-size:.78rem;align-items:flex-start;flex-direction:column}.library-counter{padding:13px 17px 10px}.sync-actions .button{font-size:.73rem;padding:10px;flex:1}.import-notice .button{padding:8px 0}}

/* 원하는 글을 골라 이어 쓰는 자동저장 보관함. */
.autosave-dialog{width:660px;max-height:min(86vh,820px);padding:27px;overflow-y:auto;overscroll-behavior:contain}.autosave-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.autosave-dialog-header .eyebrow{font-size:.63rem}.autosave-dialog-header h2{margin-top:8px;font-size:1.25rem;letter-spacing:-.035em;line-height:1.5}.autosave-dialog-header .icon-button{width:40px;height:40px;flex-shrink:0;font-size:1.5rem;border:1px solid var(--border);border-radius:10px}.autosave-dialog .autosave-description{font-size:.81rem;line-height:1.85;margin-top:15px;color:var(--muted);word-break:keep-all}.autosave-list{display:grid;gap:13px;margin-top:22px}.autosave-card{border:1px solid var(--border);border-radius:13px;padding:19px;background:#fff;min-width:0}.autosave-card-heading{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.autosave-source{font-size:.68rem;line-height:1.6;padding:4px 8px;border:1px solid #e4d9f1;border-radius:6px;color:var(--accent-dark);background:#f6f1fc;overflow-wrap:anywhere}.autosave-card h3{font-size:1rem;line-height:1.6;letter-spacing:-.02em;overflow-wrap:anywhere}.autosave-dialog .autosave-date{font-size:.73rem;line-height:1.8;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.autosave-date>span:first-child{color:#766387;margin-right:5px}.autosave-dialog .autosave-summary{font-size:.8rem;line-height:1.9;color:#605a6e;margin-top:14px;padding:12px 13px;background:#faf8fd;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:keep-all}.autosave-card-actions{display:flex;justify-content:flex-end;margin-top:15px}.autosave-card-actions>.button{font-size:.78rem;min-height:42px;gap:12px;color:var(--accent-dark);border-color:#dfd3ed;padding:10px 14px}.autosave-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:11px;padding:37px 14px 32px}.autosave-empty-mark{display:grid;place-items:center;width:50px;height:50px;border:1px solid #e6dbf2;border-radius:15px;background:#f4effa;color:var(--accent);font-size:1.6rem;margin-bottom:5px}.autosave-empty strong{font-size:.96rem;line-height:1.8;word-break:keep-all}.autosave-dialog .autosave-empty p{font-size:.8rem;color:var(--muted);line-height:1.85;margin:0;word-break:keep-all}
@media(max-width:640px){.topbar-right:has(#load-autosave:not([hidden])){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}.topbar-right:has(#load-autosave:not([hidden]))>.account-controls{grid-column:1/-1;min-width:0;max-width:100%;width:100%}.topbar-right:has(#load-autosave:not([hidden]))>.button{min-width:0;width:100%;min-height:42px;padding:10px 6px;font-size:.74rem;white-space:normal;word-break:keep-all}.topbar-right:has(#load-autosave:not([hidden]))>.home-link{min-width:0;min-height:42px;padding:8px 7px;font-size:.74rem}.autosave-dialog{padding:22px 17px;border-radius:17px;max-width:calc(100vw - 22px);max-height:88vh}.autosave-dialog-header h2{font-size:1.13rem;margin-top:7px}.autosave-dialog-header .eyebrow{font-size:.59rem}.autosave-dialog-header .icon-button{width:37px;height:37px}.autosave-dialog .autosave-description{font-size:.76rem;margin-top:13px}.autosave-list{margin-top:18px;gap:11px}.autosave-card{padding:16px 13px}.autosave-card-heading{gap:9px}.autosave-card h3{font-size:.91rem}.autosave-source{font-size:.65rem}.autosave-dialog .autosave-date{font-size:.69rem}.autosave-dialog .autosave-summary{font-size:.76rem;padding:11px;margin-top:12px}.autosave-card-actions>.button{font-size:.74rem;min-height:43px;flex:1}.autosave-empty{padding:27px 5px 25px}.autosave-empty strong{font-size:.88rem}.autosave-dialog .autosave-empty p{font-size:.75rem}}
