* {
    box-sizing: border-box;
  }
  
  html {
    -webkit-text-size-adjust: 100%;
  }
  
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 16px;
    background: #f7f4ef;
    color: #2f2a24;
    text-align: center;
  }
  
  /* ---------- Typography ---------- */
  
  h1 {
    margin: 24px 0;
    font-size: 30px;
  }
  
  h2 {
    margin: 0 0 18px;
  }
  
  h3 {
    margin: 0 0 16px;
  }
  
  /* ---------- Cards ---------- */
  
  .card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 18px;
    padding: 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  
  /* ---------- Forms ---------- */
  
  label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    text-align: left;
    font-weight: bold;
    color: #756f66;
    text-transform: uppercase;
    font-size: 14px;
  }
  
  input,
  select,
  textarea,
  button {
    width: 100%;
    min-height: 56px;
    font-size: 20px;
    padding: 14px;
    border-radius: 14px;
  }
  
  input,
  select,
  textarea {
    border: 1px solid #d8d0c5;
    background: white;
    color: #2f2a24;
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: #8d6b4f;
    box-shadow: 0 0 0 3px rgba(141,107,79,.15);
  }
  
  /* ---------- Buttons ---------- */
  
  button,
  .button {
    cursor: pointer;
    border: none;
    background: #4b2f2a;
    color: white;
    font-weight: bold;
    transition: .2s;
  }
  
  button:hover,
  .button:hover {
    background: #603b35;
  }
  
  .button {
    display: block;
    width: 100%;
    margin: 14px auto;
    padding: 20px;
    border-radius: 16px;
    font-size: 22px;
    text-decoration: none;
  }
  
  .secondary {
    background: white;
    color: #4b2f2a;
    border: 1px solid #d8d0c5;
  }
  
  .secondary:hover {
    background: #f3efe9;
  }
  
  /* ---------- Status ---------- */
  
  #status {
    margin-top: 16px;
    padding: 12px;
    background: #eee7dc;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
  }
  
  /* ---------- Result Cards ---------- */
  
  .result {
    text-align: left;
    padding: 16px;
    margin-top: 12px;
    background: white;
    border: 1px solid #d8d0c5;
    border-radius: 14px;
  }
  
  /* ---------- Badges ---------- */
  
  .badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
  }
  
  .badge-awaiting {
    background: #f4d35e;
    color: #2f2a24;
  }
  
  .badge-weighed {
    background: #2f6b3f;
    color: white;
  }
  
  .badge-cancelled {
    background: #9b2f2f;
    color: white;
  }
  
  .badge-review {
    background: #c77d1a;
    color: white;
  }
  
  /* ---------- Modals ---------- */
  
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
  }
  
  .modal-content {
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .close-btn {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
  }
  
  /* ---------- Navigation ---------- */
  
  .menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #d8d0c5;
    border-radius: 12px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 10001;
  }
  
  .side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    padding: 20px;
    box-shadow: 3px 0 20px rgba(0,0,0,.25);
    transition: left .25s ease;
    z-index: 10000;
    overflow-y: auto;
  }
  
  .side-menu.open {
    left: 0;
  }
  
  .menu-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: left;
  }
  
  .menu-header small {
    display: block;
    margin-top: 6px;
    color: #756f66;
    font-size: 14px;
  }
  
  .side-menu button {
    margin-bottom: 10px;
  }
  
  /* ---------- Footer ---------- */
  
  .footer {
    margin-top: 30px;
    color: #666;
    font-size: 14px;
  }
  
  /* ---------- Mobile ---------- */
  
  @media (max-width: 480px) {
  
    body {
      padding: 12px;
    }
  
    h1 {
      font-size: 28px;
    }
  
    .card {
      padding: 16px;
    }
  
    .button,
    button {
      font-size: 20px;
    }
  
    .menu-button {
      width: 44px;
      height: 44px;
      font-size: 24px;
    }
  
    .side-menu {
      width: 280px;
    }
  }