:root {
  color-scheme: dark;
  --app-height: 100dvh;
  --stage-height: clamp(260px, 34vh, 360px);
  --action-row-height: 128px;
  --mode-switch-height: 42px;
  --bg: #050608;
  --panel: rgba(19, 22, 26, 0.92);
  --panel-soft: rgba(24, 28, 34, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #b5bfcc;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --teal: #15d1b0;
  --teal-deep: #0c7669;
  --purple: #8d61ff;
  --purple-deep: #41236f;
  --gold: #f7b70a;
  --gold-deep: #6a4610;
  --orange: #f2ab17;
  --orange-deep: #65430f;
  --danger: #ff5a73;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at top, rgba(42, 52, 69, 0.4), transparent 38%),
    radial-gradient(circle at bottom left, rgba(20, 135, 115, 0.18), transparent 25%),
    #050608;
  color: var(--text);
  font-family:
    "Avenir Next",
    "Segoe UI",
    sans-serif;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

body {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
}

.app-shell {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 480px);
  height: var(--app-height);
  max-height: var(--app-height);
  padding:
    calc(var(--safe-top) + 14px)
    calc(var(--safe-right) + 16px)
    max(calc(var(--safe-bottom) + 24px), 32px)
    calc(var(--safe-left) + 16px);
  overflow: hidden;
}

.screen {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  row-gap: 12px;
  align-content: stretch;
}

.topbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.topbar__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
}

.icon {
  display: block;
}

.glyph {
  width: 26px;
  height: 26px;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.glyph--arrow-left {
  width: 24px;
  height: 24px;
  mask-image: url("./assets/icons/arrow.left.svg");
  -webkit-mask-image: url("./assets/icons/arrow.left.svg");
}

.glyph--ellipsis {
  width: 22px;
  height: 22px;
  mask-image: url("./assets/icons/ellipsis.svg");
  -webkit-mask-image: url("./assets/icons/ellipsis.svg");
}

.glyph--trash {
  width: 26px;
  height: 26px;
  mask-image: url("./assets/icons/trash.svg");
  -webkit-mask-image: url("./assets/icons/trash.svg");
}

.glyph--photo {
  mask-image: url("./assets/icons/photo.svg");
  -webkit-mask-image: url("./assets/icons/photo.svg");
}

.glyph--video {
  mask-image: url("./assets/icons/video.svg");
  -webkit-mask-image: url("./assets/icons/video.svg");
}

.glyph--bolt-fill {
  width: 15px;
  height: 15px;
  mask-image: url("./assets/icons/bolt.fill.svg");
  -webkit-mask-image: url("./assets/icons/bolt.fill.svg");
}

.glyph--document {
  mask-image: url("./assets/icons/document.svg");
  -webkit-mask-image: url("./assets/icons/document.svg");
}

.glyph--camera-switch {
  width: 22px;
  height: 22px;
  mask-image: url("./assets/icons/arrow.trianglehead.2.clockwise.rotate.90.camera.svg");
  -webkit-mask-image: url("./assets/icons/arrow.trianglehead.2.clockwise.rotate.90.camera.svg");
}

.menu-wrap {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 17, 21, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 20;
}

.menu button {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: none;
}

.context-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.context-card select {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  width: 100%;
  height: 100%;
  appearance: none;
}

.playmaker-card {
  background: linear-gradient(135deg, rgba(242, 171, 23, 0.35), rgba(101, 67, 15, 0.8));
}

.checkpoint-card {
  background: linear-gradient(135deg, rgba(141, 97, 255, 0.3), rgba(65, 35, 111, 0.9));
}

.context-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 205, 73, 0.95);
  color: #161616;
  font-size: 1.7rem;
  flex: none;
}

.checkpoint-card .context-card__icon {
  background: transparent;
  color: #fff;
  font-size: 2rem;
}

.context-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.context-card__label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.context-card__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.context-card__chevron {
  margin-left: auto;
  font-size: 1.8rem;
}

.capture-stage {
  position: relative;
  flex: none;
  min-height: var(--stage-height);
  height: var(--stage-height);
  max-height: var(--stage-height);
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

.stage-shell {
  position: relative;
  flex: none;
}

.camera-panel,
.note-panel {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(11, 14, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
  will-change: opacity, transform, filter;
}

.camera-preview,
.media-preview,
.camera-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
  will-change: opacity, transform, filter;
}

.camera-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at center, rgba(18, 131, 111, 0.14), transparent 44%);
}

.camera-empty p {
  display: none;
}

.stage-panel.is-inactive {
  opacity: 0;
  transform: scale(0.985);
  filter: saturate(0.88);
  pointer-events: none;
}

.stage-panel:not(.is-inactive) {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.stage-media.is-hidden {
  opacity: 0;
  transform: scale(1.01);
  filter: saturate(0.88);
  pointer-events: none;
}

.stage-media:not(.is-hidden) {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.media-preview {
  background: #050608;
}

.camera-chip,
.recording-pill {
  pointer-events: auto;
}

.camera-chip {
  position: absolute;
  top: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 14, 19, 0.82);
  color: #fff;
  font-weight: 700;
}

.camera-chip--left {
  left: 12px;
  display: inline-flex;
  align-items: center;
}

.camera-chip--right {
  right: 12px;
  width: 42px;
  display: grid;
  place-items: center;
}

.capture-caption {
  min-height: 18px;
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.46);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.capture-button {
  flex: none;
  width: 110px;
  height: 110px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background: transparent;
}

.capture-button--photo {
}

.capture-button__inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #0ba68e);
  position: relative;
  transition:
    background 180ms ease,
    border-radius 180ms ease,
    transform 180ms ease;
}

.capture-button.is-video-mode .capture-button__inner {
  background: linear-gradient(135deg, #ff4fd8, #c021a6);
}

.capture-button.is-video-mode.is-recording .capture-button__inner {
  background: linear-gradient(135deg, #ff3fd1, #9f1486);
  border-radius: 10px;
  transform: scale(0.98);
}

.capture-button.is-note-mode .capture-button__inner {
  background: linear-gradient(135deg, #f6c21a, #e0a100);
}

.capture-button.is-note-mode .capture-button__inner::before,
.capture-button.is-note-mode .capture-button__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #111;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.capture-button.is-note-mode .capture-button__inner::before {
  width: 30px;
  height: 4px;
}

.capture-button.is-note-mode .capture-button__inner::after {
  width: 4px;
  height: 30px;
}

.recording-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.recording-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4a5f;
}

.status-banner-slot {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0;
  z-index: 1;
}

.status-banner {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  border-radius: 32px;
  background: rgba(22, 26, 33, 0.9);
  color: var(--text);
  border: 0px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(-208px);
  transition:
    opacity 220ms ease,
    transform 280ms ease;
  pointer-events: none;
}

.status-banner.is-visible {
  opacity: 1;
  transform: translateY(-90px);
}

.status-banner.is-exiting {
  opacity: 0;
  transform: translateY(-90px);
}

.note-panel {
  display: flex;
  align-items: stretch;
  /* padding: 18px; */
}

.note-panel textarea {
  flex: 1 1 auto;
  font-size: 2.618rem; 
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  resize: none;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.note-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.action-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 18px;
  min-height: var(--action-row-height);
  height: var(--action-row-height);
  flex: none;
  overflow: hidden;
}

.action-row.is-capture {
  grid-template-columns: 72px 1fr 72px;
}

.action-row.is-editing {
  grid-template-columns: 1fr auto 1fr;
}

.recent-stack,
.camera-switch-button,
.save-note-button,
.done-button,
.delete-capture-button {
  min-height: 48px;
}

.recent-stack {
  position: relative;
  width: 92px;
  height: 72px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  overflow: hidden;
  z-index: 1;
}

.recent-stack__layers {
  position: absolute;
  inset: 0;
}

.recent-stack__card {
  position: absolute;
  top: 8px;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 26, 31, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  transform-origin: center center;
  transition:
    transform 260ms ease,
    opacity 260ms ease,
    box-shadow 260ms ease;
}

.recent-stack__card img,
.recent-stack__card video,
.recent-stack__card span {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recent-stack__card span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(141, 97, 255, 0.92), rgba(65, 35, 111, 1));
  /* font-weight: 700; */
}

.recent-stack__video {
  display: flex !important;
  align-items: end !important;
  justify-content: flex-start !important;
  padding: 8px 7px;
  background: linear-gradient(135deg, rgba(141, 97, 255, 0.92), rgba(65, 35, 111, 1));
  color: #fff;
  font-size: 0.55rem;
  line-height: 1.08;
  text-align: left;
}

.recent-stack__card .recent-stack__note {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px 7px;
  background: linear-gradient(135deg, #f6c21a, #e0a100);
  color: #111;
  font-size: 0.55rem;
  line-height: 1.08;
  text-align: left;
  overflow: hidden;
}

.recent-stack__card--0 {
  z-index: 5;
  top: 8px;
  left: 0;
  opacity: 1;
}

.recent-stack__card--1 {
  top: 8px;
  left: 8px;
  z-index: 4;
  opacity: 1;
  filter: brightness(0.92);
}

.recent-stack__card--2 {
  top: 8px;
  left: 16px;
  z-index: 3;
  opacity: 1;
  filter: brightness(0.84);
}

.recent-stack__card--3 {
  top: 8px;
  left: 24px;
  z-index: 2;
  opacity: 1;
  filter: brightness(0.76);
}

.recent-stack__card--4 {
  top: 8px;
  left: 32px;
  z-index: 1;
  opacity: 1;
  filter: brightness(0.68);
}

.recent-stack__card.is-entering {
  animation: stack-cascade 320ms ease both;
}

.recent-stack__card.is-shifting {
  animation: stack-shift 320ms ease both;
}

@keyframes stack-cascade {
  from {
    opacity: 0;
    transform: translate(-8px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes stack-shift {
  from {
    transform: translateX(-8px) scale(0.985);
  }
  to {
    transform: translateX(0) scale(1);
  }
}

.delete-capture-button {
  grid-column: 3;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff5a73;
  box-shadow: none;
}

.delete-capture-button .glyph--trash {
  width: 24px;
  height: 24px;
}

.done-button {
  grid-column: 2;
  justify-self: center;
  min-width: 152px;
  padding: 0 26px;
  border: 2px solid #10d1c0;
  border-radius: 999px;
  background: transparent;
  color: #10d1c0;
  font-size: 1.15rem;
  font-weight: 700;
}

.camera-switch-button {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 14, 19, 0.82);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.action-row.is-capture .capture-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.action-row.is-capture .recent-stack {
  grid-column: 1;
  justify-self: start;
  align-self: center;
}

.action-row.is-capture .camera-switch-button {
  grid-column: 3;
}

.reel-section {
  overflow: hidden;
  flex: none;
  min-height: 0;
  margin-top: 2px;
}

.reel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.reel::-webkit-scrollbar {
  display: none;
}

.reel-card {
  position: relative;
  flex: 0 0 94px;
  min-height: 94px;
  max-height: 94px;
  max-width: 94px;
  padding: 0;
  border-radius: 18px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  overflow: hidden;
}

.reel-card.is-selected {
  border-color: #1ad6b5;
}

.reel-card img,
.reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progressive-media {
  opacity: 0;
  transition: opacity 220ms ease;
  will-change: opacity;
}

.progressive-media.is-loaded {
  opacity: 1;
}

.reel-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.reel-card__badge .glyph {
  width: 13px;
  height: 13px;
}

.reel-card__note {
  height: 100%;
  max-height: 100%;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3b80e, #e49000);
  color: #111;
  text-align: left;
  font-size: 0.68rem;
  line-height: 1.15;
  overflow: hidden;
}

.reel-card__video {
  display: flex;
  height: 100%;
  align-items: end;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(141, 97, 255, 0.9), rgba(65, 35, 111, 1));
  font-weight: 700;
  font-size: 0.68rem;
}

.mode-switch {
  position: relative;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-height: var(--mode-switch-height);
  height: var(--mode-switch-height);
}

.mode-switch__highlight {
  position: absolute;
  top: 4px;
  left: var(--mode-highlight-left, 4px);
  width: var(--mode-highlight-width, 0px);
  height: calc(var(--mode-switch-height) - 8px);
  border: 1px solid rgba(16, 209, 192, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 209, 192, 0.94), rgba(9, 122, 112, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.24);
  transition:
    left 220ms ease,
    width 220ms ease,
    opacity 180ms ease;
  pointer-events: none;
  will-change: left, width, opacity;
}

.mode-switch[data-mode="note"] .mode-switch__highlight {
  border-color: rgba(246, 194, 26, 0.46);
  background: linear-gradient(135deg, rgba(246, 194, 26, 0.98), rgba(224, 161, 0, 0.96));
}

.mode-switch[data-mode="video"] .mode-switch__highlight {
  border-color: rgba(255, 79, 216, 0.42);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.98), rgba(192, 33, 166, 0.96));
}

.mode-card {
  position: relative;
  z-index: 1;
  min-height: calc(var(--mode-switch-height) - 8px);
  height: calc(var(--mode-switch-height) - 8px);
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease;
}

.mode-card__icon {
  display: none;
}

.mode-card span:last-child {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mode-card.is-active {
  color: #fff;
}

.mode-switch[data-mode="note"] .mode-card.is-active {
  color: #111;
}

@media (max-width: 380px) {
  .selectors {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 58px 1fr 58px;
    gap: 12px;
  }

  .action-row.is-editing {
    grid-template-columns: 1fr auto 1fr;
  }

  .done-button {
    min-width: 128px;
  }

  .save-note-button {
    min-width: 128px;
  }
}

@media (orientation: landscape) {
  .app-shell {
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding:
      calc(var(--safe-top) + 12px)
      calc(var(--safe-right) + 18px)
      max(calc(var(--safe-bottom) + 18px), 20px)
      calc(var(--safe-left) + 18px);
  }

  .screen {
    grid-template-columns: minmax(250px, 24vw) minmax(0, 1fr) minmax(210px, 18vw);
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "selectors stage controls"
      "selectors caption controls"
      "footer footer footer";
    column-gap: 24px;
    row-gap: 14px;
    align-items: stretch;
  }

  .selectors {
    grid-area: selectors;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    min-height: 0;
    max-width: 320px;
  }

  .stage-shell {
    grid-area: stage;
    min-height: 0;
    height: 100%;
    align-self: center;
  }

  .capture-stage {
    min-height: 0;
    height: 100%;
    max-height: none;
    border-radius: 32px;
  }

  .capture-caption {
    grid-area: caption;
    margin-top: 0;
    text-align: left;
    align-self: start;
    padding-left: 4px;
  }

  .action-row.is-capture {
    display: contents;
  }

  .action-row.is-capture .capture-button {
    grid-area: controls;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    justify-self: center;
    align-self: center;
    width: 126px;
    height: 126px;
  }

  .action-row.is-capture .recent-stack {
    grid-area: footer;
    justify-self: start;
    align-self: center;
    width: 152px;
    height: 82px;
    margin-left: 4px;
  }

  .action-row.is-capture .camera-switch-button {
    grid-area: footer;
    justify-self: end;
    align-self: center;
    width: 54px;
    height: 54px;
    margin-right: 4px;
  }

  .mode-switch {
    grid-area: footer;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    justify-content: center;
  }

  .action-row.is-editing {
    grid-area: controls;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    min-height: 0;
    height: auto;
    align-self: end;
    align-content: end;
    justify-items: stretch;
    width: 100%;
    max-width: 220px;
    justify-self: center;
  }

  .done-button {
    min-width: 0;
    width: 100%;
  }

  .action-row.is-editing .done-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
  }

  .action-row.is-editing .delete-capture-button {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .reel-section {
    grid-area: footer;
    min-height: 0;
    height: 100%;
    margin-top: 0;
    align-self: stretch;
    width: 100%;
  }

  .reel {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 0 4px 6px 0;
  }

  .reel-card {
    flex: 0 0 88px;
    width: 88px;
    min-height: 88px;
    max-height: 88px;
    max-width: 88px;
  }

  .capture-caption:empty,
  .capture-caption[hidden] {
    display: none;
  }
}
