/* Keep the safe area on the shell, outside the touch targets. */
.app-footer {
  background: var(--background-surface);
  border-top: var(--size-px) solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.app-footer nav.bottom {
  height: auto;
  min-height: var(--size-16);
  padding: var(--gap-1);
  gap: var(--gap-1);
  border: 0;
  border-radius: var(--rounded-circle);
  background: var(--background-surface);
}
.app-footer .bottom button[data-tab] {
  min-height: var(--size-14);
  padding: var(--gap-1) var(--gap-1);
  gap: var(--gap-1);
  border: 0;
  border-radius: var(--rounded-circle);
  color: var(--object-secondary);
  background: var(--background-transparent);
  font-weight: var(--font-weight-semibold);
}
.app-footer .bottom [data-tab][aria-current="page"] {
  color: var(--object-interactive);
  background: var(--background-interactive-muted);
}
.app-footer .bottom [data-tab] .navicon,
.app-footer .bottom [data-tab] .navicon .app-icon {
  width: var(--size-6);
  height: var(--size-6);
  color: inherit;
}
.app-footer .bottom [data-tab] [data-nav-label] {
  font-size: var(--text-title-xs-font-size);
  line-height: var(--text-title-xs-line-height);
  min-height: 0;
}

.analysis-page .analysis-tabs {
  padding-inline: 0;
  border-bottom: var(--size-px) solid var(--border-muted);
  background: var(--background-surface);
}
.analysis-page .analysis-tabs button[role=tab] {
  position: relative;
  min-height: var(--control-height-base);
  padding: var(--gap-1);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--background-transparent);
  color: var(--object-secondary);
  font-size: var(--text-title-base-font-size);
  line-height: var(--text-title-base-line-height);
  font-weight: var(--font-weight-semibold);
}
.analysis-page .analysis-tabs button[aria-selected=true] { color: var(--object-interactive); }
.analysis-tabs [aria-selected=true]::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(-1 * var(--size-0-5));
  transform: translateX(-50%);
  width: var(--size-8);
  height: var(--size-1);
  border-radius: var(--rounded-circle);
  background: var(--border-interactive);
}

.more-page .more-sections {
  gap: var(--gap-0-5);
  padding: var(--gap-1);
  border-radius: var(--radius-lg);
  background: var(--background-emphasized);
}
.more-page .more-sections [role=tab] {
  position: relative;
  padding: var(--gap-1) var(--gap-2);
  border-radius: var(--radius-base);
  color: var(--object-secondary);
  font-size: var(--text-label-font-size);
  line-height: var(--text-label-line-height);
  font-weight: var(--text-label-font-weight);
}
.more-page .more-sections [aria-selected=true] {
  background: var(--background-surface);
  color: var(--object-primary);
  box-shadow: var(--elevation-low);
  font-weight: var(--font-weight-bold);
}
.more-panel .settings-list {
  border: var(--size-px) solid var(--border);
  border-radius: var(--radius-lg);
}
.more-panel .settings-list .settings-row {
  position: relative;
  gap: var(--gap-3);
  min-height: var(--list-min-height);
  padding: var(--list-padding-y) var(--list-padding-x);
  border: 0;
  background: var(--background-transparent);
}
.more-panel .settings-list .settings-row:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline: calc(var(--list-padding-x) + var(--size-10) + var(--gap-3)) 0;
  bottom: 0;
  height: var(--size-px);
  background: var(--border-muted);
}
.more-panel .settings-row .settings-icon {
  width: var(--size-10);
  height: var(--size-10);
  border-radius: var(--rounded-circle);
}
.more-panel .settings-list:not(.more-danger-zone) .settings-row .settings-icon {
  background: var(--background-accent-muted);
  color: var(--object-accent);
}
.more-panel .settings-row strong {
  font-size: var(--text-body-font-size);
  line-height: var(--text-body-line-height);
  font-weight: var(--font-weight-semibold);
}
.more-panel .settings-row small {
  margin-top: var(--gap-0-5);
  font-size: var(--text-caption-font-size);
  line-height: var(--text-caption-line-height);
  color: var(--object-secondary);
}

/* Feedback is painted over the whole target without moving its contents. */
:is(.analysis-tabs [aria-selected=false], .more-sections [role=tab], .more-panel .settings-row)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: var(--object-primary);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  :is(.analysis-tabs [aria-selected=false], .more-sections [role=tab], .more-panel .settings-row):enabled:hover::after {
    opacity: var(--opacity-5);
  }
}
:is(.analysis-tabs [aria-selected=false], .more-sections [role=tab], .more-panel .settings-row):enabled:active::after {
  opacity: var(--opacity-10);
}
