/* ============================================================
   暑假作业登记表 - 卡通儿童风样式
   ============================================================ */

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

:root {
  --primary: #FF7B42;
  --primary-light: #FFB088;
  --success: #5DBA5D;
  --warning: #FFB347;
  --danger: #FF6B6B;
  --info: #6CB4EE;
  --bg: #FFF8F0;
  --card-bg: #FFFFFF;
  --text: #4A3728;
  --text-light: #8B7355;
  --border: #F0DCC8;
  --shadow: 0 4px 16px rgba(255, 123, 66, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---- Pages ---- */
.page {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}
.page.active {
  display: flex;
}

/* ============================================================
   登录页
   ============================================================ */

.login-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 24px;
  text-align: center;
}

.login-header { margin-bottom: 32px; }
.logo { font-size: 64px; margin-bottom: 12px; animation: bounce 2s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-header h1 {
  font-size: 28px;
  color: var(--primary);
  line-height: 1.3;
}
.subtitle {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 14px;
}

.login-today-date {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(255, 123, 66, 0.1);
  border-radius: 20px;
}

.login-user-list {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.login-user-btn {
  width: 100%;
  border: none;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: inherit;
}
.login-user-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 123, 66, 0.18); }
.login-user-btn:active { transform: scale(0.98); }

.login-user-btn .lu-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-user-btn .lu-avatar {
  font-size: 44px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: #FFF8F0;
  border-radius: 50%;
  flex-shrink: 0;
}
.login-user-btn .lu-info { flex: 1; min-width: 0; }
.login-user-btn .lu-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.login-user-btn .lu-stat {
  font-size: 13px;
  color: var(--text-light);
}
.login-user-btn .lu-stat.done { color: var(--success); font-weight: 600; }
.login-user-btn .lu-stat.partial { color: var(--warning); font-weight: 600; }

.login-user-btn .lu-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  background: #FFF8F0;
  padding: 6px 10px;
  border-radius: 10px;
}
.lu-item .lu-item-icon { font-size: 16px; }
.lu-item .lu-item-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-item .lu-item-progress {
  width: 60px; height: 6px;
  background: #F0E0D0;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.lu-item .lu-item-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--success), var(--info));
}
.lu-item .lu-item-bar.low { background: linear-gradient(90deg, var(--danger), var(--warning)); }
.lu-item .lu-item-percent { width: 36px; text-align: right; flex-shrink: 0; }

.admin-login-section {
  width: 100%;
  max-width: 420px;
  margin-bottom: 24px;
}
.admin-login-divider {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  opacity: 0.7;
}
.btn-admin-login {
  width: 100%;
  border: 2px dashed var(--border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.btn-admin-login:hover { background: rgba(255, 255, 255, 0.9); border-color: var(--primary-light); }
.btn-admin-login .admin-login-icon { font-size: 24px; }
.btn-admin-login .admin-login-text { font-size: 16px; font-weight: 700; color: var(--text); }

.login-footer {
  color: var(--text-light);
  font-size: 12px;
  opacity: 0.6;
}

/* ============================================================
   顶部栏
   ============================================================ */

.top-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FF7B42, #FF9B62);
  color: white;
  box-shadow: 0 2px 12px rgba(255,123,66,.25);
  min-height: 56px;
}
.top-left, .top-right { flex: 0 0 auto; min-width: 50px; }
.top-right { text-align: right; }
.top-center { flex: 1; text-align: center; }
.greeting { font-size: 15px; opacity: .9; }
.date-display { font-size: 12px; opacity: .75; }

.top-center h2 { font-size: 18px; font-weight: 600; }

#header-avatar {
  font-size: 36px;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: transform .15s;
}
#header-avatar:active { transform: scale(.85); }

.icon-btn, .back-btn {
  background: rgba(255,255,255,.25);
  border: none; color: white;
  padding: 6px 10px; border-radius: 8px;
  font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.icon-btn:hover, .back-btn:hover { background: rgba(255,255,255,.4); }
.icon-btn { font-size: 20px; padding: 4px 8px; }

/* ============================================================
   底部导航
   ============================================================ */

.bottom-nav {
  display: flex;
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  max-width: 480px; width: 100%;
  background: var(--card-bg);
  border-top: 2px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.05);
  z-index: 10;
}
.nav-btn {
  flex: 1; padding: 12px 0;
  border: none; background: none;
  font-size: 14px; color: var(--text-light);
  cursor: pointer; transition: all .2s;
  font-family: inherit;
}
.nav-btn.active {
  color: var(--primary);
  font-weight: 700;
  border-top: 3px solid var(--primary);
  margin-top: -2px;
}

/* ============================================================
   主页内容
   ============================================================ */

.home-content {
  flex: 1;
  padding: 16px;
  padding-bottom: 70px;
  overflow-y: auto;
}

.add-hw-btn {
  margin-bottom: 14px;
  padding: 14px;
  font-size: 17px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.add-hw-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 123, 66, 0.18); }
.add-hw-btn:active { transform: scale(0.98); }

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.plan-card:hover { border-color: var(--primary-light); }
.plan-card.done { opacity: .6; border-color: var(--success); background: #F5FFF5; }
.plan-card.partial { border-color: var(--warning); background: #FFFCF5; }

.plan-card .plan-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.plan-card .plan-icon { font-size: 28px; }
.plan-card .plan-name { font-size: 17px; font-weight: 700; }
.plan-card .plan-status-badge {
  font-size: 12px; padding: 2px 8px; border-radius: 10px;
  margin-left: auto;
}
.plan-card .plan-status-badge.pending { background: #E8F4FD; color: var(--info); }
.plan-card .plan-status-badge.done { background: #E8F8E8; color: var(--success); }
.plan-card .plan-status-badge.partial { background: #FFF3E0; color: var(--warning); }
.plan-card .plan-delete-btn {
  background: #FFEFEF;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 4px;
  transition: transform .1s, background .2s;
}
.plan-card .plan-delete-btn:hover { background: #FFDADA; }
.plan-card .plan-delete-btn:active { transform: scale(.92); }

.plan-card .plan-detail {
  display: flex; justify-content: space-between; align-items: center;
}
.plan-card .plan-range {
  font-size: 22px; font-weight: 800;
  color: var(--primary);
}
.plan-card .plan-unit {
  font-size: 13px; color: var(--text-light);
}
.plan-card .plan-amount {
  font-size: 13px; color: var(--text-light);
  background: #FFF0E6; padding: 4px 8px; border-radius: 8px;
}

.plan-card .checkin-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.checkin-btn.pending-btn {
  background: var(--primary);
  color: white;
}
.checkin-btn.pending-btn:hover { background: #FF6633; }
.checkin-btn.done-btn {
  background: var(--success);
  color: white;
}
.checkin-btn.partial-btn {
  background: var(--warning);
  color: white;
}

/* ============================================================
   进度页
   ============================================================ */

.page-content {
  flex: 1;
  padding: 16px;
  padding-bottom: 24px;
  overflow-y: auto;
}

.progress-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.progress-card .prog-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.progress-card .prog-icon { font-size: 24px; }
.progress-card .prog-name { font-size: 16px; font-weight: 700; flex: 1; }
.progress-card .prog-percent {
  font-size: 24px; font-weight: 800;
  color: var(--primary);
}

.progress-bar-wrap {
  height: 14px; background: #F0E0D0; border-radius: 7px;
  margin-bottom: 8px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, var(--success), var(--info));
  transition: width .5s ease;
}
.progress-bar-fill.low {
  background: linear-gradient(90deg, var(--danger), var(--warning));
}

.prog-info {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-size: 12px; color: var(--text-light); gap: 8px;
}
.prog-info span { white-space: nowrap; }
.prog-warning { color: var(--danger); font-weight: 600; }

/* ============================================================
   设置页
   ============================================================ */

.settings-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.settings-section h3 {
  font-size: 15px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.avatar-grid .avatar-option {
  font-size: 30px; text-align: center;
  padding: 6px; border-radius: 10px;
  cursor: pointer; border: 2px solid transparent;
  transition: all .15s;
  background: none; line-height: 1;
}
.avatar-grid .avatar-option:hover { background: #FFF0E6; }
.avatar-grid .avatar-option.selected { border-color: var(--primary); background: #FFF0E6; transform: scale(1.1); }

.radio-group {
  display: flex; gap: 10px;
}
.radio-card {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px; border-radius: var(--radius-sm);
  background: #FFF8F0; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: all .15s;
}
.radio-card:hover { border-color: var(--primary-light); }
.radio-card input[type="radio"] { display: none; }
.radio-card input:checked + .radio-label { color: var(--primary); font-weight: 700; }
.radio-card:has(input:checked) { border-color: var(--primary); background: #FFF0E6; }
.radio-label { font-size: 15px; display: block; margin-bottom: 2px; }
.radio-desc { font-size: 11px; color: var(--text-light); }

.homework-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.hw-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: #FFF8F0; border: 1px solid var(--border);
}
.hw-item .hw-info { flex: 1; }
.hw-item .hw-name { font-size: 15px; font-weight: 600; }
.hw-item .hw-meta { font-size: 12px; color: var(--text-light); }
.hw-item .hw-delete {
  background: none; border: none; font-size: 18px;
  cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.hw-item .hw-delete:hover { background: #FFE0E0; }

/* ============================================================
   表单 & 按钮
   ============================================================ */

.input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; background: #FFF; color: var(--text);
  font-family: inherit; outline: none; transition: border .2s;
}
.input:focus { border-color: var(--primary); }

.input-group {
  display: flex; flex-direction: column; gap: 10px;
}

.input-row {
  display: flex; gap: 10px;
  align-items: stretch;
}
.input-row .input { flex: 1; }

/* 添加作业表单：总量 + 单位 */
.amount-row .amount-input {
  flex: 3;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.amount-row .unit-select {
  flex: 0 0 80px;
  max-width: 80px;
  min-width: 80px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  background: #FFF8F0;
}

.select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; background: #FFF; color: var(--text);
  font-family: inherit; outline: none; appearance: none;
  cursor: pointer;
}

/* 弹窗内紧凑的选项卡 */
.small-radio-group {
  gap: 8px;
}
.small-radio-group .radio-card {
  padding: 10px 6px;
  border-radius: 10px;
}
.small-radio-group .radio-label {
  font-size: 14px;
}
.small-radio-group .radio-desc {
  font-size: 10px;
}

.btn {
  padding: 12px 24px; border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #FF6633; }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline { background: none; border: 2px solid var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.full-width { width: 100%; }

.data-mgmt-btns {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.restore-btn {
  display: block;
  text-align: center;
  cursor: pointer;
}

.form-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

/* 文件上传按钮样式重置 */
.restore-btn input[type="file"] {
  display: none;
}

.form-label {
  font-size: 13px; color: var(--text-light); margin-bottom: 4px; display: block; margin-top: 2px;
}

/* ============================================================
   弹窗
   ============================================================ */

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-content {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 400px;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.modal-content h3 {
  font-size: 18px; margin-bottom: 16px; text-align: center;
}

.checkin-modal { max-width: 380px; }
.checkin-modal .ch-homework-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.checkin-modal .ch-plan-info { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.checkin-modal .ch-plan-range { font-size: 28px; font-weight: 800; color: var(--primary); text-align: center; margin: 16px 0; }
.checkin-modal .ch-label { font-size: 14px; color: var(--text-light); margin-bottom: 6px; }
.checkin-modal .ch-input {
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); font-size: 24px; text-align: center;
  font-weight: 700; color: var(--primary);
  font-family: inherit; outline: none;
}
.checkin-modal .ch-input:focus { border-color: var(--primary); }
.checkin-modal .ch-hint { font-size: 12px; color: var(--text-light); text-align: center; margin: 6px 0 16px; }
.checkin-modal .ch-buttons { display: flex; gap: 10px; }
.checkin-modal .ch-buttons .btn { flex: 1; }

/* ============================================================
   管理员页
   ============================================================ */

.admin-overview {
  display: flex; flex-direction: column; gap: 8px;
}
.overview-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: #FFF8F0; border: 1px solid var(--border);
}
.overview-card .ov-avatar { font-size: 32px; }
.overview-card .ov-info { flex: 1; }
.overview-card .ov-name { font-size: 15px; font-weight: 600; }
.overview-card .ov-stat { font-size: 12px; color: var(--text-light); }
.overview-card .ov-bar {
  width: 60px; height: 8px; background: #F0E0D0; border-radius: 4px;
  overflow: hidden;
}
.overview-card .ov-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--success), var(--info));
}

/* 管理员首页概览 */
.admin-home-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 12px;
  text-align: center;
}
.admin-home-list {
  display: flex; flex-direction: column; gap: 10px;
}
.admin-home-list .overview-card {
  background: white;
  box-shadow: var(--shadow);
}

.admin-user-list {
  display: flex; flex-direction: column; gap: 8px;
}
.admin-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: #FFF8F0; border: 1px solid var(--border);
}
.admin-user-card .auc-avatar { font-size: 28px; }
.admin-user-card .auc-name { flex: 1; font-size: 15px; font-weight: 600; }
.admin-user-card .auc-btns { display: flex; gap: 4px; }
.admin-user-card .auc-btn {
  background: none; border: none; font-size: 16px;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.admin-user-card .auc-btn:hover { background: #FFE0E0; }

/* ============================================================
   空状态
   ============================================================ */

.empty-state {
  text-align: center; padding: 48px 16px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.empty-hint { font-size: 13px; color: var(--text-light); }

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 25px;
  font-size: 14px; font-weight: 600; color: white;
  z-index: 200; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.toast.show { opacity: 1; }

/* ============================================================
   过去未完成的计划
   ============================================================ */

.plan-card.past-incomplete {
  opacity: 0.85;
  border-left: 4px solid var(--danger);
  background: #fff5f5;
}

.plan-card.partial-incomplete {
  border-left: 4px solid #e67e22;
  background: #fff8f0;
}

.dr-past-incomplete {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f8d7da;
  border-radius: 8px;
  font-size: 13px;
  color: #721c24;
  text-align: center;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }

/* ============================================================
   动画
   ============================================================ */

@keyframes confetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(-120px) rotate(720deg); opacity: 0; }
}
.confetti-emoji {
  position: absolute; font-size: 24px;
  animation: confetti 1s ease-out forwards;
  pointer-events: none;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.plan-card { animation: slideUp .3s ease-out; }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 400px) {
  .user-grid { grid-template-columns: repeat(3, 1fr); }
  .avatar-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================================
   密码弹窗
   ============================================================ */

.pwd-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 150; padding: 20px;
}
.pwd-box {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 320px;
  text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.pwd-box .pwd-avatar { font-size: 64px; margin-bottom: 8px; }
.pwd-box .pwd-name { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.pwd-box .pwd-input {
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); font-size: 18px; text-align: center;
  font-family: inherit; outline: none; margin-bottom: 12px;
}
.pwd-box .pwd-input:focus { border-color: var(--primary); }

/* ============================================================
   日报表
   ============================================================ */

.daily-report-filter {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}

.filter-row label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.daily-report-content {
  padding-bottom: 80px;
}

.dr-date-group {
  margin-bottom: 20px;
}

.dr-date-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 700;
  font-size: 15px;
}

.dr-date-header.dr-today {
  background: linear-gradient(135deg, #e74c3c, #ff7b42);
}

.dr-today-badge {
  background: rgba(255,255,255,0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.dr-user-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  padding: 12px 16px;
}

.dr-user-card:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.dr-user-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dr-user-avatar {
  font-size: 24px;
}

.dr-user-name {
  font-weight: 700;
  font-size: 15px;
  flex: 1;
}

.dr-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.dr-status-badge.dr-fulfilled {
  background: #d4edda;
  color: #155724;
}

.dr-status-badge.dr-unfulfilled {
  background: #f8d7da;
  color: #721c24;
}

.dr-user-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

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

.dr-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fafafa;
}

.dr-item.dr-item-fulfilled {
  border-left: 3px solid var(--success);
}

.dr-item.dr-item-unfulfilled {
  border-left: 3px solid var(--danger);
}

.dr-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dr-item-name {
  font-weight: 600;
  font-size: 14px;
}

.dr-item-status {
  font-size: 12px;
}

.dr-item-detail {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.dr-arrow {
  color: var(--primary);
  font-weight: 700;
}

.dr-item-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dr-progress-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.dr-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dr-fill-good { background: var(--success); }
.dr-fill-medium { background: #ffc107; }
.dr-fill-bad { background: var(--danger); }

.dr-progress-text {
  font-size: 12px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}
.pwd-box .pwd-error { color: var(--danger); font-size: 13px; margin-bottom: 8px; }
