* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f5f6f8;
  color: #222;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #06c755; /* LINE green */
  color: #fff;
  padding: 16px 20px;
}

.app-header h1 {
  margin: 0;
  font-size: 17px;
}

#app {
  flex: 1;
  padding: 20px;
}

.hidden {
  display: none;
}

.lead {
  font-size: 15px;
  margin: 0 0 14px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d5d8dc;
  border-radius: 8px;
  margin-top: 6px;
  background: #fff;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
}

.req {
  color: #e0523f;
  font-size: 11px;
  margin-left: 6px;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  background: #06c755;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary:disabled {
  background: #b7d9c4;
  cursor: not-allowed;
}

.btn-link {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: none;
  border: none;
  color: #06c755;
  font-size: 13px;
  cursor: pointer;
}

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.btn-week-nav {
  background: none;
  border: 1px solid #d5d8dc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
}

.btn-week-nav:disabled {
  color: #bbb;
  cursor: not-allowed;
}

.week-month-label {
  font-size: 14px;
  font-weight: bold;
}

.calendar-scroll {
  overflow-x: auto;
  border: 1px solid #e5e7ea;
  border-radius: 8px;
  background: #fff;
}

.calendar-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #eef0f2;
  text-align: center;
  padding: 6px 2px;
  white-space: nowrap;
}

.calendar-table .time-col {
  width: 46px;
  font-size: 11px;
  color: #555;
  background: #fafbfc;
}

.calendar-table thead th {
  background: #fafbfc;
  font-size: 11px;
  font-weight: normal;
  color: #555;
  line-height: 1.4;
  padding: 6px 1px;
}

.calendar-table thead th.is-today {
  color: #06c755;
  font-weight: bold;
}

.calendar-table .loading-cell {
  padding: 24px 0;
  color: #888;
}

.cal-cell {
  font-size: 14px;
}

.cal-cell.mark-ok {
  color: #06c755;
  cursor: pointer;
}

.cal-cell.mark-ok:active {
  background: #eafff0;
}

.cal-cell.mark-full {
  color: #d5d8dc;
}

.cal-cell.mark-na {
  color: #d5d8dc;
  background: #fafbfc;
}

.legend {
  margin-top: 10px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

.legend-mark {
  display: inline-block;
  width: 14px;
  margin-right: 2px;
}

.legend-mark.mark-ok {
  color: #06c755;
}

.legend-mark.mark-full,
.legend-mark.mark-na {
  color: #d5d8dc;
}

.done-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  border-radius: 50%;
  background: #06c755;
  color: #fff;
  font-size: 28px;
  margin: 20px auto;
}

.summary {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
}

.note {
  text-align: center;
  font-size: 12px;
  color: #888;
}

.error {
  color: #e0523f;
  font-size: 13px;
  margin-top: 12px;
}

.app-footer {
  padding: 10px 20px;
  font-size: 11px;
  color: #aaa;
  text-align: center;
}
