      :root {
        --navy: #132338;
        --blue: #1b4fa8;
        --blue-bright: #2563eb;
        --blue-soft: #e8f0ff;
        --orange: #f5820a;
        --green: #0f766e;
        --market: #16833d;
        --market-dark: #0f5f2b;
        --market-soft: #edf8ef;
        --red: #b42318;
        --paper: #f3f6fa;
        --panel: #ffffff;
        --ink: #122033;
        --muted: #536479;
        --muted-s: rgba(26, 46, 68, 0.74);
        --gb: rgba(27, 79, 168, 0.13);
        --surface: rgba(255, 255, 255, 0.94);
        --line: rgba(19, 35, 56, 0.1);
        --line-strong: rgba(19, 35, 56, 0.18);
        --shadow: 0 18px 42px rgba(19, 35, 56, 0.09);
        --radius: 8px;
      }

      * { box-sizing: border-box; }

      html { scroll-behavior: smooth; }

      body {
        margin: 0;
        min-height: 100vh;
        font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 17px;
        line-height: 1.58;
        color: var(--ink);
        background:
          linear-gradient(90deg, rgba(27, 79, 168, 0.045) 0 1px, transparent 1px 100%),
          radial-gradient(ellipse 72% 42% at 50% -12%, rgba(27, 79, 168, 0.12), transparent 64%),
          radial-gradient(ellipse 44% 34% at 100% 16%, rgba(245, 130, 10, 0.1), transparent 58%),
          var(--paper);
        background-size: 32px 32px, auto, auto, auto;
        padding-top: 72px;
      }

      body.low-vision {
        --paper: #fff;
        --panel: #fff;
        --ink: #050505;
        --muted: #202020;
        --line: #111;
        font-size: 20px;
      }

      body.left-scan .product-grid { direction: rtl; }
      body.left-scan .product-card { direction: ltr; }
      body.aphasia .support-text { display: none; }

      button, input, select, textarea { font: inherit; }

      button {
        min-height: 46px;
        border: 0;
        border-radius: var(--radius);
        cursor: pointer;
        font-weight: 800;
      }

      button:disabled {
        cursor: not-allowed;
        opacity: 0.55;
      }

      button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
        outline: 4px solid rgba(27, 79, 168, 0.25);
        outline-offset: 2px;
      }

      .hidden { display: none !important; }

      .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 300;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        height: 72px;
        padding: 0 5vw;
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(19, 35, 56, 0.11);
        backdrop-filter: blur(22px) saturate(1.6);
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        color: inherit;
        text-decoration: none;
      }

      .brand:focus-visible {
        outline: 3px solid rgba(11, 95, 255, 0.28);
        outline-offset: 4px;
        border-radius: 10px;
      }

      .mark {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        object-fit: contain;
      }

      .brand strong, .brand span { display: block; }
      .brand strong { font-size: 21px; color: var(--navy); font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1; }
      .brand span { color: var(--orange); font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.26em; margin-top: 1px; }

      .top-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .top-actions button,
      .top-actions a {
        min-height: 42px;
        padding: 10px 13px;
        border-radius: 7px;
        font-size: 0.9rem;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .shell {
        max-width: 1260px;
        width: 100%;
        margin: 0 auto;
        padding: 34px 5vw 68px;
      }

      .hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 18px;
        padding: clamp(1.35rem, 2.6vw, 2rem);
        background: var(--surface);
        border: 1px solid var(--gb);
        border-radius: 12px;
        backdrop-filter: blur(12px);
        box-shadow: var(--shadow);
        position: relative;
        overflow: hidden;
      }

      body.focus-mode .hero,
      body.focus-mode .stepper {
        display: none !important;
      }

      .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
          radial-gradient(ellipse 55% 45% at 0% 0%, rgba(27, 79, 168, 0.07), transparent 70%),
          linear-gradient(90deg, rgba(19, 35, 56, 0.04) 0 1px, transparent 1px 100%);
        background-size: auto, 28px 28px;
        pointer-events: none;
      }

      .hero > * { position: relative; }

      .hero-main, .panel, .card, .store-card, .product-card, .cart-panel, .modal {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--panel);
        box-shadow: var(--shadow);
      }

      .hero-main {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
      }

      h1, h2, h3, p { margin-top: 0; }
      h1 { margin-bottom: 1rem; color: var(--navy); font-size: clamp(2.25rem, 4.9vw, 4.55rem); line-height: 0.94; letter-spacing: -0.04em; text-transform: uppercase; font-weight: 900; max-width: 980px; }
      h1 span { color: var(--blue); }
      h2 { color: var(--navy); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.1; }
      h3 { color: var(--navy); font-size: 1.05rem; }
      p { color: var(--muted); }

      .section-tag {
        font-family: "DM Mono", monospace;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--orange);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .section-tag::before {
        content: "";
        width: 18px;
        height: 1px;
        background: var(--orange);
      }

      .sub {
        max-width: 68ch;
        color: var(--muted-s);
        font-size: clamp(1rem, 1.6vw, 1.12rem);
        line-height: 1.72;
        margin-bottom: 1.35rem;
      }

      .hero-credit {
        margin-top: 1.4rem;
        font-family: "DM Mono", monospace;
        font-size: 10px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--muted);
      }

      .notice {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 16px 0 0;
        padding: 10px 12px;
        border: 1px solid rgba(180, 35, 24, 0.3);
        border-radius: var(--radius);
        background: #fff4f2;
        color: var(--red);
        font-weight: 900;
      }

      .fine-print {
        margin: -4px 24px 22px;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 650;
        line-height: 1.4;
      }

      .quick-panel {
        display: none;
      }

      .stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .stat {
        padding: 14px;
        border-radius: var(--radius);
        background: #edf3f8;
      }

      .stat strong { display: block; color: var(--navy); font-size: 1.35rem; }
      .stat span { color: var(--muted); font-weight: 750; }

      .toolbar {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        margin: 18px 0;
      }

      .chip {
        border: 1px solid var(--line);
        background: white;
        color: var(--navy);
        padding: 10px 14px;
      }

      .chip.active {
        background: var(--blue);
        color: white;
        border-color: var(--blue);
      }

      .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
      }

      .card, .store-card, .product-card, .panel { padding: 18px; }

      .goal-card {
        --level-color: var(--blue);
        --level-soft: rgba(27, 79, 168, 0.12);
        --level-shadow: rgba(27, 79, 168, 0.16);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 238px;
        padding: 24px;
        border: 1px solid var(--level-color);
        border-radius: 20px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
          linear-gradient(135deg, var(--level-soft), rgba(255, 255, 255, 0.76));
        box-shadow: 0 18px 40px var(--level-shadow);
        position: relative;
        overflow: hidden;
        cursor: pointer;
      }

      .goal-card::before {
        content: "";
        display: block;
        height: 6px;
        margin: -24px -24px 12px;
        background: var(--level-color);
        align-self: stretch;
        flex: 0 0 auto;
      }

      .goal-card:hover,
      .goal-card:focus-within,
      .goal-card:focus-visible {
        box-shadow: 0 24px 52px var(--level-shadow);
        transform: translateY(-3px);
      }

      .goal-card h3 {
        font-size: 1.28rem;
        font-weight: 900;
        line-height: 1.18;
      }

      .goal-card p {
        color: var(--muted-s);
      }

      .level-easy { --level-color: #21a67a; --level-soft: rgba(33, 166, 122, 0.14); --level-shadow: rgba(33, 166, 122, 0.18); }
      .level-moderate { --level-color: #d7ad2f; --level-soft: rgba(215, 173, 47, 0.16); --level-shadow: rgba(215, 173, 47, 0.18); }
      .level-hard { --level-color: #e87622; --level-soft: rgba(232, 118, 34, 0.15); --level-shadow: rgba(232, 118, 34, 0.18); }
      .level-complex { --level-color: #c83d3d; --level-soft: rgba(200, 61, 61, 0.14); --level-shadow: rgba(200, 61, 61, 0.18); }

      .section-title {
        font-size: clamp(1.45rem, 2.5vw, 2.1rem);
        letter-spacing: 0;
        text-transform: uppercase;
        color: var(--navy);
        margin: 36px 0 12px;
        font-weight: 900;
      }

      .level-section { margin-top: 24px; }

      .level-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 10px;
      }

      .level-heading h2 {
        font-size: clamp(1.35rem, 2.4vw, 2rem);
        font-weight: 900;
        color: var(--navy);
      }

      .level-heading p {
        max-width: 560px;
        color: var(--muted-s);
        line-height: 1.5;
      }

      .activity-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
      }

      .meta-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        max-width: 100%;
        padding: 5px 9px;
        border-radius: 999px;
        background: #edf3f8;
        color: var(--navy);
        font-size: 0.84rem;
        font-weight: 850;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
      }

      .pill.warn { background: #fff4d8; color: #7a4a00; }
      .pill.danger { background: #fff0ed; color: var(--red); }
      .pill.good { background: #e8f8f4; color: var(--green); }
      .pill.muted { background: #eef0ed; color: #667168; }

      .btn-primary { background: var(--blue); color: white; }
      .btn-secondary { background: #edf3f8; color: var(--navy); border: 1px solid var(--line); }
      .btn-danger { background: #fff0ed; color: var(--red); border: 1px solid rgba(180, 35, 24, 0.24); }

      .btn-primary,
      .btn-secondary,
      .btn-danger {
        letter-spacing: 0.08em;
        line-height: 1.15;
        text-transform: uppercase;
      }

      .stepper {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 18px 0 22px;
      }

      .step {
        flex: 1;
        min-width: 120px;
        padding: 9px 10px;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: white;
        color: var(--muted);
        font-weight: 850;
        text-align: center;
      }

      .step.active { color: white; background: var(--green); border-color: var(--green); }

      #goalGrid {
        display: block;
      }

      .activity-number {
        font-family: "DM Mono", monospace;
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        color: var(--level-color);
        opacity: 0.72;
      }

      #storeView > .panel,
      #deliveryView > .panel,
      #checkoutView > .panel,
      #summaryView > .panel {
        padding: 0;
        border: 1px solid var(--gb);
        border-radius: 12px;
        overflow: hidden;
        background: var(--surface);
        backdrop-filter: blur(12px);
      }

      #storeView > .panel > h2,
      #deliveryView > .panel > h2,
      #checkoutView > .panel > h2,
      #summaryView > .panel > h2 {
        margin: 0;
        padding: 24px 24px 8px;
        background: linear-gradient(135deg, var(--navy), #183a68);
        color: white;
      }

      #storeView > .panel > p,
      #deliveryView > .panel > p,
      #checkoutView > .panel > p,
      #summaryView > .panel > p,
      #storeGrid,
      #fulfillmentGrid,
      #fulfillmentReview,
      #checkoutSummary,
      #performanceSummary,
      #summaryView .form-grid,
      #summaryView .toolbar,
      #summaryView .textarea-output {
        margin-left: 24px;
        margin-right: 24px;
      }

      #summaryView .form-grid:first-of-type,
      #summaryView .textarea-output {
        margin-top: 18px;
      }

      #summaryView .textarea-output {
        width: calc(100% - 48px);
        margin-bottom: 24px;
      }

      #storeView > .panel > p,
      #deliveryView > .panel > p {
        margin-top: 16px;
      }

      .layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 16px;
        align-items: start;
      }

      .marketplace {
        grid-column: 1;
      }

      .cart-panel {
        grid-column: 2;
      }

      .marketplace {
        display: grid;
        gap: 14px;
      }

      .market-app {
        border: 1px solid rgba(19, 35, 56, 0.1);
        border-radius: 18px;
        background: #fbfbf7;
        box-shadow: 0 22px 48px rgba(19, 35, 56, 0.14);
        overflow: hidden;
      }

      .market-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        align-items: center;
        padding: 18px;
        border: 1px solid rgba(22, 131, 61, 0.18);
        border-radius: var(--radius);
        background:
          linear-gradient(135deg, rgba(237, 248, 239, 0.92), rgba(255, 255, 255, 0.96)),
          #fff;
        box-shadow: var(--shadow);
      }

      .market-eyebrow {
        display: block;
        margin-bottom: 4px;
        color: var(--market-dark);
        font-size: 0.78rem;
        font-weight: 950;
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      .market-title {
        margin: 0;
        color: #10251a;
        font-size: clamp(1.5rem, 3vw, 2.4rem);
      }

      .market-sub {
        margin: 6px 0 0;
        color: #40584b;
      }

      .market-facts {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .market-fact {
        min-width: 118px;
        padding: 10px 12px;
        border-radius: var(--radius);
        background: white;
        border: 1px solid rgba(22, 131, 61, 0.18);
        color: #20382a;
        font-weight: 900;
        text-align: center;
      }

      .market-fact span {
        display: block;
        color: #5e7065;
        font-size: 0.78rem;
        font-weight: 800;
      }

      .shopping-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        margin-bottom: 0;
        padding: 12px;
        border: 0;
        border-radius: 0;
        background: white;
        box-shadow: none;
      }

      .search-box, .field input, .field select, .field textarea {
        width: 100%;
        min-height: 48px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: white;
        color: var(--ink);
      }

      #shopView .search-box {
        min-height: 44px;
        border-color: transparent;
        border-radius: 999px;
        background: #f1f2ee;
      }

      .category-row {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 12px;
        margin-bottom: 0;
        border: 0;
        border-top: 1px solid rgba(19, 35, 56, 0.08);
        border-bottom: 1px solid rgba(19, 35, 56, 0.08);
        border-radius: 0;
        background: white;
      }

      .category-row button { flex: 0 0 auto; }

      #shopView .category-row .chip {
        display: grid;
        place-items: center;
        gap: 3px;
        min-width: 82px;
        min-height: 68px;
        padding: 8px 10px;
        border: 0;
        background: white;
        color: #20382a;
        font-size: 0.78rem;
      }

      .cat-icon {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: var(--market-soft);
        color: var(--market-dark);
        font-weight: 950;
      }

      .cat-icon svg {
        display: block;
        width: 19px;
        height: 19px;
        fill: currentColor;
      }

      #shopView .chip.active {
        background: #f4fbf5;
        border-color: transparent;
        color: var(--market-dark);
      }

      #shopView .chip.active .cat-icon {
        background: var(--market);
        color: white;
      }

      .section-head {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: end;
        padding: 4px 12px 0;
      }

      .section-head h2 {
        margin: 0;
        color: #172113;
        font-size: 1.25rem;
      }

      .section-head span {
        color: var(--muted);
        font-weight: 800;
      }

      .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
        gap: 0;
        padding: 6px 10px 12px;
      }

      .product-card {
        display: grid;
        grid-template-rows: auto auto 1fr auto auto;
        gap: 9px;
        min-height: 310px;
        padding: 12px;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(19, 35, 56, 0.08);
        box-shadow: none;
      }

      .product-card:hover {
        border-color: rgba(22, 131, 61, 0.42);
        box-shadow: 0 16px 34px rgba(22, 131, 61, 0.12);
      }

      .product-art {
        min-height: 116px;
        border-radius: var(--radius);
        background: #f7fbf7;
        display: grid;
        place-items: center;
        border: 1px solid rgba(22, 131, 61, 0.12);
        overflow: hidden;
      }

      .product-art img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: inherit;
        object-fit: contain;
      }

      .market-add {
        display: inline-grid;
        place-items: center;
        width: 42px;
        min-height: 42px;
        border-radius: 999px;
        background: #1f2933;
        color: white;
        font-size: 1.45rem;
        line-height: 1;
      }

      .product-card.added-feedback {
        animation: addedCardPulse 0.78s ease;
      }

      .product-card.added-feedback .product-art {
        animation: addedArtPop 0.78s ease;
      }

      .market-add.added-feedback {
        background: var(--market);
        animation: addedButtonPop 0.78s ease;
        font-size: 0.86rem;
        font-weight: 950;
      }

      .cart-count.added-feedback {
        animation: cartCountPulse 0.78s ease;
      }

      @keyframes addedCardPulse {
        0% { box-shadow: none; background: white; }
        28% { box-shadow: inset 0 0 0 3px rgba(22, 131, 61, 0.36), 0 18px 38px rgba(22, 131, 61, 0.18); background: #f2fbf4; }
        100% { box-shadow: none; background: white; }
      }

      @keyframes addedArtPop {
        0% { transform: scale(1); }
        32% { transform: scale(1.08); }
        100% { transform: scale(1); }
      }

      @keyframes addedButtonPop {
        0% { transform: scale(1); }
        30% { transform: scale(1.14); }
        100% { transform: scale(1); }
      }

      @keyframes cartCountPulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 131, 61, 0.42); }
        35% { transform: scale(1.22); box-shadow: 0 0 0 9px rgba(22, 131, 61, 0.16); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 131, 61, 0); }
      }

      .market-add.replacement {
        width: auto;
        min-width: 118px;
        padding: 0 12px;
        border-radius: 999px;
        font-size: 0.86rem;
      }

      .product-card.store-unavailable {
        background: #f5f6f4;
        border-color: #e2e5df;
      }

      .product-card.store-unavailable .product-art,
      .product-card.store-unavailable .product-title,
      .product-card.store-unavailable p,
      .product-card.store-unavailable .price {
        opacity: 0.58;
      }

      .product-card.store-unavailable .product-art img {
        filter: grayscale(0.72);
      }

      .market-add.unavailable {
        width: auto;
        min-width: 136px;
        padding: 0 14px;
        border-radius: 999px;
        background: #d7ddd6;
        color: #58635b;
        font-size: 0.82rem;
        font-weight: 950;
      }

      .product-title {
        margin: 0;
        color: var(--navy);
        font-weight: 900;
      }

      .price { color: #10251a; font-size: 1.28rem; font-weight: 950; }

      .product-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
      }

      #shopView .btn-primary,
      #deliveryView .btn-primary,
      #checkoutView .btn-primary {
        background: var(--market);
        color: white;
      }

      #shopView .btn-primary:hover,
      #deliveryView .btn-primary:hover,
      #checkoutView .btn-primary:hover {
        background: var(--market-dark);
      }

      .cart-panel {
        position: sticky;
        top: 84px;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 108px);
        overflow: hidden;
        padding: 16px;
        border-color: rgba(22, 131, 61, 0.22);
        box-shadow: 0 18px 42px rgba(19, 35, 56, 0.14);
      }

      .mobile-market-nav {
        display: none;
      }

      .mobile-cart-cta {
        display: none;
      }

      .mobile-cart-cta:empty {
        display: none !important;
        padding: 0 !important;
      }

      .activity-nav {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        margin: 0 8px 14px;
      }

      .activity-nav button {
        min-height: 42px;
        border-radius: 999px;
        letter-spacing: 0;
        text-transform: none;
      }

      .cart-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
      }

      .cart-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
        border-radius: 999px;
        background: var(--market);
        color: white;
        font-weight: 950;
      }

      .cart-items {
        display: grid;
        align-content: start;
        gap: 10px;
        min-height: 0;
        margin: 12px 0;
      }

      .cart-item {
        display: grid;
        gap: 8px;
        padding: 10px;
        border: 1px solid rgba(19, 35, 56, 0.12);
        border-radius: var(--radius);
        background: white;
      }

      .cart-item-top, .money-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .qty-row {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px auto;
        gap: 8px;
        align-items: center;
      }

      .qty-row button { min-height: 40px; }

      .money-table {
        display: grid;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
      }

      .money-row strong { color: var(--navy); }
      .over-budget { color: var(--red); font-weight: 900; }

      .task-strip {
        margin-bottom: 16px;
        padding: 16px;
        border-left: 6px solid var(--orange);
        box-shadow: 0 10px 26px rgba(19, 35, 56, 0.08);
      }

      .checkout-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
        align-items: stretch;
      }

      .choice-card {
        display: grid;
        grid-template-rows: auto auto auto auto auto 1fr;
        gap: 12px;
        padding: 16px;
        border: 2px solid var(--line);
        border-radius: var(--radius);
        background: white;
      }

      .choice-card h3,
      .choice-card p {
        margin: 0;
      }

      .fee-note {
        padding: 10px 12px;
        border-radius: 10px;
        background: #f7f8f3;
        color: #536356;
        font-size: 0.9rem;
        font-weight: 800;
        line-height: 1.35;
      }

      .choice-card.selected {
        border-color: var(--green);
        background: #eefbf8;
      }

      .field {
        display: grid;
        gap: 7px;
        color: var(--navy);
        font-weight: 850;
      }

      .fulfillment-field {
        margin-top: 6px;
        gap: 10px;
      }

      .fulfillment-field select {
        margin-top: 2px;
      }

      #fulfillmentReview {
        margin-top: 16px;
        margin-bottom: 14px;
      }

      .order-review-panel {
        padding: 18px;
        border-radius: var(--radius);
      }

      .order-review-panel summary {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        color: var(--navy);
        font-weight: 950;
        list-style: none;
      }

      .order-review-panel summary::-webkit-details-marker {
        display: none;
      }

      .order-review-panel summary::after {
        content: "+";
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: #eef5ef;
        color: var(--green);
        font-weight: 950;
      }

      .order-review-panel[open] summary::after {
        content: "-";
      }

      .order-review-panel summary strong {
        margin-left: auto;
        color: var(--muted);
        font-size: 0.92rem;
      }

      .order-review-panel .summary-list {
        margin-top: 16px;
      }

      .fulfillment-note {
        display: grid;
        gap: 10px;
        min-height: 75px;
        margin-top: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fbfcf9;
        color: var(--navy);
      }

      .fulfillment-note span {
        color: var(--muted);
        font-weight: 750;
      }

      #deliveryView > .panel > .toolbar {
        gap: 14px;
        margin-left: 24px;
        margin-right: 24px;
        margin-bottom: 24px;
        padding-top: 18px;
        border-top: 1px solid #e8ece4;
      }

      #checkoutView > .panel > .toolbar {
        gap: 14px;
        margin-left: 24px;
        margin-right: 24px;
        margin-bottom: 18px;
        padding-top: 18px;
        border-top: 1px solid #e8ece4;
      }

      #deliveryView > .panel > .toolbar .btn-primary,
      #deliveryView > .panel > .toolbar .btn-secondary,
      #checkoutView > .panel > .toolbar .btn-primary,
      #checkoutView > .panel > .toolbar .btn-secondary {
        min-height: 48px;
        padding: 13px 18px;
      }

      #checkoutView .switch {
        margin-left: 24px;
        margin-right: 24px;
      }

      .form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
      }

      .textarea-output {
        min-height: 220px;
        resize: vertical;
        font-family: inherit;
      }

      .modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: rgba(10, 24, 42, 0.55);
      }

      .modal-backdrop.open { display: flex; }

      .modal {
        width: min(100%, 780px);
        max-height: 90vh;
        overflow: auto;
        padding: 20px;
      }

      .switch {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 11px;
        border-radius: var(--radius);
        background: #f2f6fb;
        color: var(--navy);
        font-weight: 850;
      }

      .switch input {
        width: 24px;
        height: 24px;
      }

      .summary-list {
        display: grid;
        gap: 10px;
      }

      .summary-list div {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        border-bottom: 1px solid var(--line);
      }

      .empty-state {
        padding: 24px;
        border: 1px dashed var(--line);
        border-radius: var(--radius);
        background: white;
        color: var(--muted);
        font-weight: 850;
        text-align: center;
      }

      .footer-note {
        margin-top: 24px;
        color: var(--muted);
        font-size: 0.9rem;
        text-align: center;
      }

      .teaching-guide {
        margin-top: 44px;
        padding-top: 8px;
      }

      .teaching-guide h2 {
        margin-bottom: 10px;
        font-size: clamp(1.65rem, 3vw, 2.5rem);
        font-weight: 900;
        color: var(--navy);
      }

      .teaching-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
      }

      .teaching-card {
        min-height: 170px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 14px 32px rgba(19, 35, 56, 0.08);
      }

      .teaching-card strong {
        display: block;
        margin-bottom: 8px;
        color: var(--blue);
        font-size: 0.92rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .teaching-card p {
        margin: 0;
        color: var(--muted-s);
        line-height: 1.58;
      }

      @media (max-width: 980px) {
        .hero, .layout { grid-template-columns: 1fr; }
        .cart-panel { position: static; }
        .topbar { height: 64px; overflow-x: auto; }
        body { padding-top: 64px; }
        .top-actions button { min-height: 38px; padding: 8px 10px; font-size: 0.78rem; }
        .top-actions { flex-wrap: nowrap; justify-content: flex-start; }
        .market-header { grid-template-columns: 1fr; }
        .market-facts { justify-content: flex-start; }
        .activity-list { grid-template-columns: 1fr 1fr; }
        .teaching-grid { grid-template-columns: 1fr 1fr; }
        body.home-mode #goalGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .level-heading { display: block; }
        .level-heading p { margin-top: 6px; }
      }

      @media (max-width: 620px) {
        .shopping-tools { grid-template-columns: 1fr; }
        .summary-list div { grid-template-columns: 1fr; }
        h1 { font-size: 2.8rem; }
        .brand strong { font-size: 18px; }
        .brand span { font-size: 6.8px; }
        .mark { width: 38px; height: 38px; }
        .top-actions button { flex: 0 0 auto; }
        .activity-list { grid-template-columns: 1fr; }
        .shell { width: 92vw; padding-left: 0; padding-right: 0; }
        #shopView {
          margin-left: calc((92vw - 100vw) / 2);
          margin-right: calc((92vw - 100vw) / 2);
        }
        #shopView .task-strip {
          margin: 0 16px 12px;
        }
        .market-app {
          border-left: 0;
          border-right: 0;
          border-radius: 0;
        }
        .product-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .product-card {
          min-height: 300px;
        }
        .cart-panel {
          margin: 0 16px;
        }
        .mobile-market-nav {
          position: sticky;
          bottom: 0;
          z-index: 12;
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 2px;
          padding: 8px 8px max(8px, env(safe-area-inset-bottom));
          border-top: 1px solid rgba(19, 35, 56, 0.12);
          background: rgba(255, 255, 255, 0.96);
          backdrop-filter: blur(14px);
        }
        .mobile-market-nav button {
          min-height: 50px;
          background: white;
          color: #273428;
          font-size: 0.72rem;
        }
        .mobile-cart-cta {
          position: sticky;
          bottom: 68px;
          z-index: 11;
          display: flex;
          justify-content: center;
          padding: 8px 16px;
          pointer-events: none;
        }
        .mobile-cart-cta button {
          width: min(100%, 240px);
          border-radius: 999px;
          background: var(--market);
          color: white;
          box-shadow: 0 12px 28px rgba(22, 131, 61, 0.28);
          pointer-events: auto;
        }
      }

      /* Realistic grocery marketplace skin */
      body {
        background: #ffffff;
        color: #1b1f1b;
      }

      .grocery-topbar {
        height: 76px;
        gap: 16px;
        padding: 0 24px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #e6e8e3;
        box-shadow: 0 1px 0 rgba(19, 35, 56, 0.04);
      }

      .grocery-brand {
        flex: 0 0 auto;
        gap: 9px;
      }

      .market-leaf {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: var(--market);
        color: white;
        font-size: 0.95rem;
        font-weight: 950;
      }

      .market-leaf img {
        display: none;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .grocery-brand strong {
        color: var(--market);
        font-size: 1.45rem;
        letter-spacing: -0.03em;
        text-transform: none;
      }

      .grocery-brand span {
        color: #657064;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: none;
      }

      .header-search {
        flex: 1 1 420px;
        position: relative;
        min-width: 220px;
      }

      .header-search span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
      }

      .header-search input {
        width: 100%;
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid transparent;
        border-radius: 999px;
        background: #f1f2ee;
        color: #1b1f1b;
      }

      .header-search input:focus {
        border-color: rgba(22, 131, 61, 0.34);
        background: white;
      }

      .grocery-topbar .top-actions {
        flex: 0 0 auto;
        align-items: center;
      }

      .grocery-topbar .top-actions button,
      .grocery-topbar .top-actions a {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 999px;
        letter-spacing: 0;
        text-transform: none;
      }

      .top-actions .icon-button {
        display: inline-grid;
        place-items: center;
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        border-color: transparent;
        border-radius: 999px;
        background: transparent;
        color: var(--market-dark);
        box-shadow: none;
      }

      .top-actions .icon-button:hover,
      .top-actions .icon-button:focus-visible {
        background: rgba(22, 131, 61, 0.1);
        color: var(--market-dark);
      }

      .shell {
        max-width: 1440px;
        padding: 22px 28px 64px;
      }

      .stepper {
        display: none;
      }

      .hero {
        min-height: 360px;
        padding: clamp(24px, 5vw, 58px);
        border: 0;
        border-radius: 0;
        background:
          linear-gradient(90deg, rgba(255, 246, 212, 0.96), rgba(246, 251, 237, 0.96) 55%, rgba(235, 248, 238, 0.96)),
          #f7f8f2;
        box-shadow: none;
      }

      .hero::before {
        background:
          radial-gradient(circle at 82% 24%, rgba(22, 131, 61, 0.18), transparent 16%),
          radial-gradient(circle at 92% 72%, rgba(245, 130, 10, 0.16), transparent 18%);
      }

      .section-tag {
        color: var(--market-dark);
      }

      .section-tag::before {
        background: var(--market-dark);
      }

      .hero h1 {
        max-width: 740px;
        color: #172113;
        font-size: clamp(2.55rem, 5.2vw, 5.8rem);
        letter-spacing: -0.055em;
        text-transform: none;
      }

      .sub {
        max-width: 680px;
        color: #405348;
      }

      .storefront-search-row {
        display: grid;
        grid-template-columns: minmax(0, 520px) auto;
        gap: 10px;
        align-items: center;
        margin: 22px 0 4px;
      }

      .storefront-search-row input {
        min-height: 56px;
        padding: 0 18px;
        border: 1px solid #d8ddd2;
        border-radius: 999px;
        background: white;
      }

      .storefront-search-row button {
        min-height: 56px;
        border-radius: 999px;
        background: var(--market);
        letter-spacing: 0;
        text-transform: none;
      }

      .home-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin: 22px 0 4px;
      }

      .home-actions button {
        border-radius: 7px;
      }

      body.home-mode {
        background:
          linear-gradient(90deg, rgba(27, 79, 168, 0.055) 0 1px, transparent 1px 100%),
          radial-gradient(ellipse 78% 38% at 50% -8%, rgba(27, 79, 168, 0.11) 0%, transparent 62%),
          radial-gradient(ellipse 45% 34% at 96% 18%, rgba(245, 130, 10, 0.08) 0%, transparent 58%),
          var(--paper);
        background-size: 32px 32px, auto, auto, auto;
        color: var(--navy);
      }

      body.home-mode .grocery-topbar {
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(19, 35, 56, 0.11);
        box-shadow: none;
      }

      body.home-mode .market-leaf {
        background: var(--blue);
      }

      body.home-mode .grocery-brand strong {
        color: var(--navy);
        letter-spacing: 0.09em;
        text-transform: uppercase;
      }

      body.home-mode .grocery-brand span {
        color: var(--orange);
        letter-spacing: 0.16em;
        text-transform: uppercase;
      }

      body.home-mode .header-search,
      body.home-mode #hintButton,
      body.home-mode #taskButtonHeader {
        display: none;
      }

      body.home-mode .hero {
        min-height: 0;
        background: var(--surface);
        border: 1px solid var(--gb);
        border-radius: 12px;
        box-shadow: var(--shadow);
      }

      body.home-mode .hero::before {
        background:
          radial-gradient(ellipse 55% 45% at 0% 0%, rgba(27, 79, 168, 0.07), transparent 70%),
          linear-gradient(90deg, rgba(19, 35, 56, 0.04) 0 1px, transparent 1px 100%);
        background-size: auto, 28px 28px;
      }

      body.home-mode .section-tag {
        color: var(--orange);
      }

      body.home-mode .section-tag::before {
        background: var(--orange);
      }

      body.home-mode .hero h1 {
        color: var(--navy);
        text-transform: uppercase;
        letter-spacing: -0.04em;
      }

      body.home-mode .hero h1 span {
        color: var(--blue);
      }

      body.home-mode .section-title {
        color: var(--navy);
        text-transform: uppercase;
        letter-spacing: 0;
      }

      body.home-mode .notice {
        border-radius: var(--radius);
        background: #fff4f2;
        border-color: rgba(180, 35, 24, 0.3);
        color: var(--red);
      }

      body.activity-mode .home-actions {
        display: none;
      }

      body.home-mode .shell {
        max-width: 1260px;
        padding: 34px 5vw 68px;
      }

      body.home-mode .grocery-topbar {
        height: 72px;
        padding: 0 5vw;
      }

      body.home-mode .market-leaf {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: transparent;
        color: transparent;
      }

      body.home-mode .market-leaf img {
        display: block;
      }

      body.home-mode .grocery-brand {
        gap: 11px;
      }

      body.home-mode .grocery-brand strong {
        font-size: 21px;
        line-height: 1;
      }

      body.home-mode .grocery-brand span {
        font-size: 7.5px;
        font-weight: 700;
        margin-top: 1px;
      }

      body.home-mode .top-actions {
        margin-top: 0;
      }

      body.home-mode .top-actions button,
      body.home-mode .top-actions a {
        min-height: 42px;
        border-radius: 7px;
        background: transparent;
        border-color: transparent;
        color: rgba(19, 35, 56, 0.72);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        box-shadow: none;
      }

      #homeButton.icon-button,
      #hintButton.icon-button,
      #taskButtonHeader.icon-button,
      #settingsButton.icon-button,
      body.home-mode #settingsButton {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        border-color: transparent;
        background: transparent;
        color: var(--blue);
        box-shadow: none;
      }

      body.home-mode #homeButton {
        display: none;
      }

      #homeButton.icon-button:hover,
      #homeButton.icon-button:focus-visible,
      #hintButton.icon-button:hover,
      #hintButton.icon-button:focus-visible,
      #taskButtonHeader.icon-button:hover,
      #taskButtonHeader.icon-button:focus-visible,
      #settingsButton.icon-button:hover,
      #settingsButton.icon-button:focus-visible {
        background: rgba(27, 79, 168, 0.1);
        color: var(--blue);
      }

      body.home-mode .hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 18px;
        padding: clamp(1.35rem, 2.6vw, 2rem);
      }

      body.home-mode .hero h1 {
        max-width: 980px;
        font-size: clamp(2.25rem, 4.9vw, 4.55rem);
        line-height: 0.94;
      }

      body.home-mode .sub {
        max-width: 68ch;
        color: var(--muted-s);
        line-height: 1.72;
      }

      body.home-mode .home-actions {
        display: none;
      }

      body.home-mode #goalFilters {
        display: none;
      }

      body.home-mode #goalGrid {
        display: grid;
        gap: 16px;
      }

      body.home-mode .difficulty-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 14px 32px rgba(19, 35, 56, 0.07);
      }

      body.home-mode .difficulty-tab {
        min-height: 56px;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        color: var(--navy);
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      body.home-mode .difficulty-tab.active {
        background: var(--navy);
        border-color: var(--navy);
        color: white;
        box-shadow: 0 10px 24px rgba(19, 35, 56, 0.16);
      }

      body.home-mode .tab-summary {
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.68);
      }

      body.home-mode .tab-summary h3 {
        margin: 0 0 4px;
        color: var(--navy);
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }

      body.home-mode .tab-summary p {
        margin: 0;
        color: var(--muted-s);
      }

      body.home-mode .level-section {
        margin-top: 0;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 18px 40px var(--level-shadow);
        overflow: hidden;
        height: 100%;
      }

      body.home-mode .level-heading {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 16px;
        min-height: 236px;
        padding: 24px;
        border-bottom: 0;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
          linear-gradient(135deg, var(--level-soft), rgba(255, 255, 255, 0.76));
        cursor: pointer;
        position: relative;
        height: 100%;
      }

      body.home-mode .level-heading::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--level-color);
      }

      body.home-mode .level-heading h2 {
        margin: 0;
        font-size: clamp(1.5rem, 2.4vw, 2rem);
        font-weight: 900;
        line-height: 1.05;
        color: var(--navy);
      }

      body.home-mode .level-section.level-easy .level-heading h2 { color: #15845f; }
      body.home-mode .level-section.level-moderate .level-heading h2 { color: #9f7a10; }
      body.home-mode .level-section.level-hard .level-heading h2 { color: #b75c16; }
      body.home-mode .level-section.level-complex .level-heading h2 { color: #a83232; }

      body.home-mode .level-section.level-complex .level-heading h2 {
        max-width: 8ch;
      }

      body.home-mode .level-heading p {
        max-width: none;
        margin: 0;
        color: var(--muted-s);
        line-height: 1.48;
      }

      body.home-mode .level-heading button {
        align-self: end;
        justify-self: stretch;
        min-height: 42px;
        border-radius: 7px;
        border: 1px solid var(--level-color);
        background: var(--level-color);
        color: white;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      body.home-mode .level-title-row {
        display: grid;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 10px;
      }

      body.home-mode .level-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-height: 28px;
        padding: 5px 9px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(19, 35, 56, 0.1);
        font-family: "DM Mono", monospace;
        font-size: 0.78rem;
        color: var(--muted);
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      body.home-mode .level-section.collapsed .activity-list {
        display: none;
      }

      body.home-mode .level-section.expanded {
        grid-column: 1 / -1;
      }

      body.home-mode .level-section.expanded .level-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        min-height: 0;
        align-items: center;
        height: auto;
        border-bottom: 1px solid var(--line);
      }

      body.home-mode .level-section.expanded .level-heading button {
        justify-self: end;
        min-width: 110px;
      }

      body.home-mode .activity-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
      }

      body.home-mode .goal-card {
        min-height: 190px;
        padding: 24px;
        border-radius: 20px;
        box-shadow: 0 18px 40px var(--level-shadow);
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
          linear-gradient(135deg, var(--level-soft), rgba(255, 255, 255, 0.76));
      }

      body.home-mode .goal-card h3 {
        font-size: 1.35rem;
        line-height: 1.18;
      }

      body.home-mode .goal-card .meta-row {
        display: none;
      }

      body.home-mode .goal-card p:not(.activity-meta) {
        margin-bottom: 0;
      }

      .notice {
        background: white;
        border-color: #e4e7df;
        color: #20382a;
        border-radius: 999px;
      }

      .section-title {
        color: #172113;
        text-transform: none;
        letter-spacing: -0.025em;
        margin-top: 28px;
      }

      #goalFilters {
        gap: 8px;
        margin: 12px 0 20px;
      }

      #goalFilters .chip {
        border-radius: 999px;
        border-color: #dfe4da;
        background: white;
        color: #263326;
      }

      #goalFilters .chip.active {
        background: #172113;
        border-color: #172113;
        color: white;
      }

      .level-heading {
        border-bottom-color: #e2e7dc;
      }

      .level-heading h2 {
        color: #172113;
      }

      .goal-card {
        min-height: 230px;
        border-radius: 12px;
        border-color: #e1e5dc;
        background: white;
        box-shadow: 0 10px 24px rgba(23, 33, 19, 0.08);
      }

      .goal-card::before {
        height: 5px;
      }

      #storeView > .panel,
      #deliveryView > .panel,
      #checkoutView > .panel,
      #summaryView > .panel {
        border-radius: 14px;
        border-color: #e2e7dc;
        background: white;
      }

      #storeView > .panel > h2,
      #deliveryView > .panel > h2,
      #checkoutView > .panel > h2,
      #summaryView > .panel > h2 {
        background: white;
        color: #172113;
        border-bottom: 1px solid #e7eae4;
      }

      .store-card {
        --store-primary: #16833d;
        --store-secondary: #74b843;
        --store-soft: rgba(22, 131, 61, 0.08);
        border-color: color-mix(in srgb, var(--store-primary) 24%, #e2e7dc);
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(23, 33, 19, 0.08);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        align-items: center;
        padding: 18px;
        background:
          linear-gradient(90deg, var(--store-soft), rgba(255, 255, 255, 0) 38%),
          white;
        overflow: hidden;
        position: relative;
      }

      .store-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 7px;
        background: var(--store-primary);
      }

      .store-card.brand-fresh {
        --store-primary: #0b7d38;
        --store-secondary: #f6c343;
        --store-soft: rgba(11, 125, 56, 0.09);
      }

      .store-card.brand-everyday {
        --store-primary: #1660b7;
        --store-secondary: #ffd22f;
        --store-soft: rgba(22, 96, 183, 0.08);
      }

      .store-card.brand-neighborhood {
        --store-primary: #aa1f2e;
        --store-secondary: #f6e7bd;
        --store-soft: rgba(170, 31, 46, 0.08);
      }

      .store-card.brand-value {
        --store-primary: #174f9f;
        --store-secondary: #d71920;
        --store-soft: rgba(23, 79, 159, 0.08);
      }

      .store-identity {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
        min-width: 0;
      }

      .store-logo {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        place-items: center;
        justify-content: center;
        width: 132px;
        min-height: 86px;
        border-radius: 16px;
        color: var(--store-primary);
        background: #fff;
        border: 2px solid color-mix(in srgb, var(--store-primary) 30%, #ffffff);
        box-shadow: inset 0 -18px 34px rgba(0, 0, 0, 0.04), 0 10px 22px rgba(23, 33, 19, 0.1);
        overflow: hidden;
      }

      .store-logo-mark {
        display: grid;
        gap: 3px;
        place-items: center;
        padding: 9px;
        text-align: center;
        width: 100%;
      }

      .store-logo-main {
        max-width: 100%;
        font-size: 1.02rem;
        font-weight: 950;
        letter-spacing: 0;
        line-height: 1;
        overflow-wrap: anywhere;
      }

      .store-logo-sub {
        max-width: 100%;
        font-size: 0.56rem;
        font-weight: 950;
        letter-spacing: 0.14em;
        line-height: 1;
        text-transform: uppercase;
        overflow-wrap: anywhere;
      }

      .store-symbol {
        display: inline-grid;
        place-items: center;
        width: 28px;
        height: 28px;
        margin-bottom: 2px;
        color: var(--store-primary);
      }

      .store-symbol svg {
        display: block;
        width: 100%;
        height: 100%;
      }

      .store-logo.fresh {
        background: #0b7d38;
        border-color: #0b7d38;
        color: white;
      }

      .store-logo.fresh .store-symbol {
        color: #f6c343;
      }

      .store-logo.everyday {
        background: #1660b7;
        border-color: #1660b7;
        color: white;
      }

      .store-logo.everyday .store-symbol {
        color: #ffd22f;
      }

      .store-logo.neighborhood {
        background: #fff8e4;
        border-color: #aa1f2e;
        color: #aa1f2e;
        border-radius: 999px;
      }

      .store-logo.neighborhood .store-logo-main {
        font-family: Georgia, "Times New Roman", serif;
        font-style: italic;
        font-size: 0.92rem;
      }

      .store-logo.value {
        background: white;
        border-color: #174f9f;
        color: #174f9f;
        border-radius: 8px;
      }

      .store-logo.value .store-logo-mark {
        border-top: 7px solid #d71920;
        border-bottom: 7px solid #174f9f;
      }

      .store-logo.value .store-logo-main {
        font-size: 1.02rem;
        letter-spacing: -0.02em;
      }

      .store-identity h3 {
        margin: 0 0 6px;
        color: var(--store-primary);
        font-size: clamp(1.45rem, 2.3vw, 2rem);
        line-height: 1;
        letter-spacing: -0.02em;
      }

      .store-card.brand-neighborhood .store-identity h3 {
        font-family: Georgia, "Times New Roman", serif;
        font-style: italic;
        letter-spacing: 0;
      }

      .store-card.brand-value .store-identity h3 {
        font-weight: 950;
        letter-spacing: -0.045em;
        text-transform: uppercase;
      }

      .store-brand-note {
        margin: 0 0 6px;
        color: #5f6c60;
        font-size: 0.82rem;
        font-weight: 950;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .store-line {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        color: #5f6c60;
        font-weight: 800;
      }

      .store-card > .meta-row {
        justify-content: flex-end;
      }

      .store-card > p {
        grid-column: 1;
        margin: 0;
        padding-left: 148px;
        color: #5f6c60;
        font-weight: 850;
      }

      .store-card .btn-primary {
        min-width: 150px;
        padding-inline: 18px;
        border-radius: 999px;
        background: var(--store-primary);
        box-shadow: 0 10px 22px color-mix(in srgb, var(--store-primary) 24%, transparent);
        letter-spacing: 0;
        text-transform: none;
      }

      .store-card .btn-primary:hover,
      .store-card .btn-primary:focus-visible {
        background: color-mix(in srgb, var(--store-primary) 84%, #000);
      }

      #storeGrid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
      }

      #shopView {
        margin-top: -4px;
      }

      .storefront-header-wrap {
        position: sticky;
        top: 76px;
        z-index: 16;
        background: white;
      }

      #shopView > .market-header {
        margin-bottom: 14px;
      }

      #shopView .task-strip {
        display: block;
        max-width: none;
        margin: -6px 0 14px;
        border: 1px solid #e2e7dc;
        border-left: 0;
        border-radius: 12px;
        background: #fbfbf7;
      }

      #shopView .task-strip h2 {
        color: #172113;
        font-size: 1.25rem;
      }

      .layout {
        grid-template-columns: 1fr;
        gap: 22px;
      }

      .market-header {
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid #e6e8e3;
        background: white;
        box-shadow: none;
        padding: 16px 2px 26px;
      }

      .market-header.brand-fresh {
        --store-primary: #0b7d38;
        --store-secondary: #f6c343;
      }

      .market-header.brand-everyday {
        --store-primary: #1660b7;
        --store-secondary: #ffd22f;
      }

      .market-header.brand-neighborhood {
        --store-primary: #aa1f2e;
        --store-secondary: #f6e7bd;
      }

      .market-header.brand-value {
        --store-primary: #174f9f;
        --store-secondary: #d71920;
      }

      .market-store-brand {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
        min-width: 0;
      }

      .market-store-brand .store-logo {
        width: 116px;
        min-height: 76px;
      }

      .market-store-brand .store-logo-main {
        font-size: 0.94rem;
      }

      .market-store-brand .store-logo.neighborhood .store-logo-main {
        font-size: 0.84rem;
      }

      .market-title {
        font-size: clamp(2.65rem, 6vw, 5.4rem);
        letter-spacing: -0.045em;
        line-height: 0.9;
        color: var(--store-primary, #10251a);
      }

      .store-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: wrap;
      }

      .store-change-button {
        min-height: 42px;
        padding: 8px 13px;
        border: 1px solid #dfe5da;
        border-radius: 999px;
        background: white;
        color: #2d3c2d;
        font-size: 0.9rem;
        font-weight: 900;
        letter-spacing: 0;
        text-transform: none;
        box-shadow: 0 10px 22px rgba(23, 33, 19, 0.08);
      }

      .store-change-button:hover,
      .store-change-button:focus-visible {
        border-color: var(--market);
        background: #f2fbf4;
        color: var(--market-dark);
      }

      .store-cart-button {
        display: inline-grid;
        grid-template-columns: 24px auto auto;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 8px 12px;
        border: 1px solid #dfe5da;
        border-radius: 999px;
        background: white;
        color: #172113;
        box-shadow: 0 10px 24px rgba(23, 33, 19, 0.1);
        letter-spacing: 0;
        text-transform: none;
      }

      .store-cart-button svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
      }

      .store-cart-button:hover,
      .store-cart-button:focus-visible,
      .store-cart-button[aria-expanded="true"] {
        border-color: var(--market);
        background: #f2fbf4;
        color: var(--market-dark);
      }

      .store-cart-button.added-feedback {
        animation: cartCountPulse 0.78s ease;
      }

      .store-cart-count {
        display: inline-grid;
        place-items: center;
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        border-radius: 999px;
        background: var(--market);
        color: white;
        font-weight: 950;
      }

      .market-app {
        border-color: #e6e8e3;
        border-radius: 14px;
        background: white;
        box-shadow: none;
      }

      .shopping-tools {
        padding: 16px;
        border-bottom: 1px solid #e6e8e3;
      }

      #shopView .search-box {
        min-height: 52px;
        padding-left: 18px;
        font-size: 1rem;
      }

      .category-row {
        padding: 14px 16px;
      }

      #shopView .category-row .chip {
        min-width: 92px;
      }

      .section-head {
        padding: 4px 16px 8px;
      }

      .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
        gap: 0;
        padding: 0 8px 14px;
      }

      .product-card {
        min-height: 326px;
        border-right: 1px solid #eef0eb;
        border-bottom: 1px solid #eef0eb;
        background: white;
      }

      .product-art {
        min-height: 136px;
        background: #f7f8f3;
        border-color: #edf0e9;
      }

      .product-title {
        color: #1b1f1b;
        font-size: 1rem;
      }

      .product-card p:not(.product-title) {
        color: #6b7468;
        font-size: 0.92rem;
      }

      .market-add {
        background: #1f2933;
      }

      .cart-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 30;
        display: none;
        width: min(390px, calc(100vw - 32px));
        max-height: min(64vh, 480px);
        overflow: hidden;
        border-radius: 14px;
        border-color: #e2e7dc;
        background: white;
        box-shadow: 0 24px 70px rgba(23, 33, 19, 0.22);
        transform-origin: top right;
        animation: cartPopupIn 0.18s ease;
      }

      .cart-panel.open {
        display: flex;
        flex-direction: column;
      }

      .cart-scroll-area {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
      }

      .cart-panel > .toolbar {
        flex: 0 0 auto;
        display: grid;
        gap: 12px;
        margin: 14px 0 0;
        padding: 14px 16px 16px;
        border-top: 1px solid #e8ece4;
        background: white;
      }

      @keyframes cartPopupIn {
        0% { opacity: 0; transform: translateY(-6px) scale(0.98); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
      }

      .cart-header h2 {
        color: #172113;
      }

      .cart-count {
        background: var(--market);
      }

      .cart-header {
        flex: 0 0 auto;
      }

      .cart-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .cart-close-button {
        display: inline-grid;
        place-items: center;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #f2f4ef;
        color: #314033;
      }

      .cart-close-button:hover,
      .cart-close-button:focus-visible {
        background: #e7ece4;
      }

      .cart-close-button svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        fill: none;
      }

      .cart-item {
        border-color: #e8ece4;
        background: #fff;
      }

      .cart-panel .btn-primary {
        width: 100%;
        min-height: 50px;
        padding: 14px 18px;
        border-radius: 999px;
        background: var(--market);
        letter-spacing: 0;
        text-transform: none;
      }

      .cart-panel .btn-secondary,
      .cart-panel .btn-danger {
        letter-spacing: 0;
        text-transform: none;
      }

      .checkout-grid .panel,
      .choice-card {
        border-color: #e2e7dc;
        border-radius: 12px;
        box-shadow: none;
      }

      @media (max-width: 1060px) {
        .header-search {
          display: none;
        }

        .layout {
          grid-template-columns: 1fr;
        }

        .marketplace {
          grid-column: 1;
        }

        .marketplace {
          grid-row: 1;
        }
      }

      @media (max-width: 720px) {
        .storefront-header-wrap {
          top: 60px;
        }

        .cart-panel {
          left: 0;
          right: 0;
          width: 100%;
          max-height: min(68vh, 520px);
        }

        body {
          padding-top: 60px;
          background: #fbfbf7;
        }

        .grocery-topbar {
          height: 60px;
          padding: 0 12px;
          gap: 8px;
          overflow-x: visible;
        }

        .grocery-brand strong {
          font-size: 1.12rem;
        }

        .grocery-brand span,
        .grocery-topbar .top-actions button:not(.icon-button),
        .grocery-topbar .top-actions a {
          display: none;
        }

        .grocery-topbar .top-actions .icon-button {
          min-width: 58px;
          padding: 0 10px;
        }

        .shell {
          width: 100%;
          padding: 0 0 40px;
        }

        #homeView,
        #storeView,
        #deliveryView,
        #checkoutView,
        #summaryView {
          padding: 0 14px;
        }

        .hero {
          min-height: 0;
          margin: 0 -14px 18px;
          padding: 28px 18px;
          border-radius: 0;
        }

        .hero h1 {
          font-size: 2.65rem;
        }

        .storefront-search-row {
          grid-template-columns: 1fr;
        }

        .storefront-search-row button {
          width: 100%;
        }

        .store-card {
          grid-template-columns: 1fr;
          gap: 12px;
          padding: 16px;
        }

        .store-identity {
          grid-template-columns: 104px minmax(0, 1fr);
          gap: 12px;
        }

        .store-logo {
          width: 104px;
          min-height: 78px;
        }

        .store-logo-main {
          font-size: 0.86rem;
        }

        .store-logo.neighborhood .store-logo-main {
          font-size: 0.78rem;
        }

        .store-card > .meta-row {
          justify-content: flex-start;
        }

        .store-card > p {
          grid-column: 1;
          padding-left: 116px;
        }

        .store-card .btn-primary {
          width: 100%;
        }

        .notice {
          border-radius: 12px;
        }

        .activity-list {
          grid-template-columns: 1fr;
        }

        .goal-card {
          border-radius: 14px;
        }

        #shopView {
          margin: 0;
          padding: 0;
        }

        #shopView .task-strip {
          margin: 10px 12px;
        }

        .market-header {
          padding: 14px 14px;
        }

        .store-header-actions {
          justify-content: flex-start;
          width: 100%;
        }

        .store-change-button {
          min-height: 40px;
          padding: 7px 11px;
          font-size: 0.84rem;
        }

        .market-store-brand {
          grid-template-columns: 92px minmax(0, 1fr);
          gap: 12px;
        }

        .market-store-brand .store-logo {
          width: 92px;
          min-height: 70px;
        }

        .market-store-brand .store-logo-main {
          font-size: 0.78rem;
        }

        .market-store-brand .store-logo.neighborhood .store-logo-main {
          font-size: 0.7rem;
        }

        .market-facts {
          display: none;
        }

        .market-app {
          border-left: 0;
          border-right: 0;
          border-radius: 0;
        }

        .shopping-tools {
          padding: 12px;
        }

        .category-row {
          padding: 10px 12px;
        }

        .product-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          padding: 0 6px 10px;
        }

        .product-card {
          min-height: 292px;
          padding: 10px;
        }

        .product-art {
          min-height: 112px;
          font-size: 2.35rem;
        }

        .cart-panel {
          margin: 12px;
          border-radius: 14px;
          position: sticky;
          top: 64px;
          max-height: min(50vh, 390px);
        }

        .store-card {
          grid-template-columns: 1fr;
        }

        .store-card .btn-primary {
          width: 100%;
        }
      }

      @media (max-width: 720px) {
        body.home-mode .grocery-topbar {
          height: 64px;
          padding: 0 5vw;
        }

        body.home-mode .grocery-brand span {
          display: block;
          font-size: 6.8px;
        }

        body.home-mode .market-leaf {
          width: 38px;
          height: 38px;
        }

        body.home-mode .top-actions {
          display: none;
        }

        body.home-mode .shell {
          width: 92vw;
          padding: 24px 0 56px;
        }

        body.home-mode .hero {
          margin: 0 0 18px;
          padding: 1.2rem;
          border-radius: 12px;
        }

        body.home-mode .hero h1 {
          font-size: 2.85rem;
        }

        body.home-mode .activity-list {
          grid-template-columns: 1fr;
        }

        body.home-mode #goalGrid {
          grid-template-columns: 1fr;
        }

        body.home-mode .level-heading {
          min-height: 170px;
        }

        body.home-mode .level-section.expanded .level-heading {
          grid-template-columns: 1fr;
        }

        .teaching-grid {
          grid-template-columns: 1fr;
        }
      }

      /* Clean task library layout */
      body.home-mode .task-library-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        margin-top: 28px;
      }

      body.home-mode .task-library-head .section-title {
        margin: 0;
      }

      body.home-mode #goalFilters {
        display: flex;
        justify-content: flex-end;
        margin: 0;
      }

      body.home-mode .filter-button {
        display: inline-grid;
        place-items: center;
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 999px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--navy);
        font-size: 0.92rem;
        letter-spacing: 0;
        text-transform: none;
      }

      body.home-mode .filter-button:hover,
      body.home-mode .filter-button:focus-visible {
        background: rgba(19, 35, 56, 0.08);
        color: var(--navy);
      }

      .icon-button svg,
      .filter-button svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
      }

      body.home-mode #goalGrid {
        display: block;
      }

      body.home-mode .task-level-section {
        display: block;
        margin-top: 24px;
      }

      body.home-mode .task-level-section:first-child {
        margin-top: 0;
      }

      body.home-mode .task-level-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
      }

      body.home-mode .task-level-heading h3 {
        margin: 0;
        color: var(--navy);
        font-size: clamp(1.35rem, 2.4vw, 2rem);
        font-weight: 900;
        line-height: 1.1;
      }

      body.home-mode .task-level-section.level-easy .task-level-heading h3 { color: #15845f; }
      body.home-mode .task-level-section.level-moderate .task-level-heading h3 { color: #9f7a10; }
      body.home-mode .task-level-section.level-hard .task-level-heading h3 { color: #b75c16; }
      body.home-mode .task-level-section.level-complex .task-level-heading h3 { color: #a83232; }

      body.home-mode .task-level-heading span {
        color: var(--muted-s);
        font-family: "DM Mono", monospace;
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      body.home-mode .task-card-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
        align-items: stretch;
      }

      body.home-mode .task-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: 205px;
        padding: 24px;
        border: 1px solid var(--level-color);
        border-radius: 20px;
        color: var(--navy);
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
          linear-gradient(135deg, var(--level-soft), rgba(255, 255, 255, 0.76));
        box-shadow: 0 18px 40px var(--level-shadow);
        cursor: pointer;
        overflow: hidden;
        position: relative;
        text-align: left;
        transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
      }

      body.home-mode .task-card::before {
        content: "";
        display: block;
        height: 6px;
        margin: -24px -24px 16px;
        background: var(--level-color);
        align-self: stretch;
        flex: 0 0 auto;
      }

      body.home-mode .task-card h3 {
        margin: 0;
        color: var(--navy);
        font-size: 1.35rem;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1.18;
        text-transform: none;
      }

      body.home-mode .task-card p {
        margin: 0;
        color: var(--muted-s);
        display: -webkit-box;
        font-size: 1rem;
        font-weight: 400;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        letter-spacing: 0;
        line-height: 1.55;
        overflow: hidden;
        text-transform: none;
      }

      body.home-mode .task-card .activity-meta {
        display: block;
      }

      body.home-mode .task-card .activity-meta {
        color: var(--muted-s);
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.45;
      }

      body.home-mode .task-card:hover,
      body.home-mode .task-card:focus-visible {
        border-color: var(--level-color);
        box-shadow: 0 24px 52px var(--level-shadow);
        transform: translateY(-4px);
        outline: 0;
      }

      @media (max-width: 980px) {
        body.home-mode .task-card-grid {
          grid-template-columns: 1fr 1fr;
        }
      }

      @media (max-width: 720px) {
        body.home-mode .task-library-head {
          align-items: stretch;
          flex-direction: column;
          gap: 12px;
        }

        body.home-mode #goalFilters,
        body.home-mode .filter-button {
          width: 100%;
        }

        body.home-mode .task-level-heading {
          align-items: flex-start;
          flex-direction: column;
          gap: 6px;
        }

        body.home-mode .task-card-grid {
          grid-template-columns: 1fr;
        }

        body.home-mode .task-card {
          min-height: 0;
        }
      }

      @media (max-width: 720px) {
        .btn-primary,
        .btn-secondary,
        .btn-danger {
          min-height: 44px;
          padding: 11px 13px;
          font-size: 0.9rem;
          letter-spacing: 0;
          overflow-wrap: anywhere;
        }

        .meta-row {
          gap: 6px;
        }

        .pill {
          min-height: 28px;
          padding: 5px 8px;
          border-radius: 12px;
          font-size: 0.76rem;
          line-height: 1.1;
        }

        .store-card > .meta-row,
        .product-card .meta-row {
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          width: 100%;
        }

        .store-card .pill,
        .product-card .pill {
          width: 100%;
        }

        .store-card .btn-primary {
          min-height: 48px;
          padding: 13px 16px;
          font-weight: 950;
        }
      }
