:root {
  --color-bg: #fffaf7;
  --color-surface: #ffffff;
  --color-primary: #ff6685;
  --color-primary-soft: #fff0f3;
  --color-text: #17213f;
  --color-text-secondary: #6f7483;
  --color-border: #f2dfe3;
  --color-lavender: #8c79e8;
  --color-gold: #f1b84b;
  --shadow-card: 0 6px 20px rgba(23, 33, 63, 0.06);
  --ink: var(--color-text);
  --muted: var(--color-text-secondary);
  --paper: var(--color-surface);
  --cream: var(--color-bg);
  --soft: var(--color-primary-soft);
  --line: var(--color-border);
  --coral: var(--color-primary);
  --coral-dark: #e84f70;
  --purple: var(--color-lavender);
  --blue: #7aa7f8;
  --gold: var(--color-gold);
  --shadow: 0 16px 34px rgba(42, 28, 35, 0.1);
  --soft-shadow: var(--shadow-card);
  --app-max-width: 430px;
  --page-padding-x: 16px;
  --bottom-nav-height: 72px;
  --section-gap: 16px;
  --nav-space: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  color: var(--ink);
  background: #f7f3f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

svg {
  display: block;
}

svg path,
svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-root {
  width: 100%;
  min-width: 0;
}

.mobile-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  min-width: 0;
  margin: 0 auto;
  overflow-x: clip;
  background: var(--color-bg);
}

.view {
  display: none;
  width: 100%;
  min-width: 0;
}

.view.active {
  display: block;
}

.home-hero {
  position: relative;
  min-height: 258px;
  padding: 10px 18px 26px;
  overflow: hidden;
  background: var(--color-primary-soft);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0) 56%, rgba(255, 250, 247, 0.54) 100%),
    url("../images/home-hero-pets.png") calc(100% + 30px) bottom / auto 77% no-repeat;
  filter: saturate(1.01);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 240, 243, 0.92) 0 34%, rgba(255, 240, 243, 0.12) 58%, rgba(255, 240, 243, 0) 100%);
}

.top-row,
.hero-copy {
  position: relative;
  z-index: 1;
}

.top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup strong,
.brand-text strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.brand-lockup span,
.brand-text span,
.muted {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.round-action {
  width: 42px;
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.round-action svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.hero-copy {
  width: 68%;
  margin-top: 22px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.23;
  font-weight: 950;
}

.hero-copy p {
  margin: 0 0 12px;
  color: #687083;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.hero-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 8px 18px rgba(255, 102, 133, 0.2);
  font-weight: 850;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

.page-header {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top)) 18px 12px;
}

.brand-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.page-content {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: var(--section-gap);
  padding: 0 var(--page-padding-x) var(--nav-space);
}

.home-content {
  display: block;
  margin-top: 16px;
}

.home-content > * + * {
  margin-top: var(--section-gap);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.18;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.daily-card,
.panel,
.channel-card,
.shortcut-grid button,
.record-card,
.feed-card,
.profile-card,
.stats-grid button,
.menu-list button,
.upload-zone,
.upload-action,
.share-banner {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.daily-card {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 11px;
  color: var(--ink);
  text-align: left;
}

.daily-card.without-media {
  grid-template-columns: minmax(0, 1fr) 30px;
  padding-top: 28px;
}

.daily-badge {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: #ff7190;
  font-size: 10px;
  font-weight: 850;
}

.daily-photo,
.thumb,
.media-placeholder,
.share-card-preview {
  overflow: hidden;
  background-color: #ffe7df;
  background-position: center;
  background-size: cover;
}

.dog-photo {
  background-image: url("https://images.unsplash.com/photo-1552053831-71594a27632d?auto=format&fit=crop&w=500&q=80");
}

.cat-photo {
  background-image: url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=500&q=80");
}

.daily-photo {
  width: 100%;
  height: 58px;
  border-radius: 16px;
}

.daily-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.daily-copy strong {
  font-size: 13px;
}

.daily-copy em {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-copy small {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
}

.play-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #ffd7de;
  border-radius: 50%;
  color: var(--coral);
}

.play-dot svg {
  width: 18px;
  height: 18px;
}

.play-dot path {
  fill: currentColor;
  stroke: none;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

.channel-card {
  min-height: 116px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 14px 6px;
  border-color: var(--color-border);
  border-radius: 20px;
  color: var(--ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.feature-icon {
  --icon-bg: var(--color-primary-soft);
  --icon-fill: #ffe0e7;
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: var(--color-primary);
  background: var(--icon-bg);
}

.feature-icon-lavender {
  --icon-bg: #f4f1ff;
  --icon-fill: #e6e0ff;
  color: var(--color-lavender);
}

.feature-icon-navy {
  --icon-bg: #f2f4fa;
  --icon-fill: #e4e8f3;
  color: #526184;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: inherit;
  stroke-linecap: inherit;
  stroke-linejoin: inherit;
}

.feature-icon svg .feature-icon-fill {
  fill: var(--icon-fill);
}

.channel-card strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.channel-description,
.shortcut-grid small,
.record-card small,
.file-meta,
.feed-card small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.42;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.shortcut-grid button {
  min-height: 94px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 9px 4px;
  border-color: var(--color-border);
  border-radius: 18px;
  color: var(--ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.shortcut-grid strong {
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 700;
}

.shortcut-grid small {
  max-width: 100%;
  font-size: 10.5px;
  line-height: 1.35;
}

.share-banner {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 8px;
  align-items: center;
  padding: 13px 13px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(135deg, #fff8f4, #ffece3);
  margin-top: 8px;
}

.share-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.share-copy strong {
  font-size: 16px;
  font-weight: 950;
}

.share-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.share-copy em {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.share-stack {
  position: relative;
  height: 74px;
}

.share-card-preview {
  position: absolute;
  width: 88px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.share-card-preview:first-child {
  right: 48px;
  top: 0;
  transform: rotate(-8deg);
}

.share-card-preview:last-child {
  right: 0;
  top: 10px;
  transform: rotate(8deg);
}

.share-card-preview i {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.panel {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.home-data-slot {
  display: grid;
  gap: var(--section-gap);
}

.home-data-section {
  display: grid;
  gap: 8px;
}

.home-data-section h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.home-data-empty {
  min-height: 96px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.home-data-empty strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.home-data-empty p {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
}

.home-empty-icon {
  width: 26px;
  height: 26px;
  display: block;
  color: var(--color-primary);
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4.5h12l4 4v19H8zM20 4.5v5h4M12 15h8M12 20h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4.5h12l4 4v19H8zM20 4.5v5h4M12 15h8M12 20h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.home-empty-action {
  align-self: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
}

.section-title button {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.record-row,
.record-card,
.profile-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border-radius: 16px;
}

.record-row.simple {
  grid-template-columns: 1fr;
}

.record-row.without-media {
  grid-template-columns: minmax(0, 1fr) auto;
}

.record-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.record-copy strong {
  font-size: 13px;
}

.record-copy em {
  overflow: hidden;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-copy b {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #8c65d7;
  background: #f2eaff;
  font-size: 10px;
}

.record-row small {
  color: var(--muted);
  font-size: 11px;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.thumb.large {
  width: 76px;
  height: 76px;
}

.back-button,
.primary-button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 850;
}

.back-button {
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.primary-button {
  width: 100%;
  padding: 0 18px;
  color: #fff;
  background: var(--coral);
}

.feed-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
}

.media-placeholder {
  height: 176px;
  border-radius: 18px;
}

.profile-card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 14px;
}

.profile-entry {
  color: var(--ink);
  text-align: left;
}

.profile-entry > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-entry > span:nth-child(2) > span {
  color: var(--muted);
  font-size: 13px;
}

.profile-entry-arrow {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 18px;
  font-weight: 800;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-editor {
  gap: 16px;
  padding: 18px;
}

.profile-avatar-picker {
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-avatar-preview {
  width: 76px;
  height: 76px;
}

.profile-form-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.profile-form-field input,
.profile-form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.record-card {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 12px;
}

.record-video {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff0ed;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #fff0f1;
}

.tabs button {
  min-height: 38px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tabs button.active {
  color: var(--coral-dark);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats-grid button {
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  text-align: center;
}

.stats-grid strong {
  font-size: 20px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 11px;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-list button {
  min-height: 48px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.upload-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-action {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  cursor: pointer;
}

.upload-action input,
.upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone {
  min-height: 238px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  cursor: pointer;
}

.preview-box {
  width: 100%;
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  color: var(--muted);
  background: #fff8f5;
  border: 1px dashed #e4cbc5;
}

.preview-box.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

#videoPreview,
#audioPlayer {
  width: 100%;
}

.voice-recorder {
  min-height: 274px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.sound-wave {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sound-wave i {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: #d9dce7;
  transform-origin: center;
}

.voice-recorder.recording .sound-wave i {
  background: var(--color-primary);
  animation: voice-wave 0.72s ease-in-out infinite alternate;
}

.voice-recorder.recording .sound-wave i:nth-child(2n) {
  animation-delay: -0.24s;
}

.voice-recorder.recording .sound-wave i:nth-child(3n) {
  animation-delay: -0.48s;
}

@keyframes voice-wave {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(3.2); }
}

.hold-record-button {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 10px 24px rgba(255, 102, 133, 0.24);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.hold-record-button strong {
  font-size: 16px;
}

.hold-record-button small {
  font-size: 10.5px;
  font-weight: 500;
}

.voice-recorder.recording .hold-record-button {
  transform: scale(0.97);
  background: #e94f72;
}

.record-mic-icon {
  width: 28px;
  height: 28px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Zm-6 9a6 6 0 0 0 12 0M12 18v3M9 21h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3Zm-6 9a6 6 0 0 0 12 0M12 18v3M9 21h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.style-source {
  padding: 16px;
}

.style-source span {
  color: var(--muted);
  font-size: 12px;
}

.style-source strong {
  font-size: 16px;
  line-height: 1.5;
}

.style-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.style-choice-grid button {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  color: var(--ink);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.style-choice-grid button:disabled {
  opacity: 0.48;
}

.style-choice-grid small {
  color: var(--muted);
  font-size: 11px;
}

.analysis-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  color: var(--ink);
  background: var(--color-primary-soft);
}

.analysis-result strong {
  font-size: 16px;
  line-height: 1.5;
}

.analysis-result button {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--color-primary);
  background: #fff;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  resize: vertical;
  font-size: 16px;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 406px);
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 8px 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(244, 226, 222, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(42, 28, 35, 0.12);
}

.bottom-nav button {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
}

.bottom-nav button.active {
  color: var(--coral);
}

.bottom-nav .nav-mic {
  position: relative;
  margin-top: -22px;
  color: var(--coral);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.nav-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.nav-icon.home::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 11 12 3.5l8.5 7.5v8.5a1 1 0 0 1-1 1H15v-6H9v6H4.5a1 1 0 0 1-1-1Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 11 12 3.5l8.5 7.5v8.5a1 1 0 0 1-1 1H15v-6H9v6H4.5a1 1 0 0 1-1-1Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon.records::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3.5h14v17H5zM8.5 8h7M8.5 12h7M8.5 16h4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3.5h14v17H5zM8.5 8h7M8.5 12h7M8.5 16h4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon.mic {
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 10px 22px rgba(255, 102, 133, 0.24);
}

.nav-icon.mic::before {
  width: 27px;
  height: 27px;
  background: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3.5a3.5 3.5 0 0 1 3.5 3.5v5a3.5 3.5 0 0 1-7 0V7A3.5 3.5 0 0 1 12 3.5ZM5.5 12a6.5 6.5 0 0 0 13 0M12 18.5v3M8.5 21.5h7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3.5a3.5 3.5 0 0 1 3.5 3.5v5a3.5 3.5 0 0 1-7 0V7A3.5 3.5 0 0 1 12 3.5ZM5.5 12a6.5 6.5 0 0 0 13 0M12 18.5v3M8.5 21.5h7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon.paw::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 9.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM14 6.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM20 9.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12 13c3 0 5.5 2.2 5.5 5 0 2-2 3-5.5 2.2C8.5 21 6.5 20 6.5 18c0-2.8 2.5-5 5.5-5Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 9.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM14 6.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM20 9.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12 13c3 0 5.5 2.2 5.5 5 0 2-2 3-5.5 2.2C8.5 21 6.5 20 6.5 18c0-2.8 2.5-5 5.5-5Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon.me::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM5 21a7 7 0 0 1 14 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM5 21a7 7 0 0 1 14 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sheet-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(16, 18, 34, 0.32);
}

.sheet-panel {
  width: min(100%, 430px);
  display: grid;
  gap: 10px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 24px;
  background: var(--paper);
}

.sheet-panel button {
  min-height: 48px;
  border-radius: 16px;
  color: var(--ink);
  background: #fff3f5;
  font-weight: 850;
}

button:focus-visible,
label:focus-within,
textarea:focus-visible {
  outline: 3px solid rgba(255, 102, 132, 0.32);
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .home-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-hero::before {
    background-size: auto 77%;
    background-position: calc(100% + 30px) bottom;
  }

  .hero-copy {
    width: 68%;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .page-content {
    padding-left: 14px;
    padding-right: 14px;
  }

}

@media (min-height: 850px) {
  .home-data-empty {
    min-height: 112px;
  }
}

@media (max-width: 360px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-card,
  .share-banner {
    grid-template-columns: 1fr;
  }

  .play-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .sound-wave i {
    animation: none !important;
  }
}
