.page-shell {
  min-height: 100vh;
  padding: 24px 24px calc(84px + env(safe-area-inset-bottom));
}

.app-frame {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(245, 234, 220, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-header__main {
  display: grid;
  gap: 10px;
}

.panel-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

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

@media (max-width: 720px) {
  .page-shell {
    padding: 14px 14px calc(78px + env(safe-area-inset-bottom));
  }

  .app-header {
    display: none;
  }

  .hero-title {
    display: none;
  }

  .app-frame {
    gap: 14px;
  }
}

.list-page {
  animation: list-page-rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes list-page-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bottom-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.94);
  backdrop-filter: blur(10px);
}

.bottom-toolbar__inner {
  width: min(1120px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-toolbar__action {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease,
    transform 120ms ease;
}

.bottom-toolbar__action:hover {
  background: rgba(239, 229, 217, 0.88);
  color: var(--text);
  transform: translateY(-1px);
}

.bottom-toolbar__action.is-active {
  background: rgba(244, 220, 201, 0.92);
  border-color: rgba(154, 52, 18, 0.24);
  color: var(--text);
}

.bottom-toolbar__action.is-disabled,
.bottom-toolbar__action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bottom-toolbar__action.is-disabled:hover,
.bottom-toolbar__action:disabled:hover {
  background: transparent;
  color: var(--muted);
  transform: none;
}

.bottom-toolbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.bottom-toolbar__label {
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .bottom-toolbar__inner {
    width: min(100vw, calc(100vw - 8px));
    padding-inline: 6px;
    gap: 4px;
  }

  .bottom-toolbar__action {
    min-height: 52px;
    padding: 10px 6px;
  }

  .bottom-toolbar__label {
    display: none;
  }

  .bottom-toolbar__icon {
    font-size: 1.25rem;
  }
}
