@font-face{font-family:'Sora';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/sora-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/sora-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/sora-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2')}

  :root{
    --bg:#d0e2fc; --dots: rgba(23,90,180,0.06);
    --bg-pattern: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDEyMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIHNsaWNlIj4KPGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMCIgeTE9IjAiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZDBlMmZkIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjYzVkYWY5Ii8+PC9saW5lYXJHcmFkaWVudD4KPGZpbHRlciBpZD0iYiIgeD0iLTIwJSIgeT0iLTIwJSIgd2lkdGg9IjE0MCUiIGhlaWdodD0iMTQwJSI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iNiIvPjwvZmlsdGVyPjwvZGVmcz4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iMTIwMCIgZmlsbD0idXJsKCNnKSIvPgo8ZyBmaWx0ZXI9InVybCgjYikiPgo8cG9seWdvbiBwb2ludHM9IjYyMCwwIDEyMDAsMCAxMjAwLDUyMCA5MDAsMzAwIiBmaWxsPSJyZ2JhKDkwLDE0NSwyMzAsMC4wOCkiLz4KPHBvbHlnb24gcG9pbnRzPSIwLDc2MCA1MjAsMTIwMCAwLDEyMDAiIGZpbGw9InJnYmEoOTAsMTQ1LDIzMCwwLjA3KSIvPgo8cG9seWdvbiBwb2ludHM9Ijc2MCwxMjAwIDEyMDAsODYwIDEyMDAsMTIwMCIgZmlsbD0icmdiYSg5MCwxNDUsMjMwLDAuMDcpIi8+CjwvZz4KPGNpcmNsZSBjeD0iNDIwIiBjeT0iNDMwIiByPSIzMzAiIGZpbGw9InJnYmEoMTAwLDE1MCwyMzAsMC4xMikiLz4KPGNpcmNsZSBjeD0iOTgwIiBjeT0iNzYwIiByPSIyOTAiIGZpbGw9InJnYmEoMTAwLDE1MCwyMzAsMC4wOSkiLz4KPGNpcmNsZSBjeD0iMTYwIiBjeT0iMTA1MCIgcj0iMjIwIiBmaWxsPSJyZ2JhKDEwMCwxNTAsMjMwLDAuMTIpIi8+CjxjaXJjbGUgY3g9IjEwODAiIGN5PSIxNTAiIHI9IjE2MCIgZmlsbD0icmdiYSgxMDAsMTUwLDIzMCwwLjEyKSIvPgo8Y2lyY2xlIGN4PSI5MCIgY3k9IjExMCIgcj0iMTYiIGZpbGw9InJnYig0MCwxMjAsMjMwKSIgb3BhY2l0eT0iMC4zIi8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iMTkwIiByPSI5IiBmaWxsPSJyZ2IoNDAsMTIwLDIzMCkiIG9wYWNpdHk9IjAuMjIiLz48Y2lyY2xlIGN4PSIxMTEwIiBjeT0iNDIwIiByPSIxMyIgZmlsbD0icmdiKDQwLDEyMCwyMzApIiBvcGFjaXR5PSIwLjMiLz48Y2lyY2xlIGN4PSIxMDQwIiBjeT0iNTAwIiByPSI3IiBmaWxsPSJyZ2IoNDAsMTIwLDIzMCkiIG9wYWNpdHk9IjAuMTgiLz48Y2lyY2xlIGN4PSI2MjAiIGN5PSI5MCIgcj0iOCIgZmlsbD0icmdiKDQwLDEyMCwyMzApIiBvcGFjaXR5PSIwLjIyIi8+PGNpcmNsZSBjeD0iMzAwIiBjeT0iODIwIiByPSIxMSIgZmlsbD0icmdiKDQwLDEyMCwyMzApIiBvcGFjaXR5PSIwLjIyIi8+PGNpcmNsZSBjeD0iMTE1MCIgY3k9Ijk4MCIgcj0iMTAiIGZpbGw9InJnYig0MCwxMjAsMjMwKSIgb3BhY2l0eT0iMC4xOCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNjQwIiByPSI4IiBmaWxsPSJyZ2IoNDAsMTIwLDIzMCkiIG9wYWNpdHk9IjAuMTgiLz48Y2lyY2xlIGN4PSI4MjAiIGN5PSIxMTIwIiByPSIxMiIgZmlsbD0icmdiKDQwLDEyMCwyMzApIiBvcGFjaXR5PSIwLjIyIi8+CjxsaW5lIHgxPSIxNTAiIHkxPSIxOTAiIHgyPSI5MCIgeTI9IjExMCIgc3Ryb2tlPSJyZ2IoNDAsMTIwLDIzMCkiIHN0cm9rZS13aWR0aD0iMyIgb3BhY2l0eT0iMC4xOCIvPjxsaW5lIHgxPSIxMTEwIiB5MT0iNDIwIiB4Mj0iMTA0MCIgeTI9IjUwMCIgc3Ryb2tlPSJyZ2IoNDAsMTIwLDIzMCkiIHN0cm9rZS13aWR0aD0iMyIgb3BhY2l0eT0iMC4xOCIvPjwvc3ZnPg==");
    --surface:#ffffff; --surface-2:#f6f8fa; --surface-glass: rgba(255,255,255,0.78);
    --line: rgba(20,32,43,0.10); --line-strong: rgba(20,32,43,0.20);
    --text:#14202b; --text-dim:#56636f; --text-faint:#8a96a2;
    --teal:#0f9e8c; --teal-soft: rgba(15,158,140,0.12); --on-teal:#ffffff;
    --amber:#c9811c; --amber-soft: rgba(201,129,28,0.13); --on-amber:#ffffff;
    --red:#cc4a45; --red-soft: rgba(204,74,69,0.12);
    --blue:#3b78c9; --blue-soft: rgba(59,120,201,0.12);
    --shadow: 0 14px 34px -16px rgba(20,32,43,0.28), 0 2px 6px rgba(20,32,43,0.06);
    --shadow-hover: 0 22px 44px -16px rgba(20,32,43,0.34), 0 3px 8px rgba(20,32,43,0.08);
    --shadow-win: 0 40px 90px -20px rgba(20,32,43,0.45);
    --scrim: rgba(20,32,43,0.38);
    --radius-lg:20px; --radius-md:13px; --radius-sm:9px;
    --font-display:'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body:'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg:#0b1a2e; --dots: rgba(140,190,255,0.05);
      --bg-pattern: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDEyMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIHNsaWNlIj4KPGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMCIgeTE9IjAiIHgyPSIwLjM1IiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMGUyMDM4Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDgxNDI0Ii8+PC9saW5lYXJHcmFkaWVudD4KPGZpbHRlciBpZD0iYiIgeD0iLTIwJSIgeT0iLTIwJSIgd2lkdGg9IjE0MCUiIGhlaWdodD0iMTQwJSI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iNiIvPjwvZmlsdGVyPjwvZGVmcz4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iMTIwMCIgZmlsbD0idXJsKCNnKSIvPgo8ZyBmaWx0ZXI9InVybCgjYikiPgo8cG9seWdvbiBwb2ludHM9IjYyMCwwIDEyMDAsMCAxMjAwLDUyMCA5MDAsMzAwIiBmaWxsPSJyZ2JhKDEyMCwxNzAsMjU1LDAuMDcpIi8+Cjxwb2x5Z29uIHBvaW50cz0iMCw3NjAgNTIwLDEyMDAgMCwxMjAwIiBmaWxsPSJyZ2JhKDEyMCwxNzAsMjU1LDAuMDQ1KSIvPgo8cG9seWdvbiBwb2ludHM9Ijc2MCwxMjAwIDEyMDAsODYwIDEyMDAsMTIwMCIgZmlsbD0icmdiYSgxMjAsMTcwLDI1NSwwLjA0NSkiLz4KPC9nPgo8Y2lyY2xlIGN4PSI0MjAiIGN5PSI0MzAiIHI9IjMzMCIgZmlsbD0icmdiYSg3MCwxMzAsMjMwLDAuMTApIi8+CjxjaXJjbGUgY3g9Ijk4MCIgY3k9Ijc2MCIgcj0iMjkwIiBmaWxsPSJyZ2JhKDE0MCwxOTAsMjU1LDAuMDYpIi8+CjxjaXJjbGUgY3g9IjE2MCIgY3k9IjEwNTAiIHI9IjIyMCIgZmlsbD0icmdiYSg3MCwxMzAsMjMwLDAuMTApIi8+CjxjaXJjbGUgY3g9IjEwODAiIGN5PSIxNTAiIHI9IjE2MCIgZmlsbD0icmdiYSg3MCwxMzAsMjMwLDAuMTApIi8+CjxjaXJjbGUgY3g9IjkwIiBjeT0iMTEwIiByPSIxNiIgZmlsbD0icmdiKDExMCwxNzAsMjU1KSIgb3BhY2l0eT0iMC4yOCIvPjxjaXJjbGUgY3g9IjE1MCIgY3k9IjE5MCIgcj0iOSIgZmlsbD0icmdiKDExMCwxNzAsMjU1KSIgb3BhY2l0eT0iMC4yIi8+PGNpcmNsZSBjeD0iMTExMCIgY3k9IjQyMCIgcj0iMTMiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMjgiLz48Y2lyY2xlIGN4PSIxMDQwIiBjeT0iNTAwIiByPSI3IiBmaWxsPSJyZ2IoMTEwLDE3MCwyNTUpIiBvcGFjaXR5PSIwLjE2Ii8+PGNpcmNsZSBjeD0iNjIwIiBjeT0iOTAiIHI9IjgiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMiIvPjxjaXJjbGUgY3g9IjMwMCIgY3k9IjgyMCIgcj0iMTEiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMiIvPjxjaXJjbGUgY3g9IjExNTAiIGN5PSI5ODAiIHI9IjEwIiBmaWxsPSJyZ2IoMTEwLDE3MCwyNTUpIiBvcGFjaXR5PSIwLjE2Ii8+PGNpcmNsZSBjeD0iNzAiIGN5PSI2NDAiIHI9IjgiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMTYiLz48Y2lyY2xlIGN4PSI4MjAiIGN5PSIxMTIwIiByPSIxMiIgZmlsbD0icmdiKDExMCwxNzAsMjU1KSIgb3BhY2l0eT0iMC4yIi8+CjxsaW5lIHgxPSIxNTAiIHkxPSIxOTAiIHgyPSI5MCIgeTI9IjExMCIgc3Ryb2tlPSJyZ2IoMTEwLDE3MCwyNTUpIiBzdHJva2Utd2lkdGg9IjMiIG9wYWNpdHk9IjAuMTYiLz48bGluZSB4MT0iMTExMCIgeTE9IjQyMCIgeDI9IjEwNDAiIHkyPSI1MDAiIHN0cm9rZT0icmdiKDExMCwxNzAsMjU1KSIgc3Ryb2tlLXdpZHRoPSIzIiBvcGFjaXR5PSIwLjE2Ii8+PC9zdmc+");
      --surface:#161d27; --surface-2:#1b2330; --surface-glass: rgba(19,25,33,0.78);
      --line: rgba(255,255,255,0.09); --line-strong: rgba(255,255,255,0.18);
      --text:#eae7df; --text-dim:#93a0ad; --text-faint:#66717d;
      --teal:#54d6c4; --teal-soft: rgba(84,214,196,0.14); --on-teal:#052b26;
      --amber:#e8a33d; --amber-soft: rgba(232,163,61,0.15); --on-amber:#201404;
      --red:#e2635f; --red-soft: rgba(226,99,95,0.15);
      --blue:#79b0f2; --blue-soft: rgba(121,176,242,0.14);
      --shadow: 0 20px 50px -14px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.35);
      --shadow-hover: 0 28px 60px -14px rgba(0,0,0,0.65), 0 4px 10px rgba(0,0,0,0.4);
      --shadow-win: 0 40px 90px -20px rgba(0,0,0,0.75);
      --scrim: rgba(6,9,13,0.62);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"]{
    --bg:#0b1a2e; --dots: rgba(140,190,255,0.05);
    --bg-pattern: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjAwIDEyMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIHNsaWNlIj4KPGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMCIgeTE9IjAiIHgyPSIwLjM1IiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMGUyMDM4Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDgxNDI0Ii8+PC9saW5lYXJHcmFkaWVudD4KPGZpbHRlciBpZD0iYiIgeD0iLTIwJSIgeT0iLTIwJSIgd2lkdGg9IjE0MCUiIGhlaWdodD0iMTQwJSI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iNiIvPjwvZmlsdGVyPjwvZGVmcz4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iMTIwMCIgZmlsbD0idXJsKCNnKSIvPgo8ZyBmaWx0ZXI9InVybCgjYikiPgo8cG9seWdvbiBwb2ludHM9IjYyMCwwIDEyMDAsMCAxMjAwLDUyMCA5MDAsMzAwIiBmaWxsPSJyZ2JhKDEyMCwxNzAsMjU1LDAuMDcpIi8+Cjxwb2x5Z29uIHBvaW50cz0iMCw3NjAgNTIwLDEyMDAgMCwxMjAwIiBmaWxsPSJyZ2JhKDEyMCwxNzAsMjU1LDAuMDQ1KSIvPgo8cG9seWdvbiBwb2ludHM9Ijc2MCwxMjAwIDEyMDAsODYwIDEyMDAsMTIwMCIgZmlsbD0icmdiYSgxMjAsMTcwLDI1NSwwLjA0NSkiLz4KPC9nPgo8Y2lyY2xlIGN4PSI0MjAiIGN5PSI0MzAiIHI9IjMzMCIgZmlsbD0icmdiYSg3MCwxMzAsMjMwLDAuMTApIi8+CjxjaXJjbGUgY3g9Ijk4MCIgY3k9Ijc2MCIgcj0iMjkwIiBmaWxsPSJyZ2JhKDE0MCwxOTAsMjU1LDAuMDYpIi8+CjxjaXJjbGUgY3g9IjE2MCIgY3k9IjEwNTAiIHI9IjIyMCIgZmlsbD0icmdiYSg3MCwxMzAsMjMwLDAuMTApIi8+CjxjaXJjbGUgY3g9IjEwODAiIGN5PSIxNTAiIHI9IjE2MCIgZmlsbD0icmdiYSg3MCwxMzAsMjMwLDAuMTApIi8+CjxjaXJjbGUgY3g9IjkwIiBjeT0iMTEwIiByPSIxNiIgZmlsbD0icmdiKDExMCwxNzAsMjU1KSIgb3BhY2l0eT0iMC4yOCIvPjxjaXJjbGUgY3g9IjE1MCIgY3k9IjE5MCIgcj0iOSIgZmlsbD0icmdiKDExMCwxNzAsMjU1KSIgb3BhY2l0eT0iMC4yIi8+PGNpcmNsZSBjeD0iMTExMCIgY3k9IjQyMCIgcj0iMTMiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMjgiLz48Y2lyY2xlIGN4PSIxMDQwIiBjeT0iNTAwIiByPSI3IiBmaWxsPSJyZ2IoMTEwLDE3MCwyNTUpIiBvcGFjaXR5PSIwLjE2Ii8+PGNpcmNsZSBjeD0iNjIwIiBjeT0iOTAiIHI9IjgiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMiIvPjxjaXJjbGUgY3g9IjMwMCIgY3k9IjgyMCIgcj0iMTEiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMiIvPjxjaXJjbGUgY3g9IjExNTAiIGN5PSI5ODAiIHI9IjEwIiBmaWxsPSJyZ2IoMTEwLDE3MCwyNTUpIiBvcGFjaXR5PSIwLjE2Ii8+PGNpcmNsZSBjeD0iNzAiIGN5PSI2NDAiIHI9IjgiIGZpbGw9InJnYigxMTAsMTcwLDI1NSkiIG9wYWNpdHk9IjAuMTYiLz48Y2lyY2xlIGN4PSI4MjAiIGN5PSIxMTIwIiByPSIxMiIgZmlsbD0icmdiKDExMCwxNzAsMjU1KSIgb3BhY2l0eT0iMC4yIi8+CjxsaW5lIHgxPSIxNTAiIHkxPSIxOTAiIHgyPSI5MCIgeTI9IjExMCIgc3Ryb2tlPSJyZ2IoMTEwLDE3MCwyNTUpIiBzdHJva2Utd2lkdGg9IjMiIG9wYWNpdHk9IjAuMTYiLz48bGluZSB4MT0iMTExMCIgeTE9IjQyMCIgeDI9IjEwNDAiIHkyPSI1MDAiIHN0cm9rZT0icmdiKDExMCwxNzAsMjU1KSIgc3Ryb2tlLXdpZHRoPSIzIiBvcGFjaXR5PSIwLjE2Ii8+PC9zdmc+");
    --surface:#161d27; --surface-2:#1b2330; --surface-glass: rgba(19,25,33,0.78);
    --line: rgba(255,255,255,0.09); --line-strong: rgba(255,255,255,0.18);
    --text:#eae7df; --text-dim:#93a0ad; --text-faint:#66717d;
    --teal:#54d6c4; --teal-soft: rgba(84,214,196,0.14); --on-teal:#052b26;
    --amber:#e8a33d; --amber-soft: rgba(232,163,61,0.15); --on-amber:#201404;
    --red:#e2635f; --red-soft: rgba(226,99,95,0.15);
    --blue:#79b0f2; --blue-soft: rgba(121,176,242,0.14);
    --shadow: 0 20px 50px -14px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.35);
    --shadow-hover: 0 28px 60px -14px rgba(0,0,0,0.65), 0 4px 10px rgba(0,0,0,0.4);
    --shadow-win: 0 40px 90px -20px rgba(0,0,0,0.75);
    --scrim: rgba(6,9,13,0.62);
    color-scheme: dark;
  }

  *, *::before, *::after{ box-sizing: border-box; }
  html{ scroll-padding-top: env(safe-area-inset-top, 0px); }
  html, body{ min-height:100%; }
  body{
    margin:0; font-family: var(--font-body); color: var(--text); font-size:15px;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  /* The blue brand backdrop (soft planes + circles, like the product labels) lives on a fixed layer instead of
     body{background-attachment:fixed}: mobile browsers ignore fixed backgrounds and would stretch the art over
     the whole (very tall) page, so it barely showed. */
  body::before{
    content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
    background:
      radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 0) 0 0/26px 26px,
      var(--bg-pattern) center / cover no-repeat,
      var(--bg);
  }

  /* ---------- Full-width brand banner (full logo) ---------- */
  .brand-hero{
    position:relative; overflow:hidden; padding: 14px 16px 12px;
    /* solid soft blue edge to edge (no white areas), with two faint circles like the product labels */
    background:
      radial-gradient(circle at 18% 75%, rgba(100,150,230,0.14) 0 170px, transparent 171px),
      radial-gradient(circle at 84% 25%, rgba(100,150,230,0.12) 0 150px, transparent 151px),
      linear-gradient(180deg, #cfe1fd 0%, #c4d9fa 100%);
    border-bottom: 1px solid rgba(40,110,220,0.18);
    box-shadow: 0 12px 30px -22px rgba(20,60,130,0.6);
  }
  .brand-hero-inner{ max-width:1180px; margin:0 auto; display:flex; justify-content:center; }
  .brand-hero-logo{ height:118px; width:auto; position:relative; }
  @media (min-width: 720px){ .brand-hero{ padding: 18px 16px 14px; } .brand-hero-logo{ height:150px; } }
  /* the logo art has black letters, so the banner stays light even in dark mode */
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .brand-hero{ border-bottom-color: rgba(0,0,0,0.4); } }
  :root[data-theme="dark"] .brand-hero{ border-bottom-color: rgba(0,0,0,0.4); }
  /* The banner already shows the full logo, so the top bar drops its own brand and its card chrome: it's just
     the row of buttons (Tienda/Panel, Salir, cuenta...) right under the banner. */
  .topbar .brand{ display:none; }
  .topbar-actions{ margin-left:auto; flex-wrap:wrap; justify-content:flex-end; }
  body.no-scroll{ overflow:hidden; }
  button, input, textarea, select{ font: inherit; color: inherit; }
  button{ cursor:pointer; }
  img{ max-width:100%; display:block; }
  :focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }
  [hidden]{ display:none !important; }

  .wrap{ max-width: 1180px; margin:0 auto; padding: 16px 18px 120px; }

  /* ---------- Top bar ---------- */
  .topbar{
    position: relative; z-index: 40;
    display:flex; align-items:center; gap:12px; flex-wrap: wrap;
    padding: 0; margin-bottom: 18px;
  }
  .brand{ display:flex; align-items:center; gap:11px; min-width:0; flex:1; }
  .brand-mark{
    width:38px; height:38px; border-radius:12px; flex-shrink:0;
    background:#fff; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
  }
  .brand-mark img{ width:100%; height:100%; object-fit:contain; }
  .brand-text{ min-width:0; }
  .brand-name{ font-family: var(--font-display); font-weight:700; font-size:18px; letter-spacing:-0.02em; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .brand-tag{ font-size:12px; color: var(--text-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .topbar-actions{ display:flex; align-items:center; gap:8px; }

  .segmented{
    display:inline-flex; padding:3px; border-radius: 999px;
    background: var(--surface-2); border:1px solid var(--line);
  }
  .segmented button{
    border:none; background:none; padding:7px 14px; border-radius:999px;
    font-size:13px; font-weight:600; color: var(--text-dim);
    transition: background .18s, color .18s;
  }
  .segmented button[aria-pressed="true"]{ background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0,0,0,0.25); }

  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:7px;
    border:none; border-radius: var(--radius-md);
    padding: 10px 16px; font-size:14px; font-weight:600; white-space:nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s, border-color .15s, color .15s, opacity .15s;
  }
  .btn svg{ width:16px; height:16px; flex-shrink:0; }
  .btn-primary{ background: var(--amber); color: var(--on-amber); box-shadow: 0 8px 18px -8px var(--amber); }
  .btn-primary:hover{ transform: translateY(-1px); }
  .btn-teal{ background: var(--teal); color: var(--on-teal); box-shadow: 0 8px 18px -8px var(--teal); }
  .btn-teal:hover{ transform: translateY(-1px); }
  .btn-ghost{ background: var(--surface-2); color: var(--text-dim); border:1px solid var(--line); }
  .btn-ghost:hover{ color: var(--text); border-color: var(--line-strong); }
  .btn-danger{ background: var(--red); color:#fff; }
  .btn-danger-ghost{ background: var(--red-soft); color: var(--red); }
  .btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
  .btn-block{ width:100%; }
  .btn-sm{ padding:7px 11px; font-size:12.5px; border-radius: var(--radius-sm); }
  .btn .count{
    min-width:19px; height:19px; padding:0 5px; border-radius:999px; font-size:11px;
    background: var(--teal); color: var(--on-teal); display:inline-flex; align-items:center; justify-content:center;
  }

  .icon-btn{
    background:none; border:none; color: var(--text-faint);
    width:32px; height:32px; border-radius:9px; flex-shrink:0;
    display:inline-flex; align-items:center; justify-content:center;
    transition: color .15s, background .15s;
  }
  .icon-btn:hover{ color: var(--text); background: var(--surface-2); }
  .icon-btn.danger:hover{ color: var(--red); background: var(--red-soft); }
  .icon-btn svg{ width:17px; height:17px; }
  .icon-btn:disabled{ opacity:.3; cursor:not-allowed; }

  .banner{
    display:flex; align-items:center; gap:10px; font-size:13.5px; line-height:1.45;
    padding:12px 14px; border-radius: var(--radius-md); margin-bottom:18px;
    background: var(--amber-soft); color: var(--amber); border:1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  }
  .banner.error{ background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }

  /* ---------- Store controls ---------- */
  .store-controls{ display:flex; flex-direction:column; gap:12px; margin-bottom:18px; }
  .controls-row{ display:flex; gap:10px; align-items:center; }
  .search-field{ position:relative; flex:1; min-width:0; }
  .search-field input{
    width:100%; background: var(--surface); border:1px solid var(--line);
    border-radius: var(--radius-md); padding: 11px 12px 11px 38px; font-size:14.5px;
  }
  .search-field input::placeholder{ color: var(--text-faint); }
  .search-field input:focus{ border-color: var(--teal); outline:none; box-shadow: 0 0 0 3px var(--teal-soft); }
  .search-field svg{ position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; color: var(--text-faint); }
  .select{
    background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-md);
    padding: 10px 12px; font-size:14px; max-width: 46%;
  }
  .chips{ display:flex; gap:8px; overflow-x:auto; padding-bottom:2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar{ display:none; }
  .chip{
    flex-shrink:0; border:1px solid var(--line); background: var(--surface);
    padding: 7px 14px; border-radius:999px; font-size:13px; font-weight:500; color: var(--text-dim);
    transition: background .15s, color .15s, border-color .15s;
  }
  .chip:hover{ color: var(--text); border-color: var(--line-strong); }
  .chip[aria-pressed="true"]{ background: var(--text); color: var(--bg); border-color: var(--text); }
  .chip .n{ opacity:.6; margin-left:4px; font-variant-numeric: tabular-nums; }

  /* ---------- Product grid ---------- */
  .grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .pcard{
    background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow:hidden; display:flex; flex-direction:column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  }
  .pcard:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
  .pcard.out{ opacity:.72; }
  .pcard-media{ position:relative; border:none; padding:0; background:none; display:block; width:100%; aspect-ratio: 3/4; overflow:hidden; }
  .pcard-media .pimg{ width:100%; height:100%; object-fit: cover; transition: transform .45s ease; }
  .pcard:hover .pcard-media .pimg{ transform: scale(1.04); }
  .ph{
    width:100%; height:100%; display:flex; align-items:center; justify-content:center;
    background:
      radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 70% 62% / .9), transparent 60%),
      radial-gradient(120% 90% at 90% 100%, hsl(calc(var(--h) + 50) 70% 45% / .9), transparent 60%),
      hsl(var(--h) 35% 28%);
  }
  .ph span{ font-family: var(--font-display); font-weight:700; font-size: 44px; color: rgba(255,255,255,0.92); letter-spacing:-0.03em; }
  .media-badge{
    position:absolute; left:10px; top:10px; font-size:11px; font-weight:600;
    padding:4px 9px; border-radius:999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .media-badge.low{ background: rgba(201,129,28,0.92); color:#fff; }
  .media-badge.out{ background: rgba(20,32,43,0.8); color:#fff; }
  .media-badge.opts{ background: rgba(255,255,255,0.9); color:#14202b; }
  .pcard-opts{ font-size:12px; color: var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .price small{ font-size:.68em; font-weight:500; color: var(--text-dim); }
  .variant-chips{ flex-wrap:wrap; overflow:visible; margin-top:6px; }
  .chip.out{ opacity:.55; text-decoration: line-through; }
  .pcard-body{ padding: 12px 14px 14px; display:flex; flex-direction:column; gap:4px; flex:1; }
  .pcard-cat{ font-size:12px; color: var(--text-faint); }
  .pcard-name{
    margin:0; font-family: var(--font-display); font-weight:600; font-size:15px; line-height:1.3; letter-spacing:-0.01em;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient: vertical; overflow:hidden;
  }
  .pcard-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:8px; }
  .price{ font-family: var(--font-display); font-weight:600; font-size:17px; font-variant-numeric: tabular-nums; }
  .add-btn{
    position:relative; width:40px; height:40px; border-radius:13px; border:none;
    background: var(--teal); color: var(--on-teal); display:flex; align-items:center; justify-content:center;
    box-shadow: 0 8px 16px -8px var(--teal); transition: transform .15s ease;
  }
  .add-btn:hover{ transform: scale(1.07); }
  .add-btn:active{ transform: scale(.94); }
  .add-btn svg{ width:18px; height:18px; }
  .add-btn:disabled{ background: var(--surface-2); color: var(--text-faint); box-shadow:none; cursor:not-allowed; transform:none; }
  .add-btn .in-cart{
    position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px;
    border-radius:999px; background: var(--amber); color: var(--on-amber);
    font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center;
    border:2px solid var(--surface);
  }

  .skeleton{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); height: 290px; position:relative; overflow:hidden; }
  .skeleton::after{
    content:""; position:absolute; inset:0;
    background: linear-gradient(100deg, transparent 30%, var(--surface-2) 50%, transparent 70%);
    animation: shimmer 1.3s infinite;
  }
  @keyframes shimmer{ from{ transform: translateX(-100%);} to{ transform: translateX(100%);} }

  .empty{
    grid-column: 1/-1; display:flex; flex-direction:column; align-items:center; text-align:center;
    padding: 56px 20px; color: var(--text-dim);
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  }
  .empty svg{ width:42px; height:42px; color: var(--text-faint); margin-bottom:12px; }
  .empty h3{ font-family: var(--font-display); font-size:17px; color: var(--text); margin:0 0 6px; }
  .empty p{ font-size:14px; max-width: 340px; margin:0 0 16px; line-height:1.5; }

  /* ---------- Cart FAB ---------- */
  .cart-fab{
    position: fixed; z-index: 60;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    display:flex; align-items:center; gap:10px;
    padding: 12px 16px 12px 14px; border:none; border-radius: 999px;
    background: var(--text); color: var(--bg);
    font-weight:600; font-size:14px; box-shadow: 0 18px 36px -12px rgba(0,0,0,0.5);
    transition: transform .2s ease;
  }
  .cart-fab:hover{ transform: translateY(-2px); }
  .cart-fab svg{ width:19px; height:19px; }
  .cart-fab .badge{
    background: var(--amber); color: var(--on-amber); min-width:22px; height:22px; padding:0 6px;
    border-radius:999px; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center;
    font-variant-numeric: tabular-nums;
  }
  .cart-fab .fab-total{ font-variant-numeric: tabular-nums; }
  .cart-fab.bump{ animation: fabBump .42s ease; }
  @keyframes fabBump{ 0%{transform:scale(1);} 35%{transform:scale(1.1);} 100%{transform:scale(1);} }
  .fly-dot{
    position: fixed; z-index: 300; width:18px; height:18px; border-radius:50%;
    background: var(--amber); pointer-events:none; box-shadow: 0 0 0 4px var(--amber-soft);
  }

  /* ---------- Floating windows ---------- */
  .overlay{
    position: fixed; inset:0; z-index: 320; background: var(--scrim);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display:none; align-items:center; justify-content:center;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .overlay.show{ display:flex; animation: fadeIn .2s ease; }
  @keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
  .win{
    width:100%; max-width: 460px; max-height:100%; display:flex; flex-direction:column;
    background: var(--surface); border:1px solid var(--line-strong); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-win); overflow:hidden;
    animation: winIn .3s cubic-bezier(.2,.85,.3,1.12) both;
  }
  .win.wide{ max-width: 760px; }
  @keyframes winIn{ from{ opacity:0; transform: scale(.94) translateY(10px);} to{ opacity:1; transform:none;} }
  .win-bar{ display:flex; align-items:center; gap:10px; padding: 14px 16px 14px 20px; border-bottom:1px solid var(--line); flex-shrink:0; }
  .win-title{ font-family: var(--font-display); font-weight:600; font-size:16px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .win-body{ padding: 18px 20px 20px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; }
  .win-foot{ padding: 14px 20px 18px; border-top:1px solid var(--line); display:flex; gap:10px; flex-shrink:0; background: var(--surface); }
  .win-foot .btn{ flex:1; }
  .grabber{ display:none; }

  @media (max-width: 640px){
    .overlay{ align-items:flex-end; padding: calc(12px + env(safe-area-inset-top, 0px)) 0 0; }
    .win, .win.wide{ max-width:none; border-radius: 22px 22px 0 0; border-bottom:none; animation: sheetIn .34s cubic-bezier(.2,.85,.25,1) both; }
    .win-foot{ padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .win-body:last-child{ padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
    .grabber{ display:block; width:40px; height:5px; border-radius:99px; background: var(--line-strong); margin: 8px auto 0; flex-shrink:0; }
  }
  @keyframes sheetIn{ from{ transform: translateY(100%);} to{ transform:none; } }

  /* ---------- Forms ---------- */
  .field label, .field .label{ display:block; font-size:12.5px; color: var(--text-dim); margin-bottom:6px; font-weight:500; }
  .field input, .field textarea, .field select{
    width:100%; background: var(--surface-2); border:1px solid var(--line);
    border-radius: var(--radius-md); padding: 11px 12px; font-size:15px;
  }
  .field textarea{ min-height: 70px; line-height:1.5; resize: vertical; }
  .field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
  .field .hint{ font-size:12px; color: var(--text-faint); margin-top:5px; line-height:1.45; }
  .field-row{ display:flex; gap:12px; }
  .field-row > .field{ flex:1; min-width:0; }
  .field-error{ font-size:12px; color: var(--red); margin-top:5px; }
  .check-row{ display:flex; align-items:center; gap:10px; font-size:14px; }
  .check-row input{ width:18px; height:18px; accent-color: var(--teal); }

  .choice-group{ display:grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap:8px; }
  .choice{ position:relative; }
  .choice input{ position:absolute; opacity:0; inset:0; }
  .choice span{
    display:flex; flex-direction:column; gap:2px; padding: 11px 12px; border-radius: var(--radius-md);
    border:1.5px solid var(--line); background: var(--surface-2); font-size:14px; font-weight:600; cursor:pointer;
    transition: border-color .15s, background .15s;
  }
  .choice small{ font-weight:400; font-size:11.5px; color: var(--text-faint); }
  .choice input:checked + span{ border-color: var(--teal); background: var(--teal-soft); }
  .choice input:focus-visible + span{ outline: 2px solid var(--teal); outline-offset:2px; }

  /* ---------- Detail ---------- */
  .detail-media{ border-radius: var(--radius-md); overflow:hidden; aspect-ratio: 4/3; }
  .detail-media .pimg{ width:100%; height:100%; object-fit:cover; }
  .detail-name{ font-family: var(--font-display); font-weight:600; font-size:21px; letter-spacing:-0.02em; margin:2px 0 0; line-height:1.25; }
  .info-group{ display:grid; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius: var(--radius-md); }
  .info-group-head{ display:grid; gap:2px; }
  .info-group-head .hint{ margin:0; }
  .detail-info{ display:grid; gap:14px; }
  .detail-info section{ display:grid; gap:4px; }
  .detail-info h3{ margin:0; font-family: var(--font-display); font-size:14px; font-weight:600; color: var(--text); }
  .detail-info section + section{ padding-top:12px; border-top:1px solid var(--line); }
  .ac-mode{ display:flex; width:100%; }
  .ac-mode button{ flex:1; }
  .ac-unit-row{ display:flex; gap:8px; align-items:center; }
  .ac-unit-row input{ flex:1; min-width:0; }
  .ac-unit-row select{ width:auto; flex:0 0 auto; }
  .ac-suffix{ font-size:13px; color: var(--text-dim); white-space:nowrap; }
  .ac-result{ display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:8px; }
  .ac-result .dc-stat b{ font-size:24px; }
  .ac-lines{ display:grid; gap:4px; font-size:13.5px; color: var(--text-dim); }
  .ac-lines b{ color: var(--text); font-variant-numeric: tabular-nums; }
  .ac-actions{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  .dose-calc{ display:grid; gap:10px; padding:14px; border-radius: var(--radius-md); background: var(--blue-soft); border:1px solid color-mix(in srgb, var(--blue) 30%, transparent); }
  .dose-calc h3{ margin:0; font-family: var(--font-display); font-size:15px; font-weight:600; color: var(--text); }
  .dc-inputs{ display:grid; grid-template-columns: 1fr auto 1fr; gap:8px; align-items:end; }
  .dc-inputs label{ display:grid; gap:4px; font-size:12px; color: var(--text-dim); }
  .dc-inputs input, .dc-inputs select{ width:100%; min-width:0; background: var(--surface); border:1px solid var(--line); border-radius:10px; padding:9px 10px; font-size:15px; color: var(--text); }
  .dc-inputs .dc-ml{ display:flex; align-items:center; gap:6px; }
  .dc-result{ display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
  .dc-stat{ background: var(--surface); border-radius:10px; padding:10px 12px; border:1px solid var(--line); }
  .dc-stat b{ display:block; font-family: var(--font-display); font-size:22px; font-variant-numeric: tabular-nums; color: var(--text); }
  .dc-stat span{ font-size:12px; color: var(--text-dim); }
  .dc-msg{ grid-column: 1 / -1; font-size:13px; color: var(--text-dim); }
  .dc-warn{ grid-column: 1 / -1; font-size:13px; color: var(--red); }
  .dc-note{ font-size:12px; color: var(--text-dim); line-height:1.45; }
  .detail-desc{ font-size:14.5px; line-height:1.6; color: var(--text-dim); margin:0; white-space: pre-line; }
  .stock-line{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:500; }
  .dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
  .dot.ok, .stock-line.ok{ color: var(--teal); } .dot.ok{ background: var(--teal); }
  .dot.low, .stock-line.low{ color: var(--amber); } .dot.low{ background: var(--amber); }
  .dot.out, .stock-line.out{ color: var(--red); } .dot.out{ background: var(--red); }

  .stepper{ display:inline-flex; align-items:center; gap:4px; background: var(--surface-2); border:1px solid var(--line); border-radius: 12px; padding:3px; }
  .stepper button{
    width:32px; height:32px; border-radius:9px; border:none; background: none; font-size:18px; line-height:1; color: var(--text-dim);
    display:flex; align-items:center; justify-content:center;
  }
  .stepper button:hover{ background: var(--surface); color: var(--text); }
  .stepper button:disabled{ opacity:.3; cursor:not-allowed; background:none; }
  .stepper b{ min-width: 26px; text-align:center; font-variant-numeric: tabular-nums; font-size:14.5px; }
  .stepper.sm button{ width:26px; height:26px; font-size:15px; }
  .stepper.sm b{ min-width:22px; font-size:13.5px; }

  /* ---------- Cart ---------- */
  .cart-item{ display:flex; gap:12px; align-items:center; padding: 4px 0; }
  .cart-thumb{ width:52px; height:52px; border-radius: 12px; overflow:hidden; flex-shrink:0; }
  .cart-thumb .pimg{ width:100%; height:100%; object-fit:cover; }
  .cart-thumb .ph span{ font-size:20px; }
  .cart-info{ flex:1; min-width:0; }
  .cart-name{ font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cart-sub{ font-size:12.5px; color: var(--text-faint); margin-top:2px; font-variant-numeric: tabular-nums; }
  .cart-controls{ display:flex; align-items:center; gap:10px; margin-top:6px; }
  .cart-line-total{ font-size:14px; font-weight:600; font-variant-numeric: tabular-nums; }
  .coupon-row{ display:flex; gap:8px; }
  .coupon-row input{ flex:1; min-width:0; background: var(--surface-2); border:1px solid var(--line); border-radius: var(--radius-md); padding:10px 12px; font-size:14px; text-transform: uppercase; }
  .coupon-applied{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 9px 12px; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal); font-size:13.5px; font-weight:600; }
  .totals{ display:flex; flex-direction:column; gap:7px; padding: 14px; border-radius: var(--radius-md); background: var(--surface-2); }
  .totals-row{ display:flex; justify-content:space-between; font-size:13.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
  .totals-row.discount{ color: var(--teal); }
  .totals-row.grand{ font-family: var(--font-display); font-weight:600; font-size:17px; color: var(--text); padding-top:8px; border-top:1px solid var(--line); margin-top:3px; }
  .divider{ height:1px; background: var(--line); }
  .section-label{ font-size:13px; font-weight:600; color: var(--text); margin: 4px 0 -4px; }
  .muted{ color: var(--text-faint); font-size:13px; line-height:1.5; }

  /* ---------- Confirmation ---------- */
  .confirm-hero{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding: 6px 0 4px; }
  .check-anim{ width:72px; height:72px; }
  .check-anim circle{ fill: var(--teal-soft); stroke: var(--teal); stroke-width:2.5; }
  .check-anim path{ fill:none; stroke: var(--teal); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .5s .25s ease forwards; }
  @keyframes drawCheck{ to{ stroke-dashoffset:0; } }
  .confirm-title{ font-family: var(--font-display); font-weight:700; font-size:22px; letter-spacing:-0.02em; margin:6px 0 0; }
  .order-number{ font-family: var(--font-display); font-size:15px; font-weight:600; padding: 6px 14px; border-radius:999px; background: var(--surface-2); border:1px solid var(--line); letter-spacing: .02em; }
  .pay-box{ padding: 14px; border-radius: var(--radius-md); border:1px solid color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-soft); font-size:14px; line-height:1.55; }
  .pay-box strong{ font-family: var(--font-display); }

  /* ---------- Orders (shared) ---------- */
  .ocard{ border:1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 14px; display:flex; flex-direction:column; gap:10px; }
  .ocard + .ocard{ margin-top:10px; }
  .ocard-top{ display:flex; gap:12px; align-items:flex-start; }
  .ocard-main{ flex:1; min-width:0; }
  .onum{ font-family: var(--font-display); font-weight:600; font-size:14.5px; }
  .ocust{ font-size:14px; font-weight:600; margin-top:2px; }
  .osub{ font-size:12.5px; color: var(--text-faint); margin-top:2px; }
  .ototal{ font-family: var(--font-display); font-weight:600; font-size:16px; font-variant-numeric: tabular-nums; white-space:nowrap; }
  .oitems{ font-size:13px; color: var(--text-dim); line-height:1.5; }
  .tags{ display:flex; gap:6px; flex-wrap:wrap; }
  .tag{ font-size:11.5px; font-weight:600; padding:3px 9px; border-radius:999px; background: var(--surface-2); color: var(--text-dim); border:1px solid var(--line); }
  .tag.pendiente{ background: var(--amber-soft); color: var(--amber); border-color: transparent; }
  .tag.preparando{ background: var(--blue-soft); color: var(--blue); border-color: transparent; }
  .tag.lista{ background: var(--teal-soft); color: var(--teal); border-color: transparent; }
  .tag.completada{ background: var(--text); color: var(--bg); border-color: transparent; }
  .tag.cancelada{ background: var(--red-soft); color: var(--red); border-color: transparent; }
  .tag.cotizada{ background: var(--surface-2); color: var(--text-dim); border:1px dashed var(--line-strong); }
  .tag.paid{ background: var(--teal-soft); color: var(--teal); border-color: transparent; }
  .tag.unpaid{ background: var(--amber-soft); color: var(--amber); border-color: transparent; }
  .onote{ font-size:12.5px; color: var(--text-dim); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; line-height:1.45; white-space: pre-line; }
  .ocontrols{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  .status-select{ background: var(--surface-2); border:1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size:13px; font-weight:600; }

  .progress{ display:flex; align-items:center; gap:0; margin: 2px 0; }
  .pstep{ display:flex; flex-direction:column; align-items:center; gap:5px; flex:0 0 auto; width: 64px; }
  .pstep .pdot{ width:14px; height:14px; border-radius:50%; background: var(--surface-2); border:2px solid var(--line-strong); }
  .pstep.done .pdot{ background: var(--teal); border-color: var(--teal); }
  .pstep.now .pdot{ background: var(--surface); border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
  .pstep span{ font-size:10.5px; color: var(--text-faint); text-align:center; }
  .pstep.done span, .pstep.now span{ color: var(--text); font-weight:600; }
  .pline{ flex:1; height:2px; background: var(--line-strong); margin-bottom:18px; min-width:6px; }
  .pline.done{ background: var(--teal); }

  /* ---------- Admin ---------- */
  .tabs{
    display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; margin-bottom:16px;
    padding:4px; background: var(--surface-glass); border:1px solid var(--line); border-radius: 16px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .tabs::-webkit-scrollbar{ display:none; }
  .tab{
    flex-shrink:0; display:flex; align-items:center; gap:7px; border:none; background:none;
    padding: 9px 14px; border-radius: 12px; font-size:13.5px; font-weight:600; color: var(--text-dim);
    transition: background .15s, color .15s;
  }
  .tab svg{ width:16px; height:16px; }
  .tab:hover{ color: var(--text); }
  .tab[aria-selected="true"]{ background: var(--surface); color: var(--text); box-shadow: 0 3px 10px -4px rgba(0,0,0,0.25); }
  .tab .count{ min-width:18px; height:18px; padding:0 5px; border-radius:999px; background: var(--amber); color: var(--on-amber); font-size:10.5px; display:inline-flex; align-items:center; justify-content:center; }

  .panel-card{
    background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 16px;
  }
  .panel-card + .panel-card{ margin-top: 14px; }
  .panel-head{ display:flex; align-items:center; gap:10px; margin-bottom: 14px; flex-wrap:wrap; }
  .panel-title{ font-family: var(--font-display); font-weight:600; font-size:16px; flex:1; margin:0; }

  .kpis{ display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:10px; margin-bottom:14px; }
  .kpi{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-md); padding: 13px 14px; box-shadow: var(--shadow); }
  .kpi b{ display:block; font-family: var(--font-display); font-size:20px; font-weight:600; font-variant-numeric: tabular-nums; letter-spacing:-0.02em; }
  .kpi span{ font-size:12px; color: var(--text-faint); }

  .prow{ display:flex; align-items:center; gap:12px; padding: 10px 0; border-bottom:1px solid var(--line); }
  .prow:last-child{ border-bottom:none; }
  .prow-thumb{ width:48px; height:48px; border-radius:12px; overflow:hidden; flex-shrink:0; }
  .prow-thumb .pimg{ width:100%; height:100%; object-fit:cover; }
  .prow-thumb .ph span{ font-size:19px; }
  .prow-main{ flex:1; min-width:0; }
  .prow-name{ font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .prow-sub{ font-size:12.5px; color: var(--text-faint); margin-top:2px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
  .prow-side{ display:flex; align-items:center; gap:4px; }
  .hidden-tag{ font-size:11px; font-weight:600; padding:2px 7px; border-radius:999px; background: var(--surface-2); color: var(--text-faint); border:1px solid var(--line); }

  /* ---------- List / board view toggle (admin product list) ---------- */
  .view-toggle{ display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; flex-shrink:0; }
  .view-toggle button{ display:flex; align-items:center; justify-content:center; width:36px; height:36px; border:none; background:none; color: var(--text-dim); cursor:pointer; }
  .view-toggle button + button{ border-left:1px solid var(--line); }
  .view-toggle button:hover{ color: var(--text); background: var(--surface-2); }
  .view-toggle button svg{ width:17px; height:17px; }
  .view-toggle button[aria-pressed="true"]{ background: var(--text); color: var(--bg); }

  /* ---------- Board (grid/card) view for the admin product list ---------- */
  .pboard-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:14px; }
  .pboard-card{ display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; border:1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; background: var(--surface); }
  .pboard-media{ position:relative; width:100%; aspect-ratio: 3/4; overflow:hidden; border:none; padding:0; background:none; display:block; flex-shrink:0; }
  .pboard-media .pimg, .pboard-media .ph{ width:100%; height:100%; object-fit:cover; }
  .pboard-body{ padding: 10px 12px 12px; display:flex; flex-direction:column; gap:4px; }
  .pboard-name{ font-size:14px; font-weight:600; line-height:1.3; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .pboard-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; flex-wrap:wrap; }

  .crow{ display:flex; align-items:center; gap:12px; padding: 11px 0; border-bottom:1px solid var(--line); width:100%; background:none; border-left:none; border-right:none; border-top:none; text-align:left; }
  .crow:last-child{ border-bottom:none; }
  .avatar{ width:38px; height:38px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:600; font-size:14px; color:#fff; background: hsl(var(--h) 45% 45%); }
  .crow-main{ flex:1; min-width:0; }
  .crow-name{ font-size:14px; font-weight:600; }
  .crow-sub{ font-size:12.5px; color: var(--text-faint); margin-top:2px; }
  .crow-total{ font-size:14px; font-weight:600; font-variant-numeric: tabular-nums; text-align:right; }
  .crow-total small{ display:block; font-size:11.5px; font-weight:400; color: var(--text-faint); }

  .rank{ display:flex; align-items:center; gap:10px; padding: 8px 0; font-size:13.5px; }
  .rank-bar-wrap{ flex:1; min-width:0; }
  .rank-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rank-bar{ height:6px; border-radius:99px; background: var(--surface-2); margin-top:5px; overflow:hidden; }
  .rank-bar i{ display:block; height:100%; background: var(--teal); border-radius:99px; }
  .rank-val{ font-variant-numeric: tabular-nums; font-weight:600; white-space:nowrap; }
  .chart-wrap{ overflow-x:auto; }
  .chart svg{ width:100%; height:auto; display:block; min-width: 320px; }
  .chart .bar{ fill: var(--teal); }
  .chart .bar.zero{ fill: var(--line-strong); }
  .chart text{ fill: var(--text-faint); font-size:10px; font-family: var(--font-body); }
  .two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
  .two-col > .panel-card + .panel-card{ margin-top:0; }

  .img-picker{ display:flex; gap:12px; align-items:center; }
  .img-preview{ width:84px; height:84px; border-radius: 14px; overflow:hidden; flex-shrink:0; border:1px solid var(--line); }
  .img-preview .pimg{ width:100%; height:100%; object-fit:cover; }
  .img-preview .ph span{ font-size:30px; }
  .img-actions{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
  .file-input{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }

  .confirm-inline{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--red-soft); }
  .confirm-inline span{ flex:1 1 220px; font-size:13px; color: var(--red); font-weight:500; }
  .confirm-inline .btn:first-of-type{ margin-left:auto; }
  @media (max-width: 720px){ .confirm-inline span{ flex-basis:100%; } }

  /* ---------- Toasts ---------- */
  .toasts{
    position: fixed; left:50%; transform: translateX(-50%); z-index: 400;
    top: calc(14px + env(safe-area-inset-top, 0px));
    display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; width: max-content; max-width: calc(100% - 32px);
  }
  .toast{
    background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
    font-size:13.5px; font-weight:500; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5);
    animation: toastIn .25s cubic-bezier(.2,.9,.3,1.2) both; text-align:center;
  }
  .toast.warn{ background: var(--red); color:#fff; }
  .toast.toast-action{
    border-radius:14px; display:flex; align-items:center; gap:12px; text-align:left; pointer-events:auto; padding:10px 12px 10px 16px;
  }
  .toast-btn{
    background: var(--bg); color: var(--text); border:none; border-radius:999px; padding:7px 14px; font-size:13px;
    font-weight:600; white-space:nowrap; cursor:pointer; flex-shrink:0;
  }
  @keyframes toastIn{ from{ opacity:0; transform: translateY(-10px) scale(.96);} to{ opacity:1; transform:none; } }

  @media (max-width: 760px){
    .two-col{ grid-template-columns: 1fr; }
  }
  @media (max-width: 640px){
    .wrap{ padding: 12px 12px 110px; }
    .topbar{ margin-bottom:14px; }
    .brand-mark{ width:34px; height:34px; border-radius:10px; }
    .brand-tag{ display:none; }
    .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
    .pcard-body{ padding: 10px 11px 12px; }
    .pcard-name{ font-size:13.5px; }
    .price{ font-size:15px; }
    .add-btn{ width:36px; height:36px; border-radius:11px; }
    .ph span{ font-size:34px; }
    .cart-fab .fab-label{ display:none; }
    .field-row{ flex-direction:column; gap:14px; }
    .pstep{ width:52px; }
  }
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }

/* ---------- v2 additions ---------- */
.hdr-btn .lbl{ display:inline; }
@media (max-width: 640px){ .hdr-btn .lbl{ display:none; } .hdr-btn{ padding:8px 10px; } }
.link-btn{ background:none; border:none; padding:0; color: var(--teal); font-weight:600; font-size:13px; text-decoration: underline; text-underline-offset: 3px; }
.stock-box{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border:1px solid var(--line); }
.stock-box b{ font-family: var(--font-display); font-size:20px; font-variant-numeric: tabular-nums; }
.inv-edit{ width:100%; text-align:left; background:none; border:0; border-bottom:1px solid var(--line); color:inherit; font:inherit; cursor:pointer; padding:10px 4px; }
.inv-edit:hover{ background: var(--surface-2); }
.inv-edit:last-child{ border-bottom:0; }
.win-qr{ max-width:460px; }
.qr-frame{ display:flex; align-items:center; justify-content:center; min-height:260px; padding:12px; border-radius: var(--radius-md); background:#fff; border:1px solid var(--line); }
.qr-frame img{ display:block; width:100%; max-width:340px; height:auto; }
.qr-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.qr-actions .btn{ flex:1 1 auto; }
.qr-full{ position:fixed; inset:0; z-index:2000; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:16px; cursor:pointer; }
.qr-full[hidden]{ display:none; }
.qr-full img{ width:auto; height:auto; max-width:min(92vw, 720px); max-height:84vh; }
.qr-full-hint{ font-size:13px; color:#56636f; }
#qrPrintArea{ display:none; }
@media print{
  body.print-qr > *:not(#qrPrintArea){ display:none !important; }
  body.print-qr, html:has(body.print-qr){ background:#fff !important; }
  body.print-qr::before, body.print-qr::after{ display:none !important; }
  body.print-qr #qrPrintArea{ display:block !important; width:100%; padding-top:1cm; }
  body.print-qr #qrPrintArea img{ display:block; margin:0 auto; width:12cm; max-width:100%; height:auto; }
}
.stock-detail{ display:grid; gap:6px; margin-top:8px; padding:10px 14px; border-radius: var(--radius-md); border:1px solid var(--line); font-size:14px; }
.stock-detail:empty{ display:none; }
.stock-detail > div{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.stock-detail > div > span{ color: var(--muted); }
.stock-detail b{ font-variant-numeric: tabular-nums; text-align:right; }
.stock-detail b small{ font-weight:400; color: var(--muted); margin-left:4px; }
.adj-sign{ display:flex; width:100%; }
.adj-sign button{ flex:1; }
.adj-sign button[data-sign="1"][aria-pressed="true"]{ color: var(--teal); }
.adj-sign button[data-sign="-1"][aria-pressed="true"]{ color: var(--red); }
.adjust-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.adjust-row input{ width:90px; background: var(--surface); border:1px solid var(--line); border-radius: 10px; padding:8px 10px; font-size:14px; }
.mv-list{ display:flex; flex-direction:column; max-height: 220px; overflow-y:auto; border:1px solid var(--line); border-radius: var(--radius-md); }
.mv{ display:flex; gap:10px; align-items:center; padding:8px 12px; font-size:12.5px; border-bottom:1px solid var(--line); }
.mv:last-child{ border-bottom:none; }
.mv .d{ font-weight:700; font-variant-numeric: tabular-nums; min-width:44px; }
.mv .d.pos{ color: var(--teal); } .mv .d.neg{ color: var(--red); }
.mv .r{ flex:1; color: var(--text-dim); }
.mv .t{ color: var(--text-faint); white-space:nowrap; }
.audit-row{ display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; }
.audit-row:last-child{ border-bottom:none; }
.audit-row .t{ color: var(--text-faint); white-space:nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }
.audit-row .a{ flex:1; min-width:0; }
.audit-row .a small{ display:block; color: var(--text-faint); margin-top:2px; overflow-wrap:anywhere; }
.notice{ font-size:13px; line-height:1.5; color: var(--text-dim); padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-2); border:1px dashed var(--line-strong); }
.notice.warn{ color: var(--text); background: var(--amber-soft); border-color: var(--amber); }
.kpi.accent b{ color: var(--teal); }
.kpi small{ display:block; font-size:11px; color: var(--text-faint); margin-top:3px; }
.win:focus{ outline:none; }
.visually-hidden{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.offline-banner{ position:fixed; left:12px; right:12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index:500; max-width:520px; margin:0 auto; }

.stack-10{ display:flex; flex-direction:column; gap:10px; }
.stack-14{ display:flex; flex-direction:column; gap:14px; }
.mt-8{ margin-top:8px; } .mt-14{ margin-top:14px; }
fieldset.bare{ border:none; padding:0; margin:0; min-width:0; }
fieldset.bare legend{ padding:0; }

/* ================= v3: new components ================= */
span.pos, td.pos, .totals-row.pos, .days.pos{ color: var(--teal); }
span.neg, td.neg, .totals-row.neg, .days.neg{ color: var(--red); }
.days.warn{ color: var(--amber); }
.days{ font-weight:700; }
.btn-lg{ padding:14px 18px; font-size:16px; border-radius: var(--radius-md); }
.change-due{ margin-top:10px; font-size:15px; padding:10px 12px; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--text); }
.change-due b{ font-family: var(--font-display); font-size:20px; color: var(--teal); }
.tag.pickup{ background: var(--amber-soft); color: var(--amber); }
.kpi.warn b{ color: var(--red); }
.delta{ display:block; font-size:11.5px; margin-top:4px; color: var(--text-faint); font-weight:600; }
.delta.up{ color: var(--teal); } .delta.down{ color: var(--red); }
.hint{ font-size:12px; color: var(--text-faint); margin-top:6px; line-height:1.45; }
.label{ font-size:12.5px; color: var(--text-dim); font-weight:500; margin-bottom:6px; display:block; }

/* related products */
.related{ display:flex; flex-direction:column; gap:8px; }
.related-row{ display:grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap:10px; }
.related-item{ display:flex; flex-direction:column; gap:4px; text-align:left; background: var(--surface-2); border:1px solid var(--line); border-radius: var(--radius-md); padding:6px; font-size:12.5px; color: var(--text); }
.related-item .pimg{ width:100%; aspect-ratio: 1; object-fit:cover; border-radius: 9px; }
.related-item b{ font-variant-numeric: tabular-nums; }

/* free delivery progress */
.free-bar{ padding:12px 14px; border-radius: var(--radius-md); background: var(--teal-soft); display:flex; flex-direction:column; gap:8px; font-size:13.5px; }
.free-track{ height:7px; border-radius:99px; background: color-mix(in srgb, var(--teal) 18%, transparent); overflow:hidden; }
.free-track i{ display:block; height:100%; background: var(--teal); border-radius:inherit; transition: width .4s ease; }

/* tables */
.tbl-wrap{ overflow-x:auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.tbl{ width:100%; border-collapse: collapse; font-size:13px; font-variant-numeric: tabular-nums; }
.tbl th{ text-align:left; font-weight:600; color: var(--text-dim); font-size:12px; padding:8px 8px; border-bottom:1px solid var(--line-strong); white-space:nowrap; }
.tbl td{ padding:9px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.tbl td:first-child{ white-space:normal; min-width: 120px; }
.tbl tr.flag td{ background: var(--red-soft); }

/* heatmap */
.heat-wrap{ overflow-x:auto; -webkit-overflow-scrolling: touch; }
.heat{ display:flex; flex-direction:column; gap:3px; min-width: 560px; }
.heat-row{ display:grid; grid-template-columns: 38px repeat(24, 1fr); gap:3px; align-items:center; }
.heat-hours span{ font-size:10px; color: var(--text-faint); text-align:center; }
.heat-day{ font-size:11.5px; color: var(--text-dim); }
.heat-cell{ height:20px; border-radius:4px; background: color-mix(in srgb, var(--teal) calc(var(--a) * 100%), var(--surface-2)); }

/* inventory */
.sup-group{ margin-bottom:12px; }
.sup-head{ display:flex; justify-content:space-between; gap:10px; padding:8px 0 4px; border-bottom:1px solid var(--line-strong); font-size:13.5px; }
.count-row{ display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); }
.count-row input{ width:84px; background: var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:8px 10px; font-size:15px; text-align:center; color: var(--text); }
.rc-rows{ display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.rc-row, .zone-row{ display:grid; grid-template-columns: 1fr 80px 100px 40px; gap:8px; align-items:center; }
.zone-row{ grid-template-columns: 1fr 100px 40px; }
.rc-row select, .rc-row input, .zone-row input, .audit-filters select, .audit-filters input, .date-input, .pos-split select, .pos-split input, .pos-disc input{
  background: var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:9px 10px; font-size:14px; color: var(--text); min-width:0; font-family: inherit;
}
.audit-filters{ display:grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap:8px; margin-bottom:10px; }
.day-picks{ display:flex; flex-wrap:wrap; gap:6px; }
.day-pick{ position:relative; }
.day-pick input{ position:absolute; left:0; top:0; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
.day-pick span{ display:inline-block; padding:8px 12px; border-radius:99px; border:1px solid var(--line); background: var(--surface-2); font-size:13px; font-weight:600; color: var(--text-dim); cursor:pointer; }
.day-pick input:checked + span{ background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.day-pick input:focus-visible + span{ outline:2px solid var(--teal); outline-offset:2px; }
.cash-result .totals{ margin:0; }
/* Floating save button (not a full-width bar): the Settings tab is one long form, so a
   full-width sticky bar at its end stays glued near the viewport bottom for nearly the
   entire scroll and permanently covers whatever section is passing underneath (e.g. the
   "+ Agregar zona" link). A small corner FAB -- same pattern as .cart-fab -- covers far
   less of the page while staying just as reachable. */
.sticky-save{ position: fixed; z-index: 45; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); margin-top:0; display:flex; }
.sticky-save .btn{ box-shadow: 0 18px 36px -12px rgba(0,0,0,0.5); border-radius:999px; padding:13px 22px; }
.scan-video{ width:100%; max-height: 60vh; border-radius: var(--radius-md); background:#000; object-fit: cover; }

/* point of sale */
.pos-layout{ display:grid; grid-template-columns: minmax(0, 1fr) 380px; gap:16px; align-items:start; }
.pos-search{ display:flex; gap:8px; }
.pos-search .search-field{ flex:1; }
.pos-search .lbl{ margin-left:4px; }
.pos-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap:10px; }
.pos-tile{ position:relative; display:flex; flex-direction:column; gap:4px; text-align:left; padding:8px; border-radius: var(--radius-md); background: var(--surface); border:1px solid var(--line); color: var(--text); box-shadow: var(--shadow); transition: transform .12s ease; min-height: 150px; }
.pos-tile:active{ transform: scale(.97); }
.pos-tile.out{ opacity:.5; }
.pos-tile .pimg{ width:100%; aspect-ratio: 4/3; object-fit:cover; border-radius:9px; flex-shrink:0; }
.pos-tile .pimg.ph{ height:auto; } /* .ph's height:100% (meant for a sized wrapper like .pcard-media) would otherwise
  win over aspect-ratio here, since .pos-tile has no fixed height -- making the placeholder tile's photo box taller
  than a real photo's and squeezing (clipping) the two-line name below it. */
.pos-name{ font-weight:600; font-size:13px; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient: vertical; overflow:hidden; flex-shrink:0; }
.pos-meta{ display:flex; justify-content:space-between; gap:6px; font-size:12px; color: var(--text-dim); margin-top:auto; }
.pos-meta b{ color: var(--text); font-variant-numeric: tabular-nums; }
.pos-count{ position:absolute; top:6px; right:6px; min-width:24px; height:24px; padding:0 6px; border-radius:99px; background: var(--amber); color: var(--on-amber); font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow); }
.pos-tile .hidden-tag{ position:absolute; top:6px; left:6px; }
.pos-ticket{ position: sticky; top: 12px; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: calc(100vh - 24px); overflow-y:auto; }
.pos-inner{ padding:16px; display:flex; flex-direction:column; gap:12px; }
.pos-head{ display:flex; justify-content:space-between; align-items:center; }
.pos-bar{ display:none; }
.pos-lines{ display:flex; flex-direction:column; }
.pos-line{ display:grid; grid-template-columns: 1fr auto auto; gap:8px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line); }
.pos-line-main{ min-width:0; }
.pos-disc{ grid-column: 1 / -1; display:grid; grid-template-columns: 110px 1fr; gap:8px; }
.pos-empty{ padding: 18px 0; text-align:center; }
.pos-pay{ display:flex; flex-direction:column; gap:10px; }
.pos-quick{ display:flex; flex-wrap:wrap; gap:8px; }
.pos-splits{ display:flex; flex-direction:column; gap:8px; }
.pos-split{ display:grid; grid-template-columns: 1fr 110px 40px; gap:8px; align-items:center; }
.pos-rest{ font-weight:600; font-size:13.5px; color: var(--teal); }

/* mobile bottom navigation (admin) */
.bottom-nav{ display:none; }
.bottom-nav button{ position:relative; flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 2px 6px; background:none; border:none; color: var(--text-faint); font-size:11px; font-weight:600; min-height:56px; }
.bottom-nav button svg{ width:23px; height:23px; }
.bottom-nav button.on{ color: var(--teal); }
.nav-badge{ position:absolute; top:4px; left:calc(50% + 6px); min-width:18px; height:18px; padding:0 5px; border-radius:99px; background: var(--red); color:#fff; font-size:11px; font-style:normal; display:flex; align-items:center; justify-content:center; }
.more-list{ display:flex; flex-direction:column; }
.more-item{ display:block; text-align:left; padding:16px 4px; border:none; border-bottom:1px solid var(--line); background:none; color: var(--text); font-size:16px; font-weight:600; text-decoration:none; }
.more-item.on{ color: var(--teal); }

@media (max-width: 900px){
  /* minmax(0,1fr), not 1fr: a plain 1fr track can't shrink below its content's min-content width, so a long
     row of category chips (one per product category) stretched the whole Caja page to thousands of px wide. */
  .pos-layout{ grid-template-columns: minmax(0, 1fr); }
  .pos-catalog{ min-width:0; }
}
@media (max-width: 720px){
  /* inputs at 16px so iOS does not zoom in on focus */
  input, select, textarea, .field input, .field select, .field textarea, .coupon-row input{ font-size:16px !important; }
  body.admin-mode #adminTabs{ display:none; }
  body.admin-mode .bottom-nav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:300;
    background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top:1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.admin-mode .wrap{ padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.admin-mode .brand-tag{ display:none; }
  body.admin-mode .toasts{ bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .audit-filters{ grid-template-columns: 1fr 1fr; }
  .rc-row{ grid-template-columns: 1fr 64px 84px 36px; }
  .pos-grid{ grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap:8px; }
  .pos-tile{ min-height: 132px; padding:6px; }
  .pos-search .lbl{ display:none; }
  /* the ticket becomes a bar above the bottom navigation that expands into a sheet */
  .pos-ticket{ position:fixed; left:8px; right:8px; top:auto; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index:250;
    max-height:none; border-radius: 18px; overflow:hidden; box-shadow: var(--shadow-win); }
  .pos-ticket .pos-inner{ display:none; }
  .pos-bar{ display:flex; width:100%; align-items:center; gap:10px; padding:14px 16px; border:none; background: var(--amber); color: var(--on-amber); font-size:15px; font-weight:600; }
  .pos-bar b{ font-family: var(--font-display); font-size:17px; }
  .pos-bar-cta{ margin-left:auto; font-size:13px; opacity:.9; }
  .pos-ticket.open{ top: calc(8px + env(safe-area-inset-top, 0px)); display:flex; flex-direction:column; }
  .pos-ticket.open .pos-bar{ background: var(--surface-2); color: var(--text); }
  .pos-ticket.open .pos-inner{ display:flex; overflow-y:auto; flex:1; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
  body.admin-mode .pos-layout{ padding-bottom: 70px; }
  .sticky-save{ bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .prow{ flex-wrap:wrap; }
  /* Force the name column to keep a real minimum width, so the stepper + icon buttons wrap onto their own
     line instead of squeezing the name down to one or two letters (min-width:0 from the base rule lets it
     shrink to nothing, which never triggers a wrap since nothing technically "overflows"). */
  .prow-main{ min-width: 140px; }
  .prow-side{ margin-left:auto; }
}
@media (display-mode: standalone){
  .topbar{ padding-top: 0; }
}

/* ---------- Mandatory login gate (storefront requires an account) ---------- */
/* body.auth-gate is set while a signed-out, non-admin visitor is looking at the store: the login window
   stays open and can't be dismissed (see closeWin in app.js), so its own close button is hidden, and the
   store underneath is hidden too so nothing shows or scrolls behind the gate. */
body.auth-gate #storeView, body.auth-gate #cartFab{ visibility:hidden; }
body.auth-gate #win-login .win-bar [data-close]{ display:none; }

/* ---------- Storefront pages: Inicio / Tienda / Calculadora ---------- */
.store-tabs{ display:flex; gap:6px; margin: 0 0 14px; padding:4px; border-radius:999px; background: var(--surface-glass); border:1px solid var(--line); width:max-content; max-width:100%; }
.store-tabs button{ border:none; background:none; padding:8px 16px; border-radius:999px; font-weight:600; font-size:14px; color: var(--text-dim); }
.store-tabs button.on{ background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0,0,0,0.2); }
.store-nav{ display:none; }
.store-nav button{ position:relative; flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 2px 6px; background:none; border:none; color: var(--text-faint); font-size:11px; font-weight:600; min-height:56px; }
.store-nav button svg{ width:23px; height:23px; }
.store-nav button.on{ color: var(--blue); }
.hero-card{ position:relative; overflow:hidden; border-radius: var(--radius-lg); color:#fff; margin-bottom:16px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(120,190,255,0.45), transparent 55%), linear-gradient(135deg, #0a2350 0%, #154a9c 55%, #2f7fd6 100%);
  box-shadow: var(--shadow); }
.hero-inner{ padding: 30px 22px 26px; max-width: 640px; }
.hero-card h1{ margin:0; font-family: var(--font-display); font-size: clamp(26px, 6.5vw, 40px); line-height:1.12; letter-spacing:-0.02em; }
.hero-card p{ margin:10px 0 0; font-size:15px; line-height:1.5; color: rgba(255,255,255,0.86); }
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.hero-btn{ background:#fff; color:#0a2350; font-weight:700; padding:12px 22px; border-radius:999px; border:none; }
.hero-btn-ghost{ background: rgba(255,255,255,0.12); color:#fff; font-weight:600; padding:12px 18px; border-radius:999px; border:1px solid rgba(255,255,255,0.45); }
.highlights{ display:grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap:0; margin-bottom:18px; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; }
.highlights > div{ text-align:center; padding:14px 8px; }
.highlights > div + div{ border-left:1px solid var(--line); }
.highlights b{ display:block; font-family: var(--font-display); font-size:20px; color: var(--blue); }
.highlights span{ font-size:12.5px; color: var(--text-dim); }
.home-sec{ margin: 22px 0; }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.sec-head h2{ margin:0; font-family: var(--font-display); font-size:22px; letter-spacing:-0.01em; }
.sec-head p{ margin:3px 0 0; font-size:13.5px; color: var(--text-dim); }
.ann-row{ display:grid; grid-auto-flow:column; grid-auto-columns:100%; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; scrollbar-width:none; border-radius: var(--radius-lg); }
.ann-row::-webkit-scrollbar{ display:none; }
.ann-card{ scroll-snap-align:start; min-height:132px; padding:20px; border-radius: var(--radius-lg); color:#fff; display:flex; flex-direction:column; gap:6px; justify-content:center; }
.ann-card h3{ margin:0; font-family: var(--font-display); font-size:20px; }
.ann-card p{ margin:0; font-size:14px; line-height:1.45; color: rgba(255,255,255,0.9); }
.ann-btn{ align-self:flex-start; margin-top:8px; background: rgba(255,255,255,0.18); color:#fff; border:1px solid rgba(255,255,255,0.45); border-radius:999px; padding:8px 14px; font-weight:600; font-size:13px; }
.ann-0{ background: linear-gradient(135deg, #0f766e, #14b8a6); }
.ann-1{ background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.ann-2{ background: linear-gradient(135deg, #7c2d12, #ea580c); }
.ann-3{ background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.ann-dots{ display:flex; justify-content:center; gap:6px; margin-top:8px; }
.ann-dots i{ width:7px; height:7px; border-radius:99px; background: var(--line-strong); transition: width .2s, background .2s; }
.ann-dots i.on{ width:18px; background: var(--blue); }
.hscroll{ display:grid; grid-auto-flow:column; grid-auto-columns: minmax(200px, 240px); gap:12px; overflow-x:auto; scroll-snap-type:x proximity; padding: 2px 2px 10px; scrollbar-width:none; }
.hscroll::-webkit-scrollbar{ display:none; }
.hcard{ scroll-snap-align:start; text-align:left; padding:0; border:1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow:hidden; display:flex; flex-direction:column; color: inherit; }
.hcard.out{ opacity:.7; }
.hcard-media{ position:relative; display:block; aspect-ratio: 4/3; overflow:hidden; }
.hcard-media .pimg{ width:100%; height:100%; object-fit:cover; }
.hcard-body{ display:flex; flex-direction:column; gap:3px; padding:10px 12px 12px; }
.hcard-name{ font-family: var(--font-display); font-weight:600; font-size:15px; line-height:1.3; }
.hcard-opts{ font-size:12px; color: var(--text-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hcard-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
.stock-dot{ font-size:12px; font-weight:600; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.stock-dot::before{ content:""; width:7px; height:7px; border-radius:99px; background: currentColor; }
.stock-dot.ok{ color: var(--teal); } .stock-dot.out{ color: var(--text-faint); }
.cat-tiles{ display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
.cat-tile{ display:grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap:10px; align-items:center; text-align:left; padding:8px; border-radius: var(--radius-md); border:1px solid var(--line); background: var(--surface); color:inherit; }
.cat-tile-media{ grid-row: 1 / 3; width:48px; height:48px; border-radius:10px; overflow:hidden; display:block; }
.cat-tile-media .pimg{ width:100%; height:100%; object-fit:cover; }
.cat-tile-media .ph span{ font-size:20px; }
.cat-tile-name{ font-weight:600; font-size:14px; line-height:1.2; }
.cat-tile-n{ font-size:12px; color: var(--text-dim); }
.home-foot{ text-align:center; font-size:14px; color: var(--text-dim); padding: 10px 0 20px; }
.home-foot a{ color: var(--blue); font-weight:600; }
.calc-page{ max-width: 640px; }
@media (max-width: 720px){
  body:not(.admin-mode):not(.auth-gate) .store-tabs{ display:none; }
  body:not(.admin-mode):not(.auth-gate) .store-nav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:300;
    background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top:1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body:not(.admin-mode):not(.auth-gate) .cart-fab{ display:none !important; }
  body:not(.admin-mode):not(.auth-gate) .wrap{ padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body:not(.admin-mode):not(.auth-gate) .toasts{ bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero-inner{ padding: 24px 18px 22px; }
}
.ann-edit{ display:grid; gap:6px; padding:10px; border:1px solid var(--line); border-radius: var(--radius-md); }
.ann-edit input, .ann-edit select{ width:100%; background: var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:9px 10px; font-size:14px; color: var(--text); }
.ann-edit-row{ display:flex; gap:6px; align-items:center; }
.ann-edit-row select{ flex:1; min-width:0; }
.hl-row{ grid-template-columns: 1fr 1.4fr !important; }
.hcard-foot{ flex-wrap:wrap; row-gap:4px; }
.hcard-foot .price{ white-space:nowrap; font-size:16px; }
.po-rows{ display:grid; gap:10px; }
.po-row{ display:grid; gap:6px; padding:10px; border:1px solid var(--line); border-radius: var(--radius-md); }
.po-row-top{ display:flex; gap:8px; align-items:center; }
.po-row-top select{ flex:1; min-width:0; }
.po-row-fields{ display:grid; grid-template-columns: 130px 1fr 1fr; gap:8px; }
.po-row-fields.box{ grid-template-columns: 130px 1fr 1fr 1fr; }
.po-row select, .po-row input{ width:100%; min-width:0; background: var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:9px 10px; font-size:14px; color: var(--text); }
.po-row-hint{ font-size:12.5px; color: var(--text-dim); min-height:1em; }
.po-row-hint b{ color: var(--text); }
.po-card-totals{ font-size:13px; color: var(--text-dim); margin-top:6px; }
@media (max-width: 520px){ .po-row-fields, .po-row-fields.box{ grid-template-columns: 1fr 1fr; } }
.po-f{ display:grid; gap:3px; font-size:11.5px; color: var(--text-dim); font-weight:600; }
.maint-list{ display:grid; gap:10px; }
.maint-task{ display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius: var(--radius-md); }
.maint-head{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.maint-head .tag{ flex:0 0 auto; }
.maint-preview{ max-height:260px; overflow:auto; font-size:13px; display:grid; gap:3px; padding:8px 10px; background: var(--surface-2); border-radius:10px; }
.update-banner{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.update-banner[hidden]{ display:none; }
.restart-overlay{ position:fixed; inset:0; z-index:3000; background: rgba(10,20,35,0.55); display:flex; align-items:center; justify-content:center; padding:16px; }
.restart-box{ background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding:24px 22px; display:grid; gap:8px; justify-items:center; text-align:center; max-width:340px; box-shadow: var(--shadow-win); }
.restart-box span{ font-size:14px; color: var(--text-dim); }
.spinner{ width:34px; height:34px; border-radius:99px; border:3px solid var(--line); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }
/* Workflow and accessibility enhancements */
.visually-hidden:focus{ position:fixed !important; top:12px; left:12px; width:auto; height:auto; clip:auto; overflow:visible; padding:12px 18px; z-index:10000; color:#fff; background:#102440; border:2px solid #67e8f9; border-radius:10px; }
#main:focus{ outline:none; }
.load-status,.cart-review,#draftStatus{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.load-status span,#draftStatus span{ flex:1; min-width:180px; }
.cart-review{ display:block; margin-bottom:14px; border:1px solid var(--amber); background:var(--amber-soft); }
.cart-review strong{ color:var(--text); font-size:16px; }
.cart-review p{ margin:8px 0 12px; line-height:1.6; }
.cart-review:focus{ outline:2px solid var(--accent-2); outline-offset:3px; }
.password-toggle{ min-height:44px; text-align:left; align-self:flex-start; }
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{ border-color:var(--red) !important; }
.entry-info h1{ margin:0 0 8px; font:600 clamp(22px,4vw,30px) var(--font-head,var(--font-body)); color:var(--text); }
.entry-info p{ color:var(--text-dim); font-size:15px; line-height:1.6; margin:8px 0; }
.entry-info a{ display:inline-flex; min-height:44px; align-items:center; color:var(--accent-2); }
.add-label{ margin-left:5px; font-size:13px; font-weight:600; }
@media (pointer:coarse), (max-width:720px){
  .icon-btn,.stepper button,.stepper.sm button,.pos-line-btns .pos-rm{ min-width:44px !important; min-height:44px !important; }
  .pos-money input,.pos-sup select{ min-height:44px; font-size:16px !important; }
  .win-bar .icon-btn{ min-width:44px !important; min-height:44px !important; }
  .password-toggle,.link-btn{ min-height:44px; }
}
@media (prefers-reduced-motion:reduce){ .load-status,.cart-review{ scroll-behavior:auto; } }
@media (pointer:coarse), (max-width:720px){
  .btn,.chip,.segmented button,.choice-group label,.add-btn{ min-height:44px; }
  body:not(.admin-mode) .controls-row{ flex-wrap:wrap; }
  body:not(.admin-mode) .controls-row .search-field{ flex-basis:100%; }
  body:not(.admin-mode) .controls-row #sortSelect{ width:100%; }
}
