/* Learning Rewired Lab — shared bug report + feature request panel for free tools (assets/js/tool-feedback.js) */
.lrl-fb{position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:min(540px,100vw);height:100dvh;max-width:100vw;max-height:none;border:0;background:#fff;color:#07111f;box-shadow:-30px 0 80px rgba(7,17,31,.18);font-family:Inter,system-ui,sans-serif;box-sizing:border-box}
.lrl-fb[open]{display:flex;flex-direction:column}
.lrl-fb__form{display:contents}
.lrl-fb [hidden]{display:none!important}
.lrl-fb::backdrop{background:rgba(7,17,31,.42)}
.lrl-fb *,.lrl-fb *::before,.lrl-fb *::after{box-sizing:border-box}
.lrl-fb :focus-visible{outline:3px solid rgba(22,184,217,.45);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.lrl-fb[open]{animation:lrl-fb-in .22s ease-out}}
@keyframes lrl-fb-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}

.lrl-fb__head{display:flex;flex-direction:column;gap:16px;padding:24px 26px 18px;border-bottom:1px solid #e6ebf1}
.lrl-fb__top{display:flex;align-items:flex-start;gap:12px}
.lrl-fb__titles{flex:1;display:flex;flex-direction:column;gap:6px}
.lrl-fb__kicker{font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#0789a2}
.lrl-fb__title{margin:0;font-size:26px;line-height:1.1;font-weight:900;letter-spacing:-.035em}
.lrl-fb__close{flex:0 0 40px;height:40px;border-radius:999px;border:1px solid #e6ebf1;background:#fff;font-size:20px;line-height:1;cursor:pointer;color:#475569}
.lrl-fb__close:hover{border-color:#16b8d9;color:#0789a2}

.lrl-fb__tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:999px;background:#f1f5f9}
.lrl-fb__tab{min-height:40px;border-radius:999px;border:0;background:transparent;color:#475569;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.lrl-fb__tab[aria-selected="true"]{background:#fff;color:#07111f;box-shadow:0 2px 8px rgba(7,17,31,.08)}

.lrl-fb__body{flex:1;overflow-y:auto;padding:22px 26px 26px;display:flex;flex-direction:column;gap:20px}
.lrl-fb__panel{display:flex;flex-direction:column;gap:20px}
.lrl-fb__panel[hidden]{display:none}
.lrl-fb__intro{margin:0;font-size:14.5px;line-height:1.55;color:#475569}

.lrl-fb__field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:850}
.lrl-fb__opt{font-weight:500;color:#64748b;font-size:13px}
.lrl-fb__input{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #d8e0ea;background:#fff;font:inherit;font-size:15px;font-weight:400;line-height:1.55;color:#07111f}
textarea.lrl-fb__input{resize:vertical}
select.lrl-fb__input{padding:11px 12px}
.lrl-fb__input:focus{border-color:#16b8d9}
.lrl-fb__input[aria-invalid="true"]{border-color:#f4c95d;background:rgba(244,201,93,.06)}
.lrl-fb__err{font-size:13px;font-weight:700;color:#9a6a04}
.lrl-fb__err[hidden]{display:none}

.lrl-fb__choices{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:8px}
.lrl-fb__choices legend{padding:0 0 8px;font-size:14px;font-weight:850}
.lrl-fb__pills{display:flex;flex-wrap:wrap;gap:6px}
.lrl-fb__pill{position:relative;display:inline-flex}
.lrl-fb__pill input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.lrl-fb__pill span{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid #d8e0ea;background:#fff;color:#07111f;font-size:13.5px;font-weight:750}
.lrl-fb__pill input:hover+span{border-color:#16b8d9}
.lrl-fb__pill input:checked+span{background:#07111f;border-color:#07111f;color:#fff}
.lrl-fb__pill input:focus-visible+span{outline:3px solid rgba(22,184,217,.45);outline-offset:2px}

.lrl-fb__diag{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:16px;background:#fbfdfe;border:1px solid #e6ebf1}
.lrl-fb__check{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:750;line-height:1.45;cursor:pointer}
.lrl-fb__check input{width:18px;height:18px;margin:1px 0 0;accent-color:#16b8d9}
.lrl-fb__dl{margin:0;padding-left:28px;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13px;line-height:1.45;color:#475569}
.lrl-fb__dl[hidden]{display:none}
.lrl-fb__dl dt{font-weight:750;color:#07111f}
.lrl-fb__dl dd{margin:0;overflow-wrap:anywhere}
.lrl-fb__private{padding-left:28px;font-size:13px;line-height:1.5;color:#0f766e;font-weight:700}

.lrl-fb__alert{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:16px;background:rgba(244,201,93,.12);border:1px solid rgba(244,201,93,.5);font-size:14px;line-height:1.5}
.lrl-fb__alert[hidden]{display:none}
.lrl-fb__alert a{color:#0789a2;font-weight:750}

.lrl-fb__done{display:flex;flex-direction:column;gap:16px;padding-top:6px}
.lrl-fb__done[hidden]{display:none}
.lrl-fb__ref{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#0f766e;background:rgba(20,184,166,.1);border:1px solid rgba(20,184,166,.35)}
.lrl-fb__ref::before{content:"";width:7px;height:7px;border-radius:50%;background:#14b8a6}
.lrl-fb__done p{margin:0;font-size:16px;line-height:1.6;color:#334155;text-wrap:pretty}
.lrl-fb__done p+p{font-size:14px;color:#475569}

.lrl-fb__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px 26px;border-top:1px solid #e6ebf1;background:#fff}
.lrl-fb__foot[hidden]{display:none}
.lrl-fb__note{flex:1 1 140px;text-align:right;font-size:12.5px;color:#64748b}
.lrl-fb__row{display:flex;flex-wrap:wrap;gap:10px;padding-top:6px}

.lrl-fb-btn{font-family:Inter,system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid transparent;font:inherit;font-size:14px;font-weight:850;cursor:pointer;text-decoration:none;transition:background .15s,box-shadow .15s,transform .15s,border-color .15s,color .15s}
.lrl-fb-btn--primary{background:#16b8d9;color:#07111f;box-shadow:0 10px 24px rgba(22,184,217,.3)}
.lrl-fb-btn--primary:hover{background:#0ea5c2;transform:translateY(-1px)}
.lrl-fb-btn--primary[aria-busy="true"]{opacity:.7;cursor:progress;transform:none}
.lrl-fb-btn--dark{background:#07111f;color:#fff}
.lrl-fb-btn--dark:hover{background:#10243d;transform:translateY(-1px)}
.lrl-fb-btn--ghost{background:#fff;color:#07111f;border-color:#d8e0ea}
.lrl-fb-btn--ghost:hover{border-color:#16b8d9;color:#0789a2}
.lrl-fb-btn--text{min-height:44px;padding:0 10px;background:transparent;color:#475569}
.lrl-fb-btn--text:hover{color:#0789a2}

.lrl-fb-strip{max-width:1220px;margin:28px auto 48px;padding:20px 26px 0;box-sizing:border-box}
.lrl-fb-strip *{box-sizing:border-box}
.lrl-fb-strip__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:20px;border-top:1px solid #e6ebf1;font:400 14px/1.5 Inter,system-ui,sans-serif;color:#475569}
.lrl-fb-strip__actions{display:flex;flex-wrap:wrap;gap:6px}
.lrl-fb-strip .lrl-fb-btn{min-height:40px;padding:0 14px;font-size:13.5px;font-weight:750}

@media print{.lrl-fb,.lrl-fb-strip,[data-lrl-feedback],[data-wb-feedback],[data-dd-feedback]{display:none!important}}

/* Shared feedback card */
.lrl-fb-strip__inner{padding:16px 18px;border:1px solid #dfe6ef;border-radius:22px;background:#fff;color:#475569}
.lrl-fb-strip__message{display:flex;align-items:center;gap:14px;flex:1 1 360px;min-width:0}
.lrl-fb-strip__message strong{color:#07111f;font-weight:800}
.lrl-fb-strip__icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:14px;background:#faf0d9;font-size:20px}
.lrl-fb-strip .lrl-fb-btn{min-height:44px}
.lrl-fb-strip .lrl-fb-btn:focus-visible{outline:3px solid #0789a2;outline-offset:3px}
@media(max-width:600px){.lrl-fb-strip{padding:0 16px;margin:24px auto 32px}.lrl-fb-strip__inner{padding:14px}.lrl-fb-strip__actions{width:100%}.lrl-fb-strip__actions .lrl-fb-btn{flex:1 1 140px}}
