/* Reference presentation only. Rendering, export dimensions and bridge stay in app.js. */
:root {
  --bg: #08090e;
  --surface: #10121c;
  --gold: #e7bd55;
  --gold-light: #e9c56d;
  --cream: #f3ead8;
  --muted: #9296a6;
  --subtle: #4e556e;
}
button, input { font-family: inherit; }
.screen { max-width: 440px; }
.top-nav {
  height: 56px;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
}
.nav-title { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.nav-placeholder { width: 36px; }
.tile-back-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #0e111a;
  border-color: #191c28;
}
.tile-back-btn svg { width: 18px; height: 18px; }
.view-landing .landing-content {
  justify-content: flex-start;
  gap: 0;
  width: 100%; max-width: 440px;
  padding: 10px 18px max(18px, env(safe-area-inset-bottom, 0px));
}
.sample-card {
  width: 78%; max-width: 278px;
  aspect-ratio: 1.52;
  border-radius: 7px;
  border: 1px solid #292b39;
  box-shadow: none;
}
.sample-svg { object-fit: contain; }
.landing-text { gap: 9px; margin-top: 12px; }
.landing-headline {
  color: #e8c875;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.17;
}
.gold-gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}
.landing-subtitle {
  max-width: 304px;
  font-size: 12px;
  line-height: 1.65;
  color: #c0bec3;
}
.features-row { max-width: none; gap: 8px; margin-top: 17px; }
.feature-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  min-height: 108px;
  padding: 16px 12px;
  border-radius: 8px;
  border-color: #222430;
  background: #0e1019;
  color: #b8b6c0;
  font-size: 11px;
  line-height: 1.5;
}
.feature-icon { height: 24px; align-items: center; }
.feature-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.upload-box {
  max-width: none;
  min-height: 190px;
  margin-top: 18px;
  padding: 25px 12px 20px;
  gap: 6px;
  border: 1px dashed #363b50;
  border-radius: 7px;
  background: transparent;
}
.upload-icon { margin: 0 0 2px; }
.upload-icon svg { width: 42px; height: 42px; stroke-width: 1.2; }
.upload-title { font-size: 13px; font-weight: 400; color: #c4c1c8; }
.upload-desc { font-size: 10px; color: #7c8296; }
.btn-choose {
  font-size: 11px; font-weight: 400;
  margin-top: 10px;
  padding: 7px 14px;
  color: #d2ae57;
  background: transparent;
  border: 1px solid #222533;
  border-radius: 4px;
}
.landing-footnote {
  max-width: none; width: 100%;
  margin-top: 8px;
  text-align: left;
  font-size: 10px; line-height: 1.55;
}
.btn-dismiss {
  margin-top: 14px;
  padding: 8px 12px;
  font-size: 12px;
  color: #c0b8aa;
  text-decoration: none;
}

/* The photo remains square so displayed coordinates match cap dragging and export. */
.view-editor { display: flex; }
.view-editor .top-nav { padding: 0 18px; }
.btn-use-photo {
  padding: 8px 10px;
  border: 1px solid #3e3523;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 400;
}
.editor-viewport { padding: 0; }
.canvas-stage { max-width: none; }
canvas#cv {
  border: 0;
  border-radius: 5px;
  box-shadow: none;
}
.photo-styler-pill { box-shadow: none; border-color: #33313a; }
.styler-btn { font-size: 10px; }
.styler-btn.active { box-shadow: none; }
#status { padding: 4px 12px; }
.bottom-dock {
  flex-shrink: 0;
  height: calc(128px + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  border: 0;
  background: #0a0b12;
}
.main-toolbar {
  width: 100%; max-width: 320px;
  height: 100%;
  margin: 0 auto;
  padding: 16px 12px;
}
.tool-btn { gap: 8px; }
.tool-icon {
  width: 42px; height: 42px;
  border: 0; border-radius: 10px;
  background: #141824;
}
.design-icon { display: block; object-fit: contain; pointer-events: none; flex-shrink: 0; }
.tool-label { font-size: 11px; font-weight: 400; color: #8a8fa4; }
.tool-btn:hover .tool-icon, .tool-btn.active .tool-icon { box-shadow: none; }
.bottom-dock.expanded-effects, .bottom-dock.expanded-edit,
.bottom-dock.expanded-slider {
  height: calc(216px + env(safe-area-inset-bottom, 0px));
}
.bottom-dock.expanded-effects { height: calc(210px + env(safe-area-inset-bottom, 0px)); }
.bottom-dock.expanded-edit { height: calc(228px + env(safe-area-inset-bottom, 0px)); }
/* In the supplied panel states the native status bar sits directly above the photo.
   Closing a panel restores the existing editor header and its export control. */
.view-editor:has(.expanded-effects, .expanded-edit) > .top-nav { display: none; }
.view-editor:has(.expanded-edit) .photo-styler-pill { display: none; }
.view-editor:has(.expanded-effects) .photo-styler-pill {
  bottom: 24px;
  padding: 3px;
  gap: 2px;
  border: 0;
  background: #07090e;
}
.view-editor:has(.expanded-effects) .styler-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 400;
  color: #f3ead8;
  white-space: nowrap;
}
.view-editor:has(.expanded-effects) .styler-btn.active { color: #15130c; }
.bottom-dock:is(.expanded-effects, .expanded-edit, .expanded-slider, .expanded-crop) .main-toolbar {
  visibility: hidden;
}
.drawer {
  padding: 18px 20px max(20px, env(safe-area-inset-bottom, 0px));
  background: #080910;
}
.drawer-handle { width: 40px; height: 3px; min-height: 3px; margin-bottom: 14px; background: #515e81; }
.drawer-action-bar { flex-shrink: 0; height: 42px; padding: 0; margin-top: 14px; }
.circle-btn { width: 42px; height: 42px; box-shadow: none; }
.btn-cancel { background: #49516e; color: #a2a9be; }
.btn-confirm { background: #f5ecd9; color: #29282c; }
.drawer-title { font-size: 13px; font-weight: 400; color: #858ca3; }
.drawer-effects { padding: 10px 0 max(24px, env(safe-area-inset-bottom, 0px)); }
.drawer-effects .drawer-handle { display: none; }
.drawer-effects .drawer-action-bar { margin: 0 24px; }
.effects-carousel {
  flex-shrink: 0;
  gap: 6px;
  padding: 0 16px;
  min-height: 80px;
  align-items: flex-start;
}
.effect-card, .effect-card.active {
  position: relative;
  flex: 0 0 102px;
  width: 102px; height: 80px;
  gap: 8px;
  padding: 12px 4px 10px;
  border: 1px solid #272935;
  border-radius: 6px;
  background: #0e1019;
  box-shadow: none;
}
.effect-card.active {
  border-color: #e7bd55;
  background: #211d16;
}
.effect-icon { width: 36px; height: 32px; flex-shrink: 0; }
.effect-name {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #eee4d0;
  white-space: nowrap;
}
.effect-card.active .effect-name { font-weight: 400; color: #eee4d0; }
.drawer-edit { padding: 20px 24px max(24px, env(safe-area-inset-bottom, 0px)); }
.drawer-edit .drawer-handle { width: 42px; height: 4px; min-height: 4px; margin-bottom: 0; background: #49516e; }
.edit-tools-row {
  display: flex;
  justify-content: space-between;
  gap: 12px; margin: 20px 0 0;
  min-height: 76px;
  overflow-x: auto;
  scrollbar-width: none;
}
.edit-tool-item { flex: 0 0 66px; gap: 10px; padding: 0; }
.edit-tool-label { font-size: 12px; font-weight: 400; color: #8b8da2; }
.edit-tool-icon { width: 44px; height: 44px; }
.edit-tool-icon svg { width: 38px; height: 38px; stroke-width: 1; }
.drawer-slider { justify-content: flex-start; }
.slider-header { margin: 12px 0 14px; padding: 0; }
.slider-header .tile-back-btn { width: 32px; height: 32px; border-radius: 50%; background: transparent; }
.slider-title { font-size: 14px; font-weight: 400; color: #ede7dc; }
.slider-placeholder { width: 32px; height: 32px; }
.slider-body { padding: 0 2px; }
.figma-slider {
  height: 2px;
  background: #343b52;
  margin: 17px 0;
}
.figma-slider::-webkit-slider-thumb { width: 24px; height: 24px; background: #e6bc53; box-shadow: none; }
.figma-slider::-moz-range-thumb { width: 24px; height: 24px; background: #e6bc53; box-shadow: none; }
.bottom-dock.expanded-crop { height: calc(176px + env(safe-area-inset-bottom, 0px)); }
.drawer-crop { padding-top: 10px; gap: 6px; }
.drawer-crop .drawer-handle { margin-bottom: 2px; }
.drawer-crop .drawer-action-bar { margin-top: 0; }
@media (max-height: 700px) {
  .bottom-dock { height: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .bottom-dock.expanded-effects, .bottom-dock.expanded-edit,
  .bottom-dock.expanded-slider { height: calc(194px + env(safe-area-inset-bottom, 0px)); }
  .drawer { padding-top: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
