:root {
  --bg: #0b0f14;
  --card: #111826;
  --text: #e6edf3;
  --muted: rgba(230, 237, 243, 0.7);
  --border: rgba(230, 237, 243, 0.08);
  --primary: #2ea043;
  --primary2: #238636;
  --accent: #3b82f6;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 26px;
}

.header {
  padding: 6px 2px 14px;
}

.title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.card-title {
  font-weight: 700;
  font-size: 14px;
  color: rgba(230, 237, 243, 0.92);
}

textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 10px;
  resize: vertical;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

textarea:focus {
  border-color: rgba(46, 160, 67, 0.5);
}

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

.row-space {
  justify-content: space-between;
}

button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.primary {
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  border-color: rgba(46, 160, 67, 0.35);
  font-weight: 700;
}

.secondary {
  color: var(--muted);
}

.link {
  border: none;
  background: transparent;
  color: rgba(59, 130, 246, 0.95);
  padding: 6px 8px;
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.plan {
  margin-top: 10px;
}

.stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-k {
  color: var(--muted);
  font-size: 12px;
}

.stat-v {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.calendar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.weekdays {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.day {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 0;
  text-align: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  position: relative;
}

.day-plans {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-plan {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.day-plan-title {
  font-weight: 700;
}

.day-plan-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.day-scheduled-title {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.day.muted {
  opacity: 0.35;
  cursor: default;
}

.day.has {
  border-color: rgba(59, 130, 246, 0.35);
}

.dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.9);
}

.section {
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 10px;
}

.section-title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.items {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 1px solid var(--border);
  color: var(--muted);
}

.checked .check {
  background: rgba(46, 160, 67, 0.15);
  border-color: rgba(46, 160, 67, 0.4);
  color: rgba(46, 160, 67, 0.95);
}

.text {
  flex: 1;
  font-size: 14px;
  line-height: 1.25;
}

.toggle {
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: rgba(59, 130, 246, 0.95);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}

.toggle.danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: rgba(239, 68, 68, 0.95);
}

.danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: rgba(239, 68, 68, 0.95);
}
