/* Notebook entries have their own boundaries, without an outer frame. */
body[data-lm-surface] .ln-list>button:not(.ln-more){background:rgba(255,255,255,.85)!important;border:1px solid rgba(113,139,165,.18)!important;border-radius:11px;padding:13px 12px;margin-bottom:10px;box-shadow:0 3px 12px #2b3f5306}
body[data-lm-surface] .ln-list>button.active{background:#edf5ff!important;border-color:#a7c5e6!important}
body[data-lm-surface] .ln-list>button:hover{border-color:#94b5d6!important}
body[data-lm-surface] .ln-list strong{font-weight:400}
body.night[data-lm-surface] .ln-list>button:not(.ln-more){background:#303237!important;border-color:#52565e!important}
body.night[data-lm-surface] .ln-list>button.active{background:#3b424b!important;border-color:#91a5bc!important}
.lm-tool-grid,.lm-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lm-tool-card{background:rgba(255,255,255,.92);border:1px solid #829bb71a;border-radius:14px;padding:20px;box-shadow:0 4px 18px #2b3f5307;display:flex;flex-direction:column;gap:10px;min-width:0}
.lm-tool-card h3,.lm-case-templates h2{font-size:15px;font-weight:400;margin:0}
.lm-tool-card p,.lm-case-templates>p{font-size:12px;line-height:1.8;margin:0;color:#596e84}
.lm-tool-card small,.lm-tool-note{font-size:11px;line-height:1.7;color:#6c8096}.lm-tool-status{margin-top:auto}.lm-tool-card a{font-size:12px;color:#3279c9;text-decoration:none}
.lm-tool-filters{display:flex;gap:16px;margin:18px 0;flex-wrap:wrap}.lm-tool-filters label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:400;color:#596e84}.lm-tool-filters input,.lm-tool-filters select,.lm-case-choice select{background:#fff;border:1px solid #829bb722;border-radius:10px;padding:10px 12px;font:inherit;color:inherit;max-width:100%}
.lm-existing-tools{margin-top:24px}.lm-existing-tools summary{cursor:pointer;font-size:12px;padding:12px 0}.lm-case-templates{margin-bottom:24px}.lm-case-templates>p{margin:10px 0 16px}
.lm-template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.lm-template-grid button{background:#ffffffed;border:1px solid #829bb722;border-radius:12px;padding:16px;text-align:left;color:#2c394b;font-weight:400;display:flex;flex-direction:column;gap:10px}.lm-template-grid span{font-size:14px}.lm-template-grid small{font-size:11px;color:#596e84;line-height:1.8}
.lm-case-choice{padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #829bb722}.lm-case-choice label{font-size:12px;font-weight:400}.lm-case-choice p{font-size:11px;color:#596e84;line-height:1.8}
.lm-case-dialog :is(input,select,textarea){font-weight:400!important}.lm-case-dialog textarea{line-height:1.8}
.lm-professional :is(a,input,select,summary):focus-visible,.lm-template-grid button:focus-visible,.lm-case-choice select:focus-visible{outline:2px solid #91b5d6;outline-offset:3px}
body.night .lm-tool-card,body.night .lm-template-grid button{background:#303237;color:#e0e3e8;border-color:#52565e}body.night :is(.lm-tool-card p,.lm-tool-card small,.lm-template-grid small,.lm-case-templates>p,.lm-tool-note,.lm-case-choice p,.lm-tool-filters label){color:#b8c0cb}body.night :is(.lm-tool-filters input,.lm-tool-filters select,.lm-case-choice select){background:#34363b;color:#e0e3e8;border-color:#52565e}
@media(max-width:800px){.lm-tool-grid,.lm-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.lm-tool-grid,.lm-template-grid{grid-template-columns:1fr}.lm-tool-filters label{width:100%}.lm-tool-filters :is(input,select){width:100%;box-sizing:border-box}}
