* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f4f1ea;
  color: #222;
}

.app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0px 18px;
}

h1 {
  margin: 12px 0 18px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.04em;
}

.today {
  text-align: center;
  margin-bottom: 22px;
  font-weight: 600;
}

.current-date {
  font-size: 22px;
  margin-bottom: 4px;
  color: #333;
}

.current-clock {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.card {
  background: #fff;
  border-radius: 22px;
  padding: 24px 20px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

select {
  width: 100%;
  padding: 15px 14px;
  font-size: 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
}

.button-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  width: 100%;
  padding: 22px 8px;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.clock-in {
  background: #1f8f4d;
}

.clock-out {
  background: #d64035;
}

.message {
  min-height: 54px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  background: #f1f1f1;
}

.message.success {
  background: #e5f6ea;
  color: #126b34;
}

.message.error {
  background: #fdeaea;
  color: #b3261e;
}
.note-label {
  margin-top: 18px;
}

.note {
  width: 100%;
  padding: 12px 14px;
  font-size: 17px;
  border: 2px solid #ddd;
  border-radius: 12px;
  resize: vertical;
  font-family: inherit;
  background: #fff;
}
.device-info {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: #555;
}

.device-id-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    /*background: #f1f1f1;*/
    font-size: 13px;
    word-break: break-all;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 360px) {
  h1 {
    font-size: 16px;
  }

  .btn {
    font-size: 23px;
    padding: 20px 6px;
  }
}
