﻿      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
      }

      body {
        font-family:
          "One UI Sans",
          "SamsungOne",
          -apple-system,
          "SF Pro Display",
          "Segoe UI",
          system-ui,
          sans-serif;
        background: #f2f2f7;
        color: #1c1c1e;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
      }

      input,
      select,
      button,
      textarea {
        font: inherit;
        color: inherit;
      }

      button {
        cursor: pointer;
        border: none;
        background: none;
        transition:
          transform 0.3s ease-in-out,
          opacity 0.3s ease-in-out;
      }

      button:active {
        transform: scale(0.96);
        opacity: 0.8;
      }

      input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        appearance: none;
      }

      input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
      }

      .inp {
        border: none;
        border-bottom: 1.5px solid #d1d1d6;
        border-radius: 0;
        padding: 10px 0;
        font-size: 15px;
        outline: none;
        width: 100%;
        background: transparent;
        transition: border-color 0.2s ease;
      }

      .inp:focus {
        border-bottom-color: #007aff;
      }

      .lbl {
        font-size: 9px;
        font-weight: 600;
        color: #8e8e93;
        margin-bottom: 1px;
        letter-spacing: 0.2px;
        text-transform: uppercase;
      }

      .btn {
        padding: 16px 28px;
        border-radius: 24px;
        font-weight: 700;
        font-size: 16px;
        text-align: center;
        color: #fff;
        width: 100%;
        border: none;
        transition:
          transform 0.3s ease-in-out,
          box-shadow 0.3s ease-in-out;
      }

      .btn:active {
        transform: scale(0.96);
      }

      .page {
        display: none;
        flex: 1;
        flex-direction: column;
        overflow: visible !important;
      }

      .page.show {
        display: flex;
        animation: fadeSlideUp 0.3s ease-in-out;
      }

      @keyframes fadeSlideUp {
        from {
          opacity: 0;
          transform: translateY(12px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .card {
        background: #ffffff;
        margin: 8px 8px;
        border-radius: 24px;
        padding: 16px 12px;
        width: calc(100% - 16px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition:
          transform 0.3s ease-in-out,
          box-shadow 0.3s ease-in-out;
      }

      .card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      }

      .xbtn {
        min-width: 44px;
        height: 44px;
        border-radius: 50%;
        color: #ff3b30;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(255, 59, 48, 0.08);
        transition: background 0.15s ease;
      }

      .xbtn:active {
        background: rgba(255, 59, 48, 0.18);
      }

      .mbg {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        animation: fadeIn 0.3s ease-in-out;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      .mbg > div {
        animation: slideUp 0.3s ease-in-out;
      }

      @keyframes slideUp {
        from {
          opacity: 0;
          transform: translateY(24px) scale(0.95);
        }

        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      @keyframes pulse-red {
        0% {
          border-color: #ff3b30;
          box-shadow: 0 0 0 rgba(255, 59, 48, 0.2);
        }

        50% {
          border-color: #ff8c85;
          box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
        }

        100% {
          border-color: #ff3b30;
          box-shadow: 0 0 0 rgba(255, 59, 48, 0.2);
        }
      }

      .warn-box {
        border: 2px solid #ff3b30 !important;
        animation: pulse-red 2s infinite;
        background: #fff5f5 !important;
      }

      input[type="checkbox"] {
        width: 22px;
        height: 22px;
        cursor: pointer;
        border-radius: 6px;
        accent-color: #007aff;
      }

      .ing {
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 0px 8px;
        border-bottom: 1px solid #f2f2f7;
        width: 100%;
        background: #fff;
        box-sizing: border-box;
        min-height: 32px;
        flex-wrap: wrap;
      }

      .ing:active {
        background: #f8f8fa;
      }

      .ing .nm {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        color: #1c1c1e;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
      }

      .ing .lost {
        width: 32px;
        font-size: 9px;
        color: #8e8e93;
        text-align: center;
        flex-shrink: 0;
        position: relative;
        cursor: pointer;
      }

      .cook-chips-row {
        display: flex;
        gap: 4px;
        padding: 2px 8px 4px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-basis: 100%;
      }
      .cook-chips-row::-webkit-scrollbar {
        display: none;
      }
      .cook-chip {
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        border: 1px solid #d1d1d6;
        background: #f2f2f7;
        color: #8e8e93;
        transition: all 0.2s;
        flex-shrink: 0;
        user-select: none;
        -webkit-user-select: none;
      }
      .cook-chip.active {
        background: #007aff;
        color: #fff;
        border-color: #007aff;
      }

      .ing input {
        width: 32px;
        flex-shrink: 0;
        font-size: 12px;
        padding: 0;
        border: 1px solid transparent;
        background: transparent;
        text-align: center;
        outline: none;
        border-radius: 4px;
        color: #1c1c1e;
        font-weight: 400;
      }

      .ing input:focus {
        border-color: #007aff;
        background: #fafafa;
      }

      .ing .cv {
        width: 36px;
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 500;
        text-align: right;
        color: #1c1c1e;
      }

      .ing .cv.off {
        color: #8e8e93;
      }

      .ing-unit {
        width: 22px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .ing-unit span {
        font-size: 9px;
        color: #8e8e93;
        line-height: 1;
      }

      .ing-unit button {
        font-size: 9px;
        color: #007aff;
        font-weight: 700;
        background: none;
        border: none;
        padding: 2px;
      }

      .ing-hdr {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 6px 4px 4px;
        font-size: 7px;
        font-weight: 600;
        color: #8e8e93;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        background: #fafafa;
        border-bottom: 1px solid #f2f2f7;
      }

      /* Search dropdown */
      .srch-wrap {
        position: relative;
      }

      .srch-dd {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e5e5ea;
        border-radius: 0 0 24px 24px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 10;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        display: none;
      }

      .srch-dd.open {
        display: block;
      }

      .srch-dd button {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        font-size: 14px;
        border-bottom: 1px solid #f2f2f7;
        color: #1c1c1e;
        min-height: 48px;
      }

      .srch-dd button:active {
        background: #f2f2f7;
      }

      .srch-dd .pf-tag {
        color: #e37400;
        font-weight: 500;
        font-size: 11px;
      }

      /* Login / Landing */
      .sec-hdr {
        font-size: 11px;
        font-weight: 600;
        color: #007aff;
        padding: 20px 24px 8px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
      }

