html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: #f2f2f7;
  touch-action: pan-y;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  padding: 16px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  margin: 8px 0 0 0;
  font-size: 28px;
}

.page-icon {
  font-size: 40px;
  margin-bottom: 4px;
}

.cards {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  flex: 1;
  text-align: center;
}

.number { font-size: 28px; font-weight: bold; margin: 8px 0; }

.btn {
  display: block;
  background: #007aff;
  color: white;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  width: 100%;
  max-width: 400px;
  font-size: 17px;
  margin: 12px auto;
  box-sizing: border-box;
}

input, button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.total { margin: 20px 0; font-size: 18px; }

select {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.back-btn {
  display: inline-block;
  background: #f2f2f7;
  color: #007aff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 16px;
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #007aff;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}