@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

    :root {
      /* Neutral paper + near-black ink, with a bright claret accent and a slate secondary. */
      --ink: #1c1a19;
      --ink-soft: #5e5955;
      --paper: #f7f6f3;
      --paper-card: #fdfcfa;
      --line: #e5e2dc;
      --accent: #b5253d;
      --accent-dark: #8e1b30;
      --accent-soft: #f8e5e8;
      --secondary: #3e4f5c;
      --shadow-rgb: 28, 26, 25;
      --radius: 6px;
      --font-display: "Fraunces", Georgia, serif;
      --font-body: "Inter", system-ui, sans-serif;
    }
    * { box-sizing: border-box; }
    /* Components set their own display (flex/grid/inline-block), which would otherwise
       override the hidden attribute and leave "hidden" elements on screen. */
    [hidden] { display: none !important; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: var(--font-body);
      background: var(--paper);
      color: var(--ink);
      line-height: 1.55;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    body > main { flex: 1 0 auto; width: 100%; }
    body > .site-footer { flex-shrink: 0; }
    .wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }
    h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.15; }

    /* Header */
    .site-header {
      position: sticky; top: 0; z-index: 20;
      background: color-mix(in srgb, var(--paper) 90%, transparent);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--line);
    }
    .header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
    .brand { display: flex; align-items: center; }
    .brand-logo { display: block; height: 2rem; width: auto; }
    .brand-mark { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
    .brand-mark-light { font-weight: 400; color: var(--ink-soft); margin-left: 0.3em; }
    .brand:hover { text-decoration: none; }
    .brand:hover .brand-mark { color: var(--accent); }
    .primary-nav { display: flex; align-items: center; gap: 2rem; }
    .primary-nav a {
      position: relative;
      color: var(--ink);
      font-size: 0.88rem;
      font-weight: 500;
      letter-spacing: 0.01em;
    }
    .primary-nav a:hover { text-decoration: none; color: var(--accent); }
    .primary-nav a::after {
      content: "";
      position: absolute; left: 0; right: 0; bottom: -0.4rem;
      height: 2px; background: var(--accent);
      transform: scaleX(0); transform-origin: left;
      transition: transform 0.18s ease;
    }
    .primary-nav a:hover::after { transform: scaleX(1); }
    @media (max-width: 640px) {
      .primary-nav { gap: 1.1rem; }
      .brand-mark-light { display: none; }
    }

    /* Footer */
    .site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--paper-card); color: var(--ink-soft); font-size: 0.88rem; }
    .site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding: 2.5rem 1.5rem; }
    .footer-logo { height: 1.6rem; width: auto; display: block; margin-bottom: 0.4rem; }
    .site-footer nav { display: flex; flex-direction: column; gap: 0.4rem; }

    /* Book cards / grid */
    .book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.75rem 1.5rem; margin: 1.5rem 0; }
    .book-card { display: block; color: var(--ink); }
    .book-card:hover { text-decoration: none; }
    .book-card:hover h3 { color: var(--accent); }
    .book-cover { aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); box-shadow: 0 1px 2px rgba(var(--shadow-rgb),0.12), 0 4px 10px rgba(var(--shadow-rgb),0.08); margin-bottom: 0.6rem; }
    .book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .book-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); }
    .book-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.15rem; }
    .book-author { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.25rem; font-style: italic; }
    .book-price { font-weight: 600; color: var(--accent-dark); margin: 0; font-size: 0.9rem; }

    main { padding-bottom: 3rem; }

    /* Hero */
    .hero {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      align-items: center;
      gap: 2.5rem;
      padding: 4rem 0 3rem;
    }
    .hero h1 {
      font-size: clamp(2.1rem, 3.6vw, 3.1rem);
      margin: 0.5rem 0 1rem;
      letter-spacing: -0.01em;
    }
    .hero-sub { max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 1.75rem; }
    .hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
    .hero-stats { display: flex; gap: 2rem; margin: 0; }
    .hero-stats dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
    .hero-stats dd { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); }

    .hero-visual { position: relative; height: 380px; }
    .hero-glow {
      position: absolute; inset: 8% 4%;
      background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
      filter: blur(4px);
    }
    .book-stack { position: relative; width: 100%; height: 100%; }
    .book-stack img {
      position: absolute;
      height: auto;
      aspect-ratio: 2 / 3;
      object-fit: cover;
      border-radius: 4px;
      box-shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.22), 0 2px 6px rgba(var(--shadow-rgb), 0.12);
      transform: rotate(var(--rot));
      transition: transform 0.25s ease;
    }
    .book-stack img:hover { transform: rotate(var(--rot)) translateY(-6px); }
    @media (max-width: 860px) {
      .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
      .hero-sub { margin-left: auto; margin-right: auto; }
      .hero-actions, .hero-stats { justify-content: center; }
      .hero-visual { height: 280px; margin-top: 1rem; }
    }

    /* Secondary button */
    .btn-ghost {
      background: transparent;
      color: var(--ink);
      border: 1px solid var(--line);
    }
    .btn-ghost:hover { background: var(--paper-card); border-color: var(--accent); color: var(--accent); text-decoration: none; }

    /* Section headings */
    .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
    .section-heading h2 { font-size: 1.35rem; margin: 0; }
    .section-link { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
    .eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--accent); font-weight: 600; }
    .btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.6rem 1.2rem; border-radius: var(--radius); font-weight: 600; font-size: 0.92rem; }
    .btn:hover { background: var(--accent-dark); text-decoration: none; }
    .category-pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0; }
    .category-pill-list a { display: inline-block; background: var(--paper-card); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.88rem; color: var(--ink); }
    .category-pill-list a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

    /* Category cards */
    .category-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 1.25rem;
      margin: 1.75rem 0 2.5rem;
    }
    .page-article { max-width: 65ch; }
    .page-contact { line-height: 1.7; }
    .category-description { max-width: 65ch; color: var(--ink-soft); margin: 0.25rem 0 0.75rem; }
    .category-description p { margin: 0 0 0.75rem; }
    .category-card {
      position: relative;
      display: block;
      aspect-ratio: 4 / 3;
      border-radius: 10px;
      overflow: hidden;
      background: var(--accent-soft);
      box-shadow: 0 1px 2px rgba(var(--shadow-rgb),0.12), 0 6px 14px rgba(var(--shadow-rgb),0.10);
    }
    .category-card img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 0; transition: transform 0.3s ease; }
    .category-card:hover img { transform: scale(1.05); }
    .category-card::before {
      content: "";
      position: absolute; inset: 0; z-index: 1;
      background: rgba(var(--shadow-rgb), 0.18);
    }
    .category-card-fallback {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-display); font-size: 2.5rem; color: var(--accent);
    }
    .category-card-scrim {
      position: absolute; inset: auto 0 0 0; z-index: 2;
      padding: 2.75rem 1rem 0.85rem;
      background: linear-gradient(to top, rgba(18,17,17,0.92) 0%, rgba(18,17,17,0.65) 55%, rgba(18,17,17,0) 100%);
      color: #faf8f5;
    }
    .category-card-scrim h3 { color: #fff; font-size: 1.02rem; margin: 0 0 0.15rem; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
    .category-card-scrim span { font-size: 0.78rem; color: #faf8f5; opacity: 0.9; }
    .category-card:hover { text-decoration: none; }
    .category-card-all { background: var(--accent); }
    .category-card-all .category-card-fallback { color: #fff; font-size: 1.6rem; font-weight: 600; }
    .category-card-all .category-card-scrim { background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0)); }

    /* Search */
    .search-input {
      width: 100%; max-width: 420px;
      margin-top: 1.25rem;
      padding: 0.65rem 1rem;
      font-family: var(--font-body); font-size: 0.95rem;
      border: 1px solid var(--line); border-radius: var(--radius);
      background: var(--paper-card); color: var(--ink);
    }
    .search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
    .search-count { font-size: 0.82rem; color: var(--ink-soft); margin: 0.5rem 0 0; min-height: 1.2em; }

    /* Utility */
    .ink-soft { color: var(--ink-soft); }

    /* Book card: now a wrapper div (link + separate add-to-cart button) */
    .book-card { display: flex; flex-direction: column; }
    /* The link stretches to fill the card, and the price sits at its bottom, so prices and
       Add to cart buttons line up across a row even when titles wrap to different lengths. */
    .book-card-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); }
    .book-card-link .book-price { margin-top: auto; padding-top: 0.25rem; }
    .book-card-link:hover { text-decoration: none; }
    .book-card-link:hover h3 { color: var(--accent); }
    .add-to-cart-btn {
      margin-top: 0.5rem;
      width: 100%;
      padding: 0.45rem 0.6rem;
      font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
      color: var(--accent-dark);
      background: var(--paper-card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    .add-to-cart-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
    .add-to-cart-btn.is-unavailable { display: block; text-align: center; color: var(--ink-soft); background: transparent; border-style: dashed; cursor: default; }
    .add-to-cart-btn.is-unavailable:hover { background: transparent; border-color: var(--line); }
    .pdp-availability { margin: 1.25rem 0; padding: 0.6rem 0.85rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: 0.9rem; max-width: 34rem; }
    .add-to-cart-btn:disabled { opacity: 0.7; cursor: default; }

    /* PDP add-to-cart */
    .pdp-add-to-cart { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; }
    .pdp-qty-label { font-size: 0.85rem; color: var(--ink-soft); }
    .pdp-add-to-cart input[type="number"] {
      width: 4rem; padding: 0.5rem 0.6rem;
      border: 1px solid var(--line); border-radius: var(--radius);
      font-family: var(--font-body); font-size: 0.95rem; background: var(--paper-card); color: var(--ink);
    }

    /* Header cart badge */
    .nav-cart { position: relative; }
    .cart-count {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; margin-left: 0.35rem;
      background: var(--accent); color: #fff;
      border-radius: 999px; font-size: 0.7rem; font-weight: 700; line-height: 1; vertical-align: middle;
    }

    /* Account / auth / checkout forms */
    .account-panel { max-width: 480px; margin: 2rem 0; }
    .account-lede { color: var(--ink-soft); margin: 0.35rem 0 1.25rem; }
    .account-form { display: flex; flex-direction: column; gap: 0.4rem; max-width: 420px; }
    .account-form label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-top: 0.6rem; }
    .account-form input {
      width: 100%;
      padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
      font-family: var(--font-body); font-size: 0.95rem; background: var(--paper-card); color: var(--ink);
    }
    .account-form label { display: block; }
    .checkout-row > div { min-width: 0; }
    .account-form input[type="checkbox"] { width: auto; padding: 0; margin: 0; accent-color: var(--accent); }
    .account-form .checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); cursor: pointer; }
    .billing-fields { border: 0; padding: 0; margin: 0.5rem 0 0; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
    .billing-fields h2 { margin: 1rem 0 0; }
    .dash-billing { margin: 0.75rem 0 0; }
    .account-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
    .account-form .btn { margin-top: 1rem; align-self: flex-start; border: none; cursor: pointer; }
    .account-section-heading { margin-top: 2.5rem; }
    .account-form.details-form { max-width: 560px; }
    .account-message { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
    .member-pill { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; vertical-align: middle; cursor: default; }
    .account-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
    .account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
    .btn-ghost.account-header-btn { align-self: flex-start; }

    /* Order history */
    .order-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 0.9rem 1rem; margin-bottom: 0.75rem; }
    .order-row-top { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
    .order-status { text-transform: capitalize; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.78rem; }
    .order-status-paid, .order-status-shipped { background: color-mix(in srgb, var(--secondary) 14%, transparent); color: var(--secondary); }
    .order-status-cancelled, .order-status-refunded { background: var(--line); color: var(--ink-soft); }
    .order-date { color: var(--ink-soft); }
    .order-number { font-weight: 600; color: var(--ink); }

    /* Dashboard: order search/filter + per-order link */
    .dash-order-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 0 0 0.5rem; }
    .dash-order-filters .dash-search { margin: 0; flex: 1 1 260px; max-width: 420px; }
    .dash-orders-count { font-size: 0.82rem; margin: 0 0 0.9rem; }
    .dash-order-number { font-weight: 700; color: var(--ink); }
    .dash-order-customer { font-weight: 600; }
    .dash-order-link { margin-left: auto; font-weight: 600; font-size: 0.85rem; }

    /* /dashboard/order */
    .order-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
    .order-detail-head h1 { margin: 0; }
    .order-detail-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
    .order-detail-actions .btn { border: none; cursor: pointer; }
    .order-detail-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
    .order-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); margin-bottom: 1.5rem; }
    .order-detail-grid h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-family: var(--font-body); margin: 0 0 0.4rem; }
    .order-detail-grid p { margin: 0; font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; }
    .order-items-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
    .order-items-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
    .order-items-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
    .order-items-table tfoot td { border-bottom: none; padding: 0.3rem 0.6rem; }
    .order-items-table .num { text-align: right; white-space: nowrap; }
    .print-only { display: none; }

    @media print {
      .site-header, .site-footer, .no-print { display: none !important; }
      .print-only { display: block; }
      body { background: #fff; }
      main { padding: 0 !important; }
      .order-print-head { border-bottom: 1px solid #ccc; padding-bottom: 0.5rem; margin-bottom: 1rem; }
      .order-print-head p { margin: 0.25rem 0 0; font-size: 0.8rem; color: #444; }
      .order-print-logo { height: 2.2rem; width: auto; }
      .order-detail-grid { background: none; border: 1px solid #ccc; }
      .order-items-table a { color: inherit; text-decoration: none; }
      .order-print-thanks { margin-top: 1.5rem; font-style: italic; }
    }
    .order-total { margin-left: auto; font-weight: 700; color: var(--accent-dark); }
    .order-items { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

    /* Cart page */
    .cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
    .cart-items { display: flex; flex-direction: column; gap: 1rem; }
    .cart-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 0.75rem; }
    .cart-row-cover { width: 70px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; background: var(--accent-soft); }
    .cart-row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cart-row-cover-placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--accent); font-size: 1.3rem; }
    .cart-row-title { font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.15rem; }
    .cart-row-title:hover { color: var(--accent); }
    .cart-row-price { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--ink-soft); }
    .cart-row-controls { display: flex; align-items: center; gap: 0.5rem; }
    .qty-btn { width: 1.8rem; height: 1.8rem; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); cursor: pointer; font-size: 1rem; line-height: 1; }
    .qty-btn:hover { border-color: var(--accent); color: var(--accent); }
    .qty-input { width: 3rem; text-align: center; padding: 0.3rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-body); }
    .cart-remove-btn { margin-left: 0.5rem; background: none; border: none; color: var(--ink-soft); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
    .cart-remove-btn:hover { color: var(--accent); }
    .cart-row-total { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

    .cart-summary, .checkout-summary {
      border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 1.25rem;
    }
    .cart-summary h2, .checkout-summary h2 { margin-top: 0; font-size: 1.05rem; }
    .cart-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.35rem 0; color: var(--ink-soft); }
    .cart-summary-total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
    .cart-checkout-btn { display: block; text-align: center; margin-top: 1rem; border: none; }
    .cart-shipping-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0.6rem 0 0; }

    /* Checkout page */
    .checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
    .checkout-form { max-width: none; }
    .checkout-main { min-width: 0; }
    /* isolation keeps PayPal's high z-index iframes inside this box, so they scroll under the
       sticky site header (z-index 20) instead of over it. */
    .checkout-payment { max-width: 560px; scroll-margin-top: 5rem; position: relative; isolation: isolate; }
    .payment-shipto { font-size: 0.88rem; color: var(--ink-soft); margin: 0.25rem 0 1.25rem; }
    .checkout-row { display: grid; grid-template-columns: 1fr 80px 120px; gap: 0.75rem; }
    .checkout-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.75rem; max-width: 40ch; }
    .dash-discount { color: var(--accent-dark); font-weight: 600; }
    .checkout-discount .cart-summary-row { align-items: center; }
    .checkout-discount .member-pill { margin-left: 0; }
    #sum-discount, .discount-amount { color: var(--accent-dark); font-weight: 600; white-space: nowrap; }
    .checkout-discount-note { margin: 0 0 0.35rem; font-size: 0.78rem; color: var(--ink-soft); }
    .checkout-item { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.3rem 0; }
    .checkout-totals { margin-top: 0.75rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }

    @media (max-width: 720px) {
      .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
      .checkout-row { grid-template-columns: 1fr; }
    }

    /* Order dashboard */
    .dash-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
    .dash-tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.6rem 1rem; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
    .dash-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
    .dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
    .dash-panel-head h2 { margin: 0; }
    .dash-count { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
    .dash-member-form { display: grid; grid-template-columns: 1.4fr 1.2fr 150px auto; gap: 0.75rem; align-items: end; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); }
    .dash-member-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.3rem; }
    .dash-member-form input, .dash-member-form select, .dash-search { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-size: 0.9rem; color: var(--ink); }
    .dash-member-form .btn { border: none; cursor: pointer; white-space: nowrap; }
    .dash-search { margin: 1.5rem 0 0.75rem; max-width: 360px; }
    .dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
    .dash-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
    .dash-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
    .dash-table td:last-child { text-align: right; width: 1%; white-space: nowrap; }
    .dash-remove { background: none; border: none; color: var(--accent); font: inherit; font-size: 0.82rem; cursor: pointer; text-decoration: underline; }
    .dash-remove:disabled { color: var(--ink-soft); cursor: default; }
    @media (max-width: 720px) {
      .dash-member-form { grid-template-columns: 1fr; }
      .dash-table th:nth-child(4), .dash-table td:nth-child(4) { display: none; }
    }
    .dash-order { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
    .dash-order-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.88rem; margin-bottom: 0.6rem; }
    .dash-order-date { color: var(--ink-soft); }
    .dash-order-email { color: var(--ink-soft); }
    .dash-order-total { margin-left: auto; font-weight: 700; color: var(--accent-dark); }
    .dash-order-body { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; font-size: 0.88rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
    .dash-order-address { color: var(--ink-soft); line-height: 1.5; }
    .dash-order-items { margin: 0; padding-left: 1.1rem; color: var(--ink); }
    .dash-order-items li { margin-bottom: 0.2rem; }
    .dash-order-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; border-top: 1px solid var(--line); padding-top: 0.6rem; font-size: 0.85rem; }
    .dash-order-controls label { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); font-weight: 600; }
    .dash-status-select {
      padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: var(--radius);
      font-family: var(--font-body); font-size: 0.85rem; background: var(--paper); color: var(--ink);
    }
    .dash-save-status { color: var(--ink-soft); font-size: 0.8rem; }

    @media (max-width: 640px) {
      .dash-order-body { grid-template-columns: 1fr; }
    }

    /* PayPal payment step on checkout */
    #payment-status { margin-top: 0.6rem; }
