/* In-browser image editor (static/editor.js) */
.imged { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--bg); }
.ie-title { margin-bottom: 8px; }
.ie-toolbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ie-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ie-group > b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 92px; }
.ie-btn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
          padding: 4px 9px; font-size: 13px; cursor: pointer; }
.ie-btn:hover { border-color: var(--accent); color: var(--accent); }
.ie-num { width: 72px; padding: 3px 6px !important; font-size: 13px; }
.ie-small { font-size: 12px; }
.ie-group label { display: inline-flex; gap: 3px; align-items: center; }
.ie-stage { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 6px;
            padding: 8px; background: var(--panel); text-align: center; }
.ie-view { max-width: 100%; touch-action: none; vertical-align: middle; }
.ie-info { margin-top: 6px; color: var(--muted); word-break: break-word; }
.ie-previews { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-top: 4px; }
.ie-previews figure { margin: 0; text-align: center; }
.ie-prev { display: block; border: 1px dashed var(--line); }
.imged[hidden], .imged [hidden] { display: none !important; }

/* Local image picker (static/local_picker.js) */
.lp-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: -4px; }
.lp-row .lp-open, .lp-row .ie-from-animal { font-size: 13px; padding: 5px 11px; }
.lp-chosen { font-size: 13px; }
.lp-dialog { width: min(1000px, 94vw); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 12px;
             background: var(--panel); color: var(--ink); }
.lp-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.lp-head { position: sticky; top: 0; z-index: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
           padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.lp-head .lp-for { flex: 1; font-size: 13px; }
.lp-search { width: 220px; }
.lp-crumbs { padding: 10px 16px 0; font-size: 14px; }
.lp-status { padding: 4px 16px; font-size: 13px; min-height: 1em; }
.lp-body { padding: 4px 16px 16px; }
.lp-section { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 8px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lp-images { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lp-card { display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; cursor: pointer;
           background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px; font: inherit; }
.lp-card:hover, .lp-card:focus-visible { border-color: var(--accent); outline: none; }
.lp-sugg { border-color: var(--submitted); box-shadow: 0 0 0 1px var(--submitted) inset; }
.lp-thumb { height: 100px; display: flex; align-items: center; justify-content: center; border-radius: 5px; overflow: hidden; }
.lp-thumb-lg { height: 150px; }
.lp-thumb img { max-width: 95%; max-height: 95%; }
.lp-name { font-size: 13px; font-weight: 600; word-break: break-word; }
.lp-meta { font-size: 12px; }
.lp-used { font-size: 11px; color: var(--submitted); }
.lp-mine { color: var(--accent); }

/* Wish icon circle crop */
.ie-circlebar { align-items: center; padding: 6px; border: 1px dashed var(--line); border-radius: 6px; }
.ie-circprev { width: 70px; height: 70px; border-radius: 6px; image-rendering: pixelated; }
.ie-group input[type=color] { width: 32px; height: 26px; padding: 0 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.ie-paci-ico { height: 16px; vertical-align: middle; }
