:root {
  --bg: #ffffff;           /* ライト */
  --panel: #f9fafb;        /* パネル */
  --acc: #2563eb;          /* アクセント */
  --text: #1f2937;         /* 文字 */
  --muted: #6b7280;        /* 補助文字 */
  --ok: #10b981;           /* 成功 */
  --warn: #f59e0b;         /* 注意 */
  --err: #ef4444;          /* エラー */
  --border: #e5e7eb;       /* 枠線 */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, "Apple Color Emoji", "Segoe UI Emoji";
  background: #ffffff;
  color: var(--text);
}
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 18px; }
.brand { display:flex; align-items:center; gap:12px; }
.badge { font-size: 12px; color: var(--muted); background:#f3f4f6; border:1px solid var(--border); padding:2px 8px; border-radius: 999px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.grid { display:grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 840px) { .grid { grid-template-columns: 1.25fr .75fr; } }

.dropzone {
  border: 2px dashed #d1d5db; border-radius: 16px; padding: 28px; text-align:center; transition: all .2s ease; background: #f9fafb;
}
.dropzone.dragover { border-color: var(--acc); background: #eff6ff; }

.controls { display:flex; align-items:center; gap: 12px; flex-wrap: wrap; justify-content:center; margin-top: 12px; }
.btn { appearance:none; border:1px solid var(--border); background: #ffffff; color: var(--text); padding: 10px 14px; border-radius: 12px; cursor:pointer; font-weight:600; }
.btn:hover { border-color: #d1d5db; background: #f9fafb; }
.btn-primary { background: var(--acc); border-color: transparent; color: #ffffff; }
.btn-primary:hover { background: #ffffff; color: var(--acc); border-color: var(--acc); }

.meta { font-size: 14px; color: var(--muted); }
.list { display:grid; gap:10px; }
.kv { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px dashed #e5e7eb; border-radius:10px; padding: 8px 10px; }
.kv strong { font-weight:700; }

.status { font-size: 14px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }

footer { color: var(--muted); margin-top: 22px; font-size: 13px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* 手動広告ユニットを置くならここに余白 */
.ad-block { display:block; min-height: 90px; margin: 10px 0; background: #f9fafb; border:1px dashed #e5e7eb; border-radius:12px; }
