.tile-camera-fullscreen { inset: auto; top: 50%; left: 50%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-content: normal; transform: translate(-50%, -50%) rotate(calc(-1 * var(--camera-turn, 0deg))); }
.tile-camera-fullscreen[data-sideways="true"] { width: 100dvh; height: 100vw; }
.tile-camera-viewport { position: relative; min-height: 0; overflow: hidden; }
.tile-camera-frame { position: absolute; top: 50%; left: 50%; }
.tile-camera-frame video { object-fit: contain; }
.tile-camera-status { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: min(100%, 440px); padding: 20px; text-align: center; color: white; background: var(--ink); }
.tile-camera-status .camera-side-btn { display: inline-flex; margin: 6px; }
.tile-camera-fullscreen .camera-overlay-top, .tile-camera-fullscreen .camera-overlay-bottom { padding-left: max(20px, var(--camera-safe-left)); padding-right: max(20px, var(--camera-safe-right)); }
.tile-camera-fullscreen .camera-overlay-top { gap: 16px; padding-top: max(16px, var(--camera-safe-top)); }
.tile-camera-tips { margin-right: auto; padding: 0 16px; border: 1px solid rgba(255,253,248,.32); border-radius: 6px; background: rgba(32,42,41,.82); color: var(--paper); font: inherit; cursor: pointer; }
.tile-camera-fullscreen .camera-overlay-bottom { padding-bottom: calc(max(24px, var(--camera-safe-bottom)) + 12px); }
.tile-camera-fullscreen .camera-guide-text { flex: 1; min-width: 0; }
.tile-camera-fullscreen button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.tile-camera-fullscreen button svg { transform: rotate(var(--camera-turn, 0deg)); }
.tile-camera-fullscreen .camera-side-btn { border-color: rgba(255, 253, 248, .32); border-radius: 6px; background: rgba(32, 42, 41, .82); color: var(--paper); }
.tile-camera-fullscreen .camera-close-btn { border-color: rgba(255, 253, 248, .32); background: rgba(32, 42, 41, .82); color: var(--paper); }

.tile-photo-guide-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(23, 31, 29, .76); }
.tile-photo-guide { display: flex; flex-direction: column; width: min(100%, 900px); max-height: min(92dvh, 850px); background: #fffdf8; color: #202a29; box-shadow: 0 22px 70px rgba(24, 31, 27, .25); overflow: auto; }
.tile-photo-guide-header { display: flex; justify-content: space-between; gap: 24px; padding: 30px 32px 22px; }
.tile-photo-guide-header h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -.035em; }
.tile-photo-guide-header p { margin: 0; color: #545c58; line-height: 1.45; }
.tile-photo-guide-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: transparent; color: #202a29; border: 1px solid #bdc4bc; border-radius: 5px; cursor: pointer; }
.tile-photo-guide-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr); gap: 32px; padding: 0 32px 26px; }
.tile-photo-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.tile-photo-examples figure { margin: 0; min-width: 0; }
.tile-photo-examples img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #dddcd8; }
.tile-photo-examples figcaption { margin-top: 8px; color: #545c58; font-size: .8rem; font-weight: 650; }
.tile-photo-guide-tips { list-style: none; padding: 0; margin: 0; }
.tile-photo-guide-tips li { padding: 14px 0; border-top: 1px solid #d9d5ca; }
.tile-photo-guide-tips strong, .tile-photo-guide-tips span { display: block; }
.tile-photo-guide-tips strong { font-size: .98rem; margin-bottom: 4px; }
.tile-photo-guide-tips span { color: #545c58; font-size: .9rem; line-height: 1.4; }
.tile-photo-guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px 26px; border-top: 1px solid #d9d5ca; }
.tile-photo-guide-footer label { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #39413d; font-size: .9rem; cursor: pointer; }
.tile-photo-guide-footer input { width: 19px; height: 19px; accent-color: #1b5b59; }
.tile-photo-guide-next { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 5px; background: #202a29; color: #fffdf8; font: inherit; font-weight: 650; cursor: pointer; }
.tile-photo-guide-next:hover { background: #8f402f; }
.tile-photo-guide :focus-visible { outline: 3px solid #bd6048; outline-offset: 3px; }
@media (max-width: 620px) {
  .tile-photo-guide-backdrop { padding: 0; }
  .tile-photo-guide { width: 100%; max-height: 100dvh; min-height: 100dvh; }
  .tile-photo-guide-header { padding: max(20px, env(safe-area-inset-top)) 20px 16px; }
  .tile-photo-guide-body { grid-template-columns: 1fr; gap: 18px; padding: 0 20px 20px; }
  .tile-photo-examples img { aspect-ratio: 5 / 4; }
  .tile-photo-guide-tips li { padding: 10px 0; }
  .tile-photo-guide-footer { position: sticky; bottom: 0; margin-top: auto; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); background: #fffdf8; }
  .tile-photo-guide-footer label { flex: 1; }
}

.tile-camera-frame{max-height:none}.tile-camera-fullscreen .camera-guide-text{max-width:none}
