/* 8.ro */
/* The image tools' shared pieces (tools/_shared, named in each tool.json):
   settings, a picture of fixed height, the list of files. */
.im-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.im-hint { margin: 0; color: var(--muted); font-size: .875rem; }
/* the stage has its height before any picture comes: nothing moves */
.im-stage { position: relative; display: grid; place-items: center; height: 300px; padding: 14px; transition: box-shadow .15s; }
@media (min-width: 720px) { .im-stage { height: 420px; } }
.im-stage.is-over { box-shadow: inset 0 0 0 3px var(--accent); }
.im-empty { display: grid; justify-items: center; gap: 10px; max-width: 30ch; margin: 0; color: var(--muted); font-size: .9375rem; text-align: center; }
.im-empty .i { width: 40px; height: 40px; color: var(--faint); }
/* the stage's height less its padding: a percentage would not hold inside the grid */
.im-view { display: block; max-width: 100%; max-height: 272px; width: auto; height: auto; border-radius: 8px; box-shadow: 0 16px 36px -18px rgb(0 0 0 / .45); }
@media (min-width: 720px) { .im-view { max-height: 392px; } }
.im-busy { position: absolute; inset: auto 12px 12px auto; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: .8125rem; font-weight: 600; }
.im-busy:empty { display: none; }
/* before / after: the result covers the original from the slider's line */
.im-cmp { position: relative; display: grid; max-width: 100%; max-height: 100%; }
.im-cmp > img { grid-area: 1 / 1; display: block; max-width: 100%; max-height: 272px; width: auto; height: auto; margin: auto; border-radius: 8px; }
@media (min-width: 720px) { .im-cmp > img { max-height: 392px; } }
.im-cmp > .im-after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.im-cmp-line { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); pointer-events: none; }
.im-cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.im-cmp-range:focus-visible + .im-cmp-line { background: var(--accent); }
.im-tags { position: absolute; inset: 10px 10px auto; display: flex; justify-content: space-between; pointer-events: none; }
.im-tags span { padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .75rem; font-weight: 600; }
.im-list { margin: 0; padding: 0; list-style: none; }
.im-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.im-row:first-child { border-top: 0; }
.im-row.is-on { background: var(--surface-2); }
@media (min-width: 720px) { .im-row { grid-template-columns: 52px minmax(0, 1fr) auto; } }
.im-tb { display: block; padding: 0; border: 0; border-radius: 8px; background: none; line-height: 0; cursor: pointer; }
.im-tb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.im-thumb { display: block; width: 52px; height: 52px; border-radius: 8px; }
.im-name { min-width: 0; margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-meta { margin: 2px 0 0; color: var(--muted); font: .8125rem/1.45 var(--mono); }
.im-meta.is-err { color: var(--err); font-family: inherit; }
.im-gain { color: var(--ok); font-weight: 650; }
.im-loss { color: var(--err); font-weight: 650; }
.im-acts { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; }
@media (min-width: 720px) { .im-acts { grid-column: auto; justify-content: end; } }
.im-none { margin: 0; padding: 18px; color: var(--faint); font-size: .9375rem; }
.im-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.im-foot:empty { display: none; }
.im-sel { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.im-dims { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; }
.im-dims .field-in { width: 100%; font-family: var(--mono); }
.im-x { padding-bottom: 10px; color: var(--faint); }
