.lm-storage-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 25px;padding:18px 22px;background:#f0f4ea;border:1px solid #dae4d2;border-radius:12px;color:#34513b}
.lm-storage-bar>div{min-width:0}
.lm-storage-bar strong{font-size:16px;line-height:1.7}
.lm-storage-bar p{margin:3px 0 0;color:#52674d;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.lm-storage-bar>div:last-child{display:flex;gap:10px;flex:none}
:is(.lm-storage-bar,.lm-library) .button{min-height:44px;padding:10px 20px;border-radius:999px;font-size:15px;line-height:1.6;font-weight:700;cursor:pointer}
:is(.lm-storage-bar,.lm-library) .button--primary{background:#365f54;color:#fff;border:1px solid #365f54}
:is(.lm-storage-bar,.lm-library) .button--outline{background:#fff;color:#365f54;border:1px solid #96b49c}
:is(.lm-storage-bar,.lm-library) :is(button,input):focus-visible{outline:3px solid #467659;outline-offset:3px}
.lm-library{width:min(940px,calc(100% - 36px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #d4e1cd;border-radius:17px;background:#fafbf7;color:#35503c;box-shadow:0 25px 90px #18342035;overflow:auto}
.lm-library::backdrop{background:#21352b70;backdrop-filter:blur(3px)}
.lm-library-header{display:flex;align-items:start;justify-content:space-between;gap:15px;padding:25px 30px;border-bottom:1px solid #dfe6d7;background:#fff}
.lm-library-header p{font-size:12px;letter-spacing:.12em;color:#63805c;margin:0 0 8px}
.lm-library-header h2{margin:0;font:600 28px/1.6 var(--serif);color:#294934}
.lm-library-header>.button{flex:none;font-size:14px;min-height:40px;padding:8px 15px}
.lm-library-content{padding:25px 30px}
.lm-library-content>p,.lm-library-content form>p{font-size:16px;line-height:1.9}
.lm-library-scopes{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}
.lm-library-scopes>.button{min-width:150px}
.lm-library-content .lm-field{margin:20px 0;color:#3b5940;font-size:16px}
.lm-library-content .lm-field input{width:100%;border:1px solid #c9d8c2;color:#304936;background:white;padding:12px 14px;font:16px/1.7 var(--sans);border-radius:8px;margin-top:8px}
.lm-library-content #lm-library-login{max-width:570px}
.lm-library-content #lm-library-login>.button{margin:10px 10px 0 0}
.lm-library-content .lm-library-note{font-size:14px;line-height:1.9;color:#586e50;margin:20px 0}
.lm-library-note strong{font-size:17px;letter-spacing:.08em}
.lm-library-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.lm-library-list-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}
.lm-library-list-heading>p{font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin:0;color:#597051}
.lm-library-list-heading>div{display:flex;gap:8px;flex:none}
.lm-library-list-heading .button{font-size:14px;min-height:40px;padding:8px 15px}
.lm-saved-list{display:grid;gap:14px}
.lm-saved-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px;background:#fff;border:1px solid #dce5d4;border-radius:11px}
.lm-saved-card>div:first-child{min-width:0}
.lm-saved-card span{font-size:12px;background:#eef3e7;border-radius:999px;padding:3px 10px;color:#5a754d}
.lm-saved-card h3{font:600 21px/1.6 var(--serif);color:#31513a;margin:10px 0 3px;overflow-wrap:anywhere}
.lm-saved-card p{font-size:13px;line-height:1.8;color:#647758;margin:0}
.lm-saved-card>div:last-child{display:flex;gap:8px;flex-wrap:wrap;flex:none;max-width:340px}
.lm-saved-card .button{font-size:14px;padding:9px 14px}
.lm-library-empty{padding:40px 20px;text-align:center;border:1px dashed #b8c8af;border-radius:10px;background:#fff}
.lm-library-empty strong{font-size:18px;color:#3f5e40}
.lm-library-empty p{font-size:15px;line-height:1.8;color:#5b7254}
.lm-library-error{font-size:15px;line-height:1.9;color:#913f2e;overflow-wrap:anywhere}
.lm-library-error:empty{display:none}
.lm-library-upcoming{align-self:center;padding:10px 4px;color:#52674d;font-size:14px;line-height:1.7}
.lm-library-note a{color:#315c54;text-decoration:underline;text-underline-offset:4px}
.lm-portable-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;margin-top:24px;background:#f0f5ef;border-radius:10px;color:#304e3b}
.lm-portable-entry strong{font-size:17px}.lm-portable-entry p{font-size:14px;margin:5px 0 0}
.lm-portable-entry .button{flex-shrink:0;font-size:14px;padding:10px 15px}
.lm-portable-section{padding:22px 0;border-top:1px solid #dce5d4;margin-top:22px}
.lm-portable-section h3{font-size:20px;color:#31513a;margin:0 0 12px}
.lm-library-header{position:sticky;top:0;z-index:1;background:#fafbf7}
.lm-portable-section p{font-size:15px;line-height:1.9}
.lm-library-content .lm-portable-section input[type=file]{padding:12px;min-width:0}
.lm-portable-review{background:#f0f5ef;border:1px solid #d1dfcd;border-radius:10px;padding:20px;margin-top:20px}
.lm-portable-review .lm-portable-filename{font-size:14px;overflow-wrap:anywhere;margin-top:0}
.lm-portable-review dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;margin:18px 0;font-size:15px;line-height:1.7}
.lm-portable-review dt{color:#52674d}.lm-portable-review dd{margin:0;color:#273f32;overflow-wrap:anywhere}
.lm-library button:disabled{opacity:.6;cursor:wait}
@media(max-width:900px){.lm-storage-bar{flex-direction:column;align-items:stretch;gap:14px}.lm-saved-card{flex-direction:column;align-items:stretch}.lm-saved-card>div:last-child{max-width:none}}
@media(max-width:600px){
 .lm-storage-bar{padding:17px}
 .lm-storage-bar>div:last-child{flex-wrap:wrap}
 .lm-storage-bar .button{font-size:14px;padding:10px 14px;flex:1}
 .lm-library{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:12px}
 .lm-library-header{padding:18px 16px;display:block;position:sticky}
 .lm-library-header h2{font-size:23px}
 .lm-library-header p{font-size:11px;padding-right:90px;min-height:38px}
 .lm-library-header>.button{position:absolute;right:16px;top:18px;padding:8px 11px;font-size:13px}
 .lm-library-content{padding:20px 16px}
 .lm-library-scopes{gap:8px}
 .lm-library-scopes>.button{min-width:0;flex:1;font-size:14px;padding:10px 12px}
 .lm-library-list-heading{display:block}
 .lm-library-list-heading>div{margin-top:14px}
 .lm-saved-card{padding:18px 15px}
 .lm-saved-card h3{font-size:20px}
 .lm-saved-card>div:last-child{gap:7px}
 .lm-saved-card .button{font-size:13px;padding:9px 10px}
 .lm-library-actions>.button{width:100%}
 .lm-portable-entry{align-items:stretch;flex-direction:column;padding:17px}
 .lm-portable-review{padding:16px}.lm-portable-review dl{grid-template-columns:86px minmax(0,1fr)}
 .lm-portable-review>.button{width:100%}
}
