:root {
  --bg: #0f1512;
  --surface: #171d1a;
  --surface-variant: #263029;
  --primary: #8ed4b6;
  --on-primary: #00201a;
  --text: #dfe4de;
  --text-muted: #9fb0a6;
  --error: #ffb4ab;
  --tertiary: #ffb877;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 64px;
}

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

.header .badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

.header p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 700;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--surface-variant);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}

input[type="text"]:focus {
  outline: 2px solid var(--primary);
}

button {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-variant);
}

.row:last-child {
  border-bottom: none;
}

.row .label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-variant);
  margin-top: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
}

.bar-fill.warn {
  background: var(--tertiary);
}

.bar-fill.over {
  background: var(--error);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.error-text {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
}

.back-link {
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 16px;
  display: inline-block;
}
