:root {
  color-scheme: dark;
  --ink: #f5f5f2;
  --muted: #898b90;
  --panel: #111214;
  --line: #292a2d;
  --accent: #e8c52d;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #08090a;
}

* { box-sizing: border-box; }
button, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; }
body { min-width: 320px; overflow: hidden; background: #08090a; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell {
  display: flex;
  width: min(100%, 520px);
  height: 100vh;
  height: 100dvh;
  min-height: 580px;
  flex-direction: column;
  gap: 7px;
  margin: 0 auto;
  overflow: hidden;
  padding: max(8px, env(safe-area-inset-top)) 14px max(7px, env(safe-area-inset-bottom));
  background: #0a0b0d;
}

.topbar, .brand, .topbar-status, .studio-heading, .camera-controls,
.looks-heading, .pose-card, .camera-topbar {
  display: flex;
  align-items: center;
}
.topbar { height: 34px; flex: 0 0 34px; justify-content: space-between; }
.topbar-actions { display: flex; min-width: 0; align-items: center; gap: 8px; }
.brand {
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 800 17px/1 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -.8px;
}
.brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9px 9px 9px 3px;
  background: var(--accent);
  color: #141414;
  font: 800 19px/1 "Manrope", "Segoe UI", sans-serif;
  transform: rotate(-7deg);
}
.brand-dot { color: var(--accent); }
.topbar-status { gap: 6px; color: #a7a9ac; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #84be76; box-shadow: 0 0 8px #84be7680; }
.header-horizon {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.86);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .55px;
  box-shadow: inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.header-horizon > span:first-child { color: #d7d9d4; font-size: 14px; }
.header-horizon[aria-pressed="true"] { border-color: #e8c52d5c; background: rgba(232,197,45,.075); color: #f0d95e; }
.header-horizon[aria-pressed="true"] > span:first-child { color: #f0d95e; }
.header-download, .camera-switch, .shuffle-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #eee;
  cursor: pointer;
}
.header-download { width: 34px; height: 34px; }
.header-download svg, .camera-switch svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.header-download:disabled { color: #45464a; cursor: default; }
.header-download:not(:disabled) { color: var(--accent); }
button:focus-visible, label:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.studio { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 6px; }
.studio-heading { min-height: 34px; flex: 0 0 34px; justify-content: space-between; }
.eyebrow, .pose-label, .looks-heading h2 {
  margin: 0;
  color: #97999d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.35px;
}
.studio-heading h1 { margin: 3px 0 0; font: 650 15px/1.1 "Manrope", "Segoe UI", sans-serif; letter-spacing: -.3px; }
.mode-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid #ffffff20; border-radius: 18px; background: linear-gradient(145deg, #ffffff1a, #ffffff06); box-shadow: inset 0 1px #ffffff18, 0 4px 14px #0005; backdrop-filter: blur(18px) saturate(155%); }
.mode-switch button { padding: 6px 9px; border: 0; border-radius: 13px; background: transparent; color: #888a8e; cursor: pointer; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.mode-switch button.active { background: #292a2d; color: var(--accent); }
.studio.video-mode-active .mode-switch button.active { background: #cf4545; color: white; }
.studio.video-mode-active .shutter span { background: #ff5959; }

.camera-frame {
  position: relative;
  display: grid;
  min-height: 210px;
  flex: 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(145deg, #17191c, #0b0c0e);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 14px 36px rgba(0,0,0,.2);
}
#camera, #photo-canvas, #media-preview { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
#camera.is-visible, #photo-canvas.is-visible, #media-preview.is-visible { display: block; }
#camera { transition: filter .12s ease; }
.empty-state { z-index: 1; padding: 18px; text-align: center; }
.empty-art { width: 100px; margin: 0 auto 2px; opacity: .8; }
.empty-art svg { display: block; width: 100%; height: auto; }
.empty-title { margin: 0 0 10px; color: #f3f1ec; font: 600 13px "Manrope", "Segoe UI", sans-serif; }
.start-camera-button {
  padding: 9px 14px;
  border: 1px solid #454448;
  border-radius: 22px;
  background: rgba(15, 15, 16, .78);
  color: #f5f5f2;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}
.start-camera-button span { padding-left: 7px; color: var(--accent); }
.empty-copy { margin: 8px 0 0; color: #8d8e92; font-size: 9px; }

.camera-ui { position: absolute; z-index: 2; display: none; inset: 0; color: white; pointer-events: none; }
.camera-ui.is-active { display: block; }
.camera-topbar { position: absolute; z-index: 2; top: 10px; right: 10px; left: 10px; justify-content: space-between; gap: 7px; }
.camera-chip, .camera-icon-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025)), rgba(13,14,15,.24);
  color: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
  pointer-events: auto;
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 4px 12px rgba(0,0,0,.24);
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
}
.camera-chip[aria-pressed="true"], .camera-icon-button[aria-pressed="true"] { color: var(--accent); }
.camera-icon-button { width: 29px; padding: 0; font-size: 15px; }
.composition-grid { position: absolute; inset: 0; }
.composition-grid.is-hidden { display: none; }
.composition-grid i { position: absolute; display: block; background: rgba(255,255,255,.27); }
.composition-grid .vertical { top: 0; bottom: 0; width: 1px; }
.composition-grid .horizontal { right: 0; left: 0; height: 1px; }
.composition-grid .left-third { left: 33.333%; }
.composition-grid .right-third { left: 66.667%; }
.composition-grid .top-third { top: 33.333%; }
.composition-grid .bottom-third { top: 66.667%; }
.horizon-guide { position: absolute; top: 50%; left: 50%; display: none; width: 82%; align-items: center; transform: translate(-50%, -50%); }
.horizon-guide.is-visible { display: flex; }
.timer-countdown { position: absolute; z-index: 4; top: 50%; left: 50%; color: white; font: 700 72px/1 "Manrope", "Segoe UI", sans-serif; text-shadow: 0 2px 20px #000b; transform: translate(-50%, -50%); pointer-events: none; }
.horizon-rule { position: relative; width: 100%; border-top: 2px solid rgba(255,255,255,.84); filter: drop-shadow(0 1px 2px #222); }
.horizon-rule::after { position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; background: var(--accent); content: ""; transform: translateX(-50%); }
.horizon-reading { position: absolute; top: 12px; left: 50%; padding: 3px 6px; border-radius: 9px; background: rgba(12,13,14,.72); font-size: 9px; transform: translateX(-50%); }
.zoom-controls { position: absolute; bottom: 10px; left: 50%; display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(12,13,14,.72); transform: translateX(-50%); pointer-events: auto; }
.zoom-controls button { min-width: 32px; height: 25px; border: 0; border-radius: 15px; background: transparent; color: white; cursor: pointer; font-size: 9px; }
.zoom-controls button.active { background: var(--accent); color: #151515; font-weight: 800; }
.pro-panel { position: absolute; z-index: 3; top: 46px; right: 10px; left: 10px; display: grid; max-height: calc(100% - 58px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; overflow-y: auto; padding: 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.018)), rgba(12,13,14,.62); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 16px 38px rgba(0,0,0,.3); backdrop-filter: blur(28px) saturate(185%); -webkit-backdrop-filter: blur(28px) saturate(185%); pointer-events: auto; scrollbar-color: #ffffff30 transparent; }
.pro-section-title { grid-column: 1 / -1; margin-top: 2px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.12); color: #e3e3df; font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.pro-panel > div, .pro-panel label, .settings-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.pro-panel span { color: #cfced0; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.pro-panel strong { color: var(--accent); font-size: 10px; }
.pro-panel small { color: #a2a3a6; font-size: 8px; line-height: 1.3; }
.pro-panel input { width: 100%; height: 14px; margin: 0; accent-color: var(--accent); }
.pro-panel select { width: 100%; min-width: 0; padding: 6px 7px; border: 1px solid #ffffff24; border-radius: 9px; background: rgba(18,19,21,.78); color: #eee; font-size: 9px; }
.pro-panel select:disabled { color: #aaa; opacity: .76; }
.flash-control { align-items: flex-start; padding: 0; border: 0; background: transparent; text-align: left; }
.flash-control:not(:disabled) strong { color: var(--accent); }
.frame-badge { position: absolute; z-index: 3; right: 9px; bottom: 10px; display: none; padding: 6px 9px; border: 1px solid #ffffff40; border-radius: 18px; background: #101113cc; color: #ddd; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.frame-badge.is-visible { display: block; }
.frame-badge span { color: var(--accent); }
.camera-message { min-height: 13px; flex: 0 0 13px; overflow: hidden; margin: 0; color: #b6b7ba; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.camera-controls { display: grid; height: 72px; flex: 0 0 72px; grid-template-columns: 1fr 74px 1fr; align-items: center; justify-items: center; }
.gallery-button { display: flex; width: 52px; justify-self: start; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #a6a7aa; cursor: pointer; font-size: 7px; font-weight: 700; letter-spacing: .65px; }
.gallery-icon-wrap { position: relative; display: grid; width: 24px; height: 24px; place-items: center; }
.gallery-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.gallery-count { position: absolute; top: -3px; right: -5px; display: grid; min-width: 13px; height: 13px; place-items: center; padding: 0 3px; border-radius: 8px; background: var(--accent); color: #161616; font-size: 7px; font-weight: 800; }
#photo-input { display: none; }
.shutter {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  place-items: center;
  border: 3px solid #d5d5d5;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 0 5px #fff3, 0 0 0 1px #0006, 0 6px 18px #0008;
}
.shutter span { width: 55px; height: 55px; border-radius: 50%; background: #f6f6f4; transition: transform .12s ease; box-shadow: inset 0 -3px 6px #0002; }
.shutter:not(:disabled):active span { transform: scale(.88); }
.shutter.is-recording { border-color: #ff6666; box-shadow: 0 0 0 4px #ff5b5b28, 0 0 20px #ff5b5b35; }
.shutter.is-recording span { width: 22px; height: 22px; border-radius: 5px; background: #ff5353; }
button:disabled { cursor: not-allowed; opacity: .4; }
.camera-switch { width: 48px; height: 48px; justify-self: end; color: #ddd; }
.camera-switch svg { width: 21px; height: 21px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.retake-button { align-self: center; padding: 3px 6px; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .8px; }

.looks-section { flex: 0 0 auto; padding: 2px 0 0; }
.looks-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 7px; }
.looks-heading span { color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.preset-list { display: flex; gap: 7px; overflow-x: auto; padding: 0 1px 2px; scrollbar-width: none; }
.preset-list::-webkit-scrollbar { display: none; }
.preset {
  display: flex;
  min-width: 54px;
  flex: 1 0 54px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 3px 2px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.preset.active { border-color: #e8c52d70; background: #ffffff08; }
.preset-swatch { display: block; width: 29px; height: 29px; border: 1px solid #ffffff1a; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #c7a781 0 24%, #684f3e 25% 52%, #8a9b88 53% 100%); }
.swatch-golden { filter: sepia(.35) saturate(1.3); background-image: radial-gradient(circle at 50% 40%, #efd0a0 0 24%, #ac704b 25% 52%, #c2a16b 53% 100%); }
.swatch-soft { filter: brightness(1.09) saturate(.8); background-image: radial-gradient(circle at 50% 40%, #e9d8c9 0 24%, #a88470 25% 52%, #c2b9ae 53% 100%); }
.swatch-horizon { filter: saturate(.88) hue-rotate(-8deg) contrast(1.07); background-image: radial-gradient(circle at 50% 40%, #e9d8ba 0 24%, #775b49 25% 52%, #64847d 53% 100%); }
.swatch-classic { filter: grayscale(1); background-image: radial-gradient(circle at 50% 40%, #ddd 0 24%, #666 25% 52%, #aaa 53% 100%); }
.preset-name { color: #aaa; font-size: 8px; font-weight: 600; white-space: nowrap; }
.preset.active .preset-name { color: var(--accent); }

.pose-card { min-height: 60px; flex: 0 0 60px; gap: 10px; padding: 8px 10px; border: 1px solid #242528; border-radius: 10px; background: #111214; }
.pose-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: #23221c; color: var(--accent); font-size: 16px; }
.pose-content { min-width: 0; flex: 1; }
.pose-label { margin: 0 0 3px; color: var(--accent); font-size: 7px; letter-spacing: .8px; }
#pose-number { padding-left: 4px; color: #77787d; }
.pose-content h2 { overflow: hidden; margin: 0 0 2px; font: 600 10px "Manrope", "Segoe UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.pose-content > p:last-child { overflow: hidden; margin: 0; color: #96979b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.shuffle-button { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #333438; color: #c9c9c7; font-size: 17px; }

.gallery-modal { position: fixed; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; }
.gallery-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(2,3,5,.58); backdrop-filter: blur(9px); }
.gallery-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 520px);
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: max(12px, env(safe-area-inset-top)) 16px max(78px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(38,40,44,.96), rgba(8,9,11,.96) 48%, rgba(18,19,22,.96));
  box-shadow: 0 -18px 70px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(30px) saturate(170%);
}
.gallery-handle { width: 34px; height: 4px; flex: 0 0 4px; align-self: center; margin: 0 0 13px; border-radius: 4px; background: #ffffff55; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; }
.gallery-header .eyebrow { color: #aeb0b4; font-size: 7px; }
.gallery-header h2 { margin: 4px 0 0; font: 650 20px "Manrope", "Segoe UI", sans-serif; letter-spacing: -.5px; }
.gallery-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #ffffff24; border-radius: 50%; background: #ffffff12; color: white; cursor: pointer; font-size: 22px; }
.gallery-tabs { display: flex; gap: 7px; margin: 15px 0 11px; }
.gallery-tabs button { padding: 7px 12px; border: 1px solid #ffffff18; border-radius: 18px; background: #ffffff0b; color: #b7b8bb; cursor: pointer; font-size: 9px; font-weight: 700; }
.gallery-tabs button.active { border-color: #e8c52d80; background: #e8c52d1a; color: var(--accent); }
.gallery-grid { display: grid; min-height: 0; flex: 1; grid-auto-flow: dense; grid-auto-rows: clamp(72px, 22vw, 125px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; overflow-y: auto; padding: 1px 1px 15px; scrollbar-color: #ffffff30 transparent; }
.gallery-item { position: relative; overflow: hidden; min-width: 0; min-height: 0; border: 1px solid #ffffff26; border-radius: 7px; background: #26272a; cursor: pointer; box-shadow: inset 0 1px #ffffff1a; }
.gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(7n + 4) { grid-column: span 2; }
.gallery-item:nth-child(11n + 6) { grid-row: span 2; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-item.video { background: linear-gradient(145deg, #36353a, #17181b); }
.gallery-item.video img { opacity: .66; }
.gallery-video-icon { position: absolute; top: 50%; left: 50%; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #ffffff65; border-radius: 50%; background: #11131895; color: white; font-size: 13px; transform: translate(-50%, -50%); }
.gallery-video-tag { position: absolute; right: 5px; bottom: 5px; padding: 3px 5px; border-radius: 5px; background: #101114c9; color: white; font-size: 7px; font-weight: 700; }
.gallery-empty { display: flex; min-height: 150px; flex: 1; flex-direction: column; align-items: center; justify-content: center; color: #c1c2c5; text-align: center; }
.gallery-empty > span { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid #ffffff1a; border-radius: 14px; background: #ffffff0b; color: var(--accent); font-size: 20px; }
.gallery-empty p { margin: 10px 0 4px; font-size: 11px; font-weight: 700; }
.gallery-empty small { color: #929398; font-size: 9px; }
.gallery-footer { position: absolute; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); left: 0; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.gallery-album-pill, .import-button { border: 1px solid #ffffff27; background: linear-gradient(135deg, #ffffff1b, #ffffff09); box-shadow: inset 0 1px #ffffff18, 0 8px 26px #0007; backdrop-filter: blur(24px) saturate(160%); }
.gallery-album-pill { display: flex; min-height: 43px; align-items: center; gap: 8px; padding: 0 14px; border-radius: 24px; color: #f3f3f2; font-size: 8px; font-weight: 800; letter-spacing: .6px; pointer-events: auto; }
.gallery-album-pill > span { color: var(--accent); font-size: 14px; }
.gallery-album-pill strong { margin-left: 4px; color: #a6a7aa; font-size: 7px; font-weight: 700; }
.import-button { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; margin-left: 8px; border-radius: 50%; color: var(--accent); cursor: pointer; font-size: 21px; pointer-events: auto; }

.video-viewer { position: fixed; z-index: 30; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(2,3,5,.88); backdrop-filter: blur(22px); }
.video-viewer-panel {
  display: flex;
  width: min(100%, 520px);
  height: 100dvh;
  flex-direction: column;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  border: 1px solid #ffffff1c;
  background:
    radial-gradient(ellipse at 50% 30%, #ffffff12, transparent 55%),
    linear-gradient(150deg, #202226, #090a0c 54%, #17191c);
  box-shadow: inset 0 1px #ffffff20, 0 20px 70px #0009;
}
.video-viewer-header { display: flex; min-height: 45px; flex: 0 0 45px; align-items: center; justify-content: space-between; }
.video-viewer-header .eyebrow { color: #a4a6aa; font-size: 7px; }
.video-viewer-header h2 { overflow: hidden; max-width: 350px; margin: 4px 0 0; font: 600 14px "Manrope", "Segoe UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.video-player-stage { display: grid; min-height: 0; flex: 1; place-items: center; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 14px; background: #030405; box-shadow: inset 0 0 40px #000; }
#video-viewer-player { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-viewer-meta { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 8px; color: #aaa; font-size: 8px; }
.viewer-glass-badge { padding: 6px 9px; border: 1px solid #ffffff1e; border-radius: 20px; background: linear-gradient(135deg, #ffffff1b, #ffffff08); color: #d7d8d9; font-size: 7px; font-weight: 700; letter-spacing: .7px; backdrop-filter: blur(18px); }
.viewer-download { display: flex; min-height: 46px; flex: 0 0 46px; align-items: center; justify-content: center; gap: 9px; border: 1px solid #e8c52d68; border-radius: 16px; background: linear-gradient(120deg, #e8c52d28, #ffffff0c); color: #f0d95e; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .8px; box-shadow: inset 0 1px #ffffff19, 0 8px 22px #0006; backdrop-filter: blur(20px); }
.viewer-download svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

@media (min-width: 600px) {
  body { display: grid; place-items: center; background: #050607; }
  .app-shell { height: min(900px, 100dvh); border-right: 1px solid #1b1c1e; border-left: 1px solid #1b1c1e; }
  .gallery-sheet { width: min(100%, 520px); height: min(900px, 100dvh); border: 1px solid #ffffff20; border-radius: 22px; }
  .gallery-grid { grid-auto-rows: clamp(86px, 12vw, 150px); }
  .video-viewer-panel { height: min(900px, 100dvh); border-radius: 22px; }
}

@media (max-width: 400px) {
  .topbar-actions { gap: 5px; }
  .topbar-status { gap: 4px; font-size: 7px; letter-spacing: .45px; }
  .header-horizon { width: 29px; padding: 0; }
  .horizon-label { display: none; }
  .looks-heading { font-size: 8px; }
  .pose-card { padding: 6px 8px; }
}

/* iPhone SE & kleine Displays: kompakteres Layout, damit shutter & gallery erreichbar bleiben */
@media (max-height: 700px) {
  .app-shell { min-height: 0; gap: 4px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .topbar { height: 30px; flex-basis: 30px; }
  .camera-frame { min-height: 140px; }
  .studio-heading { min-height: 28px; flex-basis: 28px; }
  .camera-controls { height: 56px; flex-basis: 56px; }
  .shutter { width: 50px; height: 50px; flex-basis: 50px; }
  .shutter span { width: 39px; height: 39px; }
  .pose-card { min-height: 50px; flex-basis: 50px; }
  .camera-message { min-height: 11px; flex-basis: 11px; font-size: 8px; }
}

@media (max-height: 560px) {
  .app-shell { gap: 2px; }
  .camera-frame { min-height: 110px; }
  .studio-heading { min-height: 24px; flex-basis: 24px; }
  .camera-controls { height: 48px; flex-basis: 48px; }
  .shutter { width: 44px; height: 44px; flex-basis: 44px; }
  .shutter span { width: 33px; height: 33px; }
  .pose-card { min-height: 44px; flex-basis: 44px; }
  .topbar { height: 26px; flex-basis: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
