:root {
  --primary: #667eea;
  --primary-dark: #5a6fd6;
  --primary-light: #f0f0ff;
  --accent: #764ba2;
  --danger: #ef4444;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #333333;
  --text-light: #888888;
  --text-muted: #cccccc;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== Login ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.login-banner { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-banner .circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06); }
.login-banner .c1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.login-banner .c2 { width: 250px; height: 250px; bottom: -60px; left: -40px; }
.login-banner .c3 { width: 150px; height: 150px; top: 40%; left: 60%; }
.login-card { position: relative; z-index: 1; text-align: center; color: white; padding: 40px; }
.login-title { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.login-subtitle { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.login-input-wrap { display: flex; gap: 10px; justify-content: center; }
.login-input {
  padding: 12px 20px; border: 2px solid rgba(255,255,255,0.25); border-radius: 14px;
  background: rgba(255,255,255,0.1); color: white; font-size: 16px; outline: none; width: 220px;
  backdrop-filter: blur(8px);
}
.login-input:focus { border-color: rgba(255,255,255,0.6); }
.login-input::placeholder { color: rgba(255,255,255,0.4); }
.login-btn {
  padding: 12px 28px; border: none; border-radius: 14px; background: white; color: var(--primary);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.login-btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.login-error { color: #fca5a5; font-size: 13px; margin-top: 12px; min-height: 20px; }

/* ===== Header ===== */
header { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.header-main { padding: 14px 24px; }
.header-top { display: flex; align-items: center; justify-content: space-between; }
header h1 { font-size: 20px; font-weight: 700; color: white; }
.header-subtitle { font-size: 11px; color: rgba(255,255,255,0.6); margin-left: 8px; font-weight: 400; }
.header-actions { position: relative; }
.header-menu-btn {
  width: 36px; height: 36px; border: none; border-radius: 8px; background: transparent;
  color: rgba(255,255,255,0.8); font-size: 20px; cursor: pointer;
}
.header-menu-btn:hover { background: rgba(255,255,255,0.15); }
.header-dropdown {
  display: none; position: fixed; top: 48px; right: 12px; background: white;
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); min-width: 160px; overflow: hidden; z-index: 10001;
}
.header-dropdown.open { display: block; }
.dropdown-mask { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.1); }
.dropdown-mask.open { display: block; }
.header-dropdown button {
  display: block; width: 100%; padding: 12px 18px; border: none; background: none;
  text-align: left; font-size: 14px; color: #555; cursor: pointer;
}
.header-dropdown button:hover { background: #f5f5f5; }
.dd-danger { color: var(--danger) !important; }
.dd-danger:hover { background: #fef2f2 !important; }

/* ===== Tabs ===== */
.tabs {
  display: flex; overflow-x: auto; padding: 0 16px; gap: 0;
  scrollbar-width: none; background: rgba(255,255,255,0.1);
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 8px 14px; margin: 6px 3px; background: rgba(255,255,255,0.2);
  border: none; border-radius: 8px; color: rgba(255,255,255,0.7);
  font-size: 13px; white-space: nowrap; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.tab-btn:hover { background: rgba(255,255,255,0.35); color: white; }
.tab-btn.active { background: rgba(255,255,255,0.5); color: white; font-weight: 600; }

/* ===== Sub tabs ===== */
.sub-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.sub-tab {
  padding: 8px 18px; border-radius: 20px; border: 1.5px solid var(--border); background: white;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.sub-tab:hover { border-color: var(--primary); color: var(--primary); }
.sub-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Main content ===== */
main { padding: 24px; max-width: 900px; margin: 0 auto; }

/* ===== Common ===== */
.btn { padding: 8px 18px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn-accent { background: var(--primary); color: white; }
.btn-accent:hover { background: var(--primary-dark); }
.btn-light { background: #f5f5f5; color: var(--text-light); }
.btn-light:hover { background: #eee; }
.btn-close { background: #eee; color: #666; }
.btn-close:hover { background: #ddd; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h3 { font-size: 16px; color: #444; }

.empty-hint { text-align: center; color: var(--text-muted); padding: 30px; font-size: 13px; }

.remove-btn {
  width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,0.06);
  color: #999; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.remove-btn:hover { background: var(--danger); color: white; }

.date-label { font-size: 13px; color: var(--text-light); }

/* ===== Capture / Input ===== */
.capture-card { background: white; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.capture-row { display: flex; gap: 10px; align-items: flex-start; }
.capture-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; resize: none; min-height: 40px; font-family: inherit;
}
.capture-input:focus { border-color: var(--primary); }
.capture-btn {
  width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--primary);
  color: white; font-size: 18px; cursor: pointer; flex-shrink: 0;
}

.tag-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag-btn {
  padding: 4px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: white;
  font-size: 14px; cursor: pointer;
}
.tag-btn.active { border-color: var(--primary); background: var(--primary-light); }

/* ===== Toolbar ===== */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 120px; padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 13px; outline: none;
}
.search-input:focus { border-color: var(--primary); }
.toggle-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); cursor: pointer; }
.filter-row { display: flex; gap: 4px; flex-wrap: wrap; width: 100%; }
.filter-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: white;
  font-size: 12px; cursor: pointer;
}
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== Notes ===== */
.notes-layout { }
.note-card { background: white; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.note-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.note-tag { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.note-time { font-size: 11px; color: var(--text-muted); }
.note-text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; cursor: pointer; }
.note-text:hover { color: var(--primary); }
.note-actions { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.note-action-btn { background: none; border: none; font-size: 12px; color: var(--text-light); cursor: pointer; }
.note-action-btn:hover { color: var(--primary); }
.note-action-btn.danger:hover { color: var(--danger); }
.note-edit { margin-top: 8px; }
.edit-textarea { width: 100%; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; }
.edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ===== Tasks / Todos ===== */
.tasks-layout { }
.inbox-card { background: white; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.inbox-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.inbox-item-actions { display: flex; gap: 4px; }
.inbox-item-actions button { background: none; border: none; font-size: 14px; cursor: pointer; padding: 2px 4px; }

.quadrant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quadrant {
  background: white; border-radius: 14px; padding: 16px; min-height: 150px;
  box-shadow: var(--shadow); border-top: 4px solid; display: flex; flex-direction: column;
}
.quadrant-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.quadrant-desc { font-size: 11px; color: #aaa; margin-bottom: 12px; }
.q-urgent-important { border-top-color: #ef4444; background: #fef2f2; }
.q-urgent-important .quadrant-title { color: #dc2626; }
.q-important { border-top-color: #f59e0b; background: #fffbeb; }
.q-important .quadrant-title { color: #d97706; }
.q-urgent { border-top-color: #3b82f6; background: #eff6ff; }
.q-urgent .quadrant-title { color: #2563eb; }
.q-neither { border-top-color: #94a3b8; background: #f8fafc; }
.q-neither .quadrant-title { color: #64748b; }

.todo-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.todo-item .done { text-decoration: line-through; color: #ccc; }
.add-todo-row { margin-top: 8px; }
.add-todo-row input {
  width: 100%; padding: 8px 12px; border: 1.5px dashed var(--border); border-radius: 8px;
  font-size: 13px; outline: none; background: transparent;
}
.add-todo-row input:focus { border-color: var(--primary); border-style: solid; }

/* ===== Reminders ===== */
.reminders-layout { }
.reminder-card { background: white; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.reminder-main { display: flex; align-items: center; gap: 12px; }
.reminder-toggle { font-size: 20px; cursor: pointer; }
.reminder-content { flex: 1; }
.reminder-text { font-size: 14px; }
.reminder-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== Health check-in ===== */
.checkin-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.checkin-item {
  padding: 10px 16px; border-radius: 10px; background: white; border: 1.5px solid var(--border);
  cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.checkin-item.checked { border-color: #10b981; background: #ecfdf5; }
.checkin-check { font-size: 16px; }

.pool-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pool-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  background: white; border: 1px solid var(--border); font-size: 13px; cursor: pointer;
}
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; }
.add-row input:focus { border-color: var(--primary); }

/* ===== Data table ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 8px; color: var(--text-light); font-weight: 500; border-bottom: 1px solid var(--border); }
.data-table td { padding: 8px; border-bottom: 1px solid #f0f0f0; }

/* ===== Records ===== */
.record-card { background: white; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); position: relative; }
.record-card .remove-btn { position: absolute; top: 10px; right: 10px; }
.record-note { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== Edit form ===== */
.edit-form {
  background: white; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.edit-form label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.edit-form input, .edit-form select, .edit-form textarea {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; font-family: inherit;
}
.edit-form input:focus, .edit-form select:focus, .edit-form textarea:focus { border-color: var(--primary); }

/* ===== Docs ===== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.doc-card {
  background: white; border-radius: 14px; padding: 20px 16px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; transition: all 0.2s;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.doc-icon { font-size: 32px; margin-bottom: 8px; }
.doc-name { font-size: 14px; font-weight: 600; }
.doc-count { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.doc-entry { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.doc-entry-text { font-size: 14px; line-height: 1.5; }
.doc-entry-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--text-muted); }
.emoji-row { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-pick { font-size: 20px; cursor: pointer; padding: 4px; border-radius: 6px; }
.emoji-pick.active { background: var(--primary-light); }

/* ===== Planning / Schedule ===== */
.schedule-flex { display: flex; gap: 24px; }
.module-pool { width: 240px; flex-shrink: 0; }
.pool-card { background: white; border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.pool-card h3 { font-size: 15px; color: var(--text-light); margin-bottom: 14px; }
.module-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  cursor: grab; margin-bottom: 6px; font-size: 13px; font-weight: 500; position: relative;
}
.module-item:active { cursor: grabbing; }
.module-item .emoji { font-size: 16px; }
.module-item .remove-btn { position: absolute; right: 6px; display: none; }
.module-item:hover .remove-btn { display: flex; }
.color-picker { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.color-dot {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2.5px solid transparent; transition: all 0.15s;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: #333; }

.timeline { flex: 1; min-width: 0; }
.date-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.date-nav button:not(.btn) {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: white;
  cursor: pointer; font-size: 16px; box-shadow: var(--shadow);
}
.date-nav button:not(.btn):hover { background: var(--primary); color: white; }
.date-label-main { font-size: 18px; font-weight: 600; color: #444; }

.time-slot { display: flex; gap: 0; margin-bottom: 4px; min-height: 56px; }
.time-label {
  width: 56px; flex-shrink: 0; padding-top: 10px; font-size: 13px; font-weight: 600;
  color: #999; text-align: right; padding-right: 14px;
}
.slot-drop {
  flex: 1; background: white; border-radius: 10px; min-height: 48px; padding: 6px 10px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: all 0.2s;
}
.slot-drop.drag-over { border-color: var(--primary); background: var(--primary-light); }
.placed-item {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 8px; font-size: 12px; font-weight: 500; position: relative;
}
.remove-placed {
  width: 14px; height: 14px; border-radius: 50%; border: none; background: rgba(0,0,0,0.15);
  color: white; font-size: 9px; cursor: pointer; display: none; align-items: center; justify-content: center; margin-left: 4px;
}
.placed-item:hover .remove-placed { display: flex; }

/* Day tabs */
.day-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.day-btn {
  padding: 8px 18px; border-radius: 20px; border: 1.5px solid #ddd; background: white;
  font-size: 13px; cursor: pointer;
}
.day-btn:hover { border-color: var(--primary); color: var(--primary); }
.day-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Review */
.review-form textarea { width: 100%; }
.review-card { background: white; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.review-content { font-size: 13px; white-space: pre-wrap; margin-top: 8px; color: var(--text-light); }
.template-hint { text-align: center; color: #aaa; font-size: 12px; margin-top: 20px; padding: 12px; border: 1.5px dashed #ddd; border-radius: 10px; }

/* ===== Overlay / Panel ===== */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center;
}
.overlay.open { display: flex; }
.panel { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.edit-panel { display: flex; flex-direction: column; gap: 10px; }
.edit-panel label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.edit-panel input, .edit-panel select {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; outline: none;
}
.edit-panel input:focus, .edit-panel select:focus { border-color: var(--primary); }

/* ===== Dialog ===== */
.dialog-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
.dialog-overlay.open { display: flex; }
.dialog-box { background: white; border-radius: 16px; padding: 24px; min-width: 300px; box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.dialog-msg { font-size: 15px; margin-bottom: 16px; line-height: 1.5; }
.dialog-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; margin-bottom: 16px; }
.dialog-input:focus { border-color: var(--primary); }
.dialog-btns { display: flex; gap: 8px; justify-content: flex-end; }
.dialog-cancel { padding: 8px 18px; border: none; border-radius: 8px; background: #f0f0f0; color: #666; cursor: pointer; font-size: 14px; }
.dialog-ok { padding: 8px 18px; border: none; border-radius: 8px; background: var(--primary); color: white; cursor: pointer; font-size: 14px; }
.dialog-danger { padding: 8px 18px; border: none; border-radius: 8px; background: var(--danger); color: white; cursor: pointer; font-size: 14px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 3000;
  background: #333; color: white; padding: 10px 24px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3); animation: toastIn 0.3s;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== Sleep Buddy ===== */
.buddy-layout { }
.buddy-login {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center;
}
.buddy-login-logo { font-size: 56px; margin-bottom: 16px; }
.buddy-login h1 { font-size: 26px; font-weight: 700; color: #333; }
.buddy-login p { font-size: 13px; color: #aaa; margin-bottom: 24px; }
.buddy-login-card { background: white; border-radius: 20px; padding: 28px 24px; width: 300px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.buddy-login-card input { padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; outline: none; }
.buddy-login-card input:focus { border-color: var(--primary); }
.buddy-main-btn { width: 100%; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 16px; font-weight: 600; cursor: pointer; }
.buddy-toggle-btn { background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.buddy-error { color: var(--danger); font-size: 13px; min-height: 20px; }

.buddy-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.buddy-header h2 { font-size: 18px; }
.user-chip {
  padding: 6px 12px; border-radius: 10px; background: #f5f5f5; cursor: pointer;
  font-size: 13px; color: var(--text-light); position: relative;
}
.user-menu {
  position: absolute; top: 36px; right: 0; background: white; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); overflow: hidden; z-index: 100; min-width: 100px;
}
.user-menu button {
  display: block; width: 100%; padding: 10px 16px; border: none; background: none;
  color: var(--text-light); font-size: 13px; cursor: pointer; text-align: left;
}
.user-menu button:hover { background: #f5f5f5; }

.sleep-btn {
  display: block; width: 100%; padding: 20px; border: none; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: white;
  font-size: 20px; font-weight: 700; cursor: pointer; margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(102,126,234,0.4);
}
.notif-bar {
  background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 14px;
  padding: 14px; margin-bottom: 14px; text-align: center; color: white; font-size: 14px;
}
.target-card {
  display: flex; align-items: center; justify-content: space-between; background: white;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow); font-size: 13px;
}
.target-time { font-size: 16px; color: var(--primary); font-weight: 600; }
.target-card button { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text-light); font-size: 12px; cursor: pointer; }
.buddy-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; min-height: 16px; }
.buddy-record { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.buddy-record span:first-child { flex: 1; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  main { padding: 16px; }
  .quadrant-grid { grid-template-columns: 1fr; }
  .schedule-flex { flex-direction: column; }
  .module-pool { width: 100%; }
  .doc-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ===== Checklist ===== */
.checklist-card { background: white; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.checklist-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.checklist-title-input { border: none; font-size: 15px; font-weight: 600; outline: none; width: 100%; }
.checklist-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.checklist-item .done { text-decoration: line-through; color: #ccc; }

/* ===== Goal ===== */
.goal-card { background: white; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.goal-header { display: flex; align-items: center; gap: 10px; }
.goal-header strong { flex: 1; }
.goal-month { font-size: 12px; color: var(--text-light); }

.sleep-hint { font-size: 12px; color: var(--primary); margin-bottom: 12px; }
