/* 画像の編集の各ページで共通の配置（色や見た目はサイト共通の base.css に合わせる） */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.subnav a { text-decoration: none; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text); background: var(--surface); }
.subnav a[aria-current=page] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.drop.over { border-color: var(--accent); background: var(--accent-weak); }
.drop input[type=file] { max-width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.out { font-weight: 400; color: var(--muted); margin-left: 6px; }
.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; }
.files img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; }
.files .nm { font-weight: 600; word-break: break-all; font-size: 14px; }
.files .meta { font-size: 13px; color: var(--muted); }
.files .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.down { color: var(--ok); font-weight: 600; }
.up { color: var(--danger); font-weight: 600; }
.checker, .files img { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { font-weight: 400; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 0; cursor: pointer; }
.seg input:checked + span { font-weight: 700; color: var(--accent); }
.stage { position: relative; margin: 12px 0 0; max-width: 100%; }
.stage canvas { display: block; max-width: 100%; height: auto; touch-action: none; border: 1px solid var(--line); border-radius: 6px; }
.compare { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; margin: 12px 0 0; }
.compare img { display: block; width: 100%; height: auto; }
.compare .after { position: absolute; inset: 0; }
.compare .after img { width: 100%; height: 100%; }
.compare .bar { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.compare .tag { position: absolute; top: 6px; font-size: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 600px) {
  .files li { grid-template-columns: 48px 1fr; }
  .files img { width: 48px; height: 48px; }
  .files .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
