* { box-sizing: border-box; }

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #253238;
  background: #f3f7f5;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(91, 186, 130, 0.18), transparent 42%),
    #f3f7f5;
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 22px 16px 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark, .profile-fallback {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 67, 48, 0.08);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 30px;
}

.eyebrow, .label, .sub-label {
  color: #5b7466;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow { margin: 0 0 2px; }
.label { margin: 0 0 7px; }

h1 { margin: 0; font-size: 22px; line-height: 1.35; }
h2 { margin: 0; }

.profile-card, .hero-card, .status-card, .history-card, .error-card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(73, 114, 89, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 70, 51, 0.07);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-image, .profile-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.profile-image { object-fit: cover; }
.profile-fallback { font-size: 28px; background: #f1f6f3; }

.profile-card h2 { font-size: 21px; }
.subtext, .notice, .status-time, .history-note {
  color: #78867e;
  font-size: 13px;
}

.subtext { margin: 5px 0 0; }
.hero-card h2 { font-size: 26px; }
.notice { margin: 10px 0 0; font-size: 14px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 { font-size: 19px; }

.status-badge {
  border-radius: 999px;
  padding: 6px 10px;
  background: #edf4ef;
  color: #587063;
  font-size: 12px;
  font-weight: 700;
}

.status-main { display: flex; align-items: center; gap: 14px; }

.status-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #f5f8f6;
  font-size: 29px;
}

.status-text { margin: 0; font-size: 17px; font-weight: 800; }
.status-time { margin: 5px 0 0; }

.history-list {
  overflow: hidden;
  border: 1px solid #e7ede9;
  border-radius: 14px;
}

.history-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 8px;
  padding: 13px 12px;
  font-size: 14px;
}

.history-row + .history-row { border-top: 1px solid #e7ede9; }
.history-row span:first-child { font-weight: 800; }
.history-note { margin: 12px 0 0; text-align: center; }

.error-card {
  border-color: #f0c8c8;
  background: #fff8f8;
}

.error-card h2 { color: #9c3131; font-size: 18px; }
.error-card p { margin: 8px 0 0; color: #7c4b4b; font-size: 14px; }

footer {
  padding-top: 10px;
  color: #809087;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

footer p { margin: 0; }

@media (max-width: 360px) {
  .app-shell { padding-inline: 12px; }
  .profile-card, .hero-card, .status-card, .history-card, .error-card { padding: 17px; }
  .history-row { font-size: 13px; }
}
