/* Label Crop app — Help & feedback: the gold button, the panel (help centre, problem report,
 * feedback + ideas, my requests) and the "cover a name" screenshot tool. */
.lch-fab { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 10px 16px 10px 10px; border-radius: 99px; font: 800 14px var(--font, sans-serif); color: #1b1404; background: linear-gradient(90deg, #e0a83a, #f3d27a); box-shadow: 0 14px 30px -12px rgba(201, 138, 26, .9); transition: transform .2s, bottom .3s; }
.lch-fab:hover { transform: translateY(-2px); }
.lch-fab i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .12); font-style: normal; font-size: 16px; }
.lch-fab.up { bottom: calc(96px + env(safe-area-inset-bottom)); }
.lch-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; border-radius: 99px; background: #b42318; color: #fff; font: 800 12px var(--font, sans-serif); display: grid; place-items: center; padding: 0 6px; box-shadow: 0 0 0 3px #fff; animation: lch-bump 1.6s ease-in-out infinite; }
.lch-badge[hidden] { display: none; }
@keyframes lch-bump { 50% { transform: scale(1.15); } }
.lch-topdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b42318; margin-left: 4px; vertical-align: 1px; }

.lch-panel { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--ink, #14213d); border: 1px solid var(--line, #e3e7ee); border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(15, 24, 48, .55); overflow: hidden; transform-origin: bottom left; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; font-family: var(--font, sans-serif); font-size: 14px; line-height: 1.45; }
.lch-panel.off { transform: scale(.92) translateY(10px); opacity: 0; pointer-events: none; }
.lch-panel [hidden] { display: none !important; }
.lch-ph { position: relative; background: #0f1830; color: #eef2f8; padding: 16px 18px 10px; display: grid; gap: 4px; }
.lch-ph b { font-size: 17px; padding-right: 36px; }
.lch-ph .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lch-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #b9c3d6; }
.lch-online i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b8; }
.lch-online.on { color: #b9f5cf; }
.lch-online.on i { background: #22c55e; animation: lch-live 1.6s infinite; }
@keyframes lch-live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.lch-lang { margin-left: auto; display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 9px; padding: 2px; }
.lch-lang button { border: 0; background: none; color: #b9c3d6; font: 700 11.5px var(--font, sans-serif); padding: 4px 8px; border-radius: 7px; cursor: pointer; box-shadow: none; }
.lch-lang button.on { background: #f3d27a; color: #1b1404; }
.lch-x { position: absolute; right: 12px; top: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 15px; box-shadow: none; }
.lch-tabs { display: flex; gap: 4px; padding: 6px 8px 8px; background: #0f1830; }
.lch-tabs button { flex: 1; border: 0; background: transparent; color: #b9c3d6; font: 700 12.5px var(--font, sans-serif); padding: 8px 4px; border-radius: 10px; cursor: pointer; position: relative; white-space: nowrap; box-shadow: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lch-tabs button.on { background: rgba(255, 255, 255, .12); color: #fff; }
.lch-tabs .n { position: absolute; top: 1px; right: 4px; background: #b42318; color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; }
.lch-body { padding: 14px 16px 16px; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; overscroll-behavior: contain; }
.lch-body > * { min-width: 0; }
.lch-lbl { font: 700 12px var(--font, sans-serif); color: var(--muted, #5b6577); }
.lch-srch { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line, #e3e7ee); border-radius: 12px; padding: 0 12px; }
.lch-srch input { flex: 1; border: 0; outline: 0; background: transparent; font: 600 14px var(--font, sans-serif); color: inherit; height: 42px; min-width: 0; box-shadow: none; padding: 0; }
.lch-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lch-cat { border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px 6px; background: var(--surface, #fff); cursor: pointer; display: grid; gap: 2px; justify-items: center; text-align: center; font: 700 12px var(--font, sans-serif); color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; box-shadow: none; }
.lch-cat:hover { transform: translateY(-2px); border-color: #e0a83a; box-shadow: 0 8px 16px -12px rgba(201, 138, 26, .7); }
.lch-cat i { font-style: normal; font-size: 20px; }
.lch-cat small { color: var(--muted, #5b6577); font-weight: 500; font-size: 11px; }
.lch-list { display: grid; gap: 6px; }
.lch-item { border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px 12px; background: var(--surface, #fff); text-align: left; cursor: pointer; font: 700 13.5px var(--font, sans-serif); color: inherit; display: flex; justify-content: space-between; gap: 8px; box-shadow: none; }
.lch-item::after { content: '›'; color: #c98a1a; font-weight: 800; }
.lch-item:hover { border-color: #e0a83a; }
.lch-back { border: 0; background: none; color: #c98a1a; font: 800 13px var(--font, sans-serif); cursor: pointer; padding: 0; justify-self: start; box-shadow: none; }
.lch-art h4 { margin: 0 0 4px; font-size: 16px; }
.lch-art ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.lch-art li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.lch-art li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0f1830; color: #f3d27a; font: 800 12px var(--font, sans-serif); }
.lch-tip { border-radius: 12px; background: var(--gold-soft, #fbf0d7); padding: 10px 12px; font-size: 13px; }
.lch-helpful { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted, #5b6577); border-top: 1px solid var(--line, #e3e7ee); padding-top: 10px; }
.lch-chip, .lch-helpful button { border: 1px solid var(--line, #e3e7ee); background: var(--surface, #fff); border-radius: 99px; padding: 6px 12px; cursor: pointer; font: 700 13px var(--font, sans-serif); color: inherit; box-shadow: none; }
.lch-chip.on, .lch-helpful button.on { background: #0f1830; border-color: #0f1830; color: #fff; }
.lch-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lch-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lch-contact a { text-decoration: none; color: inherit; border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px; font-weight: 700; font-size: 13px; display: grid; gap: 2px; }
.lch-contact a small { color: var(--muted, #5b6577); font-weight: 500; }
.lch-contact a:hover { border-color: #e0a83a; }
.lch-steps { display: flex; gap: 6px; align-items: center; font: 700 11px var(--mono, monospace); color: var(--muted, #5b6577); }
.lch-steps span { display: flex; gap: 5px; align-items: center; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lch-steps span:not(.on) { flex: none; max-width: 20px; }
.lch-steps span b { flex: none; }
.lch-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--soft, #eef1f6); }
.lch-steps .on { color: inherit; } .lch-steps .on b { background: #0f1830; color: #f3d27a; } .lch-steps .ok b { background: #157a4a; color: #fff; }
.lch-steps em { flex: 1; height: 2px; background: var(--line, #e3e7ee); min-width: 6px; }
.lch-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lch-area { border: 1.5px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px; background: var(--surface, #fff); cursor: pointer; text-align: left; display: flex; gap: 8px; align-items: center; font: 700 13px var(--font, sans-serif); color: inherit; box-shadow: none; }
.lch-area i { font-style: normal; font-size: 18px; }
.lch-area.on { border-color: #e0a83a; background: var(--gold-soft, #fbf0d7); }
.lch-fix { border: 1px solid #b7e1c7; background: #e3f4ea; color: #14213d; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.lch-fix b { color: #157a4a; }
.lch-panel textarea, .lch-panel .lch-in { width: 100%; font: 500 14px var(--font, sans-serif); color: inherit; background: var(--surface, #fff); border: 1.5px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px 12px; box-shadow: none; }
.lch-panel textarea { min-height: 84px; resize: vertical; }
.lch-panel textarea:focus, .lch-panel .lch-in:focus { outline: 0; border-color: #e0a83a; }
.lch-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lch-seg { display: flex; gap: 3px; background: var(--soft, #eef1f6); border-radius: 10px; padding: 3px; }
.lch-seg button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 8px; font: 700 12px var(--font, sans-serif); color: var(--muted, #5b6577); cursor: pointer; box-shadow: none; }
.lch-seg button.on { background: #0f1830; color: #fff; }
.lch-drop { border: 1.5px dashed #e0a83a; border-radius: 12px; padding: 12px; font-size: 13px; color: var(--muted, #5b6577); text-align: center; background: rgba(251, 240, 215, .45); cursor: pointer; }
.lch-drop b { color: var(--ink, #14213d); }
.lch-drop.over { background: var(--gold-soft, #fbf0d7); }
.lch-shot { display: flex; gap: 10px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.lch-shot img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line, #e3e7ee); }
.lch-link { border: 0; background: none; padding: 0; color: #c98a1a; font: 700 12.5px var(--font, sans-serif); cursor: pointer; text-decoration: underline; box-shadow: none; }
.lch-warn { font-size: 12px; color: #6b4a07; background: var(--gold-soft, #fbf0d7); border-radius: 10px; padding: 8px 10px; }
.lch-tech { font: 500 11.5px var(--mono, monospace); color: var(--muted, #5b6577); background: var(--soft, #eef1f6); border-radius: 10px; padding: 8px 10px; line-height: 1.6; margin-top: 6px; word-break: break-word; }
.lch-tech b { color: var(--ink, #14213d); }
.lch-sum { border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; }
.lch-sum div { display: flex; gap: 8px; } .lch-sum div span:first-child { width: 90px; color: var(--muted, #5b6577); flex: none; }
.lch-nav { display: flex; gap: 8px; }
.lch-nav > * { flex: 1; }
.lch-go { border: 0; border-radius: 12px; padding: 12px; font: 800 15px var(--font, sans-serif); color: #1b1404; background: linear-gradient(90deg, #e0a83a, #f3d27a); cursor: pointer; box-shadow: 0 10px 20px -12px rgba(201, 138, 26, .9); }
.lch-go:disabled { opacity: .6; cursor: default; }
.lch-sec { border: 1px solid var(--line, #e3e7ee); background: var(--surface, #fff); color: inherit; border-radius: 12px; padding: 11px; font: 700 14px var(--font, sans-serif); cursor: pointer; box-shadow: none; }
.lch-err { background: #fdecea; color: #b42318; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.lch-done { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 14px 0; }
.lch-done .ck { width: 64px; height: 64px; border-radius: 50%; background: #157a4a; color: #fff; display: grid; place-items: center; font-size: 30px; animation: lch-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes lch-pop { from { transform: scale(0); } }
.lch-done code { font: 800 15px var(--mono, monospace); background: var(--soft, #eef1f6); padding: 4px 10px; border-radius: 8px; }
.lch-done a { color: #157a4a; font-weight: 800; }
.lch-stars { display: flex; gap: 6px; align-items: center; }
.lch-stars button { border: 0; background: none; font-size: 30px; cursor: pointer; color: #cfd5df; transition: transform .15s, color .15s; padding: 0; box-shadow: none; line-height: 1; }
.lch-stars button.on { color: #e0a83a; } .lch-stars button:hover { transform: scale(1.15); }
.lch-stars span { font-weight: 700; color: var(--muted, #5b6577); font-size: 13px; margin-left: 4px; }
.lch-idea { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 9px 10px; }
.lch-idea .v { display: grid; justify-items: center; border: 1px solid var(--line, #e3e7ee); border-radius: 10px; padding: 4px 8px; cursor: pointer; font: 800 12px var(--font, sans-serif); background: var(--surface, #fff); color: inherit; min-width: 46px; box-shadow: none; }
.lch-idea .v.on { background: var(--gold-soft, #fbf0d7); border-color: #e0a83a; }
.lch-idea div { flex: 1; font-size: 13px; } .lch-idea small { display: block; color: var(--muted, #5b6577); font-size: 11.5px; }
.lch-req { border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; cursor: pointer; background: var(--surface, #fff); text-align: left; color: inherit; font: inherit; box-shadow: none; }
.lch-req .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lch-req b { font-size: 13.5px; } .lch-req small { color: var(--muted, #5b6577); font-size: 12px; }
.lch-req.new { border-color: #e0a83a; box-shadow: 0 0 0 3px rgba(224, 168, 58, .15); }
.lch-st { font: 800 11px var(--mono, monospace); padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: #e6efff; color: #2a56c6; }
.lch-st.WORKING, .lch-st.WAITING { background: #fbf0d7; color: #8a5c0c; }
.lch-st.FIXED { background: #e3f4ea; color: #157a4a; }
.lch-st.WONTFIX { background: #eef1f6; color: #5b6577; }
.lch-tl { display: flex; align-items: center; margin: 2px 0; }
.lch-tl span { display: grid; justify-items: center; gap: 3px; font: 700 10.5px var(--font, sans-serif); color: var(--muted, #5b6577); flex: none; width: 64px; text-align: center; }
.lch-tl span b { width: 18px; height: 18px; border-radius: 50%; background: var(--soft, #eef1f6); border: 2px solid var(--line, #e3e7ee); }
.lch-tl span.ok b { background: #157a4a; border-color: #157a4a; }
.lch-tl span.now b { background: #e0a83a; border-color: #e0a83a; box-shadow: 0 0 0 4px rgba(224, 168, 58, .25); }
.lch-tl span.ok, .lch-tl span.now { color: inherit; }
.lch-tl em { flex: 1; height: 2px; background: var(--line, #e3e7ee); margin-bottom: 16px; } .lch-tl em.ok { background: #157a4a; }
.lch-thread { display: grid; gap: 8px; }
.lch-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.lch-msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; white-space: normal; }
.lch-msg.me { justify-self: end; background: #0f1830; color: #fff; border-bottom-right-radius: 4px; }
.lch-msg.them { background: var(--soft, #eef1f6); border-bottom-left-radius: 4px; }
.lch-msg img { display: block; max-width: 100%; border-radius: 8px; margin-top: 6px; cursor: zoom-in; }
.lch-reply { display: flex; gap: 8px; align-items: flex-end; }
.lch-reply textarea { min-height: 44px; height: 44px; }
.lch-reply .lch-go { padding: 10px 14px; }
.lch-solved { border: 1px solid #e0a83a; border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: var(--gold-soft, #fbf0d7); font-size: 13.5px; }
.lch-empty { color: var(--muted, #5b6577); font-size: 13px; text-align: center; padding: 14px 0; }
/* cover a name */
.lch-blur { position: fixed; inset: 0; z-index: 80; background: rgba(15, 24, 48, .8); display: grid; place-items: center; padding: 16px; }
.lch-blur-in { background: #fff; color: #14213d; border-radius: 16px; padding: 14px; display: grid; gap: 10px; max-width: min(920px, 100%); max-height: 100%; }
.lch-blur-in p { margin: 0; font-size: 13.5px; }
.lch-blur canvas { max-width: 100%; max-height: calc(100vh - 200px); border-radius: 8px; cursor: crosshair; touch-action: none; border: 1px solid #e3e7ee; }
.lch-blur .lch-nav { justify-content: flex-end; }
.lch-blur .lch-nav > * { flex: none; padding: 9px 14px; }
@media (max-width: 520px) {
  .lch-panel { left: 8px; right: 8px; width: auto; bottom: 72px; max-height: calc(100vh - 90px); }
  .lch-cats { grid-template-columns: repeat(2, 1fr); }
  .lch-areas, .lch-two, .lch-contact { grid-template-columns: 1fr; }
  .lch-fab span.t { display: none; }
  .lch-fab { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lch-panel, .lch-fab, .lch-badge, .lch-done .ck { animation: none !important; transition: none !important; } }
