:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #102033;
  --muted: #64748b;
  --border: #d8dee9;
  --primary: #111827;
  --primary-hover: #1f2937;
  --ok-bg: #dcfce7;
  --ok-text: #166534;
  --err-bg: #fee2e2;
  --err-text: #991b1b;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px; }
.header { margin-bottom: 22px; }
.header h1 { margin: 0 0 8px; font-size: 30px; }
.header p { margin: 0; color: var(--muted); }
.card { background: var(--card); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.card h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: block; font-weight: 700; margin: 14px 0 7px; }
input[type=text], input[type=date], input[type=number], input[type=file], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 15px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
textarea.transcript { min-height: 360px; font-family: Consolas, Menlo, monospace; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 10px; border: 0; text-decoration: none; cursor: pointer; font-weight: 700; font-size: 15px; }
button:hover, .btn:hover { background: var(--primary-hover); }
.btn.secondary { background: #e5e7eb; color: #111827; }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); }
.notice.err { background: var(--err-bg); color: var(--err-text); }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); }
.status-line { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
pre { overflow-x: auto; white-space: pre-wrap; word-break: break-word; background: #111827; color: #f9fafb; padding: 14px; border-radius: 10px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.footer { color: var(--muted); font-size: 13px; margin-top: 24px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } .wrap { padding: 16px; } }

.debug-card pre { max-height: 520px; }
code { background: #eef2f7; padding: 2px 5px; border-radius: 5px; }

.pilot-notice{padding:16px;margin:16px 0;background:#fff4ce;border:1px solid #e5c158;border-radius:12px;color:#594500;line-height:1.6}.pilot-notice strong{display:block}fieldset{border:0;padding:0;margin:0;min-width:0}button:disabled,input:disabled,[aria-disabled=true]{opacity:.6;cursor:not-allowed}
