.photo-focus-open[hidden], .photo-focus:not([open]) { display: none; }
.photo-focus-open { justify-self: start; margin: -8px 0 10px; padding: 7px 0; border: 0; color: var(--accent); background: none; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mobile-home-avatar.is-framed { position: relative; }
.photo-focus {
  width: min(820px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 20px;
  overflow: auto;
  border: 1px solid #303b4a;
  border-radius: 12px;
  color: #f5f7fb;
  background: #161b23;
  box-shadow: 0 24px 80px #0008;
}
.photo-focus[open] { display: grid; gap: 18px; }
.photo-focus::backdrop { background: #090d13dc; backdrop-filter: blur(8px); }
.photo-focus-heading { display: grid; gap: 4px; }
.photo-focus-heading strong { font-size: 19px; line-height: 1.2; }
.photo-focus-heading small { color: #b9c2cf; font-size: 13px; }
.photo-focus-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1.95;
  overflow: hidden;
  border: 1px solid #d8e2f5;
  background: #293646;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.photo-focus-preview.is-dragging { cursor: grabbing; }
.photo-focus-preview img { position: absolute; display: block; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.photo-focus-corner { position: absolute; z-index: 1; width: 24px; height: 24px; pointer-events: none; }
.photo-focus-corner.is-top-left { top: 0; left: 0; border-top: 3px solid #fff; border-left: 3px solid #fff; }
.photo-focus-corner.is-top-right { top: 0; right: 0; border-top: 3px solid #fff; border-right: 3px solid #fff; }
.photo-focus-corner.is-bottom-left { bottom: 0; left: 0; border-bottom: 3px solid #fff; border-left: 3px solid #fff; }
.photo-focus-corner.is-bottom-right { bottom: 0; right: 0; border-bottom: 3px solid #fff; border-right: 3px solid #fff; }
.photo-focus-zoom { display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; align-items: center; gap: 12px; color: #c7d3e3; }
.photo-focus-zoom svg { width: 20px; height: 20px; }
.profile-form .photo-focus-zoom input[type="range"] { width: 100%; min-height: 32px; padding: 0; border: 0; box-shadow: none; background: transparent; accent-color: #76b8ff; }
.photo-focus-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.photo-focus-actions button { min-height: 42px; padding: 0 16px; border: 1px solid #465365; border-radius: 8px; color: #e9f0fa; background: #27313e; font: inherit; font-size: 14px; font-weight: 650; }
.photo-focus-actions #photo-focus-reset { width: 42px; padding: 0; display: grid; place-items: center; }
.photo-focus-actions #photo-focus-reset svg { width: 18px; height: 18px; }
.photo-focus-actions .photo-focus-done { border-color: #4c9fff; color: #fff; background: #1767c8; }
@media (max-width: 600px) {
  .photo-focus { width: calc(100vw - 20px); padding: 16px; }
  .photo-focus[open] { gap: 16px; }
  .photo-focus-heading strong { font-size: 17px; }
  .photo-focus-actions button { padding: 0 12px; }
}
