* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: #F2F3F5;
  color: #1F2A44;
}
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
}
header.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
header.page-header h1 {
  font-size: 20px;
  margin: 0;
}
a.back-link, a.settings-link {
  color: #2F6FED;
  text-decoration: none;
  font-size: 14px;
}
.card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dashboard-grid .card {
  margin-bottom: 0;
  padding: 12px 14px;
}
.dashboard-grid .card .value {
  font-size: 17px;
}
.dashboard-grid .umbrella-line,
.dashboard-grid .schedule-item,
.dashboard-grid .news-item {
  font-size: 12.5px;
}
.card h2 {
  font-size: 14px;
  color: #5A6373;
  margin: 0 0 8px;
  font-weight: 600;
}
.card .value {
  font-size: 22px;
  font-weight: 700;
  color: #1F2A44;
}
.card .sub {
  font-size: 13px;
  color: #5A6373;
  margin-top: 4px;
}
.card .status-ok { color: #2EA06C; }
.card .status-warn { color: #C97A1A; }
.card .status-error { color: #C0392B; }
.news-item {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #F2F3F5;
  color: #1F2A44;
  text-decoration: none;
}
.news-item:last-child { border-bottom: none; }
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #F2F3F5;
  font-size: 14px;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item .days { font-weight: 700; color: #2F6FED; }

.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.update-item {
  padding: 10px 0;
  border-bottom: 1px solid #F2F3F5;
}
.update-item:last-child { border-bottom: none; }
.update-item .update-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2A44;
}

.umbrella-line {
  padding: 6px 0;
  border-bottom: 1px solid #F2F3F5;
  font-size: 15px;
}
.umbrella-line:last-child { border-bottom: none; }
.umbrella-line .loc {
  display: block;
  color: #1F2A44;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.umbrella-line .status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 2px;
}
.umbrella-line .status { font-weight: 700; }
.umbrella-line .pct { font-size: 12px; color: #5A6373; }

form.settings-form label {
  display: block;
  font-size: 13px;
  color: #5A6373;
  margin: 14px 0 6px;
}
form.settings-form input[type="text"],
form.settings-form input[type="date"],
form.settings-form input[type="time"],
form.settings-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #D5D9E0;
  font-size: 15px;
  background: #fff;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #2F6FED;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
.btn.secondary {
  background: #fff;
  color: #C0392B;
  border: 1px solid #C0392B;
}
.btn.small {
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 0;
}
.footer-nav {
  margin-top: 24px;
  text-align: center;
}
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.mode-toggle button {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #D5D9E0;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.mode-toggle button.active {
  background: #2F6FED;
  color: #fff;
  border-color: #2F6FED;
}
.schedule-list-item {
  border: 1px solid #E5E8ED;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.schedule-list-item .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.msg { font-size: 13px; margin-top: 8px; }
.msg.error { color: #C0392B; }
.msg.ok { color: #2EA06C; }
