.record {
  position: fixed;
  inset: 0;
  max-width: 440px;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.record__close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  background: var(--paper);
  z-index: 2;
}

/* prime screen */
.prime {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px;
}

.prime__heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--ink);
  text-align: center;
  line-height: 1.05;
}

.prime__mic {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}

.prime__mic:active {
  transform: translateY(1px);
  box-shadow: 0 5px 14px rgba(82,121,71,0.24);
}

.prime__hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 220px;
  line-height: 1.45;
  letter-spacing: 0.3px;
}

.prime__hint .strong {
  color: var(--ink);
  display: block;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.prime__denied {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  background: var(--accent-wash);
  max-width: 280px;
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.prime__denied b {
  color: var(--accent);
  font-weight: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* recording screen */
.rec {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px 50px;
}

.rec__timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rec__timer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.rec__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rec__dot--paused {
  background: none;
  width: 10px;
  height: 10px;
  position: relative;
  animation: none;
}

.rec__dot--paused::before,
.rec__dot--paused::after {
  content: '';
  position: absolute;
  top: 0;
  width: 3px;
  height: 10px;
  background: var(--muted);
}

.rec__dot--paused::before {
  left: 0;
}

.rec__dot--paused::after {
  right: 0;
}

.rec__max {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}

.rec__max--warn {
  color: var(--accent);
  font-weight: 500;
}

.rec__waveform {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  overflow: hidden;
  padding: 0 4px;
}

.rec__bar {
  width: 3px;
  border-radius: 1.5px;
  background: var(--ink);
  flex-shrink: 0;
  transition: height 0.06s ease-out;
}

.rec__bar--paused {
  background: var(--muted);
  opacity: 0.5;
}

.rec__controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rec__pause,
.rec__resume {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.rec__resume {
  background: var(--accent);
  border-color: var(--ink);
}

.rec__pause:active,
.rec__resume:active {
  transform: scale(0.94);
}

.rec__stop {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.1s, box-shadow 0.1s;
}

.rec__stop:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-float-sm);
}

/* review screen */
.review {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 60px 22px 28px;
  gap: 16px;
}

.review__player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--accent-wash);
}

.review__play {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review__play--playing {
  background: var(--ink);
  border-color: var(--ink);
}

.review__scrub {
  flex: 1;
  height: 6px;
  background: var(--hairline);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.review__scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

.review__time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.review__textarea {
  flex: 1;
  min-height: 140px;
  border: 1.5px dashed var(--ink);
  border-radius: 12px;
  padding: 14px;
  background: var(--paper);
  font-family: var(--hand);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
  resize: none;
  outline: none;
}

.review__textarea::placeholder {
  color: var(--muted);
  font-style: normal;
}

.review__textarea:focus {
  border-style: solid;
}

.review__actions {
  display: flex;
  gap: 10px;
}

.review__re {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  background: var(--paper);
}

.review__post {
  flex: 1;
  padding: 14px;
  border-radius: 999px;
  background: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  box-shadow: var(--shadow-float);
  transition: transform 0.1s, box-shadow 0.1s;
}

.review__post:active {
  transform: translate(1px, 2px);
  box-shadow: 0 1px 0 var(--ink);
}

.review__post:disabled {
  opacity: 0.5;
}

/* received screen */
.received {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  gap: 22px;
}

.received__check {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.received__heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 38px;
  color: var(--ink);
  line-height: 1.05;
}
