/* 物件登録（自動3D化） */
.admin { display: grid; grid-template-columns: minmax(360px, 480px) 1fr; gap: 16px; padding: 16px; max-width: 1500px; margin: 0 auto; }
.admin h1 { font-size: 20px; margin-bottom: 4px; }
.admin .lead { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.col.input { display: flex; flex-direction: column; gap: 12px; }
.step { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.step-h { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.step-h .n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; align-items: center; justify-content: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
textarea.input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.meta-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.meta-form .field.full { grid-column: 1 / -1; }
.meta-form .input, .meta-form .select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.meta-form .field.warn .input { border-color: #f7d28f; background: #fff9ec; }
.drop { border: 2px dashed #c9d2e0; border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; background: var(--panel-2); position: relative; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop img { max-width: 100%; max-height: 360px; border-radius: 8px; display: block; margin: 0 auto; }
.drop img:not([hidden]) + .drop-in, .drop:has(img:not([hidden])) .drop-in { display: none; }
.plan-box img { max-width: 100%; max-height: 300px; border-radius: 8px; display: block; border: 1px solid var(--line); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photos .ph { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel-2); font-size: 11px; }
.photos .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photos .ph .cat { position: absolute; left: 4px; top: 4px; background: rgba(31,36,48,.78); color: #fff; padding: 1px 6px; border-radius: 999px; font-size: 10px; }
.photos .ph .cat.interior { background: var(--accent); }
.photos .ph .cat.floorplan { background: var(--pink); }
.photos .ph .cat.unknown { background: var(--warm); }
.photos .ph .body { padding: 4px 6px; display: flex; flex-direction: column; gap: 3px; }
.photos .ph input, .photos .ph select { width: 100%; font-size: 11px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px; }
.photos .ph .x { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(31,36,48,.7); color: #fff; font-size: 11px; line-height: 20px; padding: 0; }
.registered { display: flex; flex-direction: column; gap: 6px; }
.registered .item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.registered .item .nm { flex: 1; }
.registered .empty { color: var(--muted); font-size: 12px; }

.col.preview { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 66px; align-self: start; }
.col.preview .stage { position: relative; height: 62vh; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: #dfe7f0; box-shadow: var(--shadow); }
.col.preview .stage .scene { width: 100%; height: 100%; display: block; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; pointer-events: none; }
.result { padding: 12px 14px; }
.result-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.report { display: flex; flex-direction: column; gap: 4px; max-height: 26vh; overflow: auto; font-size: 12px; }
.report .it { display: flex; gap: 8px; align-items: flex-start; padding: 4px 6px; border-radius: 6px; background: var(--panel-2); }
.report .it .k { flex: none; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; color: #fff; margin-top: 2px; }
.report .it.fixed .k { background: var(--ok); }
.report .it.dropped .k { background: var(--warm); }
.report .it.warn .k { background: #9ca3af; }
.report .it.error .k { background: var(--danger); }
.report .it.error { background: #fff1f1; }
.editor { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.ed-toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-toolbar .seg.sm button { padding: 4px 8px; font-size: 12px; }
.ed-sel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-sel .input, .ed-sel .select { padding: 4px 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; }
.ed-sel .input[type=number] { width: 70px; }
#ed-canvas { width: 100%; aspect-ratio: 1000 / 640; border: 1px solid var(--line); border-radius: 8px; background: #f7f8fa; touch-action: none; outline: none; }
.ok-banner { padding: 8px 10px; border-radius: 8px; background: #ecfdf5; color: #065f46; font-size: 13px; font-weight: 600; }
.ng-banner { padding: 8px 10px; border-radius: 8px; background: #fff1f1; color: #991b1b; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .col.preview { position: static; }
  .col.preview .stage { height: 52vh; }
}
