.detail-page main {
  min-height: 70vh;
}
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  border-bottom: 1px solid var(--rule);
}
.page-location {
  min-width: 0;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  flex-wrap: wrap;
  list-style: none;
  font-size: 12px;
  color: var(--quiet);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 24px;
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs li + li:before {
  content: "/";
  margin-right: 10px;
  color: #9ea68f;
}
.crumbs li:last-child {
  color: var(--ink);
}
.context-nav {
  display: flex;
  align-self: stretch;
  flex-shrink: 0;
  gap: 26px;
}
.context-nav a,
.context-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 13px;
  text-decoration: none;
  position: relative;
}
.context-nav [aria-current="page"] {
  color: var(--green);
  font-weight: 600;
}
.page-heading {
  padding: 32px 0 42px;
  max-width: 780px;
}
.page-heading h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.35;
  margin: 17px 0 20px;
  letter-spacing: -0.06em;
}
.page-heading .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--quiet);
  max-width: 660px;
}
.page-heading > .pixel {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--quiet);
}
.catalog-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.catalog-intro .page-heading {
  max-width: 720px;
}
.catalog-intro > .page-heading,
.page-navigation + main > .page-heading {
  padding-top: 34px;
}
.tiny-sprout {
  width: 104px;
  height: 104px;
  flex: none;
  display: grid;
  place-items: center;
}
.tiny-sprout svg {
  width: 62px;
  height: 62px;
}
.catalog-toolbar {
  border-block: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 28px;
}
.catalog-count {
  font-size: 12px;
  color: var(--quiet);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 72px;
}
.tool-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.tool-card:hover {
  border-color: var(--green);
}
.tool-picture {
  height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #ebcead;
  background-image:
    linear-gradient(#be9b6f1c 1px, transparent 1px),
    linear-gradient(90deg, #be9b6f1c 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.tool-picture .notebook {
  transform: rotate(-11deg) scale(0.62);
  flex: none;
}
.tool-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tool-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--quiet);
}
.tool-labels .platforms {
  margin: 0;
}
.tool-body h2 {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.tool-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--quiet);
}
.detail-hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 38px 0 60px;
}
.detail-hero .page-heading {
  padding: 0;
}
.detail-hero .page-heading h1 {
  font-size: clamp(34px, 3.8vw, 46px);
  margin: 22px 0;
}
.detail-hero .product-stage {
  min-height: 450px;
  border: 1px solid #b6bf9e;
}
.detail-hero .product-stage .notebook {
  transform: rotate(-11deg) scale(0.93);
}
.product-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-identity > img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.product-identity strong {
  font-family: Pixel, monospace;
  font-size: 28px;
  font-weight: 400;
}
.product-identity .platforms {
  margin: 0;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.detail-actions .textlink {
  border: 0;
}
.feature-band {
  position: relative;
  background: #e7ebd9;
  padding: 52px 0 60px;
}
.feature-band:before {
  content: "";
  position: absolute;
  inset: -8px 0 auto;
  height: 8px;
  background: linear-gradient(90deg, transparent 50%, #e7ebd9 50%);
  background-size: 16px 8px;
}
.detail-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}
.detail-section-head h2 {
  font-size: 32px;
  max-width: 630px;
}
.detail-section-head .eyebrow {
  flex: none;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-panel {
  padding: 32px;
  border: 1px solid #bec7ac;
  background: var(--cream);
}
.feature-panel h3 {
  font-size: 24px;
  margin: 26px 0 12px;
}
.feature-panel p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--quiet);
  max-width: 430px;
}
.feature-art {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f1ead7;
  overflow: hidden;
}
.record-stack {
  display: flex;
  gap: 9px;
  transform: rotate(-5deg);
}
.record-sheet {
  width: 68px;
  height: 84px;
  background: #fcf8ed;
  border: 1px solid #899774;
  padding: 14px 10px;
  box-shadow: 3px 3px 0 #c7ceb3;
}
.record-sheet i {
  display: block;
  height: 3px;
  background: #a6b28d;
  margin-bottom: 9px;
}
.record-sheet i:first-child {
  width: 20px;
  height: 20px;
  background: var(--green);
}
.record-sheet:nth-child(2) {
  transform: translateY(10px) rotate(10deg);
}
.calendar-glyph {
  width: 110px;
  height: 98px;
  border: 2px solid var(--green);
  position: relative;
  background: var(--cream);
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 10px;
  justify-content: center;
  align-content: end;
  padding-bottom: 15px;
}
.calendar-glyph:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--green);
}
.calendar-glyph i {
  height: 10px;
  background: #c6cfae;
}
.calendar-glyph i:nth-child(4) {
  background: var(--orange);
}
.detail-footer {
  border-top: 1px solid var(--rule);
}
.help-document,
.legal-document {
  max-width: 780px;
}
.help-layout {
  padding: 12px 0 72px;
}
.faq-list {
  border-top: 1px solid var(--rule);
}
details.faq {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.faq > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  font-size: 17px;
  font-weight: 500;
  padding: 20px 0;
  word-break: keep-all;
}
.faq > summary:after,
.contact-fold > summary:after {
  content: "+";
  font-family: Pixel, monospace;
  font-size: 24px;
  font-weight: 400;
  flex: none;
  color: var(--orange);
}
.faq[open] > summary:after,
.contact-fold[open] > summary:after {
  content: "−";
}
.faq .answer {
  padding: 0 34px 24px 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--quiet);
}
.contact-fold {
  border: 1px solid #bac5a8;
  background: #edf0df;
  margin-top: 30px;
}
.contact-fold > summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  min-height: 76px;
  font-size: 15px;
}
.contact-content {
  padding: 0 26px 26px;
  font-size: 14px;
  line-height: 1.9;
}
.contact-content p {
  margin-bottom: 14px;
}
.contact-content ul {
  padding-left: 20px;
  margin: 16px 0;
}
.email-small {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 15px;
  min-height: 44px;
  padding: 8px 0;
}
.notice {
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  background: #f5e6d5;
  font-size: 13px;
  margin-top: 18px;
}
.notice p {
  margin: 0;
}
.legal-heading {
  max-width: none;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 38px;
  padding-bottom: 34px;
}
.legal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12px;
  color: var(--quiet);
}
.legal-layout {
  padding-bottom: 70px;
}
.prose {
  min-width: 0;
}
.prose section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 30px;
}
.prose h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.5;
  margin-bottom: 19px;
}
.prose h3 {
  font-size: 18px;
  line-height: 1.55;
  margin: 24px 0 10px;
}
.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.95;
  color: #45503d;
  overflow-wrap: anywhere;
}
.prose p + p {
  margin-top: 15px;
}
.prose ul {
  padding-left: 23px;
  margin: 16px 0;
}
.prose li + li {
  margin-top: 7px;
}
.prose a {
  color: #29492f;
}
.prose .meta {
  padding: 18px 20px;
  background: #edf0df;
  margin-top: 22px;
  font-size: 13px;
}
.provider-card {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--sheet);
}
.provider-card h3 {
  margin-top: 0;
}
.provider-card p,
.provider-card p + p {
  margin-top: 8px;
}
.error-page {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0;
}
.error-art {
  min-height: 330px;
  background: #e7ebd9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #c5cdb3;
  gap: 20px;
}
.error-code {
  font-family: Pixel, monospace;
  font-size: clamp(90px, 12vw, 154px);
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.08em;
}
.error-art .mono {
  color: var(--quiet);
}
.error-page p {
  font-size: 15px;
  color: var(--quiet);
  line-height: 1.9;
}
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
html[lang="en"] .page-heading h1,
html[lang="en"] .detail-section-head h2 {
  letter-spacing: -0.04em;
}
.download-actions {
  margin-top: 22px;
}
.store-download {
  display: inline-flex;
  align-items: center;
  padding: 12px;
  margin-left: -12px;
  text-decoration: none;
  flex: none;
}
.store-download img {
  height: 48px;
  width: auto;
  max-width: none;
}
.availability-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
}
.availability-note > span {
  width: 5px;
  height: 5px;
  background: var(--green);
  flex: none;
}
.context-nav [aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 14px;
  height: 2px;
  background: var(--green);
  left: 0;
  right: 0;
}
@media (max-width: 1100px) {
  .tool-grid {
    gap: 18px;
  }
  .tool-body {
    padding: 20px;
  }
  .tool-body h2 {
    font-size: 25px;
  }
  .tool-picture {
    height: 210px;
  }
  .detail-section-head h2 {
    font-size: 29px;
  }
  .detail-hero {
    gap: 34px;
  }
}
@media (max-width: 850px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-hero .page-heading {
    max-width: 650px;
  }
  .detail-hero .product-stage {
    min-height: 390px;
  }
  .detail-hero .product-stage .notebook {
    transform: rotate(-11deg);
  }
  .detail-hero .stage-foot {
    max-width: none;
  }
  .legal-heading {
    margin-bottom: 26px;
  }
  .detail-section-head {
    display: block;
  }
  .detail-section-head h2 {
    margin-top: 16px;
  }
  .feature-panel {
    padding: 24px;
  }
  .error-page {
    gap: 30px;
  }
  .page-navigation {
    gap: 22px;
    min-height: 68px;
  }
  .context-nav {
    gap: 20px;
  }
  .page-heading h1,
  .detail-hero .page-heading h1 {
    font-size: 36px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 32px;
  }
}
@media (max-width: 600px) {
  .page-heading {
    padding: 22px 0 30px;
  }
  .page-heading .lead {
    font-size: 14px;
  }
  .catalog-intro {
    gap: 15px;
  }
  .catalog-intro .tiny-sprout {
    display: none;
  }
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .tool-picture {
    height: 250px;
  }
  .tool-picture .notebook {
    transform: rotate(-11deg) scale(0.7);
  }
  .tool-body {
    padding: 23px;
  }
  .tool-body h2 {
    font-size: 27px;
  }
  .product-identity > img {
    width: 44px;
    height: 44px;
  }
  .product-identity strong {
    font-size: 25px;
  }
  .detail-actions {
    gap: 16px;
    margin-top: 22px;
  }
  .detail-hero .product-stage {
    min-height: 360px;
  }
  .detail-hero .product-stage .notebook {
    transform: rotate(-11deg) scale(0.88);
  }
  .feature-band {
    padding: 35px 0 40px;
  }
  .detail-section-head h2 {
    font-size: 26px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-panel {
    padding: 23px;
  }
  .feature-panel h3 {
    font-size: 23px;
    margin-top: 22px;
  }
  .help-layout {
    padding-bottom: 42px;
  }
  .faq > summary {
    font-size: 16px;
    min-height: 76px;
    gap: 20px;
  }
  .faq .answer {
    padding-right: 15px;
  }
  .contact-fold > summary {
    padding: 20px;
    font-size: 14px;
  }
  .contact-content {
    padding: 0 20px 20px;
    font-size: 13px;
  }
  .notice {
    padding: 12px 14px;
    font-size: 12px;
  }
  .legal-meta {
    gap: 8px 20px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose p,
  .prose li {
    font-size: 14px;
  }
  .prose section {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }
  .error-page {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 30px 0 50px;
    gap: 34px;
  }
  .error-art {
    min-height: 230px;
  }
  .error-code {
    font-size: 112px;
  }
  .error-page p {
    font-size: 14px;
  }
  .footer {
    padding-bottom: 22px;
  }
  .store-download img {
    height: 44px;
  }
  .store-download {
    padding: 11px;
    margin-left: -11px;
  }
  .availability-note {
    margin-top: 2px;
  }
  .page-navigation {
    display: block;
    min-height: 0;
    padding: 8px 0 0;
  }
  .crumbs {
    padding: 0;
    gap: 5px;
    min-height: 39px;
  }
  .crumbs li + li:before {
    margin-right: 5px;
  }
  .context-nav {
    justify-content: flex-start;
    gap: 24px;
    min-height: 47px;
  }
  .context-nav a,
  .context-nav span {
    min-height: 47px;
  }
  .context-nav [aria-current="page"]:after {
    bottom: 0;
  }
  .page-heading h1,
  .detail-hero .page-heading h1 {
    font-size: 32px;
    line-height: 1.45;
    margin-top: 13px;
  }
  .detail-hero .page-heading h1 {
    margin: 20px 0 16px;
  }
  .detail-hero {
    padding: 28px 0 42px;
  }
  .catalog-intro > .page-heading,
  .page-navigation + main > .page-heading {
    padding-top: 27px;
  }
  .download-actions {
    margin-top: 20px;
  }
}

/* Shared workshop language for the catalog, app, support, and policy pages. */
.detail-page {
  overflow-x: clip;
  background: var(--cream);
}
.detail-page .masthead {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 70px;
  background: transparent;
}
.detail-page .page-navigation {
  min-height: 60px;
  border-color: #d8d2be;
}
.detail-page .crumbs {
  font-size: 12px;
}
.detail-page .crumbs li:last-child {
  font-weight: 600;
}
.detail-page .context-nav {
  align-items: center;
  gap: 7px;
}
.detail-page .context-nav a,
.detail-page .context-nav span {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #5f695b;
  font-size: 12px;
}
.detail-page .context-nav a:hover {
  background: #eee9da;
}
.detail-page .context-nav [aria-current="page"] {
  background: var(--green);
  color: var(--cream);
}
.detail-page .context-nav [aria-current="page"]::after {
  content: none;
}
.detail-page .page-heading > .pixel {
  color: #6b7467;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.detail-page .page-heading h1 {
  color: #233f2d;
  letter-spacing: -0.055em;
}
.detail-page .page-heading .lead {
  color: #606a5d;
  font-size: 16px;
}
.detail-page .platform-badge,
.detail-page .document-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: #ebe7d9;
  color: #657064;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.catalog-page .catalog-intro {
  min-height: 310px;
  position: relative;
}
.catalog-page .catalog-intro::after {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  right: 18px;
  bottom: 34px;
  border-radius: 50%;
  background: #e8ead8;
  opacity: 0.75;
}
.catalog-page .catalog-intro .page-heading {
  position: relative;
  z-index: 2;
}
.catalog-page .tiny-sprout {
  position: relative;
  z-index: 2;
  margin-right: 56px;
}
.catalog-page .catalog-toolbar {
  margin-bottom: 26px;
  padding: 14px 0;
  border-color: #d8d2be;
}
.catalog-page .catalog-count {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.catalog-page .tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
  gap: 22px;
}
.catalog-page .tool-card {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border-color: #d8d2be;
  border-radius: 18px;
  background: #fdf9ef;
  box-shadow: 0 12px 34px transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.catalog-page .tool-card:hover {
  border-color: #aeb69d;
  box-shadow: 0 16px 38px #34452a14;
  transform: translateY(-3px);
}
.catalog-page .tool-picture {
  height: auto;
  min-height: 290px;
  border: 0;
  border-right: 1px solid #d8d2be;
  background: #e7ead7;
}
.catalog-page .future-tool-picture {
  background: #f0dfcd;
}
.catalog-page .tool-illustration {
  width: min(105%, 310px);
  max-width: none;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.catalog-page .tool-card:hover .tool-illustration {
  transform: scale(0.96) rotate(-1deg);
}
.catalog-page .tool-body {
  min-width: 0;
  position: relative;
  justify-content: center;
  padding: 30px 28px 68px;
}
.catalog-page .tool-labels {
  margin-bottom: 12px;
  color: #6b7468;
  font-size: 11px;
}
.catalog-page .tool-body h2 {
  color: #244331;
  font-family: Pixel, monospace;
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 400;
}
.catalog-page .future-tool-card .tool-body h2 {
  font-family: inherit;
  font-weight: 600;
}
.catalog-page .tool-body p {
  font-size: 14px;
  line-height: 1.75;
}
.catalog-card-arrow {
  width: 42px;
  height: 42px;
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee9da;
  color: #405342;
  font-size: 22px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.catalog-page .tool-card:hover .catalog-card-arrow {
  background: var(--green);
  color: var(--cream);
  transform: translateX(3px);
}

.app-detail-page .detail-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(400px, 1.12fr);
  gap: clamp(42px, 6vw, 82px);
  padding: 54px 0 66px;
}
.app-detail-page .detail-hero .page-heading h1 {
  margin: 27px 0 20px;
  font-size: clamp(38px, 4vw, 52px);
}
.product-identity {
  gap: 12px;
}
.app-icon-frame {
  width: 62px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid #d4cfbd;
  border-radius: 17px;
  background: #fffdf7;
  box-shadow: 4px 5px 0 #dfe2ca;
}
.app-icon-frame img,
.product-identity .app-icon-frame img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.future-page .app-icon-frame img {
  image-rendering: pixelated;
}
.product-identity strong {
  color: #244331;
  font-size: 29px;
}
.product-identity .platforms {
  gap: 5px;
}
.product-showcase {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cfd3ba;
  border-radius: 22px;
  background-color: #e5ead7;
  background-image:
    linear-gradient(#7280610c 1px, transparent 1px),
    linear-gradient(90deg, #7280610c 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: 10px 12px 0 #e2e1cb;
}
.product-showcase.future-showcase {
  border-color: #dfcbb6;
  background-color: #f0dfcc;
  background-image:
    linear-gradient(#9d71400c 1px, transparent 1px),
    linear-gradient(90deg, #9d71400c 1px, transparent 1px);
}
.product-showcase-art {
  width: min(86%, 450px);
  max-width: none;
  transform: scale(0.94);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-showcase:hover .product-showcase-art {
  transform: scale(0.98) translateY(-4px);
}
.showcase-label,
.showcase-foot {
  position: absolute;
  z-index: 2;
  color: #63705d;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.showcase-label {
  top: 22px;
  left: 24px;
}
.showcase-foot {
  right: 24px;
  bottom: 20px;
}
.detail-page .download-actions {
  gap: 10px;
}
.detail-page .store-download {
  margin-left: 0;
  padding: 8px;
  border: 1px solid #d5d0be;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 3px 4px 0 #e0dfcb;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.detail-page .store-download:hover {
  box-shadow: 5px 6px 0 #d8d9c0;
  transform: translate(-2px, -2px);
}
.detail-page .store-download img {
  height: 42px;
}
.detail-page .availability-note {
  margin-top: 10px;
  font-size: 12px;
}

.detail-page .feature-band {
  padding: 58px 0 66px;
  border-block: 1px solid #d8d2be;
  background: #f3eedf;
}
.detail-page .feature-band::before {
  content: none;
}
.detail-page .feature-panel {
  overflow: hidden;
  border-color: #d7d1bd;
  border-radius: 17px;
  background: #fdf9ef;
  box-shadow: 0 10px 26px #34452a09;
}
.detail-page .feature-art {
  border-radius: 12px;
  background-color: #e7ead8;
  background-image:
    linear-gradient(#7280610b 1px, transparent 1px),
    linear-gradient(90deg, #7280610b 1px, transparent 1px);
  background-size: 18px 18px;
}
.detail-page .balance-feature-art {
  background-color: #eee2d1;
}
.detail-page .feature-panel h3 {
  color: #294633;
}
.future-page .future-release-note {
  border-color: #d8d2be;
  border-radius: 16px;
  background: #fdf9ef;
  box-shadow: 6px 7px 0 #e3e1cc;
}

.document-page .page-heading,
.legal-document .page-heading {
  max-width: 840px;
  padding-top: 46px;
}
.document-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.document-identity .app-icon-frame {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 3px 4px 0 #dfe2ca;
}
.document-identity .app-icon-frame img {
  border-radius: 10px;
}
.document-identity strong {
  color: #244331;
  font-size: 20px;
  font-weight: 600;
}
.document-identity strong.pixel {
  font-weight: 400;
}
.document-page .page-heading h1,
.legal-document .page-heading h1 {
  font-size: clamp(36px, 4vw, 48px);
}
.help-document,
.legal-document {
  max-width: 900px;
}
.faq-list {
  display: grid;
  gap: 10px;
  border: 0;
}
details.faq {
  overflow: hidden;
  border: 1px solid #d9d3c0;
  border-radius: 12px;
  background: #fdf9ef;
}
.faq > summary {
  min-height: 72px;
  padding: 18px 22px;
}
.faq .answer {
  padding: 0 54px 22px 22px;
  font-size: 16px;
}
.contact-fold {
  overflow: hidden;
  border-color: #cbd0b6;
  border-radius: 14px;
  background: #e9edda;
}
.legal-heading {
  border-color: #d8d2be;
}
.prose {
  display: grid;
  gap: 14px;
}
.prose section {
  margin: 0;
  padding: 27px 28px;
  border: 1px solid #ddd6c3;
  border-radius: 13px;
  background: #fdf9ef;
}
.prose p,
.prose li {
  color: #475342;
  font-size: 16px;
}
.prose .meta,
.provider-card {
  border-radius: 9px;
  background: #eaeddb;
}
.detail-footer {
  margin-top: 58px;
  border-color: #d8d2be;
}

@media (max-width: 900px) {
  .catalog-page .catalog-intro {
    min-height: 270px;
  }
  .catalog-page .tool-grid {
    grid-template-columns: 1fr;
  }
  .app-detail-page .detail-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 42px;
  }
  .app-detail-page .detail-hero .page-heading {
    max-width: 700px;
  }
  .product-showcase {
    min-height: 440px;
  }
}

@media (max-width: 650px) {
  .detail-page .page-navigation {
    padding-top: 7px;
  }
  .detail-page .context-nav {
    padding: 5px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .detail-page .context-nav::-webkit-scrollbar {
    display: none;
  }
  .detail-page .context-nav a,
  .detail-page .context-nav span {
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 11px;
  }
  .catalog-page .catalog-intro {
    min-height: 240px;
  }
  .catalog-page .catalog-intro::after {
    width: 120px;
    height: 120px;
    right: -22px;
  }
  .catalog-page .tool-card {
    min-height: 188px;
    grid-template-columns: 118px minmax(0, 1fr);
    border-radius: 14px;
  }
  .catalog-page .tool-picture {
    min-height: 188px;
  }
  .catalog-page .tool-illustration {
    width: 125%;
  }
  .catalog-page .tool-body {
    padding: 20px 18px 54px;
  }
  .catalog-page .tool-labels {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .catalog-page .tool-body h2 {
    font-size: 24px;
  }
  .catalog-page .tool-body p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .catalog-card-arrow {
    width: 32px;
    height: 32px;
    right: 17px;
    bottom: 14px;
    font-size: 18px;
  }
  .app-detail-page .detail-hero .page-heading h1 {
    font-size: 34px;
  }
  .app-icon-frame {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .product-identity strong {
    font-size: 24px;
  }
  .product-showcase {
    min-height: 350px;
    border-radius: 16px;
    box-shadow: 6px 7px 0 #e2e1cb;
  }
  .showcase-label {
    top: 17px;
    left: 17px;
  }
  .showcase-foot {
    right: 17px;
    bottom: 15px;
  }
  .detail-page .feature-band {
    padding: 40px 0 44px;
  }
  .document-page .page-heading,
  .legal-document .page-heading {
    padding-top: 32px;
  }
  .document-identity {
    margin-bottom: 18px;
  }
  .faq > summary {
    min-height: 68px;
    padding: 16px 18px;
  }
  .faq .answer {
    padding: 0 40px 20px 18px;
    font-size: 15px;
  }
  .prose section {
    padding: 22px 20px;
  }
  .prose p,
  .prose li {
    font-size: 15px;
  }
}

/* The app index is a growing workshop wall: real icons stay selectable while
   the cabinet and empty pegs make room for future tools. */
.tool-cabinet {
  --cabinet-wood: #8a5936;
  --cabinet-dark: #654126;
  margin: 0 0 80px;
  padding: 15px 15px 0;
  border: 1px solid #684329;
  border-radius: 9px 9px 5px 5px;
  background:
    linear-gradient(90deg, #ffffff0c 0 1px, transparent 1px 16px),
    linear-gradient(165deg, #aa7449 0%, var(--cabinet-wood) 48%, #75492d 100%);
  box-shadow:
    0 21px 38px #3c2a1c24,
    inset 0 1px #d3a071,
    inset 0 -2px #573720;
}
.tool-cabinet-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.78fr);
  border: 4px solid var(--cabinet-dark);
  background: var(--cabinet-dark);
  box-shadow: inset 0 0 0 1px #c08b5b;
}
.tool-pegboard {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border-right: 4px solid var(--cabinet-dark);
  background-color: #38513e;
  background-image:
    radial-gradient(circle, #1e3327 0 1.5px, #7d927e 1.8px 2.4px, transparent 2.7px),
    linear-gradient(135deg, #ffffff08, transparent 60%);
  background-size: 24px 24px, auto;
  box-shadow: inset 0 0 28px #12261c46;
}
.tool-board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid #d8e1c72d;
  color: #f7f0dc;
}
.tool-board-heading > div {
  min-width: 0;
}
.tool-board-heading .pixel {
  display: block;
  margin-bottom: 7px;
  color: #d7d3a8;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.tool-board-heading h2 {
  color: #fff8e7;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.045em;
}
.tool-board-heading p {
  max-width: 230px;
  color: #d9e0d0;
  font-size: 12px;
  line-height: 1.7;
}
.tool-peg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(12px, 2vw, 24px);
}
.tool-peg-item,
.tool-empty-slot {
  min-width: 0;
  min-height: 202px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
}
.tool-peg-item {
  padding: 26px 4px 10px;
  border-radius: 12px;
  color: #f8f1df;
  text-decoration: none;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}
.tool-peg-item:hover {
  background: #f9f1dd0b;
  transform: translateY(-2px);
}
.tool-peg-item:focus-visible {
  outline: 3px solid #f0bc65;
  outline-offset: 2px;
}
.tool-peg-item[aria-selected="true"] {
  background: #f9f1dd14;
  box-shadow: inset 0 0 0 1px #e9d9ab38;
}
.tool-hook {
  width: 18px;
  height: 34px;
  position: absolute;
  z-index: 0;
  top: 13px;
  left: 50%;
  border: 3px solid #bda56d;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 2px 2px 0 #1a2d2280;
  transform: translateX(-50%);
}
.tool-hook::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: -7px;
  left: 2px;
  border-radius: 50%;
  background: #d1bc83;
  box-shadow: 1px 2px 0 #26372b;
}
.tool-icon-mount {
  width: clamp(80px, 8.8vw, 112px);
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid #e2d4b5;
  border-radius: 24%;
  background: #f7f1e4;
  box-shadow:
    0 10px 0 #20372a99,
    0 14px 22px #17271e70;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.tool-icon-mount img {
  width: 100%;
  border-radius: 20%;
}
.tool-peg-item:hover .tool-icon-mount,
.tool-peg-item[aria-selected="true"] .tool-icon-mount {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    0 13px 0 #20372a99,
    0 18px 25px #17271e75;
}
.tool-nameplate {
  width: min(100%, 144px);
  min-height: 38px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  margin-top: 18px;
  border: 1px solid #b6a889;
  border-radius: 3px;
  background: #f6efdc;
  color: #304534;
  box-shadow: 3px 4px 0 #1d30255e;
  text-align: center;
  line-height: 1.2;
}
.tool-nameplate > span {
  color: #8a6349;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}
.tool-nameplate strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  letter-spacing: -0.03em;
}
.tool-nameplate strong.pixel {
  font-size: 14px;
  font-weight: 400;
}
.tool-empty-slot {
  justify-content: center;
  opacity: 0.55;
}
.tool-empty-slot > span {
  width: 13px;
  height: 24px;
  position: relative;
  border: 3px solid #c1ad79;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  filter: drop-shadow(2px 3px 0 #1a2d2270);
}
.tool-empty-slot > span::before {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: -7px;
  left: -1px;
  border-radius: 50%;
  background: #d1bc83;
}
.tool-board-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 10px;
  margin: 6px 0 0 auto;
  border: 1px dashed #d7ddc059;
  border-radius: 3px;
  color: #d4dacb;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.tool-detail-shelf {
  min-width: 0;
  min-height: 100%;
  position: relative;
  padding: clamp(34px, 4vw, 52px) clamp(26px, 3.5vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 27px, #c6625024 27px 28px, transparent 28px),
    repeating-linear-gradient(#fbf4df 0 31px, #b6aa8c24 31px 32px);
  color: #304333;
  box-shadow: inset 12px 0 24px #4d32172b;
}
.tool-detail-shelf::after {
  content: "";
  width: 84px;
  height: 84px;
  position: absolute;
  right: -27px;
  bottom: -24px;
  border: 2px solid #56715533;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #56715512;
  transform: rotate(-14deg);
}
.tool-detail-kicker {
  display: block;
  padding-bottom: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid #9b8d6e55;
  color: #7a654b;
  font-size: 10px;
  letter-spacing: 0.13em;
}
.tool-detail-tape {
  width: 78px;
  height: 24px;
  position: absolute;
  top: 5px;
  left: 50%;
  background: #d8c0908a;
  box-shadow: inset 0 0 0 1px #b89e6c38;
  transform: translateX(-50%) rotate(-2deg);
}
.tool-detail-panel:not([hidden]) {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  animation: cabinet-note-in 0.28s ease both;
}
.tool-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.tool-detail-icon {
  width: 72px;
  height: 72px;
  flex: none;
  padding: 3px;
  border: 1px solid #c8b996;
  border-radius: 19px;
  background: #fffaf0;
  box-shadow: 4px 5px 0 #d2c6aa;
}
.tool-detail-number {
  display: block;
  margin-bottom: 2px;
  color: #8b7154;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.tool-detail-header h2 {
  color: #284331;
  font-size: clamp(25px, 2.6vw, 34px);
  letter-spacing: -0.05em;
}
.tool-detail-header h2.pixel {
  font-weight: 400;
}
.tool-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 21px;
}
.tool-detail-shelf .platform-badge {
  border: 1px solid #aea382;
  background: #f2ead4;
  color: #55634f;
}
.tool-detail-shelf .launch-badge {
  border-color: #c5a17e;
  background: #f1dfcc;
  color: #805239;
}
.tool-detail-panel > p {
  color: #4c5949;
  font-size: 14px;
  line-height: 1.85;
}
.tool-detail-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 17px;
  margin-top: 28px;
  border: 1px solid #294936;
  border-radius: 5px;
  background: #31543d;
  color: #fff8e7;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 4px 5px 0 #bdb08f;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.tool-detail-link:hover {
  background: #243f2e;
  transform: translate(1px, 1px);
}
.tool-detail-link span {
  font-family: Pixel, monospace;
  font-size: 18px;
}
.tool-cabinet-drawers {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  padding: 12px 4px 14px;
}
.tool-cabinet-drawers > span {
  position: relative;
  border: 1px solid #624027;
  border-radius: 2px;
  background:
    linear-gradient(175deg, #a46e43, #7b4d2e 75%),
    var(--cabinet-wood);
  box-shadow:
    inset 0 1px #c58c5a,
    0 3px 0 #5b3821;
}
.tool-cabinet-drawers i {
  width: 42px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #493724;
  border-radius: 8px 8px 5px 5px;
  background: #c1a56d;
  box-shadow: 0 3px 0 #4e3824;
  transform: translate(-50%, -50%);
}
@keyframes cabinet-note-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 880px) {
  .tool-cabinet-frame {
    grid-template-columns: 1fr;
  }
  .tool-pegboard {
    border-right: 0;
    border-bottom: 4px solid var(--cabinet-dark);
  }
  .tool-detail-shelf {
    min-height: 360px;
  }
  .tool-detail-panel > p {
    max-width: 620px;
  }
  .tool-detail-link {
    max-width: 360px;
  }
}
@media (max-width: 560px) {
  .tool-cabinet {
    margin-inline: -8px;
    margin-bottom: 54px;
    padding: 8px 8px 0;
  }
  .tool-cabinet-frame {
    border-width: 3px;
  }
  .tool-pegboard {
    padding: 23px 16px 25px;
  }
  .tool-board-heading {
    display: block;
    margin-bottom: 18px;
  }
  .tool-board-heading p {
    max-width: none;
    margin-top: 8px;
  }
  .tool-peg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }
  .tool-peg-item,
  .tool-empty-slot {
    min-height: 176px;
  }
  .tool-icon-mount {
    width: 82px;
  }
  .tool-nameplate {
    width: min(100%, 132px);
    margin-top: 15px;
  }
  .tool-detail-shelf {
    min-height: 380px;
    padding: 38px 23px 32px;
  }
  .tool-detail-header {
    gap: 13px;
  }
  .tool-detail-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }
  .tool-detail-header h2 {
    font-size: 25px;
  }
  .tool-detail-link {
    max-width: none;
  }
  .tool-cabinet-drawers {
    min-height: 72px;
    gap: 7px;
    padding-block: 9px 11px;
  }
  .tool-cabinet-drawers i {
    width: 31px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tool-detail-panel:not([hidden]) {
    animation: none;
  }
  .tool-peg-item,
  .tool-icon-mount,
  .tool-detail-link {
    transition: none;
  }
}

@media (max-width: 900px) {
  .tool-cabinet--illustrated .tool-empty-slot:nth-child(n + 7) {
    display: none;
  }
}

/* Large screens use the approved illustrated workshop as the cabinet itself.
   The app icons and copy remain live, localized HTML aligned to its empty zones. */
@media (min-width: 901px) {
  .catalog-page .page-navigation {
    min-height: 48px;
  }
  .tool-cabinet--illustrated .tool-board-heading {
    width: 1px !important;
    height: 1px !important;
    position: absolute !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
  .tool-cabinet--illustrated {
    width: min(1120px, calc(100vw - 64px));
    aspect-ratio: 1.64;
    position: relative;
    left: 50%;
    padding: 0;
    margin: 30px 0 62px;
    border: 0;
    border-radius: 0;
    background: #f5ecda url("images/app-cabinet-workshop.png") center bottom / cover no-repeat;
    box-shadow: none;
    transform: translateX(-50%);
  }
  .tool-cabinet--illustrated .tool-cabinet-frame {
    width: 63.1%;
    height: 56.8%;
    position: absolute;
    top: 9.6%;
    left: 23.7%;
    display: grid;
    grid-template-columns: 62% 34%;
    column-gap: 4%;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-pegboard {
    min-width: 0;
    height: 100%;
    padding: 5% 3.2% 4%;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-peg-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 31%;
    gap: 1.5% 2.6%;
    overflow-y: auto;
    scrollbar-color: #c19c56 transparent;
    scrollbar-width: thin;
  }
  .tool-cabinet--illustrated .tool-peg-item,
  .tool-cabinet--illustrated .tool-empty-slot {
    min-width: 0;
    min-height: 0;
  }
  .tool-cabinet--illustrated .tool-peg-item {
    justify-content: flex-start;
    padding: 17% 2px 2px;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-peg-item:hover,
  .tool-cabinet--illustrated .tool-peg-item[aria-selected="true"] {
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px);
  }
  .tool-cabinet--illustrated .tool-peg-item[aria-selected="true"]::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 50%;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-top: 0;
    border-bottom: 10px solid #f1d485;
    filter: drop-shadow(0 2px 0 #5b4226);
    transform: translateX(-50%);
  }
  .tool-cabinet--illustrated .tool-peg-item:focus-visible {
    outline: 3px solid #f4cf73;
    outline-offset: -1px;
  }
  .tool-cabinet--illustrated .tool-hook {
    width: 16px;
    height: 33px;
    top: 3%;
    border-width: 3px;
    border-color: #d0a34e;
    background: linear-gradient(90deg, #7e5528, #e3bd67 52%, #8f642e);
    box-shadow:
      2px 4px 0 #18281d8c,
      inset 1px 0 #f6d984;
  }
  .tool-cabinet--illustrated .tool-icon-mount {
    width: min(74%, 98px);
    padding: 3px;
    border: 2px solid #f3e2b7;
    border-radius: 22%;
    background: #f7f0df;
    box-shadow:
      0 6px 0 #18271f80,
      7px 10px 12px #13221965;
  }
  .tool-cabinet--illustrated .tool-peg-item:hover .tool-icon-mount,
  .tool-cabinet--illustrated .tool-peg-item[aria-selected="true"] .tool-icon-mount {
    transform: translateY(-2px);
    box-shadow:
      0 8px 0 #18271f80,
      8px 13px 14px #13221970;
  }
  .tool-cabinet--illustrated .tool-nameplate {
    width: 88%;
    min-height: 25px;
    padding: 4px 7px;
    margin-top: 9%;
    border-color: #7a5626;
    border-radius: 2px;
    background: linear-gradient(180deg, #f1cd72, #c99740);
    color: #16291d;
    box-shadow:
      0 2px 0 #4d361e,
      inset 0 1px #ffe49a;
  }
  .tool-cabinet--illustrated .tool-nameplate::before,
  .tool-cabinet--illustrated .tool-nameplate::after {
    content: "";
    width: 4px;
    height: 4px;
    position: absolute;
    top: 50%;
    border-radius: 50%;
    background: #76511f;
    box-shadow: inset 0 1px #e6c66e;
    transform: translateY(-50%);
  }
  .tool-cabinet--illustrated .tool-nameplate::before {
    left: 4px;
  }
  .tool-cabinet--illustrated .tool-nameplate::after {
    right: 4px;
  }
  .tool-cabinet--illustrated .tool-nameplate > span {
    display: none;
  }
  .tool-cabinet--illustrated .tool-nameplate strong,
  .tool-cabinet--illustrated .tool-nameplate strong.pixel {
    overflow: hidden;
    color: #17291e;
    font-family: inherit;
    font-size: clamp(9px, 0.85vw, 14px);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tool-cabinet--illustrated .tool-empty-slot {
    justify-content: flex-start;
    padding-top: 24%;
    opacity: 1;
  }
  .tool-cabinet--illustrated .tool-empty-slot > span {
    width: 14px;
    height: 29px;
    border-color: #c39242;
    background: linear-gradient(90deg, #755028, #dcb15a 50%, #825a2a);
    filter: drop-shadow(5px 7px 2px #14241b8c);
  }
  .tool-cabinet--illustrated .tool-board-foot {
    display: none;
  }
  .tool-cabinet--illustrated .tool-detail-shelf {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 7% 8% 5%;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-detail-shelf::after,
  .tool-cabinet--illustrated .tool-detail-kicker,
  .tool-cabinet--illustrated .tool-detail-tape {
    display: none;
  }
  .tool-cabinet--illustrated .tool-detail-panel:not([hidden]) {
    height: 100%;
    align-items: center;
    text-align: center;
  }
  .tool-cabinet--illustrated .tool-detail-header {
    display: flex;
    flex-direction: column;
    gap: 5%;
    margin-bottom: 5%;
  }
  .tool-cabinet--illustrated .tool-detail-icon {
    width: min(42%, 112px);
    height: auto;
    padding: 2px;
    border: 2px solid #f1dfb6;
    border-radius: 22%;
    background: #fff9e9;
    box-shadow:
      0 5px 0 #b8a276,
      5px 8px 10px #705c3a35;
  }
  .tool-cabinet--illustrated .tool-detail-number {
    display: none;
  }
  .tool-cabinet--illustrated .tool-detail-header h2,
  .tool-cabinet--illustrated .tool-detail-header h2.pixel {
    margin-top: 5%;
    color: #284431;
    font-family: inherit;
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 700;
  }
  .tool-cabinet--illustrated .tool-detail-badges {
    justify-content: center;
    margin-bottom: 6%;
  }
  .tool-cabinet--illustrated .tool-detail-shelf .platform-badge {
    min-height: 20px;
    padding: 2px 8px;
    border-color: #9d8c67;
    background: #f7efdcbd;
    color: #3e5744;
    font-size: clamp(8px, 0.72vw, 11px);
  }
  .tool-cabinet--illustrated .tool-detail-panel > p {
    width: 100%;
    padding-top: 6%;
    border-top: 1px solid #99876480;
    color: #334a39;
    font-size: clamp(10px, 0.93vw, 14px);
    line-height: 1.75;
    text-align: left;
  }
  .tool-cabinet--illustrated .tool-detail-link {
    width: 100%;
    min-height: clamp(34px, 3.2vw, 48px);
    padding: 7px 14px;
    margin-top: auto;
    border: 2px solid #1f3829;
    border-radius: 3px;
    background: #2f513b;
    box-shadow:
      0 4px 0 #4a3924,
      inset 0 1px #6d896f;
    font-size: clamp(9px, 0.9vw, 14px);
  }
  .tool-cabinet--illustrated .tool-cabinet-drawers {
    display: none;
  }
}

.catalog-page .catalog-intro::after {
  display: none;
}

/* The mobile cabinet uses its own illustrated portrait plate instead of the
   earlier CSS-only fallback, while keeping the same live controls and copy. */
@media (max-width: 900px) {
  .tool-cabinet--illustrated {
    width: min(100%, 440px);
    aspect-ratio: 1 / 2;
    position: relative;
    left: auto;
    padding: 0;
    margin: 24px auto 54px;
    border: 0;
    border-radius: 0;
    background: #f5ecda url("images/app-cabinet-workshop-mobile.png") center / 100% 100% no-repeat;
    box-shadow: none;
    transform: none;
  }
  .tool-cabinet--illustrated .tool-cabinet-frame {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-pegboard {
    width: 70.7%;
    height: 39.3%;
    position: absolute;
    top: 9.6%;
    left: 15.4%;
    padding: 5% 2.5% 4%;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-board-heading,
  .tool-cabinet--illustrated .tool-board-foot {
    display: none;
  }
  .tool-cabinet--illustrated .tool-peg-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2% 3%;
    overflow: hidden;
  }
  .tool-cabinet--illustrated .tool-peg-item,
  .tool-cabinet--illustrated .tool-empty-slot {
    min-width: 0;
    min-height: 0;
  }
  .tool-cabinet--illustrated .tool-peg-item {
    justify-content: flex-start;
    padding: 20% 1px 1px;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-peg-item:hover,
  .tool-cabinet--illustrated .tool-peg-item[aria-selected="true"] {
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
  }
  .tool-cabinet--illustrated .tool-peg-item[aria-selected="true"]::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 1%;
    left: 50%;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #f1d485;
    border-left: 5px solid transparent;
    filter: drop-shadow(0 1px 0 #5b4226);
    transform: translateX(-50%);
  }
  .tool-cabinet--illustrated .tool-peg-item:focus-visible {
    outline: 2px solid #f4cf73;
    outline-offset: -1px;
  }
  .tool-cabinet--illustrated .tool-hook {
    width: 11px;
    height: 23px;
    top: 4%;
    border-width: 2px;
    border-color: #d0a34e;
    background: linear-gradient(90deg, #7e5528, #e3bd67 52%, #8f642e);
    box-shadow:
      1px 3px 0 #18281d8c,
      inset 1px 0 #f6d984;
  }
  .tool-cabinet--illustrated .tool-hook::before {
    width: 6px;
    height: 6px;
    top: -5px;
    left: 1px;
  }
  .tool-cabinet--illustrated .tool-icon-mount {
    width: min(72%, 68px);
    padding: 2px;
    border: 2px solid #f3e2b7;
    border-radius: 22%;
    background: #f7f0df;
    box-shadow:
      0 4px 0 #18271f80,
      4px 7px 9px #13221965;
  }
  .tool-cabinet--illustrated .tool-peg-item:hover .tool-icon-mount,
  .tool-cabinet--illustrated .tool-peg-item[aria-selected="true"] .tool-icon-mount {
    transform: translateY(-1px);
    box-shadow:
      0 5px 0 #18271f80,
      5px 8px 10px #13221970;
  }
  .tool-cabinet--illustrated .tool-nameplate {
    width: 94%;
    min-height: 19px;
    padding: 2px 6px;
    margin-top: 10%;
    border-color: #7a5626;
    border-radius: 2px;
    background: linear-gradient(180deg, #f1cd72, #c99740);
    color: #16291d;
    box-shadow:
      0 2px 0 #4d361e,
      inset 0 1px #ffe49a;
  }
  .tool-cabinet--illustrated .tool-nameplate > span {
    display: none;
  }
  .tool-cabinet--illustrated .tool-nameplate strong,
  .tool-cabinet--illustrated .tool-nameplate strong.pixel {
    overflow: hidden;
    color: #17291e;
    font-family: inherit;
    font-size: clamp(7px, 2.2vw, 10px);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tool-cabinet--illustrated .tool-empty-slot {
    justify-content: flex-start;
    padding-top: 28%;
    opacity: 1;
  }
  .tool-cabinet--illustrated .tool-empty-slot > span {
    width: 10px;
    height: 21px;
    border-width: 2px;
    border-color: #c39242;
    background: linear-gradient(90deg, #755028, #dcb15a 50%, #825a2a);
    filter: drop-shadow(3px 5px 1px #14241b8c);
  }
  .tool-cabinet--illustrated .tool-empty-slot > span::before {
    width: 6px;
    height: 6px;
    top: -5px;
    left: 0;
  }
  .tool-cabinet--illustrated .tool-detail-shelf {
    width: 70.3%;
    height: 26.9%;
    min-height: 0;
    position: absolute;
    top: 51.1%;
    left: 15.6%;
    padding: 5% 6%;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }
  .tool-cabinet--illustrated .tool-detail-shelf::after,
  .tool-cabinet--illustrated .tool-detail-kicker,
  .tool-cabinet--illustrated .tool-detail-tape {
    display: none;
  }
  .tool-cabinet--illustrated .tool-detail-panel:not([hidden]) {
    height: 100%;
    display: flex;
    align-items: stretch;
    text-align: left;
  }
  .tool-cabinet--illustrated .tool-detail-header {
    display: flex;
    flex-direction: row;
    gap: 9px;
    margin-bottom: 5px;
  }
  .tool-cabinet--illustrated .tool-detail-icon {
    width: clamp(40px, 13vw, 54px);
    height: clamp(40px, 13vw, 54px);
    padding: 1px;
    border: 1px solid #c8b996;
    border-radius: 20%;
    background: #fff9e9;
    box-shadow: 3px 4px 0 #b8a276;
  }
  .tool-cabinet--illustrated .tool-detail-number {
    display: none;
  }
  .tool-cabinet--illustrated .tool-detail-header h2,
  .tool-cabinet--illustrated .tool-detail-header h2.pixel {
    margin: 0;
    color: #284431;
    font-family: inherit;
    font-size: clamp(17px, 5.2vw, 22px);
    font-weight: 700;
  }
  .tool-cabinet--illustrated .tool-detail-badges {
    gap: 4px;
    margin: 0 0 5px;
  }
  .tool-cabinet--illustrated .tool-detail-shelf .platform-badge {
    min-height: 17px;
    padding: 1px 6px;
    border-color: #9d8c67;
    background: #f7efdcbd;
    color: #3e5744;
    font-size: 8px;
  }
  .tool-cabinet--illustrated .tool-detail-panel > p {
    display: -webkit-box;
    width: 100%;
    padding-top: 5px;
    overflow: hidden;
    border-top: 1px solid #99876480;
    color: #334a39;
    font-size: clamp(8px, 2.5vw, 11px);
    line-height: 1.55;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .tool-cabinet--illustrated .tool-detail-link {
    width: 100%;
    min-height: 31px;
    padding: 5px 9px;
    margin-top: auto;
    border: 1px solid #1f3829;
    border-radius: 2px;
    background: #2f513b;
    box-shadow:
      0 3px 0 #4a3924,
      inset 0 1px #6d896f;
    font-size: clamp(8px, 2.4vw, 10px);
  }
  .tool-cabinet--illustrated .tool-cabinet-drawers {
    display: none;
  }
}

/* ==========================================================================
   Modern Craft Studio: Dedicated Tools Catalog (/apps/)
   ========================================================================== */

.catalog-page main {
  min-height: 80vh;
  padding-bottom: 96px;
}

.catalog-page .catalog-intro {
  padding: clamp(24px, 3.5vw, 44px) 0 24px;
}

.catalog-page .page-heading {
  max-width: 780px;
  padding: 0;
}

.catalog-page .page-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--quiet);
  margin-bottom: 12px;
}

.catalog-page .page-heading .eyebrow .index {
  font-family: Pixel, monospace;
  font-size: 14px;
  color: var(--orange);
}

.catalog-page .page-heading h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

.catalog-page .catalog-title-line {
  display: block;
}

.catalog-page .page-heading .lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--quiet);
  max-width: 640px;
  margin: 0;
}

/* Toolbar & Filters */
.catalog-page .catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  margin-bottom: 36px;
}

.catalog-page .catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-page .catalog-filter-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--quiet);
  text-transform: uppercase;
}

.catalog-page .filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-page .filter-pill {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--quiet);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.catalog-page .filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.catalog-page .filter-pill.is-active,
.catalog-page .filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  font-weight: 600;
}

.catalog-page .filter-count {
  font-size: 11px;
  opacity: 0.7;
}

.catalog-page .catalog-status-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.catalog-page .catalog-hint {
  font-size: 11.5px;
  color: var(--quiet);
  letter-spacing: 0.04em;
}

.catalog-page .catalog-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.catalog-page .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 55, 42, 0.12);
}

/* Catalog Grid */
.catalog-page .catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: clamp(24px, 2.8vw, 36px);
}

/* Catalog Card */
.catalog-page .catalog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 440px;
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  position: relative;
}

.catalog-page .catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}

.catalog-page .catalog-card.is-hidden {
  display: none !important;
}

.catalog-page .catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-page .catalog-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.catalog-page .catalog-card-num {
  font-family: Pixel, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.catalog-page .catalog-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.catalog-page .catalog-card-badges .platform-badge {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--sheet-subtle);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
}

.catalog-page .catalog-card-art {
  width: 64px;
  height: 64px;
  margin: 0;
  flex: none;
  display: grid;
  place-items: center;
}

.catalog-page .catalog-card-art img {
  width: 64px;
  height: 64px;
  border-radius: 22% !important;
  border: 1px solid rgba(30, 49, 36, 0.12) !important;
  box-shadow: 0 4px 10px rgba(30, 49, 36, 0.08) !important;
  display: block;
  object-fit: cover;
  background: #fff;
  transition: transform 0.2s ease;
}

.catalog-page .catalog-card:hover .catalog-card-art img {
  transform: scale(1.05);
}

.catalog-page .catalog-card-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.catalog-page .catalog-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 10px;
}

.catalog-page .catalog-card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--quiet);
  margin: 0 0 18px;
}

.catalog-page .tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.catalog-page .tool-tags li {
  font-size: 12px;
  line-height: 1.4;
  color: var(--quiet);
  background: var(--sheet);
  border: 1px solid var(--rule-subtle);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: normal;
  word-break: keep-all;
}

/* Catalog Card Footer: 2-Tier Dedicated Rows */
.catalog-page .catalog-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-page .catalog-action-btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--green);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--green);
  box-shadow: 2px 2px 0 rgba(30, 49, 36, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.catalog-page .catalog-action-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(30, 49, 36, 0.25);
  text-decoration: none;
}

.catalog-page .catalog-action-btn .arrow {
  font-size: 16px;
  line-height: 1;
}

.catalog-page .catalog-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.catalog-page .catalog-quick-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--quiet);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--sheet-subtle);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.catalog-page .catalog-quick-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--sheet);
  text-decoration: none;
}

.catalog-page .catalog-quick-link .quick-link-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 14px;
  height: 14px;
}

.catalog-page .catalog-quick-link .arrow {
  font-size: 12px;
  opacity: 0.6;
}

/* Future Tool Banner */
.catalog-page .catalog-future-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  border: 1.5px dashed rgba(36, 55, 42, 0.2);
  border-radius: 18px;
  background: var(--sheet-subtle);
  padding: 22px 28px;
}

.catalog-page .future-banner-copy {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-page .future-plus {
  font-size: 24px;
  color: var(--orange);
  line-height: 1;
  flex: none;
}

.catalog-page .future-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0;
}

.catalog-page .future-desc {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--quiet);
  margin: 0;
}

/* Responsive queries */
@media (max-width: 860px) {
  .catalog-page .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .catalog-page .catalog-status-wrap {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .catalog-page .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-page .catalog-card {
    min-height: 0;
    padding: 22px 20px 20px;
  }
  .catalog-page .catalog-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .catalog-page .catalog-action-btn {
    justify-content: center;
    width: 100%;
  }
  .catalog-page .catalog-quick-links {
    width: 100%;
    justify-content: stretch;
  }
  .catalog-page .catalog-quick-link {
    flex: 1;
    justify-content: center;
  }
  .catalog-page .catalog-future-slot {
    min-height: 220px;
    padding: 24px;
  }
}
