/* All selectors are isolated to the independent comments module. */
.lab-comments { box-sizing:border-box; width:100%; max-width:1100px; margin:3rem auto; padding:clamp(1.1rem,3vw,2rem); border:1px solid #d8ddeb; border-radius:1rem; background:#fbfcff; color:#19223b; font:400 1rem/1.55 system-ui,sans-serif; text-align:left; scroll-margin-top:12rem; }
.lab-comments *, .lab-comments *::before, .lab-comments *::after { box-sizing:border-box; }
.lab-comments [hidden] { display:none!important; }
.lab-comments h2 { font:750 clamp(1.55rem,3vw,2rem)/1.2 system-ui,sans-serif; letter-spacing:-.02em; margin:0 0 .8rem; color:#14203c; }
.lab-comments p { font-size:1rem; line-height:1.55; max-width:none; margin:.5rem 0 1rem; color:inherit; }
.lab-comments .lab-comments-note { color:#4d5970; font-size:.88rem; }
.lab-comments .lab-comment-list { display:grid; gap:1rem; margin:1.3rem 0; }
.lab-comments .lab-comment-item { display:block; margin:0; padding:1.2rem; border:1px solid #d8ddeb; border-radius:.7rem; background:#fff; min-width:0; }
.lab-comments .lab-comment-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.3rem 1rem; }
.lab-comments .lab-comment-meta time { color:#596279; font-size:.8rem; }
.lab-comments .lab-comment-body { white-space:pre-wrap; overflow-wrap:anywhere; margin:.7rem 0 0; }
.lab-comments .lab-comment-reply { margin:1rem 0 0; padding:.8rem 1rem; border-left:3px solid #0527d5; background:#f0f3ff; }
.lab-comments form { display:block; margin:1.6rem 0 0; padding:0; border:0; background:transparent; }
.lab-comments .lab-comment-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.lab-comments label { display:block; margin:0 0 .4rem; font:650 .9rem/1.4 system-ui,sans-serif; color:#19223b; }
.lab-comments input, .lab-comments textarea { display:block; width:100%; min-width:0; margin:0 0 1rem; padding:.75rem .85rem; border:1px solid #aeb8ce; border-radius:.5rem; background:#fff; color:#19223b; font:400 1rem/1.5 system-ui,sans-serif; box-shadow:none; height:auto; }
.lab-comments textarea { resize:vertical; min-height:125px; }
.lab-comments button { display:inline-flex; width:auto; justify-content:center; align-items:center; min-height:44px; padding:.7rem 1rem; margin:0; border:1px solid transparent; border-radius:.55rem; background:#0527d5; color:#fff; font:750 .9rem/1.4 system-ui,sans-serif; cursor:pointer; box-shadow:none; }
.lab-comments button:hover { background:#06165e; }
.lab-comments button:disabled { opacity:.6; cursor:wait; }
.lab-comments button.lab-comment-secondary { background:#fff; color:#0527d5; border-color:#b5bfd8; }
.lab-comments input:focus-visible, .lab-comments textarea:focus-visible, .lab-comments button:focus-visible { outline:3px solid #bc8d36; outline-offset:3px; }
.lab-comments .lab-comment-status { min-height:1.5em; font-size:.9rem; overflow-wrap:anywhere; }
.lab-comments [data-kind="error"] { color:#9a2424; }
.lab-comments [data-kind="success"] { color:#135d38; }
.lab-comments .lab-comment-trap { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
@media(max-width:600px) { .lab-comments .lab-comment-fields { grid-template-columns:1fr; gap:0; } .lab-comments { margin:2rem auto; } }
