/* Obrys — Figma-like image fill popover, photo tools, Figma import ways, InDesign place gun & live corners */
.picker { max-height: calc(100vh - 16px); overflow-y: auto; }
.pk-img img { transition: transform .15s; }
.pk-imgbar { display: flex; gap: 4px; align-items: center; margin-top: 6px; }
.pk-imgbar .btn { flex: 1; justify-content: center; }
.pk-rng { display: grid; grid-template-columns: 84px 1fr 38px; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--fg-2); }
.pk-rng input { width: 100%; accent-color: var(--acc); }
.pk-rng em { font-style: normal; text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }
.pk-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; font-size: 12px; color: var(--fg); }
.pk-st { font-size: 12px; color: var(--fg-2); margin-top: 6px; min-height: 0; }
.pk-st:empty { display: none; }

.pf-tools { flex-wrap: wrap; gap: 4px; }
.pf-tools .btn { display: inline-flex; align-items: center; gap: 4px; }
.pf-more summary { cursor: pointer; padding: 4px 12px; font-size: 12px; color: var(--fg-2); }

.fg-ways { display: grid; gap: 10px; margin-top: 6px; }
.fg-way { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fg-wh { display: flex; align-items: center; gap: 8px; }
summary.fg-wh { cursor: pointer; list-style: none; }
summary.fg-wh::-webkit-details-marker { display: none; }
.fg-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; font-size: 12px; font-weight: 600; }
.fg-steps { margin: 6px 0 4px 18px; padding: 0; font-size: 12.5px; line-height: 1.55; }
.fg-drop { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 8px; background: none; color: var(--fg-2); cursor: pointer; font: inherit; font-size: 12.5px; }
/* InDesign Live Corners */
#lc-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.lc-tog, .lc-d { position: absolute; width: 9px; height: 9px; margin: -5px 0 0 -5px; padding: 0; border: 1px solid #6b5800; background: #FFD21F; pointer-events: auto; cursor: pointer; }
.lc-tog.on { background: #fff; border-color: #FFB000; }
.lc-d { transform: rotate(45deg); cursor: move; }
.lc-tog:hover, .lc-d:hover { box-shadow: 0 0 0 3px rgba(255, 210, 31, .45); }
/* InDesign place gun */
.pg-layer { position: absolute; inset: 0; z-index: 6; cursor: crosshair; }
.pg-rect { display: none; position: absolute; border: 1px dashed #E8833A; background: rgba(232, 131, 58, .08); pointer-events: none; }
.pg-cur { position: fixed; z-index: 2000; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; }
.pg-cur img { width: 64px; height: 64px; object-fit: cover; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.pg-cur b { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #E8833A; color: #fff; font: 600 11px/18px Inter, system-ui, sans-serif; text-align: center; }
.fg-drop:hover, .fg-drop.on { border-color: var(--acc); color: var(--fg); background: var(--panel-2); }
