
.alleco-form-admin--preview { max-width: 1180px; }
.alleco-form-preview-shell { --af-border:#dfe5e2; --af-soft:#f6f8f7; --af-text:#22302b; --af-muted:#66736e; --af-accent:#2f6b57; max-width:820px; margin:24px auto 48px; color:var(--af-text); }
.alleco-form-preview-notice { display:flex; gap:10px; align-items:center; padding:12px 14px; margin-bottom:18px; border:1px solid #e4c96f; border-radius:10px; background:#fff9e7; }
.alleco-form-preview-notice strong { white-space:nowrap; }
.alleco-form-progress { display:flex; align-items:center; gap:14px; margin:0 0 16px; }
.alleco-form-progress__bar { flex:1; height:6px; border-radius:99px; background:#e9eeeb; overflow:hidden; }
.alleco-form-progress__bar span { display:block; width:9.09%; height:100%; background:var(--af-accent); transition:width .2s ease; }
.alleco-form-progress p { margin:0; color:var(--af-muted); font-size:12px; font-weight:700; }
.alleco-form-section { padding:28px; border:1px solid var(--af-border); border-radius:16px; background:#fff; box-shadow:0 4px 20px rgba(20,40,32,.05); }
.alleco-form-section__header { margin-bottom:24px; }
.alleco-form-section__header h2 { margin:4px 0 6px; font-size:26px; line-height:1.35; }
.alleco-form-section__header p { color:var(--af-muted); }
.alleco-form-section__eyebrow { margin:0!important; color:var(--af-accent)!important; font-size:12px; font-weight:800; letter-spacing:.08em; }
.alleco-form-field { padding:20px 0; border-top:1px solid #eef1ef; }
.alleco-form-section__header + .alleco-form-field { border-top:0; padding-top:0; }
.alleco-form-field__heading { display:flex; align-items:flex-start; gap:9px; margin-bottom:9px; }
.alleco-form-label { font-size:15px; line-height:1.55; font-weight:700; }
.alleco-form-required { flex:0 0 auto; margin-top:1px; padding:2px 6px; border-radius:4px; background:#fce8e7; color:#9d2924; font-size:10px; font-weight:800; }
.alleco-form-help { margin:6px 0 10px; color:var(--af-muted); font-size:12px; line-height:1.65; }
.alleco-form-field input[type=text], .alleco-form-field input[type=email], .alleco-form-field input[type=url], .alleco-form-field textarea { width:100%; min-height:42px; padding:9px 11px; border:1px solid #cfd8d4; border-radius:8px; box-sizing:border-box; }
.alleco-form-field textarea { min-height:110px; resize:vertical; }
.alleco-form-choices { display:grid; gap:8px; }
.alleco-form-choice { display:flex; align-items:flex-start; gap:9px; padding:11px 12px; border:1px solid #d8dfdc; border-radius:9px; background:#fff; cursor:pointer; }
.alleco-form-choice:hover { border-color:#9fb6ac; background:#fbfdfc; }
.alleco-form-choice input { margin-top:2px; }
.alleco-form-choice.is-disabled { opacity:.45; cursor:not-allowed; }
.alleco-form-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:28px; padding-top:20px; border-top:1px solid #edf0ee; }
.alleco-form-nav .button { min-height:40px; padding:4px 18px; }
.alleco-form-field-error { margin:8px 0 0; color:#b42318; font-size:12px; font-weight:700; }
.alleco-form-field.has-error input[type=text], .alleco-form-field.has-error input[type=email], .alleco-form-field.has-error input[type=url], .alleco-form-field.has-error textarea, .alleco-form-field.has-error .alleco-form-choice { border-color:#d92d20; }
.alleco-form-repeater { padding:4px 0; }
.alleco-repeater-row { margin:12px 0; padding:16px; border:1px solid #dce3df; border-radius:12px; background:#fafcfa; }
.alleco-repeater-row__head { display:flex; justify-content:space-between; align-items:center; margin-bottom:2px; }
.alleco-repeater-row .alleco-form-field { padding:15px 0; }
.alleco-image-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:150px; padding:18px; border:2px dashed #bdcbc5; border-radius:12px; background:#fafcfa; text-align:center; }
.alleco-image-dropzone.is-dragover { border-color:var(--af-accent); background:#f2f8f5; }
.alleco-image-mobile { display:none; }
.alleco-image-file-list { display:grid; gap:6px; margin-top:10px; }
.alleco-image-file-item { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:7px; background:#f3f6f4; font-size:12px; }
.alleco-image-preview-only__notice { font-weight:700; }
.alleco-confirm-group { margin:0 0 16px; padding:16px; border:1px solid #dfe5e2; border-radius:12px; }
.alleco-confirm-group__head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.alleco-confirm-group__head h3 { margin:0; }
.alleco-confirm-row { display:grid; grid-template-columns:minmax(180px, 35%) 1fr; gap:14px; padding:10px 0; border-top:1px solid #eef1ef; }
.alleco-confirm-row:first-of-type { border-top:0; }
.alleco-confirm-row dt { font-weight:700; }
.alleco-confirm-row dd { margin:0; white-space:pre-wrap; }
.alleco-confirm-empty { color:var(--af-muted); }
@media (max-width:782px) {
  .alleco-form-admin--preview { margin-left:0; }
  .alleco-form-preview-shell { margin:16px 0 40px; }
  .alleco-form-section { padding:20px 16px; border-radius:12px; }
  .alleco-form-section__header h2 { font-size:22px; }
  .alleco-form-preview-notice { align-items:flex-start; flex-direction:column; }
  .alleco-image-desktop { display:none; }
  .alleco-image-mobile { display:block; }
  .alleco-image-mobile-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .alleco-image-mobile-actions .button { min-height:48px; }
  .alleco-confirm-row { grid-template-columns:1fr; gap:4px; }
}
.alleco-form-draft-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; padding:10px 12px; border:1px solid #dfe5e2; border-radius:10px; background:#fff; }
.alleco-form-save-state { font-size:12px; font-weight:700; color:#52615b; }
.alleco-form-save-state.is-saving { color:#8a6500; }
.alleco-form-save-state.is-saved { color:#1f6f43; }
.alleco-form-save-state.is-error { color:#b42318; }
.alleco-form-save-state.is-conflict { color:#a15c00; }
@media (max-width:782px){ .alleco-form-draft-toolbar{align-items:flex-start;flex-direction:column;} }


.alleco-form-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}


/* alpha.13.3: logged-in administrator developer test navigation */
.alleco-form-dev-toolbar {
  margin:0 0 16px;
  padding:14px;
  border:1px dashed #8c8f94;
  border-radius:10px;
  background:#f6f7f7;
}
.alleco-form-dev-toolbar__title {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
  font-size:12px;
  line-height:1.6;
}
.alleco-form-dev-toolbar__steps {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.alleco-form-dev-step {
  appearance:none;
  border:1px solid #8c8f94;
  border-radius:999px;
  background:#fff;
  padding:6px 10px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.alleco-form-dev-step.is-current {
  border-color:#2271b1;
  background:#2271b1;
  color:#fff;
}
.alleco-form-dev-toolbar__actions {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:12px;
}
@media (max-width:782px) {
  .alleco-form-dev-toolbar__actions {
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
}


/* alpha.13.5: stable private image cards */
.alleco-image-file-list { margin-top:12px; }
.alleco-image-card-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.alleco-image-file-item {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:0;
  overflow:hidden;
  padding:0;
  border:1px solid #dfe5e2;
  border-radius:10px;
  background:#fff;
  font-size:12px;
}
.alleco-image-file-item__media {
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:#eef2ef;
}
.alleco-image-file-item__media img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.alleco-image-file-item__media.is-preview-unavailable::after {
  content:"プレビューなし";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#69756f;
  font-size:11px;
}
.alleco-image-file-item__body {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  padding:10px;
}
.alleco-image-file-item__name {
  overflow-wrap:anywhere;
  line-height:1.45;
}
.alleco-image-file-item__detail {
  color:#68736e;
  line-height:1.4;
}
.alleco-image-file-item__remove {
  align-self:flex-start;
  margin-top:2px;
}
.alleco-image-file-list__footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}
.alleco-image-private-count {
  margin:0;
  font-weight:700;
}
.alleco-image-remove-all {
  flex:0 0 auto;
}
.alleco-image-preview-only[data-image-busy="1"],
.alleco-image-preview-only[data-image-busy="1"] * {
  cursor:progress;
}
@media (max-width:782px) {
  .alleco-image-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .alleco-image-file-list__footer {
    align-items:flex-start;
    flex-direction:column;
  }
}
@media (max-width:480px) {
  .alleco-image-card-grid { grid-template-columns:1fr 1fr; gap:8px; }
}


/* alpha.13.20: 確認画面からの編集モードをテーマCSSより優先 */
.alleco-form-preview-shell[data-confirmation-edit-mode="1"] .alleco-form-next,
.alleco-form-preview-shell[data-confirmation-edit-mode="1"] .alleco-form-confirm {
  display: none !important;
}
.alleco-form-preview-shell[data-confirmation-edit-mode="1"] .alleco-form-return-confirmation {
  display: inline-flex !important;
}
.alleco-form-preview-shell:not([data-confirmation-edit-mode="1"]) .alleco-form-return-confirmation {
  display: none !important;
}

/* alpha.13.24: expired Draft recovery request */
.alleco-form-recovery-panel { margin:0 0 16px; padding:16px; border:1px solid #d7dfdb; border-radius:12px; background:#fff; }
.alleco-form-recovery-panel > strong { display:block; margin:0 0 6px; font-size:14px; }
.alleco-form-recovery-panel p { margin:6px 0; color:#52615b; font-size:12px; line-height:1.7; }
.alleco-form-recovery-panel__actions { display:flex; gap:8px; align-items:center; margin-top:12px; }
.alleco-form-recovery-panel__actions input[type=email] { flex:1; min-width:0; min-height:40px; padding:8px 10px; border:1px solid #cfd8d4; border-radius:8px; box-sizing:border-box; }
.alleco-form-recovery-panel__status { font-weight:700; }
@media (max-width:782px){ .alleco-form-recovery-panel__actions{align-items:stretch;flex-direction:column;} .alleco-form-recovery-panel__actions .button{width:100%;min-height:44px;} }


/* コピー可能なインラインメッセージUI（管理者E2E／公開フォームエラー共用） */
.alleco-form-dev-dialog {
  margin:12px 0 0;
  padding:12px;
  border:1px solid #8c8f94;
  border-radius:8px;
  background:#fff;
}
.alleco-form-dev-dialog__text {
  margin:0;
  padding:10px;
  border-radius:6px;
  background:#f6f7f7;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:inherit;
  font-size:12px;
  line-height:1.7;
  user-select:text;
  -webkit-user-select:text;
}
.alleco-form-dev-dialog__actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}


/* alpha.13.87: v1.0.3 allergen bulk-select helpers (UI only; stored values remain individual slugs) */
.alleco-form-bulk-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}
.alleco-form-bulk-actions .button {
  min-height:36px;
}
@media (max-width:782px) {
  .alleco-form-bulk-actions { align-items:stretch; flex-direction:column; }
  .alleco-form-bulk-actions .button { width:100%; min-height:44px; }
}
