.app-canvas {
  min-height: 100vh;
  background: #f3f7f6;
  padding-bottom: 82px;
}
.app-header {
  background: var(--teal-dark);
  color: #fff;
  padding: 44px 22px 28px;
}
.app-header h1 {
  font-size: 27px;
  margin: 4px 0;
}
.app-screen {
  max-width: 680px;
  margin: auto;
  background: #fff;
  min-height: calc(100vh - 82px);
}
.app-section {
  padding: 24px 20px;
}
.app-filters {
  justify-content: flex-start;
  margin-bottom: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.app-filters a {
  white-space: nowrap;
}
.app-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: -18px;
  position: relative;
}
.app-quick a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 15px #0c494311;
}
.app-quick span {
  display: block;
  font-size: 22px;
  color: var(--teal);
}
.app-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.app-card h3 {
  margin: 7px 0;
}
.app-viewer-toc {
  margin: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.app-viewer-toc summary {
  cursor: pointer;
  font-weight: 800;
}
.app-viewer-toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(100%, 680px);
  left: 50%;
  transform: translateX(-50%);
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 150;
  backdrop-filter: blur(12px);
}
.app-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}
.app-nav a span {
  font-size: 20px;
  line-height: 1.2;
}
.app-nav a.is-active {
  color: var(--teal);
  font-weight: 800;
}
.scanner {
  aspect-ratio: 1;
  max-width: 360px;
  margin: 25px auto;
  background: #12262b;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner:after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 3px solid #79ded2;
  border-radius: 16px;
  box-shadow: 0 0 0 999px #06181b88;
}
.toast-stack {
  position: fixed;
  right: 24px;
  top: 104px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  background: #fff;
  border-left: 4px solid var(--teal);
  animation: toast-in 0.25s both;
}
.toast-error {
  border-color: var(--danger);
}
.toast-warning {
  border-color: var(--orange);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page span {
  font-size: 80px;
  font-weight: 900;
  color: var(--teal-soft);
}
