.lc-entry, .lc-dialog { font-family:var(--sans); color:var(--ink); }
.lc-entry { display:inline-flex; align-items:center; gap:7px; min-height:40px; margin-top:6px; padding:2px 0; background:transparent; border:0; text-decoration:underline; text-underline-offset:4px; font-size:.93rem; font-weight:550; }
.lc-entry svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.lc-dialog { width:min(540px,calc(100% - 24px)); max-height:92vh; max-height:92dvh; margin:auto; overflow:auto; padding:0; background:#fbfaf8; border:1px solid #dbd5cd; border-radius:22px; box-shadow:0 20px 70px #16131033; }
.lc-dialog::backdrop { background:#15141285; }
.lc-dialog [hidden] { display:none !important; }
.lc-body { padding:23px; }
.lc-heading, .lc-tools, .lc-files, .lc-actions, .lc-palette, .lc-result-item { display:flex; align-items:center; }
.lc-heading { justify-content:space-between; gap:8px; }
.lc-heading h2 { margin:0; font-size:clamp(1.6rem,5vw,2.15rem); line-height:1.25; letter-spacing:-.045em; }
.lc-heading .lc-close { width:40px; height:40px; flex:none; }
.lc-guide { margin:4px 0 16px; color:#524e48; font-size:.94rem; line-height:1.55; }
.lc-photo { position:relative; isolation:isolate; background:#e9e6df; overflow:hidden; height:clamp(185px,34vh,310px); height:clamp(185px,34dvh,310px); border-radius:12px; }
.lc-photo canvas { display:block; width:100%; height:100%; object-fit:contain; cursor:crosshair; touch-action:manipulation; }
.lc-photo:focus-within { outline:3px solid #284b88; outline-offset:2px; }
.lc-pin { pointer-events:none; position:absolute; width:25px; height:25px; border-radius:50%; border:3px solid white; box-shadow:0 0 0 1px #262626a8,0 1px 5px #0005; transform:translate(-50%,-50%); }
.lc-tools { min-height:52px; justify-content:space-between; flex-wrap:wrap; gap:4px 9px; margin:4px 0 12px; }
.lc-files { gap:8px; flex-wrap:wrap; }
.lc-upload,.lc-sample { font-size:.84rem; line-height:1.3; font-weight:500; }
.lc-upload { min-height:39px; padding:5px 12px; border-radius:22px; border:1px solid #beb8af; background:#fff; }
.lc-sample { min-height:36px; padding:4px 0; border:0; background:none; text-decoration:underline; text-underline-offset:3px; }
.lc-palette { gap:1px; }
.lc-palette button { display:grid; place-items:center; width:30px; height:36px; padding:0; background:none; border:0; border-radius:6px; }
.lc-palette button::before { content:''; width:20px; height:20px; background:var(--lc-tone); border:1px solid #0003; border-radius:50%; }
.lc-dialog button:focus-visible, .lc-entry:focus-visible { outline:2px solid #25477c; outline-offset:2px; }
.lc-result { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding:14px 12px; border-block:1px solid #d8d3ca; }
.lc-result-item { gap:9px; min-width:0; }
.lc-result-item i { flex:none; width:34px; height:34px; border:1px solid #0003; border-radius:50%; }
.lc-result-item span,.lc-result-item strong { display:block; }
.lc-result-item span { color:#57534c; font-size:.8rem; line-height:1.4; }
.lc-result-item strong { font-size:1rem; line-height:1.4; overflow-wrap:anywhere; }
.lc-original { font-variant-numeric:tabular-nums; }
.lc-bridge { color:#817d74; font-size:1.1rem; }
.lc-actions { gap:8px; flex-wrap:wrap; margin-top:16px; }
.lc-apply,.lc-try { min-height:43px; padding:8px 17px; border:1px solid #242424; border-radius:24px; font-size:.94rem; font-weight:550; }
.lc-apply { background:#242424; color:white; }
.lc-try { background:transparent; border-color:#bcb6ad; }
.lc-actions button:disabled { opacity:.4; cursor:default; }
.lc-message { color:#665242; margin:0 0 10px; font-size:.86rem; line-height:1.45; }
.lc-message:empty { display:none; }
@media(max-width:430px) {
  .lc-body { padding:16px; }
  .lc-result { gap:7px; padding:11px 0; }
  .lc-result-item { gap:6px; }
  .lc-result-item i { width:27px; height:27px; }
  .lc-result-item strong { font-size:.9rem; }
  .lc-palette button { width:27px; }
}
