/* Shared refinements keep the desktop dense and the phone layout readable. */
.mobile-brand,
.navigation-toggle {
  display: none;
}
.topbar {
  height: 92px;
  padding-top: 20px;
}
/* A compact app dock with its link panel above the selected app. */
.dock-widget {
  --resource-background: #f7f7f9;
  --resource-border: #d7d7dd;
  --resource-selection: #ececfd;
  background: var(--resource-background);
  border-radius: 32px;
  padding: 24px 0 24px 24px;
  min-height: 324px;
  justify-content: center;
}
.dock-heading {
  margin: 0 24px 8px 0;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  gap: 12px;
}
.dock-title {
  padding: 0;
  min-height: 20px;
  gap: 8px;
  color: var(--muted) !important;
  font-size: 12px;
  line-height: 20px;
}
.dock-title-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: white;
}
.dock-title-logo svg {
  width: 15px;
  height: 15px;
}
.substack-logo {
  background: #ff6519;
}
.podcasts-logo {
  background: linear-gradient(#c967e9, #8031df);
}
.research-logo {
  color: #5a5b63;
  background: #e4e5e9;
}
.resource-bubble {
  position: relative;
  padding: 8px;
  margin: 0 0 18px;
  border: 1px solid var(--resource-border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  flex: 0 0 auto;
  min-width: 0;
}
.resource-bubble::before,
.resource-bubble::after {
  content: "";
  position: absolute;
  left: calc(var(--dock-tip, 46px) - 9px);
  top: 100%;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  pointer-events: none;
  transition: left 0.2s ease;
}
.resource-bubble::before {
  border-top: 9px solid var(--resource-border);
}
.resource-bubble::after {
  border-top: 9px solid var(--resource-background);
  margin-top: -1px;
}
.resource-list {
  display: flex;
  flex: none;
  height: 108px;
  padding: 0;
  margin: 0;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}
.resource-list::-webkit-scrollbar {
  display: none;
}
.resource-card {
  flex: 0 0 320px;
  min-width: 220px;
  max-width: 320px;
  height: 108px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px #00000014;
  scroll-snap-align: start;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.resource-card:first-child,
.resource-card:hover,
.resource-card:focus-visible {
  background: var(--resource-selection);
  border-color: #5e5ce6;
}
.resource-list:has(.resource-card:hover, .resource-card:focus-visible)
  .resource-card:first-child:not(:hover):not(:focus-visible) {
  border-color: transparent;
  background: #fff;
}
.resource-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
}
.resource-card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-card-logo {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  color: #fff;
}
.resource-card-logo svg {
  width: 12px;
  height: 12px;
}
.resource-card small {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
}
.resource-card.research-card {
  padding: 10px 12px;
}
.research-card strong {
  margin-bottom: 4px;
}
.research-card .research-overview {
  margin-bottom: 4px;
}
.research-card .draft-status {
  margin-top: auto;
}
.app-dock {
  margin: 0;
  padding: 8px;
  gap: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 18px #00000014;
  flex: 0 0 auto;
}
.dock-app {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  padding: 5px;
  border: 3px solid transparent;
  border-radius: 18px;
  outline: none;
  background: transparent;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.dock-app[aria-selected="true"] {
  border-color: #5e5ce6;
  background: var(--resource-selection);
  transform: translateY(-2px);
}
.dock-app:focus-visible {
  outline: 2px solid #5e5ce6;
  outline-offset: 3px;
}
.dock-app:hover {
  transform: translateY(-4px);
}
.dock-app-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
}
.dock-app svg {
  width: 40px;
  height: 40px;
}
:root[data-theme="dark"] .dock-widget {
  --resource-background: #242428;
  --resource-border: #44444c;
  --resource-selection: #36334d;
}
:root[data-theme="dark"] .resource-card,
:root[data-theme="dark"]
  .resource-list:has(.resource-card:hover, .resource-card:focus-visible)
  .resource-card:first-child:not(:hover):not(:focus-visible) {
  background: #303036;
}
:root[data-theme="dark"] .resource-card:first-child,
:root[data-theme="dark"] .resource-card:hover,
:root[data-theme="dark"] .resource-card:focus-visible {
  background: var(--resource-selection);
}
:root[data-theme="dark"] .app-dock {
  background: #303036;
}
.intro-widget {
  padding: 24px;
}
.intro-widget h1 {
  font-size: clamp(23px, 1.8vw, 27px);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.intro-widget p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.intro-widget .intro-signoff {
  margin: 14px 0 0;
}
.calendar-widget {
  padding: 18px 22px;
}
.day-number {
  font-size: 38px;
  margin-bottom: 10px;
}
.calendar-events {
  gap: 7px;
}
.calendar-event strong {
  font-size: 13px;
}
.calendar-event span {
  font-size: 11px;
}
.calendar-event.available {
  min-height: 44px;
  padding: 6px 8px;
}
.calendar-caption {
  font-size: 11px;
  margin-top: 8px;
}
.corner-control {
  top: 18px;
  right: 18px;
}
.mail-header {
  padding: 12px 16px;
}
.mail-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-toolbar {
  padding: 12px 14px;
}
.career-track {
  font-size: 11px;
}
.track-foundation {
  top: 12px;
}
.track-google {
  top: 206px;
}
.board-node.career {
  min-height: 124px;
  padding: 12px;
}
.career-company {
  font-size: 18px;
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.board-node.career h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 7px 0;
}
.board-node.career p {
  font-size: 11px;
  line-height: 1.5;
}
.career-badge {
  margin-top: 8px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.5;
}
.board-node[data-node="google-sales"],
.board-node[data-node="google-product"] {
  min-height: 124px;
}
.board-node[data-node="note-mentor"] {
  min-height: 145px;
  font-size: 13px;
}
.booth-widget {
  padding: 18px;
}
.booth-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
}
.contact-widget {
  padding: 18px;
}
.contact-avatar {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
}
.contact-widget h2 {
  font-size: 19px;
}
.contact-widget > p {
  font-size: 12px;
  margin-bottom: 8px;
}
.contact-actions {
  margin-bottom: 10px;
}
.contact-actions a,
.contact-actions button {
  flex-direction: row;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  gap: 5px;
}
.contact-actions svg {
  width: 16px;
  height: 16px;
  margin: 0;
}
.contact-email {
  padding: 7px 10px;
}
.lower-bento .books-description h2 {
  margin-top: 30px;
  font-size: 22px;
}
.lower-bento .mini-shelf img {
  max-height: 90px;
}
.spotify-widget .spotify-header {
  margin-bottom: 20px;
}
.spotify-widget .spotify-collection {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.spotify-widget .spotify-feature {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.spotify-widget .spotify-feature > img {
  width: min(100%, 196px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: 0 8px 24px #00000018;
}
.spotify-widget .spotify-feature-copy h2 {
  font-size: 28px;
  margin: 6px 0 10px;
}
.spotify-widget .spotify-feature .spotify-external-play {
  width: 44px;
  height: 44px;
}
.spotify-widget .playlist-choice {
  min-height: 94px;
  grid-template-columns: 17px 42px minmax(0, 1fr);
  padding: 12px 8px;
  gap: 10px;
  border-radius: 13px;
}
.spotify-widget .playlist-thumbnail {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.spotify-widget .playlist-choice strong {
  font-size: 16px;
}
.spotify-widget .playlist-choice small {
  margin-top: 4px;
  font-size: 12px;
}
.spotify-animation {
  height: 32px;
  margin: 20px 0 10px;
}
@media (min-width: 951px) {
  .bento {
    grid-template-rows:
      minmax(260px, auto) minmax(250px, auto)
      480px 250px 260px 260px;
    gap: 14px;
  }
  .bento > .spotify-widget {
    grid-row: 4 / span 2;
  }
  .bento > .lower-bento {
    grid-column: 1 / -1;
    grid-row: 6;
    gap: 14px;
  }
  .lower-bento > .books-widget {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    gap: 22px;
  }
  .lower-bento .books-description {
    flex: 1;
  }
  .lower-bento .books-description h2 {
    font-size: 26px;
    margin-top: 32px;
  }
  .lower-bento .mini-shelf {
    width: 52%;
    max-width: 280px;
    margin-top: 20px;
    flex-shrink: 0;
  }
  .lower-bento .mini-shelf img {
    max-height: 140px;
  }
  .layout-custom .bento {
    grid-template-rows: none;
    grid-auto-rows: minmax(260px, auto);
  }
  .layout-custom .bento > .spotify-widget {
    grid-row: span 2;
  }
  .layout-custom .bento > .lower-bento {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (min-width: 651px) and (max-width: 950px) {
  .bento {
    grid-template-rows:
      auto 260px minmax(280px, auto)
      330px 480px 250px 260px 420px 260px;
    gap: 14px;
  }
  .layout-custom .bento {
    grid-template-rows: none;
    grid-auto-rows: minmax(260px, auto);
  }
  .layout-custom .bento > .spotify-widget {
    grid-row: span 2;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 80px;
  }
  .topbar,
  .notes-body .topbar {
    height: 74px;
    min-height: 74px;
    padding: 10px max(14px, env(safe-area-inset-right)) 14px
      max(14px, env(safe-area-inset-left));
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .theme-switch {
    position: static;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .mobile-brand {
    display: block;
    font-size: 15px;
    font-weight: 550;
    min-width: 0;
  }
  .navigation-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--nav);
    color: var(--fg);
    cursor: pointer;
  }
  .navigation-toggle svg {
    width: 22px;
    height: 22px;
  }
  .navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 12px 32px #00000020;
    backdrop-filter: blur(24px);
  }
  .is-navigation-open .navigation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .navigation a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
  }
  .page,
  .dashboard-page {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
  .bento,
  .layout-custom .bento {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .bento > .widget,
  .layout-custom .bento > .widget {
    min-height: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
    border-radius: 24px;
  }
  .intro-widget {
    height: auto;
    padding: 22px;
  }
  .intro-widget h1 {
    font-size: 25px;
    line-height: 1.4;
  }
  .intro-widget p {
    font-size: 16px;
    line-height: 1.65;
  }
  .bento > .avatar-widget {
    height: min(330px, calc(100vw - 28px));
  }
  .avatar-control {
    bottom: 14px;
    right: 14px;
  }
  .avatar-label {
    display: inline;
    max-width: 130px;
    opacity: 1;
    padding-left: 7px;
  }
  .siri-button {
    min-width: 44px;
    min-height: 44px;
  }
  .calendar-widget {
    height: auto;
    padding: 18px 20px;
  }
  .calendar-events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .calendar-event,
  .calendar-event.available {
    min-height: 76px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .calendar-caption {
    max-width: none;
    font-size: 12px;
    margin-top: 12px;
  }
  .corner-control,
  .circle-button,
  .close-modal {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .dock-widget {
    height: auto;
    min-height: 304px;
    padding: 20px 0 20px 24px;
  }
  .dock-title {
    min-height: 20px;
  }
  .dock-research-chat {
    min-height: 28px;
    display: flex;
    align-items: center;
    white-space: normal;
    font-size: 11px;
  }
  .dock-research-chat[hidden] {
    display: none;
  }
  .resource-card {
    min-width: 200px;
    max-width: 320px;
    flex-basis: 88%;
    height: 108px;
  }
  .resource-card strong {
    font-size: 14px;
  }
  .dock-app {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .dock-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .dock-app svg {
    width: 34px;
    height: 34px;
  }
  .mail-widget {
    height: auto;
    display: block;
  }
  .mail-sidebar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mail-sidebar .traffic-lights,
  .mail-sidebar .sidebar-caption {
    display: none;
  }
  .mail-folder {
    flex: 1;
    width: auto;
    justify-content: center;
    min-height: 44px;
    font-size: 12px;
    padding: 6px;
  }
  .mail-messages {
    overflow: visible;
  }
  .mail-message {
    padding: 12px 16px 12px 27px;
  }
  .mail-summary {
    -webkit-line-clamp: 1;
  }
  .mail-header small {
    font-size: 11px;
  }
  .subscribe-button {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px 12px;
    font-size: 12px;
  }
  .bento > .board-widget {
    height: 360px;
  }
  .board-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 6px 8px;
    scrollbar-width: thin;
  }
  .board-toolbar .traffic-lights {
    display: none;
  }
  .board-toolbar .tool-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .board-caption {
    display: none;
  }
  .board-zoom button {
    width: 44px;
    height: 44px;
  }
  .board-widget.is-expanded {
    inset: 12px;
    width: auto;
    height: calc(100dvh - 24px);
  }
  .bento > .booth-widget {
    height: 210px;
  }
  .booth-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
  }
  .bento > .photos-widget,
  .bento > .map-widget {
    height: 280px;
  }
  .photo-controls {
    gap: 8px;
  }
  .photo-caption {
    max-width: calc(100% - 104px);
    font-size: 13px;
  }
  .photo-info-bubble {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .map-zoom button,
  .map-motion {
    width: 44px;
    height: 44px;
  }
  .map-card {
    max-width: calc(100% - 78px);
  }
  .map-card strong {
    font-size: 13px;
  }
  .map-card span {
    font-size: 11px;
  }
  .bento > .contact-widget {
    height: auto;
    min-height: 260px !important;
    padding: 20px;
  }
  .contact-actions a,
  .contact-actions button,
  .contact-email button {
    min-width: 44px;
    min-height: 44px;
  }
  .contact-actions a,
  .contact-actions button {
    flex: 1;
    font-size: 12px;
  }
  .contact-email a {
    font-size: 14px;
  }
  .bento > .spotify-widget {
    height: auto;
    min-height: 340px !important;
    padding: 18px 18px 0;
  }
  .spotify-widget .spotify-collection {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 16px;
  }
  .spotify-widget .spotify-feature > img {
    width: min(100%, 124px);
    border-radius: 12px;
  }
  .spotify-widget .spotify-feature-copy h2 {
    font-size: 22px;
  }
  .spotify-widget .playlist-choice {
    grid-template-columns: 17px 30px minmax(0, 1fr);
    gap: 7px;
    padding: 10px 5px;
    min-height: 84px;
  }
  .spotify-widget .playlist-thumbnail {
    width: 30px;
    height: 30px;
  }
  .spotify-widget .playlist-choice strong {
    font-size: 14px;
  }
  .spotify-widget .spotify-feature .spotify-external-play {
    width: 44px;
    height: 44px;
  }
  .spotify-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .spotify-header a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  .bento > .lower-bento,
  .layout-custom .bento > .lower-bento {
    width: 100%;
    min-height: 210px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }
  .lower-bento > .books-widget,
  .lower-bento > .search-widget {
    padding: 14px;
    min-height: 210px;
  }
  .lower-bento .books-description h2 {
    font-size: 18px;
    margin: 28px 0 5px;
  }
  .lower-bento .books-description p {
    font-size: 12px;
  }
  .lower-bento .widget-app-label {
    left: 14px;
    top: 14px;
    font-size: 11px;
  }
  .lower-bento .mini-shelf {
    width: 100%;
  }
  .lower-bento .mini-shelf img {
    max-height: 68px;
  }
  .lower-bento .keycaps {
    gap: 8px;
  }
  .lower-bento .keycap {
    width: 42px;
    height: 48px;
    font-size: 24px;
  }
  .dashboard-controls {
    padding: 20px 0 28px;
  }
  .soft-control {
    min-height: 44px;
  }
  .modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .modal-header {
    gap: 12px;
    min-width: 0;
  }
  .modal-header h2 {
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }
  .modal input,
  .modal textarea,
  .modal select {
    font-size: 16px;
  }
  .modal-button,
  .date-chip,
  .book-filter {
    min-height: 44px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions > * {
    flex: 1;
    text-align: center;
  }
  .spotlight-search-bar .close-modal {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .search-modal .command-search {
    font-size: 21px !important;
    letter-spacing: -0.02em;
  }
  .search-modal .search-hint {
    gap: 8px;
    font-size: 11px;
  }
  .book-page {
    padding: 0 14px 32px;
  }
  .book-detail {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 15px;
  }
  .book-detail h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  .project-title-row {
    gap: 16px;
    align-items: flex-start;
  }
  .project-app-icon {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    border-radius: 20px;
  }
  .project-title-row h1 {
    font-size: 29px;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .project-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }
  .project-stats > div {
    border-left: 1px solid var(--project-divider);
    padding: 6px 12px;
  }
  .project-stats > div:nth-child(odd) {
    border-left: 0;
  }
  .project-stats dt,
  .project-stats .project-stat-note {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: normal;
  }
  .project-stats .project-stat-value {
    font-size: 23px;
    line-height: 1.4;
  }
  .project-app-icon.project-emoji-icon {
    font-size: 40px;
  }
  .project-story h2,
  .archive-heading h1 {
    line-height: 1.4;
    letter-spacing: -0.02em;
  }
  .build-featured .build-card-cover {
    padding: 22px;
    min-height: 0;
  }
  .build-featured h2 {
    font-size: 26px;
    line-height: 1.35;
  }
  .writing-cover-mini {
    min-height: 160px;
  }
  .writing-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .writing-card-copy {
    padding: 16px;
  }
  .writing-card h2 {
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: normal;
  }
  .writing-feature > .writing-cover,
  .writing-article-header > .writing-cover {
    min-height: 220px;
  }
  .writing-sidebar section:nth-child(2) {
    display: block;
  }
  .writing-sidebar nav a,
  .writing-copy,
  .writing-filters button {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .notes-window {
    min-height: calc(100dvh - 74px);
  }
  .notes-tool {
    width: 44px;
    height: 44px;
  }
  .note-document,
  .note-draft {
    padding-left: 20px;
    padding-right: 20px;
  }
  .note-profile h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  .demo-shell,
  .lab-shell {
    padding: 16px;
    min-width: 0;
  }
  .lab-header,
  .demo-header {
    flex-wrap: wrap;
  }
  .lab-header > div,
  .lab-panel,
  .demo-panel {
    min-width: 0;
  }
  .lab-header > a,
  .demo-button,
  .lab-remove,
  .mc-text-button {
    min-height: 44px;
  }
  .lab-shell input,
  .lab-shell select,
  .lab-shell textarea,
  .demo-shell input,
  .demo-shell select,
  .demo-shell textarea {
    font-size: 16px;
  }
  .time-person {
    grid-template-columns: minmax(0, 1fr) 65px 65px 44px;
    gap: 6px;
  }
  .lab-remove {
    width: 44px;
  }
  .mc-section-title {
    flex-wrap: wrap;
    gap: 6px;
  }
  footer {
    padding-left: 16px;
    padding-right: 16px;
    flex-wrap: wrap;
  }
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 450px) {
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .book-tile .cover-wrap {
    height: 205px;
  }
  .palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .palette-swatch:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .lab-metrics,
  .demo-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .time-person {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }
  .time-person select {
    grid-column: 1 / -1;
  }
  .time-person .lab-remove {
    grid-column: 3;
  }
}
