/* Phase 2 mobile presentation. Loaded last for the shell, and after native CSS
   for Woo account pages. Keep data, routing, and purchase state in their owners. */
@media (max-width: 767px) {
  body#typewriterWorkshop {
    -webkit-text-size-adjust: 100%;
  }

  body#typewriterWorkshop :is(button, a, summary, select, input[type="checkbox"]) {
    touch-action: manipulation;
  }

  body#typewriterWorkshop :is(button, a, summary, select, input):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  /* Home sizing is owned by the phone block below. */
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions {
    gap: 2px;
    margin-top: 0;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > :is(.btn-primary, .btn-quiet) {
    min-height: 44px;
    padding-block: 8px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-section-heading {
    margin-bottom: 24px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-actions :is(a, button) {
    min-height: 44px;
  }

  /* Custom: writing comes first, with enough room for a three-line request. */
  body#typewriterWorkshop #view-input .input-hero {
    padding-block: 14px 8px;
  }
  body#typewriterWorkshop #view-input .tw-creation-toolbar {
    row-gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
  }
  body#typewriterWorkshop #modeOne .one-card {
    padding-top: 19px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer .one-editor {
    min-height: 180px;
    padding: 12px 16px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer .one-textarea {
    min-height: 112px !important;
    height: 112px;
    font-size: 17px !important;
    line-height: 1.6;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer {
    padding: 16px;
    row-gap: 12px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 0;
    min-height: 44px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-example-actions {
    margin-left: auto;
  }
  body#typewriterWorkshop #view-input #modeStudio :is(.moment-card,.dims-card,.personal-card,.board-card) {
    padding: 16px;
  }
  body#typewriterWorkshop #view-input #modeStudio #momentRow {
    gap: 6px;
  }
  body#typewriterWorkshop #view-input #modeStudio #momentRow button {
    min-height: 44px;
    padding: 8px 12px;
  }
  body#typewriterWorkshop #view-input #modeStudio .studio-grid {
    gap: 20px;
  }
  body#typewriterWorkshop #view-input .custom-quick-tips {
    max-height: min(72svh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body#typewriterWorkshop #view-input :is(.mode-btn, .custom-help-toggle, .custom-guides-link, .custom-tip-tab, .custom-tips-close) {
    min-height: 44px;
  }
  body#typewriterWorkshop #view-input :is(textarea, input, select) {
    font-size: max(16px, 1em);
  }

  /* Creation waiting and the finished Custom product keep their view controls
     comfortable while preserving the existing generation and cart handlers. */
  body#typewriterWorkshop #view-waiting :is(.preview-bg, .wait-browse, .brief-toggle, .ready-image-fail button) {
    min-height: 44px;
  }
  body#typewriterWorkshop #view-result :is(.pdp-view-switcher button, .pdp-back, .price-tier, #cartBtn),
  body#typewriterWorkshop #view-soon .btn,
  body#typewriterWorkshop #view-route a {
    min-height: 44px;
  }
  body#typewriterWorkshop #view-route a {
    min-width: 44px;
  }

  /* Ready-made catalog, filter drawer and product details. */
  body#typewriterWorkshop #view-ready :is(.rm-mobile-occasion select, .ready-filter-trigger, .ready-search input, .ready-sort select) {
    min-height: 48px;
    font-size: 16px;
  }
  body#typewriterWorkshop #view-ready .ready-filter-shell {
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body#typewriterWorkshop #view-ready-product :is(.rmp-back, .rmp-thumbnails button, .rmp-presets button, .rmp-stepper button, .rmp-image-open) {
    min-height: 44px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-thumbnails {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    contain: layout paint;
    overscroll-behavior-inline: contain;
  }
  body#typewriterWorkshop #view-ready-product .rmp-stepper {
    width: 136px;
    min-width: 136px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-stepper button {
    min-width: 44px;
    flex: 0 0 44px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-stepper input {
    width: 46px;
    min-width: 40px;
    flex: 1 1 46px;
  }
  body#typewriterWorkshop #view-ready-product :is(input, select) {
    font-size: 16px;
  }

  /* Community: ranking controls wrap as a complete row on narrow phones. */
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking header {
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList {
    min-width: 0;
    max-width: 100%;
    contain: layout paint;
    overscroll-behavior-inline: contain;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-rank-tools {
    min-width: 0;
    max-width: 100%;
  }
  body#typewriterWorkshop #view-community.cd-community-914 :is(.cd-periods button, .cd-campaign-toggle, .cd-library-tools button, .cd-deck-filters button) {
    min-height: 44px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .community-favorite {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px !important;
  }
  body#typewriterWorkshop #view-community.cd-community-914 :is(#communityShelfTrack, #communityLibraryGrid, #communityReadyPageGrid) .cd-card > .community-favorite {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px !important;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-library-tools {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Saved work, reading and policy pages keep a clear reading measure. */
  body#typewriterWorkshop :is(#view-designs, #view-creation-history, #view-guides, #view-guide, #view-policy, #view-about) :is(input, select, textarea) {
    font-size: 16px;
  }
  body#typewriterWorkshop #view-creation-history .history-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  body#typewriterWorkshop #view-creation-history .history-field :is(input, select) {
    min-height: 48px;
  }
  body#typewriterWorkshop #view-guides :is(.guide-filter, .guide-topic-filters a, .guides-back, .guide-entry-link),
  body#typewriterWorkshop #view-guide :is(.guide-breadcrumb a, .guide-related a),
  body#typewriterWorkshop #view-policy :is(.cw-policy-breadcrumb a, .cw-policy-switcher a, .cw-policy-related a) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body#typewriterWorkshop #view-guide .phase2-guide-back {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  body#typewriterWorkshop #view-policy .cw-policy-switcher {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  /* Cart and checkout: keep controls above the device home indicator. */
  body#typewriterWorkshop .cw-cart-close {
    min-width: 44px;
    min-height: 44px;
  }
  body#typewriterWorkshop .cw-cart-check {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 44px;
  }
  body#typewriterWorkshop .cw-cart-check input {
    width: 20px;
    height: 20px;
  }
  body#typewriterWorkshop .cw-cart-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  body#typewriterWorkshop .cw-checkout :is(.co-back, .co-mobile-summary, .co-inline-action, .co-wallet, .co-footer-links a) {
    min-height: 44px;
  }
  body#typewriterWorkshop .cw-checkout :is(input, select, textarea) {
    font-size: 16px;
  }
  body.phase2-native-page.phase2-checkout-v914 .p2-co-checkout :is(.p2-co-mobile-summary, .p2-co-primary, .p2-co-inline-action, .p2-co-gateway-picker button) {
    min-height: 48px;
  }
  body.phase2-native-page.phase2-checkout-v914 .p2-co-checkout {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 359px) {
  body#typewriterWorkshop #view-account .op-filter-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px !important;
    overflow: visible !important;
  }
  body#typewriterWorkshop #view-account .op-filter-bar button {
    min-width: 0;
    padding-inline: 0;
    font-size: 12px;
    white-space: nowrap;
  }
  body#typewriterWorkshop #view-account .op-filter-bar button span {
    display: none;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking header {
    align-items: stretch;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-rank-tools,
  body#typewriterWorkshop #view-community.cd-community-914 .cd-periods {
    width: 100%;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-periods {
    justify-content: space-between;
    gap: 6px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-copy > .hw-scene-headline {
    font-size: 37px;
  }
}

/* Woo account endpoints use the independent native document shell. */
@media (max-width: 520px) {
  body#typewriterWorkshop #view-account .cw-account-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    overflow: visible !important;
  }
  body#typewriterWorkshop #view-account .cw-account-nav a:not(.cw-account-share-link) {
    min-height: 44px !important;
    padding-inline: 4px !important;
    justify-content: center;
    white-space: normal;
  }
  body#typewriterWorkshop #view-account .cw-account-nav a.cw-account-share-link {
    grid-column: 1 / -1 !important;
  }
  body#typewriterWorkshop #view-policy .cw-policy-switcher {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px !important;
    overflow: visible !important;
  }
  body#typewriterWorkshop #view-policy .cw-policy-switcher a {
    width: 100%;
    justify-content: center;
    padding-inline: 5px !important;
    white-space: normal !important;
    text-align: center;
  }
  body.phase2-native-page .phase2-native-header {
    gap: 8px 12px;
    padding: 12px 18px;
  }
  body.phase2-native-page .phase2-native-wordmark {
    font-family: var(--p2-sans);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.04em;
  }
  body.phase2-native-page .phase2-native-header nav {
    gap: 14px;
  }
  body.phase2-native-page .phase2-native-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body.phase2-native-page .phase2-native-main--account {
    padding: 20px 12px 42px;
  }
  body.phase2-native-page .phase2-auth-shell {
    min-height: 0;
    border-radius: 18px;
  }
  body.phase2-native-page .phase2-auth-form {
    padding: 24px 20px 28px;
  }
  body.phase2-native-page .phase2-account-google:has(.phase2-account-google-button:empty):not(:has(.woocommerce-error:not([hidden]))) {
    display: none;
  }
  body.phase2-native-page .phase2-account-google-button:empty,
  body.phase2-native-page .phase2-account-google:has(.phase2-account-google-button:empty) .phase2-account-auth-divider {
    display: none;
  }
  body.phase2-native-page .phase2-auth-story {
    min-height: 0;
    padding: 28px 22px;
  }
  body.phase2-native-page .phase2-auth-story h1 {
    font-size: 36px;
  }
  body.phase2-native-page .phase2-auth-story ul {
    margin-top: 24px;
  }
  body.phase2-native-page .wf-identity-panel h2 {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.08;
  }
  body.phase2-native-page .wf-identity-form {
    margin-top: 22px;
  }
  body.phase2-native-page .wf-identity-form :is(input[type="email"], input[type="text"]) {
    font-size: 16px;
  }
  body.phase2-native-page .wf-marketing-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    line-height: 1.45;
  }
  body.phase2-native-page .wf-marketing-consent input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
  }
  body.phase2-native-page .phase2-native-content .woocommerce-MyAccount-content {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > a {
    transition: none;
  }
}

/* Three deliberate presentations share the same routes and commerce state. */
.p2-mobile-dock { display: none; }

/* Wide screens keep the editorial composition and generous reading measure. */
@media (min-width: 1200px) {
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-copy {
    max-width: min(700px, 49vw);
  }
  body#typewriterWorkshop #view-guides .guide-recommendations-grid {
    gap: clamp(24px, 2.2vw, 38px);
  }
}

/* Portrait tablets: preserve two-column creation and purchase flows while
   giving editorial cards room to read. */
@media (min-width: 768px) and (max-width: 1199px) {
  body#typewriterWorkshop {
    --cw-header-height: 76px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 12px;
    height: 76px;
    min-height: 76px;
    padding: 12px 22px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-logo {
    flex: none;
    font-size: 18px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }
  /* Match the shared shell's destination IDs: its desktop type otherwise wins
     over a class-only tablet rule and overflows the flexible link column. */
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-links :is(#navCustom, #navReady, #navCommunity, #navAbout) {
    padding: 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-right {
    display: flex;
    flex: none;
    gap: 4px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .global-task-trigger .md-label {
    display: none;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .global-task-trigger {
    flex: 0 0 44px;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .global-task-trigger .designs-icon {
    display: block;
    width: 18px;
    height: 18px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-stepper {
    width: 136px;
    min-width: 136px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-stepper button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-stepper input {
    flex: 1 1 48px;
    min-width: 40px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .community-favorite {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px !important;
  }
  body#typewriterWorkshop #view-guide .phase2-guide-back {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene {
    height: min(78svh, 780px);
    min-height: 480px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-copy {
    bottom: clamp(42px, 6svh, 74px);
    max-width: min(640px, 78vw);
  }
  body#typewriterWorkshop #view-ready .rm-catalog-hero {
    min-height: 0 !important;
    padding: calc(var(--cw-header-height, 76px) + 26px) 36px 30px !important;
  }
  body#typewriterWorkshop #view-ready .rm-occasion-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px !important;
    max-width: 100%;
    overflow-x: auto !important;
    padding: 10px 4px !important;
    contain: layout paint;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  body#typewriterWorkshop #view-ready .rm-occasion-tabs::-webkit-scrollbar {
    display: none;
  }
  body#typewriterWorkshop #view-ready .rm-occasion-tabs > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body#typewriterWorkshop #view-ready .rm-ai-explore {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }
  body#typewriterWorkshop #view-guides .guide-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  body#typewriterWorkshop #view-guides .guide-featured-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 0 24px;
    align-content: start;
  }
  body#typewriterWorkshop #view-guides .guide-featured-card:last-child .guide-entry-cover-link {
    grid-row: 1 / 5;
  }
  body.phase2-native-page .phase2-auth-shell {
    min-height: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
  body.phase2-native-page .phase2-auth-form {
    grid-column: 1;
    grid-row: 1;
    padding: 42px 36px;
  }
  body.phase2-native-page .phase2-auth-story {
    grid-column: 2;
    grid-row: 1;
    padding: 40px 34px;
  }
  body.phase2-native-page .phase2-auth-story h1 {
    font-size: clamp(42px, 5.5vw, 58px);
  }
}

/* Phones use a single-row masthead, persistent primary routes, compact
   shopping cards and action-first saved-work layouts. */
@media (max-width: 767px) {
  body#typewriterWorkshop {
    --cw-header-height: 60px;
    --p2-dock-height: 58px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 6px;
    width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 6px 12px;
    border-bottom: 1px solid #e9e9e7;
    background: #fff;
  }
  body#typewriterWorkshop[data-cw-masthead] > .page > .nav[aria-label="Main"] {
    background: #fff;
    border-color: #e9e9e7;
    box-shadow: none;
    backdrop-filter: none;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"]::before {
    display: none;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-links {
    display: none;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-logo {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 18px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-right {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] :is(.global-task-trigger, .nav-cart, .nav-user) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 44px;
    color: #202124;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .global-task-trigger .md-label {
    display: none;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-user {
    padding-inline: 4px;
    font-size: 11px;
  }
  body#typewriterWorkshop > .page:has(> #view-home.active) {
    padding-top: 60px;
  }
  body#typewriterWorkshop .p2-mobile-dock {
    position: fixed;
    z-index: 205;
    inset: auto 0 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100vw;
    max-width: 100%;
    height: calc(var(--p2-dock-height) + env(safe-area-inset-bottom));
    padding: 5px max(5px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(5px, env(safe-area-inset-right));
    border-top: 1px solid #e7e4df;
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 -8px 28px rgb(36 32 27 / 7%);
    backdrop-filter: blur(18px);
  }
  body#typewriterWorkshop .p2-mobile-dock a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    padding: 3px 1px 4px;
    border-radius: 9px;
    color: #77736f;
    font: 600 10px/1.1 var(--sans, sans-serif);
    letter-spacing: -.015em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
  }
  body#typewriterWorkshop .p2-mobile-dock a[aria-current="page"] {
    color: #212121;
    background: #f6f3ef;
  }
  body#typewriterWorkshop .p2-mobile-dock a[aria-current="page"]::before {
    position: absolute;
    top: -5px;
    left: 34%;
    width: 32%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: #ef6a3b;
    content: "";
  }
  body#typewriterWorkshop .p2-mobile-dock a:focus-visible {
    outline: 2px solid #202124;
    outline-offset: -2px;
  }
  body#typewriterWorkshop .p2-mobile-dock svg {
    width: 21px;
    height: 21px;
    flex: none;
  }
  body#typewriterWorkshop.cw-cart-open .p2-mobile-dock {
    visibility: hidden;
    pointer-events: none;
  }
  body#typewriterWorkshop .site-footer {
    padding-bottom: calc(var(--p2-dock-height) + env(safe-area-inset-bottom));
  }
  /* The local-only payment-mode note must leave every dock item legible. */
  body#typewriterWorkshop #phase2-local-environment {
    bottom: calc(var(--p2-dock-height) + env(safe-area-inset-bottom) + 5px) !important;
    transform: scale(.8);
    transform-origin: bottom left;
  }
  body#typewriterWorkshop.cw-cart-open #phase2-local-environment {
    display: none !important;
  }

  /* The moving Home image remains full bleed; its choices read as two clear
     thumb-sized actions above the dock. */
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene {
    height: clamp(420px, 76svh, 640px);
    min-height: 0;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-copy {
    right: 20px;
    bottom: 26px;
    left: 20px;
    gap: 8px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin-top: 12px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > :is(.btn-primary, .btn-quiet) {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > .btn-quiet {
    border: 1px solid rgb(255 255 255 / 70%) !important;
    background: rgb(20 22 25 / 45%) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > .btn-primary {
    border: 1px solid #fff !important;
    background: #fff !important;
    color: #171717 !important;
    text-decoration: none;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > :is(.btn-primary, .btn-quiet) {
    border-radius: 4px !important;
    text-decoration: none;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-actions > .btn-primary > span[aria-hidden] {
    color: #171717;
  }

  /* Photo-led catalog: the entire bag and matching card remain legible. */
  body#typewriterWorkshop #view-ready .rm-catalog-hero {
    min-height: 0 !important;
    margin-top: -60px;
    margin-bottom: 2px;
    padding: 80px 16px 16px !important;
  }
  body#typewriterWorkshop #view-ready .rm-catalog-hero .rm-intro h1 {
    font-size: clamp(29px, 8vw, 34px) !important;
  }
  body#typewriterWorkshop #view-ready .rm-catalog-hero .rm-intro p {
    margin-top: 8px;
  }
  body#typewriterWorkshop #view-ready .rm-shopping-surface {
    margin-top: 0;
  }
  body#typewriterWorkshop #view-ready .rm-shop-toolbar {
    gap: 8px 12px;
    padding: 10px 0 14px;
  }
  body#typewriterWorkshop #view-ready .rm-shop-toolbar #readyFilterTrigger {
    min-width: 116px;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px solid #242424;
    border-radius: 4px;
    background: #242424;
    color: #fff;
    font-weight: 650;
  }
  body#typewriterWorkshop #view-ready .ready-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 14px !important;
  }
  body#typewriterWorkshop #view-ready .ready-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body#typewriterWorkshop #view-ready .ready-product-visual-link {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 4px;
    background: #f5f5f5;
  }
  body#typewriterWorkshop #view-ready #readyProductGrid .ready-product-media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 4px;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 12px 0 0;
  }
  body#typewriterWorkshop #view-ready .ready-product-title {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  body#typewriterWorkshop #view-ready .ready-product-commerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: auto;
  }
  body#typewriterWorkshop #view-ready .ready-product-pricing {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  body#typewriterWorkshop #view-ready .ready-product-sale-price {
    grid-column: auto;
    grid-row: auto;
    font-size: 16px;
  }
  body#typewriterWorkshop #view-ready .ready-product-original-price {
    grid-column: auto;
    grid-row: auto;
    font-size: 13px;
  }
  body#typewriterWorkshop #view-ready .ready-product-detail {
    display: inline-flex;
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy .ready-add-cart {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: stretch !important;
    width: 100%;
    min-width: 0 !important;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
  }
  body#typewriterWorkshop #view-ready .ready-product-card .rm-ai-customize {
    top: 8px;
    left: auto;
    right: 8px;
  }

  /* Saved work puts the real Create action before its decorative example. */
  body#typewriterWorkshop #view-designs .dc-empty-stage {
    gap: 12px;
    margin: 8px 12px 12px;
    padding: 12px;
    border-radius: 16px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-invitation {
    order: -1;
    width: 100%;
    max-width: none;
    padding: 20px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-invitation h2 {
    font-size: 25px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-placeholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: none;
    padding: 10px 14px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-art {
    flex: 0 0 58px;
    width: 58px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-bag {
    max-height: 66px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-plus {
    width: 28px;
    height: 28px;
  }
  body#typewriterWorkshop #view-designs .dc-empty-placeholder-label {
    text-align: left;
  }

  /* Reading and story pages retain the image-led identity with shorter
     section introductions and a comfortable line length. */
  body#typewriterWorkshop #view-guides .guide-recommendations {
    margin-bottom: 28px;
  }
  body#typewriterWorkshop #view-guides .guide-recommendations-grid {
    gap: 28px;
  }
  body#typewriterWorkshop #view-guides .guide-recommendations-title {
    margin-bottom: 14px;
  }
  body#typewriterWorkshop #view-about.cw-about .cw-about__film-frame {
    height: clamp(380px, 66svh, 540px);
    min-height: 0;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking {
    border-radius: 16px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList {
    scroll-snap-type: x proximity;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene {
    height: calc(100svh - 60px - var(--p2-dock-height)) !important;
    min-height: 0 !important;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-copy {
    bottom: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] {
    gap: 8px;
    padding-inline: 16px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-logo,
  body#typewriterWorkshop:has(#view-home.active) > .page > .nav[aria-label="Main"] .nav-logo {
    gap: 8px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-logo :is(.cw-brand-wordmark, .cw-brand-wordmark em),
  body#typewriterWorkshop:has(#view-home.active) > .page > .nav[aria-label="Main"] .nav-logo :is(.cw-brand-wordmark, .cw-brand-wordmark em) {
    font-size: 17px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-logo .cw-brand-orb,
  body#typewriterWorkshop:has(#view-home.active) > .page > .nav[aria-label="Main"] .nav-logo .cw-brand-orb {
    --orb-size: 28px !important;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-links :is(#navCustom, #navReady, #navCommunity, #navAbout) {
    padding-inline: 6px;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] #navUser.show {
    justify-content: center;
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
    gap: 0;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] #navUser.show :is(#navUserName, .nav-user-chevron) {
    display: none;
  }
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] #navUser.show .nav-avatar {
    width: 28px;
    height: 28px;
  }
  body#typewriterWorkshop #view-ready .ready-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 359px) {
  body#typewriterWorkshop > .page > .nav[aria-label="Main"] .nav-logo {
    font-size: 16px;
  }
  body#typewriterWorkshop .p2-mobile-dock a {
    font-size: 9px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-copy {
    right: 16px;
    left: 16px;
  }
  body#typewriterWorkshop #view-ready .ready-product-card {
    max-width: 100%;
  }
  body#typewriterWorkshop #view-ready .ready-product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Continuous shelf density: preserve every route, item, price and action. */
@media (min-width: 360px) and (max-width: 767px) {
  body#typewriterWorkshop #view-home.cw-home-v11 :is(#hwReadyGrid, #hwAllProductsGrid .hw-all-products-row-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 14px !important;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 :is(#hwReadyGrid, #hwAllProductsGrid) :is(h3, .hw-all-product-card h3) {
    font-size: 14px;
    line-height: 1.5;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 :is(#hwReadyGrid, #hwAllProductsGrid) :is(.hw-all-product-actions, .hw-card-actions) {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  body#typewriterWorkshop #view-ready .ready-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px 20px !important;
  }
}
@media (max-width: 1199px) {
  body#typewriterWorkshop :is(#view-input, #view-community, #view-ready, #view-result, #view-ready-product) {
    scroll-margin-top: calc(var(--cw-header-height, 76px) + 16px);
  }
  body#typewriterWorkshop #view-input .custom-entry-stage {
    min-height: 0;
  }
  body#typewriterWorkshop #view-input .cwe-jump {
    min-height: 64px;
    margin: 18px auto 0;
    padding: 16px;
  }
}
@media (max-width: 767px) and (max-height: 500px) {
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene {
    min-height: 360px !important;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 .hw-scene .hw-scene-headline {
    font-size: 34px;
  }
}

/* Purchase columns adapt to their reading space, independently of pricing. */
@media (max-width: 1199px) {
  body#typewriterWorkshop #view-ready-product .rmp-summary-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-summary-copy { display: contents; }
  body#typewriterWorkshop #view-ready-product .rmp-summary-heading h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(25px, 2.7vw, 30px);
    text-wrap: pretty;
  }
  body#typewriterWorkshop #view-ready-product .rmp-summary-card .rmp-price {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    text-align: left;
  }
  body#typewriterWorkshop #view-ready-product .rmp-summary-card .rmp-description {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 14px;
    max-width: none;
  }
  body#typewriterWorkshop #view-ready-product .rmp-summary-card .rmp-review-jump { grid-row: 4; }
  body#typewriterWorkshop #view-result.pdp-clean:not([data-community-product]) .pdp-product-head {
    grid-template-columns: minmax(0, 1fr);
  }
  body#typewriterWorkshop #view-result .cpdp-head-price {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
  }
  body#typewriterWorkshop #view-result .cpdp-description { grid-row: 3; font-size: 14px; }
  body#typewriterWorkshop #view-result #pdpProductTitle { font-size: clamp(26px, 3.2vw, 36px); }
  body#typewriterWorkshop :is(#readyPdpAdd, #cartBtn, #createBtn, #directionBoardTitle) {
    scroll-margin-block: calc(var(--cw-header-height, 76px) + 24px) 150px;
  }
}
@media (min-width: 800px) and (max-width: 1199px) {
  body#typewriterWorkshop #view-ready-product .rmp-product,
  body#typewriterWorkshop #view-result.pdp-clean .result-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  body#typewriterWorkshop #view-ready-product .rmp-gallery { top: 100px; }
  body#typewriterWorkshop #view-input #modeStudio .studio-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
    grid-template-areas: "choices preview";
    gap: 22px;
  }
  body#typewriterWorkshop #view-input #modeStudio .board-col {
    grid-area: preview;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 100px;
    align-self: start;
  }
  body#typewriterWorkshop #view-input #modeStudio #boardSum {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "moment" "palette" "ingredients" "finish";
    gap: 16px;
  }
  body#typewriterWorkshop #view-input #modeStudio .board-card { padding: 18px; }
  body#typewriterWorkshop #view-input #modeStudio .p2-direction-link { display: none; }
}
@media (max-width: 799px) {
  body#typewriterWorkshop #view-ready-product .rmp-product,
  body#typewriterWorkshop #view-result.pdp-clean .result-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  body#typewriterWorkshop #view-ready-product .rmp-gallery { position: static; }
  body#typewriterWorkshop #view-ready-product .rmp-thumbnails {
    gap: 8px;
    padding: 4px;
    scroll-snap-type: x proximity;
  }
  body#typewriterWorkshop #view-ready-product .rmp-thumbnails button { flex-basis: 56px; height: 56px; scroll-snap-align: center; }
}

/* Discovery remains artwork-first, with the full ranking still reachable. */
@media (max-width: 899px) {
  body#typewriterWorkshop #view-community.cd-community-914 .cd-discover {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-block: 18px 28px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-featured { order: -1; }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 14px;
    border-radius: 6px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking > header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-rank-tools {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: minmax(200px, 68%);
    gap: 4px 8px;
    overflow-x: auto;
    min-height: 96px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList button { min-height: 44px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeaturedMedia {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured .cd-featured-bottom { padding: 18px; min-height: 0; }
  body#typewriterWorkshop #view-community.cd-community-914 :is(#communityRankingList, .cd-shelf-viewport) {
    contain: layout paint;
    overscroll-behavior-inline: contain;
  }
}
@media (max-width: 599px) {
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured {
    display: flex;
    flex-direction: column;
  }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-featured-visual { width: 100%; flex: none; }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-featured-bottom { gap: 14px; padding: 16px; }
}
.p2-context-action,.p2-section-links,.p2-direction-link { display: none; }
.p2-viewer-zoom { display: none; }
.p2-viewer-pan[hidden] { display: none !important; }
@media (max-width: 1199px) {
  body#typewriterWorkshop #view-result .cpdp-lightbox-toolbar { gap: 12px; }
  body#typewriterWorkshop #view-result .p2-viewer-zoom {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 12px; margin-left: auto;
    color: #343631; background: #fff; border: 1px solid #ddd8ce; border-radius: 4px;
    font: 500 13px/1.4 var(--sans,sans-serif);
  }
  body#typewriterWorkshop #view-result .p2-viewer-pan:not([hidden]) {
    display: block; position: absolute; inset: 0; z-index: 5; overflow: auto;
    background: #fafaf7; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom;
  }
  body#typewriterWorkshop #view-result .p2-viewer-pan img {
    display: block; height: auto; max-width: none; max-height: none; object-fit: contain;
  }
  body#typewriterWorkshop .p2-section-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    padding: 12px 16px 0;
  }
  body#typewriterWorkshop .p2-section-links a,
  body#typewriterWorkshop .p2-direction-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e3dfd7;
    border-radius: 4px;
    background: #fff;
    color: #343631;
    font: 500 13px/1.4 var(--sans, sans-serif);
    text-decoration: none;
  }
  body#typewriterWorkshop .p2-direction-link { margin: 0 0 12px; }
  body#typewriterWorkshop .cd-card .p2-card-back {
    color: #343631;
    background: #fff;
    border: 1px solid #ddd8ce;
    min-height: 44px;
    padding: 10px 12px;
    font: 500 13px/1.4 var(--sans, sans-serif);
  }
  body#typewriterWorkshop :is(#communityShelf,#communityForYou,#communityLibrary) {
    scroll-margin-top: calc(var(--cw-header-height, 76px) + 16px);
  }
  body#typewriterWorkshop .cd-card .cd-flip-cue {
    opacity: 1;
    visibility: visible;
    min-height: 44px;
    padding: 9px 12px;
    background: rgb(255 255 255 / 94%);
    color: #555;
  }
}
@media (max-width: 767px) {
  body#typewriterWorkshop .p2-context-action:not([hidden]) {
    position: fixed;
    z-index: 204;
    left: 0;
    right: 0;
    bottom: calc(var(--p2-dock-height) + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));
    border-top: 1px solid #e5e1da;
    background: #fff;
    box-shadow: 0 -6px 24px rgb(35 31 25 / 5%);
  }
  body#typewriterWorkshop .p2-context-action-copy { font-size: 14px; line-height: 1.35; font-weight: 600; max-width: 42%; }
  body#typewriterWorkshop .p2-context-action button {
    min-height: 44px;
    min-width: 150px;
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: #252724;
    color: #fff;
    font: 600 13px/1.35 var(--sans,sans-serif);
  }
  body#typewriterWorkshop .p2-context-action[data-kind="create"] button { background: #c7432a; }
  body#typewriterWorkshop .p2-context-action button:disabled { opacity: .6; }
  body#typewriterWorkshop.p2-context-active .site-footer { padding-bottom: calc(var(--p2-dock-height) + 74px + env(safe-area-inset-bottom)); }
  body#typewriterWorkshop.p2-keyboard-open :is(.p2-mobile-dock,.p2-context-action) { display: none !important; }
  body#typewriterWorkshop #phase2-local-environment {
    position: static !important;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 16px 16px calc(var(--p2-dock-height) + 16px);
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body#typewriterWorkshop :is(.p2-context-action,.p2-section-links a,.p2-direction-link) { transition: none; scroll-behavior: auto; }
}

/* Mobile refinement: source-first creation, ranking-led discovery, complete deck. */
.p2-featured-story { display: none; }
@media (max-width: 767px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) {
    grid-template-columns: minmax(0,1fr) 76px; gap: 10px 12px; padding: 14px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) #readyReferencePanel {
    grid-column: 1 / -1; grid-row: 1; margin: 0; padding: 0 0 10px;
    border-top: 0; border-bottom: 1px solid #d8d3c9; gap: 4px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-editor {
    grid-column: 1 / -1; grid-row: 2; min-height: 150px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-foot {
    grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 4px 8px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-example-actions { margin-left: auto; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) #referencePhotos {
    grid-column: 1; grid-row: 4; min-height: 72px; padding: 8px 12px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .submit-zone {
    grid-column: 2; grid-row: 4; align-self: center; margin: 0; min-height: 76px;
  }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-heading { gap: 8px; align-items: center; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel #readyReferenceTitle { font-size: 12px; line-height: 1.45; font-weight: 600; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-heading a { flex: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-choice { min-height: 44px; padding: 6px 8px; border: 1px solid #ddd7cc; border-radius: 4px; background: #fffdf8; gap: 6px; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-choice:has(input:checked) { border-color: #6b7364; background: #f6f7f2; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-choice img { width: 24px; height: 24px; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-copy strong { font-size: 12px; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-status[data-p2-idle="true"] { display: none; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-detach { min-height: 32px; padding: 5px 0; font-size: 11px; justify-self: end; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou {
    --deck-width: min(320px, 64vw);
    --deck-height: min(380px, calc(64vw + 110px), max(300px, calc(100svh - 335px)));
    padding-block: 12px; scroll-margin-top: 8px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou > .cd-section-head {
    margin: 0 0 8px; gap: 4px; padding-inline: 8px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou > .cd-section-head h2 { font-size: 20px; line-height: 1.3; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou > .cd-section-head p { margin: 0; font-size: 12px; line-height: 1.5; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou .cd-deck-filters { gap: 2px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou .cd-deck-filters button { padding-inline: 10px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid { height: calc(var(--deck-height) + 8px); }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot[data-offset="0"] .cd-front .cd-card-body { padding: 8px 12px; gap: 4px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot[data-offset="0"] .cd-front .cd-card-body > h3 { margin-bottom: 4px; font-size: 15px; line-height: 1.35; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot[data-offset="0"] .cd-front .cd-creator { margin-bottom: 4px; min-height: 20px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot[data-offset="0"] .cd-front .cd-card-bottom { padding-top: 4px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot[data-offset="0"] .cd-front .cd-flip-cue {
    opacity: 1; pointer-events: auto; min-height: 36px; padding: 7px 9px; background: rgb(255 255 255 / 94%); left: 8px; bottom: 8px;
  }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-navigation { min-height: 48px; padding: 2px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-feedback-meta { margin-top: 6px; min-height: 18px; gap: 3px 8px; font-size: 11px; }
}
@media (max-width: 899px) {
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking { order: -2; background: transparent; padding: 0; }
  body#typewriterWorkshop #view-community.cd-community-914 .cd-ranking > header { padding: 0; justify-content: space-between; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList { grid-template-rows: auto; grid-auto-columns: 180px; min-height: 66px; margin-top: 8px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList button { min-height: 58px; padding: 8px; border: 1px solid #e5e1da; border-radius: 4px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured .cd-featured-bottom { gap: 8px; padding: 16px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeaturedTitle { font-size: 22px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured .cd-featured-creator { margin-top: 6px; font-size: 12px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured .cd-featured-creator .community-creator-avatar { width: 20px; height: 20px; flex-basis: 20px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeatured .cd-featured-actions { padding-top: 8px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityFeaturedPrompt:not([data-p2-expanded]) { display: none; }
  body#typewriterWorkshop .p2-featured-story { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 0; background: none; border: 0; color: #6e7069; font: 500 12px/1.5 var(--sans,sans-serif); text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 767px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden]))::before { grid-row: 2; grid-column: 1 / -1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden]))::after { display: none; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-textarea { min-height: 96px !important; height: 96px; font-size: 17px !important; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-foot { padding: 0; min-height: 44px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-foot-notes { width: auto; flex: 1 1 180px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) #referencePhotos { min-height: 72px !important; height: auto; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) #referencePhotos .add-bar { min-height: 52px; padding: 0; }
}
@media (max-width: 899px) {
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList button { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 2px 8px; text-align: left; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList .cd-rank-copy { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList .cd-rank-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: normal; font-size: 12px; line-height: 1.4; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityRankingList .cd-rank-count { grid-column: 1; grid-row: 2; font-size: 10px; }
}
.p2-rank-switch { display: none; }
@media (max-width: 899px) {
  body#typewriterWorkshop .p2-rank-switch { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: #71736d; font-size: 12px; }
  body#typewriterWorkshop .p2-rank-switch span { margin-right: auto; }
  body#typewriterWorkshop .p2-rank-switch button { width: 44px; height: 44px; border: 1px solid #ddd8ce; border-radius: 4px; background: #fff; color: #252724; font-size: 18px; }
  body#typewriterWorkshop .p2-rank-switch button:disabled { opacity: .35; }
}
@media (max-width: 767px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-foot { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-workshop-guide { grid-column: 1; grid-row: 1; text-align: left; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) .one-example-actions { grid-column: 2; grid-row: 1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#readyReferencePanel:not([hidden])) #referencePhotos .add-bar { min-height: 52px !important; }
  body#typewriterWorkshop #view-input #modeOne #readyReferencePanel .rm-reference-detach { min-height: 44px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot[data-offset="0"] .cd-front .cd-flip-cue { min-height: 44px; }
  body#typewriterWorkshop .p2-featured-story { min-height: 44px; }
}

/* Community phone follow-up: discover more without hiding product or actions. */
@media (max-width: 767px) {
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou { border: 0; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid { --deck-near: calc(var(--deck-width) * .59); }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityMadeGrid > .cd-deck-slot:is([data-offset="-1"],[data-offset="1"]) { top: 30px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-navigation { width: min(400px,calc(100vw - 32px)); max-width: none; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-card { min-width: 0; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-front .cd-image { width: 100%; height: auto; aspect-ratio: 1; min-height: 0; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-image img { object-fit: contain; padding: 5px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-card-body { padding: 10px 0 0; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-card h3 { font-size: 14px; line-height: 1.4; min-height: 2.8em; overflow-wrap: normal; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-creator { margin: 5px 0 8px; gap: 5px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .community-creator-avatar { width: 20px; height: 20px; flex-basis: 20px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .community-creator-name { font-size: 11px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-card-bottom { padding-top: 4px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-front .cd-card-actions { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-card-actions :is(a,button) { min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 12px; text-align: center; justify-content: center; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-back { padding: 12px; gap: 8px; }
  body#typewriterWorkshop #view-community.cd-community-914 #communityLibraryGrid .cd-prompt { font-size: 14px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) { grid-template-columns: minmax(0,1fr) 104px; gap: 12px; padding: 14px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden]))::before { grid-column: 1; grid-row: 1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden]))::after { display: none; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-editor { grid-column: 1; grid-row: 1; min-height: 206px; padding: 14px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-textarea { min-height: 142px !important; height: 142px; font-size: 16px !important; line-height: 1.6; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-editor-header { flex-wrap: wrap; gap: 5px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-editor-caption { font-size: 10px; letter-spacing: .04em; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-foot { display: contents; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-foot-notes { grid-column: 1 / -1; grid-row: 2; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-example-actions { grid-column: 1; grid-row: 3; justify-self: start; align-self: center; margin: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .submit-zone { grid-column: 2 !important; grid-row: 3; min-height: 76px; margin: 0; align-self: center; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos { grid-column: 2; grid-row: 1; align-self: start; width: 100%; height: auto; min-height: 130px !important; max-height: 220px; padding: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .add-bar:not([hidden]) { display: flex; flex-direction: column; justify-content: center; min-height: 130px !important; padding: 12px 8px; gap: 8px; text-align: center; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .reference-copy { text-align: center; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .reference-copy b { font-size: 12px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .reference-optional { display: block; font-size: 10px; margin: 3px 0 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .ab-sub { font-size: 10px; line-height: 1.4; margin-top: 4px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .reference-choose { align-self: center; margin: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .images-head:not([hidden]) { margin: 8px; gap: 3px; flex-wrap: wrap; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #referencePhotos .reference-title { font-size: 11px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #thumbStrip:not([hidden]) { grid-template-columns: 1fr; max-height: 162px; padding: 2px 8px 8px; gap: 8px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) #thumbStrip :is(.thumb,.add-thumb) { width: 100%; height: 76px; min-height: 76px; aspect-ratio: auto; }
}

@media (max-width:767px) {
 body#typewriterWorkshop #view-community.cd-community-914 #communityLibrary > .cd-section-head { gap:4px; margin-bottom:12px; }
 body#typewriterWorkshop #view-community.cd-community-914 #communityLibrary .cd-library-toolbar { margin-bottom:8px; gap:8px; }
 body#typewriterWorkshop #view-community.cd-community-914 #communityResultsStatus { margin-block:8px 16px; }
}

@media (max-width:359px) {
 body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) { grid-template-columns:minmax(0,1fr) 80px; gap:8px; padding:10px; }
 body#typewriterWorkshop #view-input #modeOne .one-composer:has(#communityCreationSource:not([hidden])) .one-editor { padding:10px; }
}

/* Keep small help controls reachable without changing their visual emphasis. */
@media (max-width: 1199px) {
  body#typewriterWorkshop #view-input :is(#tryExample,.one-prompt-hint button,.one-example-actions button,.cwe-jump),
  body#typewriterWorkshop :is(.p2-featured-story,#readyReferencePanel .rm-reference-detach) {
    min-height: 44px !important;
  }
  body#typewriterWorkshop #view-input textarea:focus-visible {
    outline: 2px solid #455a4b;
    outline-offset: 3px;
  }
}

/* MOBILE-UX-20261015: phone-only control clearance and touch targets. */
@media (max-width: 767px) {
  body#typewriterWorkshop :is(input, select, textarea) {
    font-size: max(16px, 1em) !important;
  }
  body#typewriterWorkshop :is(.rmp-breadcrumb a, #readyPdpMixLink, .ipr-rating-row, #phase2GuideBack, .cr-breadcrumb a, .site-footer summary, .hw-analytics-preferences summary) {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
  body#typewriterWorkshop .ipr-rating-row { display: flex; }
  body#typewriterWorkshop .cw-cart-check {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    cursor: pointer;
  }
  body#typewriterWorkshop .cw-cart-collapse {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}

/* MOBILE-UX-20261015: compact product rows and browseable editorial rails. */
.p2-phone-card-detail { display: none; }
@media (max-width: 767px) {
  body#typewriterWorkshop :is(.hw-ready-card, .ready-product-card) {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-width: 0;
  }
  body#typewriterWorkshop :is(.hw-ready-copy, .ready-product-copy) {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  body#typewriterWorkshop :is(.hw-ready-card h3 a, .ready-product-title-link, .p2-mobile-card-title) {
    display: flex;
    align-items: flex-start;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
  }
  body#typewriterWorkshop :is(.hw-all-product-actions, .hw-ready-buy, .ready-product-commerce) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
    align-items: center;
    gap: 4px;
    margin-top: auto !important;
    width: 100%;
  }
  body#typewriterWorkshop :is(.hw-ready-buy > strong, .ready-product-pricing) {
    grid-column: 1 / -1 !important;
    margin: 0 0 6px;
  }
  body#typewriterWorkshop :is(.hw-all-product-actions, .hw-ready-buy, .ready-product-commerce) > :is(a,button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 0;
    width: 100%;
    padding: 8px 3px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    grid-row: auto !important;
    grid-column: auto !important;
  }
  body#typewriterWorkshop .p2-phone-card-detail {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: inherit;
  }
  /* Catalog rules also load after the mobile bundle: match their scope. */
  body#typewriterWorkshop #view-ready .ready-product-card {
    align-self: stretch;
    height: 100%;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy .ready-product-commerce {
    flex: 0 0 auto;
    margin-top: auto !important;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy .ready-product-commerce > .ready-product-pricing {
    grid-row: 1 !important;
    grid-column: 1 / -1 !important;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy .ready-product-commerce > .ready-product-detail {
    grid-row: 2 !important;
    grid-column: 1 !important;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy .ready-product-commerce > .ready-add-cart {
    grid-row: 2 !important;
    grid-column: 2 !important;
  }
  body#typewriterWorkshop #view-ready .ready-product-copy .ready-product-commerce > :is(a,button) {
    margin: 0;
    padding: 8px 3px;
    width: 100%;
    font-size: 12px;
  }
  body#typewriterWorkshop .hw-card-state:empty { display: none; }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-card {
    align-self: stretch;
    height: 100%;
    min-width: 0;
  }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) :is(.cd-flipper, .cd-front) { height: 100%; }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-card-bottom {
    margin-top: auto;
    width: 100%;
  }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
    gap: 4px;
    width: 100%;
    margin: 0;
  }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-card-actions :is(a,button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px 3px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
  body#typewriterWorkshop :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-image img { cursor: pointer; }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-flip-cue {
    z-index: 4;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 44px;
    min-height: 44px;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 #hwFeaturedReviews.hw-reference-wall .hw-featured-grid,
  body#typewriterWorkshop #view-community.cd-community-914 .cd-guides .cd-guide-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-bottom: 12px;
    align-items: stretch;
    scrollbar-width: thin;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 #hwFeaturedReviews .hw-match-column { display: contents; }
  body#typewriterWorkshop #view-home.cw-home-v11 #hwFeaturedReviews .hw-match-card,
  body#typewriterWorkshop #view-community .cd-guide-entry {
    min-width: 0;
    scroll-snap-align: start;
    margin: 0;
  }
  body#typewriterWorkshop #view-home.cw-home-v11 #hwFeaturedReviews .hw-match-card { padding: 20px; height: auto; }
  body#typewriterWorkshop #view-guides #guideRecommendations { display: none; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-block: 20px;
    min-width: 0;
  }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry-cover-link {
    display: block;
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
    margin: 0;
  }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry-cover { width: 100%; height: 100%; object-fit: cover; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-list-row-body { min-width: 0; gap: 8px; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry h2 { font-size: 16px; line-height: 1.45; margin: 0; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry h2 a { display: block; min-height: 44px; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry-content > p,
  body#typewriterWorkshop #view-guides #guideLibrary .guide-author-avatar { display: none; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-author { margin-top: 8px; }
  body#typewriterWorkshop #view-guides #guideLibrary .guide-entry-footer { gap: 6px; margin-top: 8px; flex-wrap: wrap; }
}

/* MOBILE-UX-20261015: reclaim reading space without changing keyboard behavior. */
@media (max-width: 767px) {
  body#typewriterWorkshop .p2-mobile-dock {
    transition: transform 180ms ease-out, visibility 180ms;
  }
  body#typewriterWorkshop.p2-dock-retracted .p2-mobile-dock {
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
  }
  body#typewriterWorkshop.p2-dock-retracted .p2-context-action:not([hidden]) {
    bottom: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  body#typewriterWorkshop .site-footer[data-cw-footer-playground] .cw-footer-play-stage {
    height: 104px;
    min-height: 0;
    padding-bottom: 0;
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  body#typewriterWorkshop .p2-mobile-dock { transition: none; }
}

/* MOBILE-UX-20261015 CC assist: legible flip cue and unbroken back-face actions
   on the narrow two-column Community grids (Made again, Ready now). */
@media (max-width: 767px) {
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-flip-cue {
    top: auto;
    left: 6px;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    border-block: 7px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.1);
    color: #2b2b2b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-back-footer .cd-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
  }
  body#typewriterWorkshop :is(#view-community.cd-community-914, #view-community-ready) :is(#communityLibraryGrid, #communityReadyPageGrid) .cd-back-footer :is(.cd-card-actions > button, .p2-card-back) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

/* CUSTOM-COMPOSER-COMPACT-20261015 (CC): phone default composer reuses the
   compact layout already used by the reference/community states: guide and
   example share a row, reference photos sit beside the round Create button. */
@media (max-width: 767px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 10px 12px;
    padding: 14px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden])))::before { grid-area: 1 / 1 / auto / -1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-editor { grid-area: 1 / 1 / auto / -1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-foot { grid-area: 2 / 1 / auto / -1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #creationTail > .spec-note:not(#referencePhotos):not(.submit-zone) { grid-column: 1 / -1; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-editor { padding: 10px 14px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-editor-header { margin-bottom: 6px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-workshop-guide { grid-area: 1 / 1; min-width: 0; text-align: left; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-example-actions { grid-area: 1 / 2; margin: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample { padding: 6px 12px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #referencePhotos { grid-area: 3 / 1; min-width: 0; align-self: center; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #referencePhotos .add-bar { min-height: 76px; padding: 10px 12px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .submit-zone { grid-area: 3 / 2; align-self: center; margin: 0; min-height: 76px; }
}

/* CUSTOM-COMPOSER-COMPACT-20261015 (CC): phone guide and example share one row. */
@media (max-width: 767px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-foot { column-gap: 6px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #onePromptHint { white-space: nowrap; letter-spacing: -0.1px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #onePromptHint .one-starting-point { padding: 0 1px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample { padding: 6px 9px; gap: 5px; margin-right: 4px; }
}
@media (max-width: 419px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample { width: 44px; min-width: 44px; padding: 0; gap: 0; justify-content: center; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #exampleLabel {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* CUSTOM-COMPOSER-COMPACT-20261015 (CC): narrow phones show a short visible
   "Example" label; the full label stays available to assistive technology. */
@media (max-width: 419px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample { width: auto; min-width: 44px; padding: 6px 9px; gap: 4px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample::after { content: "Example"; font-size: 10px; font-weight: 600; line-height: 1; }
}
@media (max-width: 389px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample { padding: 6px 8px; gap: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample #exampleCycle { display: none; }
}
@media (max-width: 374px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #onePromptHint { letter-spacing: -0.35px; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #onePromptHint .one-starting-point { padding: 0; }
}

/* CUSTOM-COMPOSER-COMPACT-20261015 (CC): one quiet "Example" pill on phones.
   Undo stays available on wider layouts; on phones the text itself is editable. */
@media (max-width: 767px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #undoExample { display: none !important; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) .one-example-actions { gap: 0; margin: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample {
    width: auto; min-width: 0; min-height: 44px; height: 44px;
    padding: 0 11px; gap: 4px;
    border: 0; border-block: 4px solid transparent; border-radius: 999px;
    background: #fbf9f4; background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(43, 33, 24, 0.2);
    color: #3f382f; font-size: 11px; font-weight: 600; line-height: 1;
    margin: 0;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample #exampleCycle { width: 13px; height: 13px; display: block; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #exampleLabel {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample::after { content: "Example"; font-size: 11px; font-weight: 600; line-height: 1; }
}
@media (max-width: 389px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample { padding: 0 10px; gap: 0; }
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #tryExample #exampleCycle { display: none; }
}

/* CUSTOM-COMPOSER-COMPACT-20261015 (CC): very narrow phones (<360px) let the
   starting-point guide wrap beside the Example pill instead of overlapping. */
@media (max-width: 359px) {
  body#typewriterWorkshop #view-input #modeOne .one-composer:not(:has(#readyReferencePanel:not([hidden]))):not(:has(#communityCreationSource:not([hidden]))) #onePromptHint { white-space: normal; letter-spacing: 0; }
}

/* PRELAUNCH-PHONE-SWEEP-20261016 (CC): guide article Back link keeps a 44px
   touch target on phones (phase2-guides.css resets min-height with a stronger selector). */
@media (max-width: 767px) {
  body#typewriterWorkshop #view-guide .guide-article-index #phase2GuideBack {
    display: inline-flex !important;
    align-items: center;
    min-width: 44px;
    min-height: 44px !important;
  }
}

/* MOBILE-POLISH-20261027 (FE1): phone (<=767px) finish layer, appended last.
   Spec: takeover/frontend/手机端规范-20261027.md. One 16px gutter, two-column
   cards with one purchase button, left-aligned section heads, chips that scroll,
   and controls sized to the content they drive. Desktop is untouched. */
@media (max-width: 767px) {
  body#typewriterWorkshop {
    --m-gutter: 16px;
    --m-ink: #171614;
    --m-ink-hover: #302f2c;
    --m-muted: #5f646c;
    --m-line: #e0e3e7;
    --m-soft: #f6f7f8;
    --m-accent: #a64623;
  }

  /* Page gutter: one 16px edge on every route. */
  body#typewriterWorkshop > .page:not(:has(> #view-home.cw-home-v11.active)) { padding-left: var(--m-gutter) !important; padding-right: var(--m-gutter) !important; }
  body#typewriterWorkshop #view-community > .cd-community-banner { margin-left: calc(var(--m-gutter) * -1) !important; margin-right: calc(var(--m-gutter) * -1) !important; padding-left: var(--m-gutter) !important; padding-right: var(--m-gutter) !important; }

  /* White shopping routes sit on white, so the 16px gutter is not a grey frame. */
  body#typewriterWorkshop:has(#view-ready.active),
  body#typewriterWorkshop:has(#view-community.active) { background-color: #fff !important; }
  body#typewriterWorkshop:has(#view-ready.active) > .page,
  body#typewriterWorkshop:has(#view-community.active) > .page { background-color: #fff !important; }

  /* ---------- Shared product card (Ready-made list) ---------- */
  body#typewriterWorkshop #view-ready .ready-product-grid { margin: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 12px !important; }
  body#typewriterWorkshop #view-ready .ready-product-card { min-width: 0; }
  body#typewriterWorkshop #view-ready .ready-product-card > a:first-child { border-radius: 8px !important; overflow: hidden; }
  body#typewriterWorkshop #view-ready .ready-product-copy { display: flex !important; flex-direction: column !important; gap: 0 !important; padding-top: 10px !important; flex: 1 1 auto; }
  body#typewriterWorkshop #view-ready .ready-product-title { padding: 0 !important; margin: 0 0 6px !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 500 !important; letter-spacing: 0 !important; color: var(--m-ink); min-height: 2.8em; max-height: 2.8em; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body#typewriterWorkshop #view-ready .ready-product-title a { display: inline !important; font: inherit !important; letter-spacing: inherit !important; }
  body#typewriterWorkshop #view-ready .ready-product-commerce { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; margin-top: auto; }
  body#typewriterWorkshop #view-ready .ready-product-pricing { gap: 6px !important; align-items: baseline !important; flex-wrap: wrap; }
  body#typewriterWorkshop #view-ready .ready-product-sale-price { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
  body#typewriterWorkshop #view-ready .ready-product-pricing > :not(.ready-product-sale-price) { font-size: 13px !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop #view-ready .ready-product-detail { display: none !important; }
  body#typewriterWorkshop #view-ready .ready-add-cart { width: 100% !important; min-height: 44px !important; padding: 0 12px !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; background: var(--m-ink) !important; border-color: var(--m-ink) !important; color: #fff !important; justify-content: center !important; }

  /* Ready-made toolbar: heading, then occasion + filter on one calm row. */
  body#typewriterWorkshop #view-ready label.rm-mobile-occasion { min-height: 48px; border-bottom: 1px solid var(--m-line); }
  body#typewriterWorkshop #view-ready .rm-mobile-occasion-label { font-size: 13px !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop #view-ready .rm-shop-toolbar { padding: 20px 0 16px !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
  body#typewriterWorkshop #view-ready .ready-results-heading { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
  body#typewriterWorkshop #view-ready #readyResultsTitle { font-size: 20px !important; line-height: 1.25 !important; font-weight: 700 !important; }
  body#typewriterWorkshop #view-ready #readyResultSummary { font-size: 13px !important; color: var(--m-muted) !important; margin: 0 !important; }
  body#typewriterWorkshop #view-ready .ready-filter-trigger { min-height: 44px !important; padding: 0 16px !important; border-radius: 10px !important; background: #fff !important; color: var(--m-ink) !important; border: 1px solid #cfd3d8 !important; box-shadow: none !important; }
  body#typewriterWorkshop #view-ready .ready-filter-trigger > span:not(.ready-filter-trigger-icon):not(.ready-filter-total) { font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
  body#typewriterWorkshop #view-ready .ready-filter-trigger-icon { filter: invert(1); }

  /* Ready-made closing bridge ("Still looking…"). */
  body#typewriterWorkshop #view-ready #readyCustomBridge { margin: 40px 0 32px !important; padding: 24px 20px !important; border: 0 !important; border-radius: 12px !important; background: var(--m-soft) !important; gap: 18px !important; grid-template-columns: minmax(0, 1fr) !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-kicker { font-size: 12px !important; letter-spacing: .06em !important; color: var(--m-accent) !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge h2 { font-size: 24px !important; line-height: 1.22 !important; font-weight: 600 !important; letter-spacing: -.02em !important; margin: 6px 0 8px !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-bottom-copy p { font-size: 15px !important; line-height: 1.55 !important; color: var(--m-muted) !important; margin: 0 !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-bottom-details { padding: 0 !important; gap: 0 !important; border: 0 !important; margin: 0 !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-bottom-detail { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; padding: 12px 0 !important; border-top: 1px solid var(--m-line) !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-bottom-detail dt { font-size: 15px !important; line-height: 1.4 !important; font-weight: 600 !important; letter-spacing: 0 !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-bottom-detail dd { font-size: 14px !important; line-height: 1.5 !important; color: var(--m-muted) !important; margin: 0 !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-primary { width: 100% !important; min-height: 48px !important; justify-content: center !important; padding: 0 20px !important; border-radius: 10px !important; background: var(--m-ink) !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0 !important; border: 0 !important; box-shadow: none !important; text-decoration: none !important; }
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-primary::before,
  body#typewriterWorkshop #view-ready #readyCustomBridge .rm-ai-primary::after { border: 0 !important; box-shadow: none !important; }

  /* ---------- Footer: stacked groups, two-column links ---------- */
  body#typewriterWorkshop .site-footer-main { padding: 28px 20px 8px !important; gap: 20px !important; }
  body#typewriterWorkshop .site-footer-links { gap: 18px !important; }
  body#typewriterWorkshop .site-footer-group { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; }
  body#typewriterWorkshop .site-footer-group > h2 { font-size: 12px !important; line-height: 1.4 !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase; opacity: .62; margin: 0 !important; }
  body#typewriterWorkshop .site-footer-group > nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 16px !important; }
  body#typewriterWorkshop .site-footer-group > nav a { font-size: 15px !important; min-height: 44px !important; padding: 0 !important; align-items: center !important; }
  body#typewriterWorkshop .site-footer-note { font-size: 13px !important; line-height: 1.5 !important; }
  body#typewriterWorkshop .site-footer-legal a { font-size: 13px !important; min-height: 44px; display: inline-flex; align-items: center; }

  /* ---------- Community (P = community routes, G = card grids) ---------- */
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(.cd-section-head, .cd-guides-header) h2,
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-ranking > header h2 { font-size: 20px !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.01em !important; justify-content: flex-start !important; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) .cd-section-head p,
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-curated-label,
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrarySummary { font-size: 13px !important; line-height: 1.45 !important; color: var(--m-muted) !important; text-align: left !important; }

  /* Section jump chips. */
  /* Community section index (10/28): one segmented jump card, not filter pills — label, short note, ↓ */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; padding: 16px 0 0 !important; overflow: visible !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links::before { content: "Jump to"; grid-column: 1 / -1; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 4px; min-width: 0; min-height: 64px !important; padding: 10px 4px !important; border: 1px solid var(--m-line) !important; border-radius: 0 !important; background: #fff !important; color: var(--m-ink) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.25 !important; text-align: center !important; white-space: nowrap; text-decoration: none !important; box-shadow: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a + a { border-left: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a:first-of-type { border-radius: 12px 0 0 12px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a:last-of-type { border-radius: 0 12px 12px 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a::after { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--m-muted); }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a[href="#communityShelf"]::after { content: "Ships now \2193"; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a[href="#communityForYou"]::after { content: "Make it yours \2193"; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a[href="#communityLibrary"]::after { content: "Browse all \2193"; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a:active { background: #f4f4f2 !important; }
  @media (min-width: 375px) { body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 nav.p2-section-links a { font-size: 14px !important; } }

  /* Ranking (Most loved): title + period switch, swipeable rank cards. */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 section.cd-discover { padding: 28px 0 24px !important; gap: 16px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 aside.cd-ranking > header { flex-wrap: nowrap !important; align-items: center !important; height: auto !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-rank-tools { margin-left: auto !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-periods { padding: 3px !important; border-radius: 10px !important; background: var(--m-soft) !important; gap: 2px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-periods button { min-height: 32px !important; height: 32px !important; padding: 0 10px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1 !important; color: var(--m-muted) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-periods button[aria-pressed="true"] { background: #fff !important; color: var(--m-ink) !important; font-weight: 600 !important; box-shadow: 0 1px 2px rgba(23, 22, 20, .14) !important; }
  /* Ranking, phone (10/28): featured design first, then all ranks as a chart list. */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 section.cd-discover { display: flex !important; flex-direction: column !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 section.cd-discover > aside.cd-ranking { display: contents !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 aside.cd-ranking > header { order: 1; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityCampaignNote { order: 2; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 section.cd-discover > #communityFeatured { order: 3; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList { order: 4; display: block !important; margin: 4px 0 0 !important; padding: 0 !important; overflow: visible !important; border-top: 1px solid var(--m-line) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .p2-rank-switch { display: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList > li { width: auto !important; min-width: 0 !important; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList li > button { width: 100% !important; height: auto !important; min-height: 60px !important; padding: 10px 8px 10px 0 !important; border: 0 !important; border-bottom: 1px solid var(--m-line) !important; border-radius: 0 !important; background: transparent !important; color: var(--m-ink) !important; box-shadow: none !important; display: grid !important; grid-template-columns: 44px minmax(0, 1fr) auto !important; grid-template-rows: auto !important; align-items: center !important; gap: 0 10px !important; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList li > button[aria-pressed="true"] { background: var(--m-soft) !important; color: var(--m-ink) !important; box-shadow: inset 3px 0 0 var(--m-ink) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList .cd-rank-number { grid-column: 1 !important; grid-row: 1 !important; position: static !important; font-size: 22px !important; line-height: 1 !important; font-weight: 700 !important; letter-spacing: -.02em !important; font-variant-numeric: tabular-nums; text-align: center !important; color: #9aa0a6 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList > li:nth-child(-n+3) .cd-rank-number { color: var(--m-accent) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList .cd-rank-copy { grid-column: 2 !important; grid-row: 1 !important; position: static !important; display: flex !important; flex-direction: column !important; gap: 2px; min-width: 0; overflow: hidden; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList .cd-rank-copy strong { font-size: 15px !important; line-height: 1.3 !important; font-weight: 600 !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; display: block !important; color: var(--m-ink) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList .cd-rank-nickname { font-size: 13px !important; line-height: 1.3 !important; color: var(--m-muted) !important; opacity: 1 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityRankingList .cd-rank-count { grid-column: 3 !important; grid-row: 1 !important; position: static !important; margin: 0 !important; display: inline-flex !important; align-items: center; gap: 4px; font-size: 13px !important; line-height: 1 !important; font-weight: 600 !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeaturedMedia { aspect-ratio: 4 / 3 !important; height: auto !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeaturedMedia #communityFeaturedImage { object-fit: contain !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-shelf-controls .cd-round,
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-round { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 999px !important; border: 1px solid #cfd3d8 !important; background: #fff !important; background-image: none !important; color: var(--m-ink) !important; font-size: 16px !important; line-height: 1 !important; display: inline-grid !important; place-items: center; padding: 0 !important; box-shadow: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-round:disabled { opacity: .35 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-shelf-controls .cd-motion { min-height: 40px !important; height: 40px !important; padding: 0 16px !important; border-radius: 999px !important; border: 1px solid #cfd3d8 !important; font-size: 14px !important; }

  /* Featured No.01. */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeatured { border-radius: 12px !important; border-color: var(--m-line) !important; overflow: hidden; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeatured .cd-featured-bottom { padding: 16px 16px 18px !important; gap: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeaturedTitle { font-size: 22px !important; line-height: 1.25 !important; font-weight: 600 !important; letter-spacing: -.01em !important; margin: 0 0 6px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #p2FeaturedStory { font-size: 14px !important; min-height: 44px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeatured .cd-featured-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; padding-top: 12px !important; border-top: 1px solid var(--m-line) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeatured .cd-featured-actions .community-action-secondary { min-height: 48px !important; width: 100% !important; padding: 0 12px !important; border-radius: 10px !important; border: 1px solid #cfd3d8 !important; background: #fff !important; color: var(--m-ink) !important; font-size: 15px !important; font-weight: 600 !important; justify-content: center !important; text-decoration: none !important; display: inline-flex !important; align-items: center !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityFeatured .cd-featured-actions .community-action { min-height: 48px !important; width: 100% !important; padding: 0 12px !important; border-radius: 10px !important; background: var(--m-ink) !important; border-color: var(--m-ink) !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; }

  /* Special offers shelf head. */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 section.cd-ready { margin-top: 32px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-ready .cd-section-head { margin-bottom: 16px !important; grid-template-columns: minmax(0, 1fr) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-ready-title { display: flex !important; flex-direction: column !important; gap: 2px !important; align-items: flex-start !important; }

  /* Every community card: title, creator, price, one purchase button. */
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-card .cd-image { border-radius: 8px !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-card .cd-image img { color: transparent; font-size: 0; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityReadyPageGrid) .cd-front .cd-card-body { padding: 0 !important; gap: 0 !important; display: flex !important; flex-direction: column !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityMadeGrid .cd-front .cd-card-body { padding: 0 10px 10px !important; gap: 0 !important; display: flex !important; flex-direction: column !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-body h3 { margin: 10px 0 4px !important; padding: 0 !important; font-size: 15px !important; line-height: 1.35 !important; font-weight: 500 !important; letter-spacing: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; min-height: 0 !important; display: block !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-body h3 a { font: inherit !important; letter-spacing: inherit !important; display: inline !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-creator { margin: 0 0 8px !important; gap: 6px !important; min-height: 22px !important; align-items: center !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-creator .community-creator-avatar { width: 22px !important; height: 22px !important; flex: 0 0 22px !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .community-creator-name { font-size: 12px !important; color: var(--m-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-body .cd-ready-stock { position: static !important; order: 9; margin: 0 0 8px !important; display: flex !important; gap: 4px !important; align-items: baseline !important; font-size: 12px !important; color: var(--m-accent) !important; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-body .cd-ready-stock :is(strong, span) { font-size: 12px !important; line-height: 1.3 !important; margin: 0 !important; color: inherit !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-bottom { order: 10; display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; margin-top: auto !important; padding: 0 !important; border: 0 !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-price { display: flex !important; gap: 6px !important; align-items: baseline !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-price-current { font-size: 17px !important; font-weight: 700 !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-price-original { font-size: 13px !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-actions { display: flex !important; grid-template-columns: none !important; gap: 0 !important; width: 100% !important; justify-content: stretch !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-actions .community-action-secondary { display: none !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-front .cd-card-actions .community-action { flex: 1 1 auto !important; width: 100% !important; min-width: 0 !important; min-height: 44px !important; height: 44px !important; padding: 0 12px !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 600 !important; background: var(--m-ink) !important; border-color: var(--m-ink) !important; color: #fff !important; justify-content: center !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityMadeGrid, #communityReadyPageGrid) .cd-card .cd-flip-cue { min-height: 30px !important; height: 30px !important; padding: 0 10px !important; font-size: 12px !important; left: 8px !important; bottom: 8px !important; border-radius: 999px !important; box-shadow: 0 1px 2px rgba(23, 22, 20, .14) !important; }
  body#typewriterWorkshop.typewriter-theme :is(#view-community.cd-community-914, #view-community-ready.cw-community-ready-page) :is(#communityShelfTrack, #communityLibraryGrid, #communityReadyPageGrid) .cd-card .community-favorite { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; top: 8px !important; left: 8px !important; }

  /* For you deck: whole-pixel card width keeps the image sharp, quieter side
     cards, and controls exactly as wide as the card. */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou.cd-deck-section { margin-top: 40px !important; padding: 0 !important; border: 0 !important; --deck-width: round(down, 80vw, 2px) !important; --deck-height: 478px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou .cd-section-head { padding: 0 !important; margin: 0 0 14px !important; align-items: stretch !important; text-align: left !important; flex-direction: column !important; gap: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou .cd-section-head > div:first-child { text-align: left !important; width: 100% !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityMadeGrid .cd-deck-slot[data-offset="-1"],
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityMadeGrid .cd-deck-slot[data-offset="1"] { opacity: .4 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityMadeGrid .cd-deck-slot[data-offset="-2"],
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityMadeGrid .cd-deck-slot[data-offset="2"] { opacity: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls { width: var(--deck-width) !important; max-width: 100% !important; margin: 6px auto 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-navigation { width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 40px !important; gap: 8px !important; align-items: center !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-feedback { min-height: 40px !important; height: 40px !important; border-radius: 10px !important; border: 1px solid var(--m-line) !important; background: #fff !important; color: var(--m-ink) !important; opacity: 1 !important; padding: 0 8px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-feedback:disabled { opacity: .45 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-feedback span { font-size: 14px !important; font-weight: 500 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-like[aria-pressed="true"] { background: #fff4ee !important; border-color: #f0c9b5 !important; color: var(--m-accent) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls :is(.cd-deck-interests, .cd-deck-feedback-meta) { text-align: center !important; font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityForYou #communityRecommendationControls .cd-deck-interests summary { font-size: 13px !important; justify-content: center !important; min-height: 44px !important; display: flex !important; align-items: center !important; }

  /* Chip rows (For you filters, Made to order occasions). */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 :is(#communityForYou .cd-deck-filters, #communityLibrary .cd-filters) { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; padding: 0 0 2px !important; background: transparent !important; border: 0 !important; grid-template-columns: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 :is(#communityForYou .cd-deck-filters, #communityLibrary .cd-filters)::-webkit-scrollbar { display: none; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 :is(#communityForYou .cd-deck-filters, #communityLibrary .cd-filters) button { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; min-height: 36px !important; height: 36px !important; padding: 0 14px !important; border-radius: 999px !important; border: 1px solid var(--m-line) !important; background: #fff !important; color: var(--m-ink) !important; font-size: 14px !important; font-weight: 500 !important; white-space: nowrap !important; box-shadow: none !important; text-decoration: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 :is(#communityForYou .cd-deck-filters, #communityLibrary .cd-filters) button::after { display: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 :is(#communityForYou .cd-deck-filters, #communityLibrary .cd-filters) button[aria-pressed="true"] { background: var(--m-ink) !important; border-color: var(--m-ink) !important; color: #fff !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary .cd-filters button span { font-size: 12px !important; opacity: .65; margin-left: 4px !important; color: inherit !important; }

  /* Made to order: sort + search row, search panel, grid. */
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary { margin-top: 48px !important; min-width: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary .cd-section-head { margin: 0 0 14px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary .cd-library-toolbar { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; padding: 0 !important; margin: 0 0 16px !important; border: 0 !important; width: 100% !important; min-width: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary .cd-library-tools { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 8px !important; align-items: center !important; width: 100% !important; min-width: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary .cd-sort { min-height: 44px !important; border: 1px solid #cfd3d8 !important; border-radius: 10px !important; padding: 0 0 0 12px !important; gap: 4px !important; align-items: center !important; font-size: 13px !important; color: var(--m-muted) !important; overflow: hidden !important; min-width: 0 !important; background: #fff !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySort { flex: 1 1 auto !important; min-width: 0 !important; width: 100% !important; min-height: 42px !important; height: 42px !important; border: 0 !important; background-color: transparent !important; font-size: 14px !important; font-weight: 600 !important; padding: 0 28px 0 0 !important; color: var(--m-ink) !important; text-overflow: ellipsis; white-space: nowrap; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchToggle { min-height: 44px !important; padding: 0 14px !important; border: 1px solid #cfd3d8 !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 500 !important; background: #fff !important; color: var(--m-ink) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchToggle,
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchToggle * { text-decoration: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchForm { padding: 12px !important; border-radius: 12px !important; border: 1px solid var(--m-line) !important; background: var(--m-soft) !important; gap: 8px !important; box-shadow: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchForm label { font-size: 13px !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchInput { min-height: 44px !important; height: 44px !important; font-size: 16px !important; border: 1px solid #cfd3d8 !important; border-radius: 10px !important; padding: 0 12px !important; background: #fff !important; box-shadow: none !important; outline: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchInput:focus { border-color: var(--m-ink) !important; box-shadow: 0 0 0 3px rgba(23, 22, 20, .1) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communitySearchForm .cd-text-action { min-height: 40px !important; font-size: 14px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityLibrary #communityLibraryGrid { gap: 28px 12px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 #communityPagination { margin-top: 28px !important; padding-top: 16px !important; }
  body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 section.cd-guides { margin-top: 48px !important; padding-top: 24px !important; }

  /* ---------- Product detail (Ready-made PDP) ---------- */
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpIncludes,
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #importedProductReviewsJump span { font-size: 13px !important; line-height: 1.45 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .rmp-quantity-header label { font-size: 15px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpMixIntro { font-size: 13px !important; line-height: 1.5 !important; margin-bottom: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpSavingHint { border: 0 !important; padding: 0 !important; margin: 0 0 8px !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpMixLink { font-size: 14px !important; font-weight: 500 !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpTotalLabel { font-size: 14px !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpAdd { min-height: 52px !important; border-radius: 10px !important; font-size: 16px !important; font-weight: 600 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpAI { padding: 16px !important; border-radius: 12px !important; border-color: var(--m-line) !important; background: var(--m-soft) !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpAITitle { font-size: 15px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpAIAction { background: transparent !important; color: var(--m-ink) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 44px !important; font-size: 15px !important; font-weight: 600 !important; text-decoration: underline !important; text-underline-offset: 5px; text-decoration-thickness: 1px; display: inline-flex !important; align-items: center !important; gap: 8px; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #readyPdpAIAction:active { color: var(--m-accent) !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .rmp-policy-links { display: flex !important; flex-direction: column !important; gap: 0 !important; margin-top: 12px !important; border-top: 1px solid var(--m-line); }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .rmp-policy-links a { display: flex !important; flex-direction: row !important; text-align: left !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; min-height: 48px !important; padding: 0 !important; font-size: 15px !important; color: var(--m-ink) !important; text-decoration: none !important; border-bottom: 1px solid var(--m-line); }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .rmp-policy-links a::after { content: "\2192"; font-size: 16px; margin-left: 12px; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .rmp-specifications summary { font-size: 15px !important; min-height: 52px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-rating-distribution { gap: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-rating-row { min-height: 36px !important; padding-top: 0 !important; padding-bottom: 0 !important; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-rating-row span { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-controls { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: end !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-controls > .ipr-control { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 4px !important; min-width: 0 !important; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-controls > .ipr-control > span { font-size: 13px !important; font-weight: 500 !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view #importedProductReviews .ipr-controls .ipr-control select { width: 100% !important; max-width: none !important; min-width: 0 !important; min-height: 44px !important; font-size: 15px !important; border-radius: 10px !important; border: 1px solid #cfd3d8 !important; padding: 0 12px !important; background-color: #fff !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-controls > .ipr-topics { grid-column: 1 / -1 !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-topic { min-height: 36px !important; padding: 0 12px !important; border-radius: 999px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-topic span { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready-product.rmp-view .ipr-more { width: 100% !important; min-height: 48px !important; border-radius: 10px !important; font-size: 15px !important; font-weight: 600 !important; }
  body#typewriterWorkshop.typewriter-theme .p2-context-action button { min-height: 44px !important; border-radius: 10px !important; font-size: 14px !important; }

  /* Programmatic focus on page headings (route changes) shows no box. */
  body#typewriterWorkshop :is(h1, h2)[tabindex="-1"]:focus { outline: none !important; box-shadow: none !important; }

  /* ---------- Cart drawer (black-square toggles stay: designer's mark language) ---------- */
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-selection-bar span { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-group-title { font-size: 16px !important; font-weight: 600 !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-group-copy small { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-group[data-empty="true"] a { font-size: 14px !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-selection-note { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-checkout { min-height: 52px !important; border-radius: 10px !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-checkout span { font-size: 16px !important; font-weight: 600 !important; }
  body#typewriterWorkshop.typewriter-theme #cwCartDrawer .cw-cart-continue { font-size: 14px !important; }

  /* The tab dock steps aside while the cart owns the screen. Checkout keeps the live presentation. */
  body#typewriterWorkshop.cw-cart-open > .page > nav.p2-mobile-dock { display: none !important; }

  /* ---------- Account (signed out and in) ---------- */
  body#typewriterWorkshop.typewriter-theme .cw-account-nav { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; scrollbar-width: none; grid-template-columns: none !important; padding-bottom: 2px !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-nav::-webkit-scrollbar { display: none; }
  body#typewriterWorkshop.typewriter-theme .cw-account-nav a { flex: 0 0 auto !important; min-height: 40px !important; padding: 0 16px !important; border-radius: 999px !important; border: 1px solid var(--m-line) !important; background: #fff !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; text-decoration: none !important; box-shadow: none !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-nav a::before,
  body#typewriterWorkshop.typewriter-theme .cw-account-nav a::after { display: none !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-nav a span { font-size: 14px !important; font-weight: 500 !important; text-decoration: none !important; border: 0 !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-nav a[aria-current="page"] { background: var(--m-ink) !important; border-color: var(--m-ink) !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-nav a[aria-current="page"] span { color: #fff !important; font-weight: 600 !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-auth-callout { text-align: left !important; align-items: stretch !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-auth-callout h2 { font-size: 24px !important; line-height: 1.22 !important; letter-spacing: -.02em !important; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-auth-callout p { font-size: 15px !important; line-height: 1.55 !important; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme .cw-account-auth-callout .btn { width: 100% !important; min-height: 48px !important; border-radius: 10px !important; font-size: 15px !important; box-shadow: none !important; justify-content: center !important; }

  /* ---------- Custom studio: the main action reads as the main action ---------- */
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio ~ * #createBtn,
  body#typewriterWorkshop.typewriter-theme #view-input #studioTailMount #createBtn { background: #c44b24 !important; border-color: #c44b24 !important; color: #fff !important; box-shadow: 0 1px 2px rgba(23, 22, 20, .16) !important; border-radius: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #studioTailMount #createBtn :is(.btn-label, svg) { color: #fff !important; stroke: #fff; }
  body#typewriterWorkshop.typewriter-theme #view-input #studioTailMount #createBtn:active { background: #963719 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #studioTailMount #createBtn:disabled { background: #e9ddd6 !important; border-color: #e9ddd6 !important; color: #7a6a62 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .p2-direction-link { border-radius: 999px !important; border-color: var(--m-line) !important; font-size: 14px !important; }

  /* ---------- Home below the hero (the hero/video stays as built) ---------- */
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 > .hw-section:not(.hw-scene) { padding-left: var(--m-gutter) !important; padding-right: var(--m-gutter) !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-all-products-row-grid, #hwReadyGrid) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 12px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-all-product-card, #hwReadyGrid .hw-ready-card) { display: flex !important; flex-direction: column !important; min-width: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-community-image, #hwReadyGrid .hw-ready-card > a:first-child, #hwReadyGrid .hw-ready-media) { border-radius: 8px !important; overflow: hidden; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-all-product-card > h3,
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReadyGrid .hw-ready-copy h3 { margin: 10px 0 6px !important; padding: 0 !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 500 !important; min-height: 2.8em !important; max-height: 2.8em; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-all-product-card > h3, #hwReadyGrid .hw-ready-copy h3) a { display: inline !important; font: inherit !important; letter-spacing: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReadyGrid .hw-ready-copy { display: flex !important; flex-direction: column !important; flex: 1 1 auto; padding: 10px 0 0 !important; gap: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReadyGrid .hw-product-category { font-size: 11px !important; letter-spacing: .06em !important; padding: 0 !important; margin: 0 !important; border: 0 !important; color: var(--m-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReadyGrid .hw-product-category + h3 { margin-top: 4px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-all-product-price { justify-content: flex-start !important; text-align: left !important; padding: 0 !important; margin: 0 0 10px !important; gap: 6px !important; align-items: baseline !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-all-product-price-current,
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReadyGrid .hw-ready-buy strong { font-size: 17px !important; font-weight: 700 !important; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-all-product-price > :not(.hw-all-product-price-current) { font-size: 13px !important; color: var(--m-muted) !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-all-product-actions, #hwReadyGrid .hw-ready-buy) { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; padding: 0 !important; margin-top: auto !important; grid-template-columns: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-all-product-detail, #hwReadyGrid .hw-ready-buy .p2-phone-card-detail) { display: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(.hw-all-product-add, #hwReadyGrid .hw-ready-buy button) { width: 100% !important; min-height: 44px !important; height: 44px !important; padding: 0 12px !important; border-radius: 10px !important; font-size: 14px !important; font-weight: 600 !important; white-space: nowrap !important; background: var(--m-ink) !important; border-color: var(--m-ink) !important; color: #fff !important; justify-content: center !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 :is(#hwCommunity, #hwReady) .hw-section-note,
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReady .hw-ready-note p { font-size: 13px !important; line-height: 1.5 !important; margin-top: 20px !important; }

  /* Start where you are: shorter art, tighter entries. */
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag { padding-top: 40px !important; padding-bottom: 32px !important; gap: 20px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag .hw-section-heading { gap: 16px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag .hw-choice-art { height: auto !important; aspect-ratio: 16 / 9; padding: 12px !important; border-radius: 10px !important; overflow: hidden; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag .hw-choice-art svg { width: auto !important; height: 100% !important; max-width: 100%; margin: 0 auto; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag article.hw-choice { padding: 18px 0 !important; gap: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag article.hw-choice p { font-size: 15px !important; line-height: 1.5 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #choose-gift-bag article.hw-choice .btn { margin-top: 2px !important; min-height: 44px !important; height: 44px !important; padding: 0 !important; }

  /* Ask & answer: readable questions, steady rhythm. */
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #faq { padding-top: 32px !important; padding-bottom: 32px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #faq .hw-faq-intro { margin-bottom: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #faq .hw-faq-question { font-size: 17px !important; line-height: 1.4 !important; padding: 14px 44px 14px 0 !important; min-height: 56px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #faq .hw-faq-answer { font-size: 15px !important; line-height: 1.55 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #faq .hw-faq-more { margin-top: 8px !important; font-size: 15px !important; }

  /* ---------- Custom inspiration: each prompt sits right on top of its result ---------- */
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; grid-template-columns: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example > .cwl-input { display: contents !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-input > h3 { order: 1; margin: 0 0 2px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-reference { order: 2; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-prompt { order: 3; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example > :not(.cwl-input):not(.cwl-flow) { order: 4; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-input > :is(button, a) { order: 5; margin: 4px 0 0 !important; width: 100% !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example > .cwl-flow { display: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-result { position: static !important; transform: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; justify-self: stretch !important; align-self: stretch !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-result img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-reference { position: static !important; transform: none !important; float: none !important; display: flex !important; align-items: center !important; gap: 10px !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-reference img { width: 64px !important; height: 64px !important; aspect-ratio: 1 / 1; object-fit: cover !important; border-radius: 6px !important; flex: 0 0 64px; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-reference figcaption { font-size: 13px !important; color: var(--m-muted) !important; text-align: left !important; margin: 0 !important; }

  /* Footer clears fixed bars with outside space, not an empty dark panel. */
  body#typewriterWorkshop.p2-context-active footer.site-footer { padding-bottom: 12px !important; margin-bottom: 148px !important; }

  /* Home Community row: short names on one line, price starts at the left edge. */
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwAllProductsGrid .hw-all-product-card > h3 { min-height: 0 !important; max-height: none !important; display: block !important; white-space: nowrap !important; text-overflow: ellipsis !important; font-size: 15px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwAllProductsGrid .hw-all-product-price { align-self: flex-start !important; margin: 0 0 10px !important; }

  /* Custom inspiration: the studio spec list sits under its own title. */
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration { padding-left: 0 !important; padding-right: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #customInspiration article.cwl-example .cwl-input > :not(h3):not(.cwl-reference):not(.cwl-prompt):not(button):not(a) { order: 2; }

  /* 10/27 batch 3: leftovers from the Codex audit. No visible text under 12px. */
  body#typewriterWorkshop.typewriter-theme .nav-right #navUserName { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #hwReadyGrid .hw-product-category { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #readyExplorePaths .rm-community-link { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #communityFeaturedRank .cd-featured-rank-label { font-size: 12px !important; letter-spacing: .04em !important; }
  body#typewriterWorkshop.typewriter-theme #communityRecommendationControls .cd-deck-interests > strong { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme .cd-guide-footer .guide-author :is(.guide-author-label, .guide-author-date) { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme :is(.community-creator-initials) { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #addBar .reference-optional { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #creationTail #createBtn .btn-label { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #customInspiration article.cwl-example :is(.cwl-label, .cwl-choices dt, figure.cwl-result figcaption) { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme .moment-card > .eyebrow,
  body#typewriterWorkshop.typewriter-theme #dimTabs .dim-tab .dt-name,
  body#typewriterWorkshop.typewriter-theme #boardSum .direction-label,
  body#typewriterWorkshop.typewriter-theme .board-card .spec-strip .sp b { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #dimPanel .option-grid .opt .opt-check { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme .ready-gift-tissue-choice-header p { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme .dc-empty-invitation .dc-empty-eyebrow { font-size: 12px !important; }

  /* Account menu: one row of chips that scrolls sideways, Share included. */
  body#typewriterWorkshop.typewriter-theme #view-account .cw-account-sidebar nav.cw-account-nav { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; scrollbar-width: none; width: auto !important; max-width: 100% !important; padding-bottom: 4px !important; }
  body#typewriterWorkshop.typewriter-theme #view-account .cw-account-sidebar nav.cw-account-nav::-webkit-scrollbar { display: none; }
  body#typewriterWorkshop.typewriter-theme #view-account .cw-account-sidebar nav.cw-account-nav > a { flex: 0 0 auto !important; width: auto !important; min-height: 40px !important; height: 40px !important; margin: 0 !important; padding: 0 16px !important; white-space: nowrap !important; font-size: 14px !important; }

  /* Special offers: the heart sits on the image, not on the maker line above it. */
  body#typewriterWorkshop.typewriter-theme #view-community-ready.cw-community-ready-page #communityReadyPageGrid article.cd-card.cd-card > button.community-favorite { top: 38px !important; }

  /* Creation history: full content width inside the 16px gutter. */
  body#typewriterWorkshop.typewriter-theme #view-creation-history > .creation-history { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

  /* Home hero, phone (10/28): size the hero to the portrait film (1080x1776) so nothing is cropped on any phone. */
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene.hw-scene { height: min(calc(100vw * 1776 / 1080), calc(100svh - var(--p2-dock-height, 64px))) !important; min-height: 0 !important; max-height: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-hero-video { object-position: 50% 50% !important; }
  /* Phones: the copy starts right under the bag (54% of the film), the hero ends after the buttons; only the plain floor below is cut. */
  @media (max-aspect-ratio: 5 / 8) {
    body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene.hw-scene { height: auto !important; padding: calc(100vw * 1776 / 1080 * .54) 0 40px !important; }
    body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-scene-copy { position: relative !important; inset: auto !important; margin: 0 20px !important; z-index: 2; }
    body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-hero-video { object-position: 50% 0% !important; }
  }
  /* Short or wide windows, where the film can't fit at full width: show the whole frame, fill the sides. */
  @media (min-aspect-ratio: 5 / 8) {
    body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-scene-visual--video, body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-scene-visual--video .hw-hero-film { background: linear-gradient(180deg, #fffefb 0%, #fbf9f5 42%, #e9e5e0 100%) !important; }
    body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-hero-video { object-fit: contain !important; object-position: 50% 100% !important; }
  }
  /* Tablet-width portrait windows (10/30): fill the width instead of side bars, keep the bag whole above the copy. */
  @media (min-aspect-ratio: 5 / 8) and (max-aspect-ratio: 4 / 5) {
    body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 .hw-scene .hw-hero-video { object-fit: cover !important; object-position: 50% 45% !important; }
  }

  /* Home "How it works", phone: keep the slideshow, just tighten its empty space (stage 228 -> 184px). */
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process { padding: 8px 16px 0 !important; grid-template-rows: auto !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-intro { min-height: 168px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-details, body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-details-inner { min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-track, body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-step { min-height: 120px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-track { grid-template-rows: minmax(120px, auto) !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-docks { top: 0 !important; height: 36px !important; min-height: 0 !important; align-items: center !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-details-inner { row-gap: 4px !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-step { padding-top: 0 !important; padding-bottom: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-home.cw-home-v11 #main.hw-process .hw-process-intro { padding-bottom: 40px !important; }

  /* Design studio, phone (10/28): one row of moment chips, compact direction tabs, and swipeable option rows instead of a tall two-column grid. */
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio :is(.moment-card, .dims-card, .personal-card) { padding: 14px 16px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .moment-card > .eyebrow { margin-bottom: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .moment-row { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; margin: 0 -16px !important; padding: 0 16px 2px !important; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .moment-row::-webkit-scrollbar { display: none; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .moment-row > .moment-pill { flex: 0 0 auto !important; min-height: 38px !important; padding: 0 14px !important; white-space: nowrap !important; scroll-snap-align: start; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .moment-desc { font-size: 13px !important; line-height: 1.45 !important; margin: 8px 0 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .dims-head { margin-bottom: 10px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .dims-head .freshmix-btn { min-height: 36px !important; height: 36px !important; padding: 0 12px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimTabs { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimTabs > .dim-tab { min-height: 0 !important; height: auto !important; padding: 8px 10px !important; gap: 2px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimTabs > .dim-tab .dt-val { font-size: 14px !important; min-width: 0; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimTabs > .dim-tab .dt-val > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel { background: none !important; border: 0 !important; padding: 0 !important; margin-top: 10px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; margin: 0 -16px !important; padding: 0 16px 4px !important; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid::-webkit-scrollbar { display: none; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid > .opt { flex: 0 0 124px !important; width: 124px !important; min-height: 0 !important; height: auto !important; padding: 8px !important; gap: 6px !important; grid-column: auto !important; aspect-ratio: auto !important; justify-content: flex-start !important; scroll-snap-align: start; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid > .opt .trio { height: 22px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid > .opt :is(.motif-preview, .word-preview) { height: 52px !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid > .opt .finish-preview { height: 22px !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid > .opt .opt-name { font-size: 13px !important; line-height: 1.3 !important; margin-top: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio #dimPanel > .option-grid > .opt .opt-name .small { font-size: 12px !important; }
  /* The summary board repeats every choice; keep it as a short recap on phones. */
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .board-card { padding: 16px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .bh-title { font-size: 22px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col :is(.board-head, .board-foot, .direction-moment, .direction-palette) { margin-bottom: 10px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .paper-swatch { height: auto !important; gap: 4px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .paper-swatch .direction-color-sample { height: 32px !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .direction-ingredients { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .direction-ingredient { padding: 10px !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .direction-ingredient--motif { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 6px !important; text-align: left !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .direction-ingredient--motif > .direction-label { align-self: flex-start !important; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .board-motif { width: 100% !important;  height: 48px !important; min-height: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .board-col .board-words { font-size: 15px !important; padding: 4px 0 !important; min-height: 48px !important; height: auto !important; }

  /* Ready-made, phone (10/28): occasions as one swipeable chip row (spec 4) instead of the native dropdown, whose option list renders tiny. The explore links stay pinned above the row. */
  body#typewriterWorkshop.typewriter-theme #view-ready #readyShoppingSurface { position: relative !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready nav#readyScenes.rm-occasion-tabs { position: static !important; display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 8px !important; overflow-x: auto !important; overflow-y: hidden !important; margin: 0 -16px 4px !important; padding: 52px 16px 4px !important; scroll-padding-inline: 16px; scrollbar-width: none; }
  body#typewriterWorkshop.typewriter-theme #view-ready nav#readyScenes.rm-occasion-tabs::-webkit-scrollbar { display: none; }
  body#typewriterWorkshop.typewriter-theme #view-ready nav#readyScenes.rm-occasion-tabs > #readyExplorePaths { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; margin: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready nav#readyScenes.rm-occasion-tabs > a.rm-occasion-tab { display: inline-flex !important; align-items: center !important; flex: 0 0 auto !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--m-line, #d9dcde) !important; border-radius: 999px !important; background: #fff !important; color: #171614 !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important; white-space: nowrap !important; text-decoration: none !important; box-shadow: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready nav#readyScenes.rm-occasion-tabs > a.rm-occasion-tab::after { display: none !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready nav#readyScenes.rm-occasion-tabs > a.rm-occasion-tab[aria-current] { background: #171614 !important; border-color: #171614 !important; color: #fff !important; }
  body#typewriterWorkshop.typewriter-theme #view-ready .rm-mobile-occasion { display: none !important; }

  /* Small text left after the 10/28 sweep: dock labels, studio eyebrow, struck-through price, About sales table. */
  body#typewriterWorkshop.typewriter-theme div.page > nav.p2-mobile-dock > a > span { font-size: 12px !important; letter-spacing: 0 !important; }
  body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .dims-head > .eyebrow, body#typewriterWorkshop.typewriter-theme #view-input #modeStudio .moment-card > .eyebrow { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #view-input .spec-strip .sp > span { font-size: 12px !important; }
  body#typewriterWorkshop.typewriter-theme #pdpPriceSummary #pdpUnitLine > del#pdpCommunityOriginalPrice { font-size: 13px !important; }
  body#typewriterWorkshop.typewriter-theme #view-about.cw-about table.story-sales :is(caption, th, td) { font-size: 12px !important; }

  /* Footer (10/29): tighter group heads, play strip before the legal line, stage ≥100px so footer-playground.js lays objects out */
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] { display: flex !important; flex-direction: column !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-main { padding: 24px 20px 0 !important; gap: 20px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-brand .cw-brand-orb { --orb-size: 32px !important; width: 32px !important; height: 32px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-brand .cw-brand-wordmark { font-size: 24px !important; line-height: 32px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-brand .cw-brand-link { min-height: 40px !important; gap: 10px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-brand p { font-size: 14px !important; line-height: 1.5 !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-brand p { margin-top: 8px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-links { gap: 16px !important; padding-top: 0 !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-group > h2 { padding: 0 !important; margin: 0 0 2px !important; line-height: 16px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-group > nav a { min-height: 40px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .cw-footer-playground { order: 2; margin-top: 12px; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .cw-footer-play-toolbar { margin: 0 20px !important; min-height: 44px !important; gap: 12px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .cw-footer-play-toolbar p { flex: 1 1 auto; min-width: 0; font-size: 12px !important; line-height: 1.4 !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .cw-footer-motion-toggle { font-size: 13px !important; padding: 8px 0 8px 8px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .cw-footer-play-stage { height: 104px !important; min-height: 104px !important; padding: 0 !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .cw-footer-object { max-width: 52px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-note { order: 3; display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; gap: 16px !important; margin: 0 20px !important; padding: 10px 0 12px !important; border-top: 1px solid var(--cw-footer-rule, rgba(255,255,255,.14)) !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-note > span { flex: 1 1 0; min-width: 0; max-width: none !important; font-size: 12px !important; line-height: 1.5 !important; opacity: .72; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-legal { flex: 0 0 auto; gap: 16px !important; margin: 0 !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-legal a { min-height: 40px !important; padding: 0 !important; font-size: 13px !important; }
}

/* MOBILE-POLISH-20261027 pages layer (Codex, FE1 brief) */
@media (max-width: 767px) {
/* About: 16px reading edge, readable captions and restrained chapter rhythm. */
body#typewriterWorkshop #view-about.cw-story-experience .story-width,
body#typewriterWorkshop #view-about.cw-story-experience .story-context > .story-chapter-heading { width: calc(100% - 32px) !important; margin-inline: auto !important; }
body#typewriterWorkshop #view-about.cw-story-experience .story-hero-copy { left: 16px !important; width: calc(100% - 32px) !important; }
body#typewriterWorkshop #view-about.cw-story-experience :is(.story-eyebrow, .evidence-note, .story-shop-link, figcaption, figcaption span, .story-memory-meta, .story-case-label) { font-size: 12px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-about.cw-story-experience :is(.story-chapter-copy, .story-context-detail, .story-context-invite, .story-closing-copy > p) { font-size: 16px !important; line-height: 1.6 !important; }
body#typewriterWorkshop #view-about.cw-story-experience :is(.story-chapter, .story-closing) { padding-block: 40px !important; }
body#typewriterWorkshop #view-about.cw-story-experience :is(.story-chapter-heading h2, .story-closing h2) { font-size: 28px !important; }
body#typewriterWorkshop #view-about.cw-story-experience :is(.story-shop-link, .story-closing a) { display: inline-flex; align-items: center; min-height: 44px !important; font-size: 15px !important; }

/* Guides list: preserve images, raise metadata and use scrollable category pills. */
body#typewriterWorkshop #view-guides :is(.guide-browser-layout, .guide-browser-content) { min-width: 0; padding-inline: 0 !important; }
body#typewriterWorkshop #view-guides :is(.guide-entry-chip, .guide-author-label, .guide-author-avatar, .guide-author-initials, .guide-entry-meta, .guide-entry-date) { font-size: 12px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-guides :is(.guide-entry-content > p, .guide-featured-card p) { font-size: 15px !important; line-height: 1.6 !important; }
body#typewriterWorkshop #view-guides :is(.guide-entry-cover-link, .guide-featured-cover-link) { border-radius: 8px !important; overflow: hidden; }
body#typewriterWorkshop #view-guides :is(.guide-topic-filters, .guide-filters) { display: flex !important; flex-wrap: nowrap !important; max-width: 100%; overflow-x: auto; gap: 8px !important; }
body#typewriterWorkshop #view-guides :is(.guide-filter, .guide-topic-filters a) { flex: 0 0 auto; min-height: 40px !important; padding: 0 14px !important; border: 1px solid #e0e3e7 !important; border-radius: 999px !important; font-size: 13px !important; }
body#typewriterWorkshop #view-guides :is(.guide-filter, .guide-topic-filters a)[aria-current="page"] { background: #171614 !important; color: white !important; }

/* Guide article: remove nested gutters and keep long content inside the reading column. */
body#typewriterWorkshop #view-guide .guide-editorial-layout { padding-inline: 0 !important; padding-bottom: 40px !important; }
body#typewriterWorkshop #view-guide :is(.guide-editorial-content, .guide-article-header) { min-width: 0; max-width: 100%; }
body#typewriterWorkshop #view-guide :is(.guide-author-avatar, .guide-author-initials, .guide-author-label, figcaption) { font-size: 12px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-guide :is(.guide-article-body p, .guide-article-body li, .guide-article-header > p:not(.guide-status)) { font-size: 16px !important; line-height: 1.6 !important; }
body#typewriterWorkshop #view-guide :is(pre, table) { max-width: 100%; overflow-x: auto; }
body#typewriterWorkshop #view-guide :is(.phase2-guide-back, .guide-toc-toggle) { min-height: 44px !important; font-size: 15px !important; }

/* Help / Shipping / Returns / Terms / Privacy: one gutter, readable small print, scrollable pills. */
body#typewriterWorkshop #view-policy .cw-policy-page-shell { width: 100% !important; max-width: 100% !important; padding-inline: 0 !important; margin-inline: 0 !important; }
body#typewriterWorkshop #view-policy :is(.cw-policy-page-kicker, .cw-policy-page-effective, .cw-policy-summary-grid small, .cw-policy-summary-grid span, .cw-policy-index span, .cw-policy-breadcrumb) { font-size: 12px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-policy .cw-policy-page-hero h1 { font-size: 32px !important; }
body#typewriterWorkshop #view-policy :is(.cw-policy-page-intro, .cw-policy-body p, .cw-policy-body li) { font-size: 16px !important; line-height: 1.6 !important; }
body#typewriterWorkshop #view-policy .cw-policy-switcher { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 8px !important; padding-bottom: 4px !important; scrollbar-width: thin; }
body#typewriterWorkshop #view-policy .cw-policy-switcher a { flex: 0 0 auto !important; width: auto !important; min-height: 40px !important; padding: 0 14px !important; border: 1px solid #e0e3e7 !important; border-radius: 999px !important; font-size: 13px !important; white-space: nowrap !important; }
body#typewriterWorkshop #view-policy .cw-policy-switcher a[aria-current="page"] { background: #171614 !important; color: #fff !important; }
body#typewriterWorkshop #view-policy :is(input, select) { min-height: 44px !important; font-size: 16px !important; }
body#typewriterWorkshop #view-policy .cw-policy-contact a { display: flex; justify-content: center; align-items: center; min-height: 48px !important; font-size: 15px !important; border-radius: 10px !important; }

/* Community work detail: scoped to Community state, preserve the black-square controls. */
body#typewriterWorkshop #view-result[data-community-product] { padding-inline: 0 !important; }
body#typewriterWorkshop #view-result[data-community-product] :is(.community-creator-avatar, .community-creator-initials, .community-product-note) { font-size: 12px !important; }

/* Special offers list: single-column toolbar, scrolling filters, stable media and readable cards. */
body#typewriterWorkshop #view-community-ready { padding-inline: 0 !important; padding-bottom: 40px !important; min-width: 0; }
body#typewriterWorkshop:has(#view-community-ready.active),
body#typewriterWorkshop:has(#view-community-ready.active) > .page { background: #fff !important; }
body#typewriterWorkshop #view-community-ready .cr-intro { margin-bottom: 40px !important; }
body#typewriterWorkshop #view-community-ready .cr-results-heading h2 { font-size: 20px !important; font-weight: 700 !important; }
body#typewriterWorkshop #view-community-ready :is(.cr-total, .cr-maker-credit, .community-creator-name, .community-creator-initials, .cd-flip-cue, .cd-card-stats, .cd-card-stats span) { font-size: 12px !important; }
body#typewriterWorkshop #view-community-ready .cr-toolbar { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 16px !important; }
body#typewriterWorkshop #view-community-ready .cr-tools { display: flex !important; width: 100%; gap: 8px !important; min-width: 0; }
body#typewriterWorkshop #view-community-ready .cr-sort { flex: 1 1 auto; min-width: 0; order: 0; }
body#typewriterWorkshop #view-community-ready .cr-sort select { width: 100% !important; min-width: 0 !important; font-size: 16px !important; }
body#typewriterWorkshop #view-community-ready #communityReadyPageSearchToggle { order: 2; }
body#typewriterWorkshop #view-community-ready :is(.cr-tools button, .cr-tools select, .cr-search input, .cr-search button, .cr-filter-panel select) { min-height: 44px !important; border-radius: 10px !important; font-size: 14px !important; }
body#typewriterWorkshop #view-community-ready :is(.cr-search input, .cr-filter-panel select, .cr-mobile-occasion select) { font-size: 16px !important; min-width: 0; }
body#typewriterWorkshop #view-community-ready .cd-library-grid { gap: 28px 12px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body#typewriterWorkshop #view-community-ready :is(.cd-card, .cd-card-body, .cd-front, .cd-card-copy) { min-width: 0 !important; }
body#typewriterWorkshop #view-community-ready .cd-image { border-radius: 8px !important; overflow: hidden; }
body#typewriterWorkshop #view-community-ready :is(.cd-card-title, .cd-card-body h3) { font-size: 15px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body#typewriterWorkshop #view-community-ready .cd-card-actions { display: flex !important; flex-direction: column !important; }
body#typewriterWorkshop #view-community-ready .cd-card-actions a { display: none !important; }
body#typewriterWorkshop #view-community-ready .cd-card-actions button { width: 100% !important; min-height: 44px !important; border-radius: 10px !important; font-size: 14px !important; background: #171614 !important; color: white !important; }

/* Birthday collection: only category-specific rail, never the shared FE1 product cards. */
body#typewriterWorkshop #view-ready .rm-subcategories { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 8px !important; max-width: 100%; padding: 8px 0 12px !important; }
body#typewriterWorkshop #view-ready .rm-subcategories button { flex: 0 0 auto; min-height: 40px !important; padding: 0 14px !important; border: 1px solid #e0e3e7 !important; border-radius: 999px !important; font-size: 13px !important; white-space: nowrap; }
body#typewriterWorkshop #view-ready .rm-subcategories button[aria-pressed="true"] { background: #171614 !important; color: white !important; }

/* Creation history: remove inset card gutters, size search and preserve section marks. */
body#typewriterWorkshop #view-creation-history { padding-inline: 0 !important; }
body#typewriterWorkshop #view-creation-history :is(.creation-history, .history-heading, .dc-history-body) { padding-inline: 0 !important; min-width: 0; }
body#typewriterWorkshop #view-creation-history :is(.history-summary, .dc-history-date, .dc-history-group-count, .history-empty p, .history-back) { font-size: 13px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-creation-history .history-heading h1 { font-size: 28px !important; }
body#typewriterWorkshop #view-creation-history :is(input, select) { font-size: 16px !important; min-height: 44px !important; }
body#typewriterWorkshop #view-creation-history :is(.dc-new-design, .history-empty .btn) { min-height: 48px !important; border-radius: 10px !important; font-size: 15px !important; background: #171614 !important; color: white !important; }

/* Account Orders / Help / Returns / Share: respect FE1 horizontal menu and readable metadata. */
body#typewriterWorkshop #view-account:has(:is([data-account-panel="orders"], [data-account-panel="help"], [data-account-panel="returns"], [data-account-panel="share"]):not([hidden])) .cw-account-shell { padding-inline: 0 !important; }
body#typewriterWorkshop #view-account :is(.cw-account-preview-label, .cw-policy-status small, .cw-policy-facts span, .cw-share-note, .op-history-note, .op-order-head small, .op-filter-bar button span) { font-size: 12px !important; }
body#typewriterWorkshop #view-account .cw-order-filters { flex-wrap: nowrap !important; overflow-x: auto !important; max-width: 100%; }
body#typewriterWorkshop #view-account .cw-order-filters button { flex: 0 0 auto; min-height: 40px !important; border-radius: 999px !important; font-size: 13px !important; }
body#typewriterWorkshop #view-account :is(.cw-help-search input, .cw-help-search-input) { min-height: 44px !important; font-size: 16px !important; }

/* 404 / reserved route: keep the recovery action reachable above the dock. */
body#typewriterWorkshop #view-route { padding-inline: 0 !important; padding-bottom: 40px !important; overflow-wrap: anywhere; }
body#typewriterWorkshop #view-route :is(.route-path, .route-evidence, .eyebrow) { font-size: 12px !important; }
body#typewriterWorkshop #view-route :is(p, .route-copy) { font-size: 16px !important; line-height: 1.6 !important; }
body#typewriterWorkshop #view-route .btn { min-height: 48px !important; border-radius: 10px !important; font-size: 15px !important; }

/* Sign-in dialog: safe inset and internal scroll, without restyling the square close glyph. */
body#typewriterWorkshop #loginOverlay { padding: 16px !important; }
body#typewriterWorkshop #loginOverlay .login-modal { box-sizing: border-box; width: 100% !important; max-width: 430px !important; max-height: calc(100dvh - 32px) !important; overflow-y: auto !important; padding: 24px 20px !important; }
body#typewriterWorkshop #loginOverlay :is(.login-divider, .login-keep-note, .login-keep-note strong, label, .err) { font-size: 12px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #loginOverlay :is(.modal-sub, .login-fail) { font-size: 15px !important; line-height: 1.6 !important; }
body#typewriterWorkshop #loginOverlay input { min-height: 48px !important; font-size: 16px !important; }
body#typewriterWorkshop #loginOverlay :is(.login-google, .login-continue) { min-height: 48px !important; border-radius: 10px !important; font-size: 15px !important; width: 100% !important; }
body#typewriterWorkshop #loginOverlay .login-cancel { min-height: 44px !important; font-size: 15px !important; }

/* Quick tips: keep the floating panel inside the phone and above the navigation. */
body#typewriterWorkshop #view-input #customQuickTips { box-sizing: border-box; max-width: calc(100vw - 32px) !important; max-height: calc(100dvh - 160px) !important; overflow-y: auto !important; }
body#typewriterWorkshop #view-input #customQuickTips :is(p, li) { font-size: 15px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-input #customQuickTips :is(.custom-tips-tab, .custom-tips-step-label, small) { font-size: 12px !important; }
body#typewriterWorkshop #view-input #customQuickTips :is(.custom-tips-return, #customQuickTipsGuides) { min-height: 44px !important; font-size: 15px !important; }

/* Ready-made filter drawer: legible fields and controls, no changes to FE1 list styling. */
body#typewriterWorkshop #view-ready #readyFilterShell { box-sizing: border-box; max-width: 100%; padding: 16px !important; }
body#typewriterWorkshop #view-ready #readyFilterShell :is(label, legend, .ready-filter-label, .ready-filter-count) { font-size: 13px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-ready #readyFilterShell :is(select, input:not([type="checkbox"]):not([type="radio"])) { min-width: 0; font-size: 16px !important; min-height: 44px !important; }
body#typewriterWorkshop #view-ready #readyFilterShell :is(.ready-filter-apply, .ready-filter-clear) { min-height: 44px !important; border-radius: 10px !important; font-size: 14px !important; }

/* Special offers: readable author metadata; the linked title retains detail navigation. */
body#typewriterWorkshop #view-community-ready :is(.community-creator-avatar, .cd-card-stats *, .cr-maker-credit *) { font-size: 12px !important; }
body#typewriterWorkshop #view-community-ready .cd-card-actions .community-action-secondary { background: #fff !important; color: #171614 !important; border: 1px solid #e0e3e7 !important; }
/* Filter drawer: native dialog header and footer share the same 16px inset. */
body#typewriterWorkshop #view-ready #readyFilterShell { padding: 0 !important; }
body#typewriterWorkshop #view-ready #readyFilterShell :is(.rm-drawer-header, .rm-drawer-body, .rm-drawer-footer) { padding-inline: 16px !important; }
body#typewriterWorkshop #view-ready #readyFilterShell :is(.rm-drawer-eyebrow, .rm-drawer-selection) { font-size: 12px !important; }
body#typewriterWorkshop #view-ready #readyFilterShell :is(.rm-sort-choice, .rm-filter-reset-top) { min-height: 44px !important; }
body#typewriterWorkshop #view-ready #readyFilterShell .rm-drawer-show { min-height: 48px !important; font-size: 15px !important; border-radius: 10px !important; }
/* Route recovery: readable explanatory captions. */
body#typewriterWorkshop #view-route small { font-size: 12px !important; line-height: 1.5 !important; }
/* About: captions and provenance remain legible without changing zoom glyphs. */
body#typewriterWorkshop #view-about.cw-story-experience :is(small, .story-memory-provenance, .gallery-caption, .story-corgi-palette span, .story-corgi-note) { font-size: 12px !important; line-height: 1.5 !important; }
body#typewriterWorkshop #view-about.cw-story-experience #aboutTitle { font-size: 34px !important; }
/* Offers and missing route: mobile title scale and a single reading gutter. */
body#typewriterWorkshop #view-community-ready #communityReadyPageTitle { font-size: 34px !important; }
body#typewriterWorkshop #view-route .route-shell { padding-inline: 0 !important; border: 0 !important; box-shadow: none !important; }
body#typewriterWorkshop #view-route #routeTitle { font-size: 32px !important; }
/* Creation history: remove the second outer margin from the rendered history shell. */
body#typewriterWorkshop #view-creation-history .creation-history { margin-inline: 0 !important; }
body#typewriterWorkshop #view-creation-history .history-heading { border-inline: 0 !important; }
/* Account subpanels only: retain FE1 profile layout, remove nested page-level insets. */
body#typewriterWorkshop #view-account:has(:is([data-account-panel="orders"], [data-account-panel="help"], [data-account-panel="returns"], [data-account-panel="share"]):not([hidden])) { padding-inline: 0 !important; }
body#typewriterWorkshop #view-account:has(:is([data-account-panel="orders"], [data-account-panel="help"], [data-account-panel="returns"], [data-account-panel="share"]):not([hidden])) .cw-account-content { padding-inline: 0 !important; border-inline: 0 !important; }
body#typewriterWorkshop #view-account:has(:is([data-account-panel="orders"], [data-account-panel="help"], [data-account-panel="returns"], [data-account-panel="share"]):not([hidden])) .cw-account-document-title { margin-inline: 0 !important; }
/* Birthday category: align the category hero without changing the all-products page. */
body#typewriterWorkshop #view-ready:has(.rm-subcategories:not([hidden])) .rm-catalog-hero { margin-inline: -16px !important; }
body#typewriterWorkshop #view-ready:has(.rm-subcategories:not([hidden])) .rm-community-link { font-size: 12px !important; }
/* Sign-in: expand the close touch area while preserving its existing glyph. */
body#typewriterWorkshop #loginOverlay .login-close { min-width: 44px !important; min-height: 44px !important; }

/* Account subpanels: make the signed-out primary action easy to reach. */
body#typewriterWorkshop #view-account :is([data-account-panel="orders"], [data-account-panel="help"], [data-account-panel="returns"], [data-account-panel="share"]) .btn-primary { width: 100% !important; min-height: 48px !important; border-radius: 10px !important; font-size: 15px !important; background: #171614 !important; color: #fff !important; }
/* Offers: native sort control must not zoom the iPhone viewport on focus. */
body#typewriterWorkshop #view-community-ready .cr-tools .cr-sort select { font-size: 16px !important; }
/* Quick tips: center the constrained panel within its trigger row. */
body#typewriterWorkshop #view-input #customQuickTips { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
/* Account Help: quick topics form one scrollable pill row with a clear selected state. */
body#typewriterWorkshop #view-account [data-account-panel="help"] .cw-help-shortcuts { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto !important; max-width: 100%; }
body#typewriterWorkshop #view-account [data-account-panel="help"] .cw-help-shortcuts button { flex: 0 0 auto; min-height: 40px !important; padding-inline: 14px !important; border: 1px solid #e0e3e7 !important; border-radius: 999px !important; font-size: 13px !important; }
body#typewriterWorkshop #view-account [data-account-panel="help"] .cw-help-shortcuts button[aria-pressed="true"] { background: #171614 !important; color: #fff !important; }
body#typewriterWorkshop #view-account [data-account-panel="help"] #accountHelpSearch { font-size: 16px !important; min-height: 44px !important; }

}

/* Preserve the production privacy-preferences link without squeezing copyright. */
@media (max-width: 767px) {
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-note { flex-wrap: wrap !important; gap: 4px 16px !important; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-note > span { flex-basis: 100%; }
  body#typewriterWorkshop footer.site-footer[data-cw-footer-playground] .site-footer-legal { flex: 0 1 auto; max-width: 100%; flex-wrap: wrap; }
}
