/* หิวดึก — 🐞 แจ้งปัญหา window + the 🐞 tool button (public/js/bugreport.js) */
.habit[data-h=bug] .br-ic { display: grid; place-items: center; width: var(--hs, 52px); height: var(--hs, 52px); border-radius: 14px; font-size: calc(var(--hs, 52px) * .52);
  background: linear-gradient(180deg, #2b305f, #171a3d); border: 1.5px solid #e2b25c66; box-shadow: 0 4px 10px #0008; line-height: 1; }
.habit[data-h=bug]:active .br-ic { transform: translateY(1px); }
.br-card { width: min(600px, 100%); }
.br-tabs .tab { min-height: 40px; font: inherit; color: inherit; }
.br-unread { color: #ff8a8a; font-weight: 600; }
.br .tip { color: var(--dim, #9aa3d6); font-size: 13px; margin: 6px 0; }
.br-l { display: block; margin: 12px 0 4px; font-weight: 600; color: #ffe9bf; font-size: 14px; }
.br-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.br-cat { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line, #2c3170); background: #ffffff0d; color: inherit; font: inherit; font-size: 13px; text-align: left; line-height: 1.25; }
.br-cat b { font-size: 20px; flex: 0 0 auto; }
.br-cat .br-ci { width: 30px; height: 30px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 2px 3px #0008); }
.br-cat.on { background: #ffcf5a26; border-color: #ffcf5a; box-shadow: 0 0 0 1px #ffcf5a inset; }
.br-in { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #2c3170); background: #0d0f24; color: inherit;
  font: inherit; font-size: 16px; /* ≥16px: no iOS zoom on focus */ font-weight: 400; resize: vertical; }
textarea.br-in { min-height: 110px; }
.br-count { display: block; text-align: right; color: var(--dim, #9aa3d6); font-size: 12px; }
.br-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.br-shot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 4px; font-size: 14px; }
.br-shot input { width: 20px; height: 20px; }
.br-thumb { display: block; width: auto; height: auto; max-width: 100%; max-height: 160px; margin-left: auto; margin-right: auto; object-fit: contain; border-radius: 10px; border: 1px solid var(--line, #2c3170); background: #000; margin-top: 4px; }
.br-msg { min-height: 20px; margin: 8px 0; font-size: 14px; } .br-msg.bad { color: #ff8a8a; }
.br-row { display: flex; gap: 8px; }
.br-done { text-align: center; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; } .br-done b { font-size: 20px; }
.br-item { border: 1px solid var(--line, #2c3170); border-radius: 14px; padding: 10px 12px; margin: 8px 0; background: #ffffff08; }
.br-item.unread { border-color: #ffcf5a; box-shadow: 0 0 0 1px #ffcf5a55 inset; }
.br-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .br-top small { color: var(--dim, #9aa3d6); font-size: 12px; }
.br-st { padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #ffffff1a; }
.br-st.s-n { background: #7c8cff33; color: #c6ceff; } .br-st.s-d { background: #ffcf5a33; color: #ffd98a; } .br-st.s-f { background: #46f0a433; color: #8be3a0; } .br-st.s-w { background: #ffffff1a; color: #c9cbe0; }
.br-title { display: block; margin: 6px 0 2px; overflow-wrap: anywhere; }
.br-desc { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: #dfe2ff; max-height: 9em; overflow: auto; }
.br-reply { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #2e9e5722; border: 1px solid #2e9e5766; }
.br-reply p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; } .br-reply small { color: var(--dim, #9aa3d6); font-size: 12px; }
.br-new { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 8px; background: #ff6b6b; color: #fff; font-size: 11px; }
@media (max-width: 520px) { .br-cats { grid-template-columns: 1fr 1fr; } .br-cat { font-size: 12px; padding: 6px 8px; } }
