/* 共通土台の編集・確認。会社設定とは独立した、狭い画面でも読める原本の作業領域。 */
.base-tpl, .base-tpl-platform { min-width: 0; max-width: 1120px; margin: 0 auto; }
.base-tpl { color: var(--g800, #253447); padding: 8px 0 32px; overflow-wrap: anywhere; }
.base-tpl h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; margin: 5px 0 8px; }
.base-tpl h3 { font-size: 19px; margin: 6px 0 12px; }
.base-tpl h4 { font-size: 15px; margin: 0; }
.base-tpl p { line-height: 1.8; margin: 8px 0; }
.base-tpl-heading, .base-tpl-section-heading, .base-tpl-platform nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.base-tpl-eyebrow { font-size: 10px; font-weight: 700; color: var(--g500, #667085); letter-spacing: .12em; }
.base-tpl-toolbar, .base-tpl-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.base-tpl button { white-space: normal; min-height: 44px; max-width: 100%; }
.base-tpl button:focus-visible, .base-tpl input:focus-visible, .base-tpl textarea:focus-visible, .base-tpl select:focus-visible { outline: 3px solid var(--blue, #2563eb); outline-offset: 3px; }
.base-tpl-notice { padding: 12px 16px; border-left: 3px solid var(--blue, #2563eb); background: var(--blue-lt, #eff6ff); border-radius: 0 8px 8px 0; font-size: 13px; }
.base-tpl-hint { font-size: 12px; color: var(--g500, #667085); }
.base-tpl-error { padding: 16px; border: 1px solid #f0b9b5; border-radius: 8px; color: #a52222; background: #fff5f4; white-space: pre-wrap; margin: 14px 0; }
.base-tpl-error button { margin: 8px; }
.base-tpl-empty { padding: 32px 20px; background: var(--g50, #f8fafc); border-radius: 10px; text-align: center; }
.base-tpl-table { border: 1px solid var(--g200, #e2e8f0); border-radius: 12px; overflow: hidden; background: white; }
.base-tpl-table-head, .base-tpl-table-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(80px, .5fr) minmax(50px, .3fr) minmax(0, 1.3fr); gap: 16px; align-items: center; padding: 18px 20px; }
.base-tpl-table-head { font-size: 11px; color: var(--g500, #667085); background: var(--g50, #f8fafc); }
.base-tpl-table-row + .base-tpl-table-row { border-top: 1px solid var(--g200, #e2e8f0); }
.base-tpl-table-row small { display: block; color: var(--g500, #667085); font-size: 11px; margin-top: 5px; }
.base-tpl-badge { display: inline-block; padding: 4px 9px; font-size: 11px; border-radius: 5px; background: var(--g100, #f1f5f9); }
.base-tpl-published { color: #166247; background: #e7f6ee; }
.base-tpl-draft { color: #795316; background: #fff3d6; }
.base-tpl-archived { color: #667085; }
.base-tpl-mobile-label { display: none; }
.base-tpl-editor { margin-top: 28px; }
.base-tpl fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.base-tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.base-tpl-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; font-size: 12px; font-weight: 600; }
.base-tpl input, .base-tpl textarea, .base-tpl select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 14px; font-weight: 400; padding: 11px 12px; border: 1px solid var(--g300, #cbd5e1); border-radius: 7px; background: white; color: inherit; }
.base-tpl input[type="checkbox"] { width: 20px; height: 20px; }
.base-tpl textarea { resize: vertical; line-height: 1.8; }
.base-tpl-section { margin: 16px 0 24px; padding: 20px; border: 1px solid var(--g200, #e2e8f0); border-radius: 12px; background: white; }
.base-tpl-item { padding: 16px; border-left: 2px solid var(--g200, #e2e8f0); background: var(--g50, #f8fafc); margin-bottom: 16px; }
.base-tpl .base-tpl-array { margin: 16px 0 24px; padding: 16px; border: 1px solid var(--g200, #e2e8f0); border-radius: 8px; }
.base-tpl-array legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.base-tpl-array-row { padding: 12px 0; border-bottom: 1px solid var(--g200, #e2e8f0); margin-bottom: 12px; }
.base-tpl-array-row .base-tpl-field { margin-bottom: 8px; }
.base-tpl-review { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--g800, #253447); }
.base-tpl-changes { padding: 0; list-style: none; }
.base-tpl-changes li { padding: 16px 0; border-bottom: 1px solid var(--g200, #e2e8f0); }
.base-tpl-changes strong { margin-left: 8px; font-size: 12px; }
.base-tpl pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; margin: 8px 0; font: inherit; font-size: 12px; }
.base-tpl-before, .base-tpl-after { padding: 12px; margin-top: 8px; border-radius: 6px; font-size: 11px; }
.base-tpl-before { background: #fff3f2; }
.base-tpl-after { background: #edf8f1; }
.base-tpl-preview { background: white; padding: 24px; border: 1px solid var(--g200, #e2e8f0); border-radius: 8px; line-height: 2; }
.base-tpl-overlay { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: #13233588; }
.base-tpl-dialog { width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; padding: 28px; background: white; border-radius: 16px; box-shadow: 0 20px 60px #13233533; }
.base-tpl-version { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.base-tpl-platform { padding: 24px 16px; }
@media (max-width: 640px) {
  .base-tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .base-tpl input, .base-tpl textarea, .base-tpl select { font-size: 16px; }
  .base-tpl-table-head { display: none; }
  .base-tpl-table-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 16px; }
  .base-tpl-table-row > :first-child, .base-tpl-table-row > :last-child { grid-column: 1 / -1; }
  .base-tpl-mobile-label { display: inline; }
  .base-tpl-section { padding: 16px 12px; }
  .base-tpl-item { padding: 12px 10px; }
  .base-tpl-dialog { padding: 22px 18px; }
  .base-tpl-preview { padding: 16px; }
}
