/* 背景透過・ステッカー作成で共通の配置（色や見た目はサイト共通の base.css に合わせる） */
.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 6px; 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; }
.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; font-size: 14px; }
.seg input:checked + span { font-weight: 700; color: var(--accent); }
.checker { background: repeating-conic-gradient(#d8d8d8 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.viewwrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0 0; -webkit-overflow-scrolling: touch; }
.viewwrap canvas { display: block; margin: 0 auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatches button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.swatches input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.panel { margin: 10px 0 0; }
.btn[aria-pressed=true] { background: var(--accent); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 0; }
.toolbar .sp { flex: 1 1 auto; }
.status { font-size: 14px; color: var(--muted); min-height: 1.5em; margin: 6px 0 0; }
.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; background: repeating-conic-gradient(#d8d8d8 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.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; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
@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; }
}
