* {
  box-sizing: border-box;
}

:root {
  --bg: #edf1f7;
  --text: #16203a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, .28);
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --green: #059669;
  --green-bg: rgba(16, 185, 129, .10);
  --green-line: rgba(16, 185, 129, .30);
  --red: #dc2626;
  --red-bg: rgba(239, 68, 68, .09);
  --red-line: rgba(239, 68, 68, .28);
  --orange: #d97706;
  --orange-bg: rgba(245, 158, 11, .11);
  --orange-line: rgba(245, 158, 11, .30);
  --blue: #2563eb;
  --blue-bg: rgba(59, 130, 246, .09);
  --blue-line: rgba(59, 130, 246, .28);
  --gray: #64748b;
  --gray-bg: rgba(100, 116, 139, .08);
  --gray-line: rgba(100, 116, 139, .24);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .85);
  --glass-border: rgba(255, 255, 255, .68);
}

[v-cloak] {
  display: none;
}

html, body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'DeepKeep Display';
  src: url('/fonts/DelaGothicOne-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s ease, background .15s, color .15s, box-shadow .15s, border-color .15s, opacity .15s;
}

button:active:not(:disabled) {
  transform: scale(.97);
}

input, textarea, select {
  font-family: inherit;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, .72);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
  background: rgba(255, 255, 255, .92);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ---------- 背景光斑 ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blobs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.bg-blobs i:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, .32), transparent 70%);
}

.bg-blobs i:nth-child(2) {
  width: 560px;
  height: 560px;
  top: 18%;
  right: -200px;
  background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, .25), transparent 70%);
}

.bg-blobs i:nth-child(3) {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, .18), transparent 70%);
}

.bg-blobs i:nth-child(4) {
  width: 420px;
  height: 420px;
  top: 42%;
  left: -80px;
  background: radial-gradient(circle at 40% 40%, rgba(251, 191, 36, .28), transparent 72%);
}

/* ---------- 图标 ---------- */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}

.icon.sm {
  width: 14px;
  height: 14px;
}

.icon.xs {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

.icon.logo {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .24);
  transition: transform .1s, opacity .15s, box-shadow .15s;
}

.btn-primary:hover {
  opacity: .94;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .30);
}

.btn-primary:active {
  transform: scale(.98);
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, .3);
  background: rgba(255, 255, 255, .68);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background .15s, box-shadow .15s;
}

.btn-small:hover {
  background: rgba(255, 255, 255, .9);
}

.btn-small.danger {
  color: var(--red);
  border-color: var(--red-line);
}

.studio-manage-btn {
  flex-shrink: 0;
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 4px;
}

.push-status {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.btn-add, .btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
  transition: background .15s, box-shadow .15s;
}

.btn-add {
  background: var(--green-bg);
  border-color: var(--green-line);
  color: var(--green);
}

.btn-add:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, .18);
}

.btn-remove {
  background: var(--red-bg);
  border-color: var(--red-line);
  color: var(--red);
}

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  padding: 36px 30px;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0 0 10px;
  font-family: 'DeepKeep Display', Impact, 'Arial Black', sans-serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  white-space: nowrap;
  transform: skewX(-7deg);
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.seg {
  display: flex;
  background: rgba(148, 163, 184, .14);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.seg button {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 9px;
  font-size: 15px;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}

.seg button.active {
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-tip {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ---------- 顶栏与导航 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.brand {
  display: flex;
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 0;
  font-family: 'DeepKeep Display', Impact, 'Arial Black', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  white-space: nowrap;
  transform: skewX(-7deg);
  transform-origin: left center;
}

.brand-deep {
  color: #100d1c;
}

.brand-keep {
  background: linear-gradient(120deg, #4338ca 0%, #7c3aed 48%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 380px) {
  .brand { font-size: 18px; }
  .auth-brand { font-size: 34px; }
}

.my-id {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  padding: 6px 12px;
  font-variant-numeric: tabular-nums;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  padding: 8px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  font-size: 13px;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s, border-color .15s;
}

.nav button.active {
  background: rgba(255, 255, 255, .85);
  color: var(--primary);
  font-weight: 600;
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
  transform: translateY(-1px);
}

.nav .logout {
  flex: 0 0 auto;
  color: var(--red);
}

main.page-stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 60px;
  position: relative;
  overflow: hidden;
}

.page-pane {
  width: 100%;
}

.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active,
.fade-enter-active,
.fade-leave-active {
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .24s ease;
}

.slide-left-leave-active,
.slide-right-leave-active,
.fade-leave-active {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 18px;
}

.slide-left-enter-from {
  transform: translateX(22%);
  opacity: 0;
}
.slide-left-leave-to {
  transform: translateX(-16%);
  opacity: 0;
}
.slide-right-enter-from {
  transform: translateX(-22%);
  opacity: 0;
}
.slide-right-leave-to {
  transform: translateX(16%);
  opacity: 0;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .slide-left-enter-active,
  .slide-left-leave-active,
  .slide-right-enter-active,
  .slide-right-leave-active,
  .fade-enter-active,
  .fade-leave-active,
  .home-sun,
  .home-spark,
  .home-punch.live::after {
    animation: none !important;
    transition: none !important;
  }
}

.date-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

.date-banner .icon {
  color: var(--primary);
}

/* ---------- 卡片 ---------- */
.card-block {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.block-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.loading {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 22px 0;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: -6px 0 12px;
}

/* ---------- 行卡片（目标/任务/成员/伙伴） ---------- */
.goal-card, .peer-card, .member-item, .feedback-item {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.goal-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 10px;
}

.goal-card.done {
  border-color: var(--green-line);
  background: rgba(16, 185, 129, .08);
}

.goal-main {
  flex: 1;
  min-width: 0;
}

.goal-title {
  font-size: 15px;
  font-weight: 650;
  word-break: break-all;
}

.goal-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.check-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border: 1px solid rgba(148, 163, 184, .3);
  background: rgba(255, 255, 255, .75);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.check-btn.done {
  border-color: var(--green-line);
  background: rgba(16, 185, 129, .12);
  color: var(--green);
}

.check-btn:hover {
  box-shadow: var(--shadow-sm);
}

.del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 4px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.del:hover {
  color: var(--red);
  background: var(--red-bg);
}

.goal-form, .group-form, .feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 小组与成员 ---------- */
.peer-card {
  padding: 13px 14px;
  margin-bottom: 10px;
}

.peer-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 8px;
}

.peer-uid {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

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

.peer-goal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 4px 0;
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot.ok {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.peer-goal-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peer-state {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.peer-state.ok {
  color: var(--green);
  font-weight: 650;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  margin-bottom: 9px;
}

.member-item.compact {
  padding: 9px 11px;
}

.avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(168, 85, 247, .16));
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(168, 85, 247, .16));
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 15px;
  font-weight: 650;
}

.member-uid {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form .btn-primary {
  width: auto;
  padding: 0 20px;
  font-size: 14px;
}

/* ---------- 徽章与芯片 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, .3);
  background: rgba(255, 255, 255, .62);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all .15s;
}

.chip.critical { color: var(--red); }
.chip.important { color: var(--orange); }
.chip.normal { color: var(--blue); }
.chip.later { color: var(--gray); }

.chip:hover {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(99, 102, 241, .35);
}

.chip.active {
  border-width: 1.5px;
  padding: 7.5px 13.5px;
  border-color: rgba(79, 70, 229, .5);
  background: rgba(79, 70, 229, .12);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(79, 70, 229, .18);
}

.chip.critical.active {
  border-color: var(--red-line);
  background: var(--red-bg);
  color: var(--red);
  box-shadow: 0 2px 10px rgba(239, 68, 68, .14);
}

.chip.important.active {
  border-color: var(--orange-line);
  background: var(--orange-bg);
  color: var(--orange);
  box-shadow: 0 2px 10px rgba(245, 158, 11, .14);
}

.chip.normal.active {
  border-color: var(--blue-line);
  background: var(--blue-bg);
  color: var(--blue);
  box-shadow: 0 2px 10px rgba(59, 130, 246, .14);
}

.chip.later.active {
  border-color: var(--gray-line);
  background: var(--gray-bg);
  color: var(--gray);
  box-shadow: 0 2px 10px rgba(100, 116, 139, .14);
}

.urgency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.urgency-badge, .group-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.urgency-badge.critical, .group-status.failed {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-line);
}

.urgency-badge.important {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange-line);
}

.urgency-badge.normal, .group-status.active {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: var(--blue-line);
}

.urgency-badge.later {
  background: var(--gray-bg);
  color: var(--gray);
  border-color: var(--gray-line);
}

.group-status.completed {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-line);
}

.admin-tag {
  display: inline-block;
  background: rgba(124, 58, 237, .10);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, .22);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 650;
  margin-left: 6px;
}

.chip-leave {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.chip-leave.low {
  color: var(--red);
}

/* ---------- 反馈 ---------- */
.feedback-item {
  padding: 14px;
  margin-bottom: 10px;
}

.feedback-item.done {
  background: rgba(100, 116, 139, .08);
  border-color: var(--gray-line);
}

.feedback-item.done p {
  color: var(--gray);
  text-decoration: line-through;
}

.feedback-item.done .urgency-badge,
.feedback-item.done .feedback-meta,
.feedback-item.done .feedback-time {
  opacity: .62;
}

.feedback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feedback-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.feedback-item p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}

.feedback-meta {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.fb-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .7);
}

.fb-done {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-line);
}

.fb-done:disabled {
  opacity: .65;
  cursor: default;
}

.fb-delete {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-line);
}

/* ---------- 任务组 ---------- */
.group-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.group-card.st-failed {
  border-color: var(--red-line);
  background: rgba(239, 68, 68, .05);
}

.group-card.st-completed {
  border-color: var(--green-line);
  background: rgba(16, 185, 129, .05);
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.group-name {
  font-size: 16px;
  font-weight: 700;
  word-break: break-all;
  letter-spacing: -0.01em;
}

.group-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.members-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  font-size: 13px;
}

.chip-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fail-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
}

.group-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.form-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.days-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-title {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 10px;
  letter-spacing: -0.01em;
}

.leave-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.leave-edit input {
  width: 72px;
  padding: 7px 8px;
  font-size: 13px;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inline-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  font-size: 13px;
}

.inline-form .btn-add {
  flex: none;
  padding: 0 14px;
}

.results-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-cell {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

.result-cell.ok {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-line);
}

.result-cell.fail {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-line);
}

.group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  z-index: 99;
  max-width: 86vw;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
}

.toast-enter-active,
.toast-leave-active {
  transition: opacity .2s ease, transform .22s ease;
}

.toast-enter-from,
.toast-leave-to {
  opacity: 0;
  transform: translate(-50%, 12px);
}

/* ---------- 降级：不支持毛玻璃时 ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card, .card-block, .group-card, .date-banner, .topbar, .nav {
    background: rgba(255, 255, 255, .9);
  }

  .bg-blobs {
    display: none;
  }
}

@media (max-width: 560px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav button {
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
    padding: 6px 2px;
  }
}

@media (max-width: 420px) {
  .auth-card {
    padding: 28px 20px;
  }

  .card-block {
    padding: 16px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .btn-primary {
    width: 100%;
    padding: 12px;
  }

  .inline-form {
    flex-wrap: wrap;
  }

  .inline-form .btn-add {
    width: 100%;
    padding: 10px;
  }
}

/* ========== v2：新组件 ========== */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .6);
  border-radius: 999px;
  color: var(--muted);
  transition: background .15s, color .15s;
}

.bell:hover {
  background: rgba(255, 255, 255, .9);
  color: var(--primary);
}

.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.group-head {
  cursor: pointer;
}

.group-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.chevron {
  color: var(--muted);
  transition: transform .18s;
}

.chevron.open {
  transform: rotate(180deg);
}

.due-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
}

.group-body {
  margin-top: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

.status-chip.st-none {
  background: var(--gray-bg);
  color: var(--gray);
  border-color: var(--gray-line);
}

.status-chip.st-pending {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange-line);
}

.status-chip.st-approved {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-line);
}

.status-chip.st-rejected {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-line);
}

.status-chip.st-active {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: var(--blue-line);
}

.status-chip.st-failed {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-line);
}

.status-chip.st-completed {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-line);
}

.check-btn.pending {
  border-color: var(--orange-line);
  background: var(--orange-bg);
  color: var(--orange);
  cursor: default;
}

.btn-primary:disabled {
  opacity: .6;
  cursor: default;
  box-shadow: none;
}

.peer-leave {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.peer-group {
  margin-top: 10px;
}

.peer-group-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  font-size: 14px;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  font-weight: 650;
}

.notification-item .icon {
  color: var(--muted);
}

.notification-item .icon.nt-fail {
  color: var(--red);
}

.notification-content {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.notification-time {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 22px;
}

.glass-modal {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal textarea {
  margin-bottom: 12px;
}

.modal .form-label {
  display: block;
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.modal-submit {
  width: auto;
  padding: 10px 22px;
}

.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(99, 102, 241, .4);
  border-radius: 14px;
  padding: 26px 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  background: rgba(99, 102, 241, .05);
  cursor: pointer;
  margin-bottom: 12px;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.evidence-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evidence-text {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.evidence-file video,
.evidence-file img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, .24);
}

.evidence-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* 打卡记录弹窗与小组动态补充 */
.peer-goal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.peer-goal-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peer-goal-criteria {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}

.record-note {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.record-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.record-evidence {
  margin-top: 12px;
}

/* 上传进度条 */
.upload-progress {
  margin-bottom: 12px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .18);
  border: 1px solid rgba(148, 163, 184, .2);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  transition: width .15s ease;
}

.progress-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 历史热力图 */
.history-member {
  margin-bottom: 22px;
}

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

.heatmap {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.heatmap-dows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 4px;
}

.heatmap-dows span {
  width: 14px;
  height: 13px;
  font-size: 9px;
  line-height: 13px;
  color: var(--muted);
  text-align: center;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(148, 163, 184, .16);
  cursor: pointer;
  transition: transform .1s;
}

.heatmap-cell:hover {
  transform: scale(1.25);
}

.heatmap-cell.ok {
  background: #22c55e;
}

.heatmap-cell.fail {
  background: #ef4444;
}

.heatmap-cell.pending {
  background: #f59e0b;
}

.heatmap-cell.future {
  background: transparent;
  cursor: default;
}

.heatmap-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.heatmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.legend-dot.ok {
  background: #22c55e;
}

.legend-dot.fail {
  background: #ef4444;
}

.legend-dot.pending {
  background: #f59e0b;
}

.legend-dot.none {
  background: rgba(148, 163, 184, .16);
}

.history-tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  transform: translate(14px, 14px);
  background: rgba(15, 23, 42, .94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  max-width: 280px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .3);
}

.tt-date {
  font-weight: 700;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.tt-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.tt-status.ok {
  background: rgba(34, 197, 94, .2);
  color: #4ade80;
}

.tt-status.fail {
  background: rgba(239, 68, 68, .2);
  color: #f87171;
}

.tt-status.pending {
  background: rgba(245, 158, 11, .2);
  color: #fbbf24;
}

.tt-status.none {
  background: rgba(148, 163, 184, .2);
  color: #cbd5e1;
}

.tt-reason,
.tt-empty {
  margin-top: 6px;
  color: #cbd5e1;
}

.tt-task {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 5px;
  color: #e2e8f0;
  line-height: 1.4;
}

.tt-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
}

.tt-dot.ok {
  background: #22c55e;
}

.tt-dot.fail {
  background: #ef4444;
}

.tt-dot.pending {
  background: #f59e0b;
}

/* 个人主页与头像 */
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  color: var(--text);
  transition: background .15s;
}

.profile-chip:hover {
  background: rgba(255, 255, 255, .9);
}

.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(168, 85, 247, .18));
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.profile-name {
  font-size: 13px;
  font-weight: 650;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar,
.avatar-sm,
.mini-avatar {
  overflow: hidden;
}

.avatar img,
.avatar-sm img,
.mini-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-btn {
  cursor: pointer;
}

.peer-name {
  cursor: pointer;
}

.peer-name:hover {
  color: var(--primary);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(168, 85, 247, .18));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, .2);
  flex: none;
}

.profile-avatar.sm {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.profile-info {
  min-width: 0;
}

.profile-name-lg {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  word-break: break-all;
}

.profile-bio {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.avatar-edit {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-pick {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.avatar-pick input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
}

.board-block {
  margin-top: 14px;
}

.board-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0 8px;
}

.studio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
  background: rgba(255, 255, 255, .45);
}

.studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.studio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.invite-box {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.invite-studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.admin-table .cell-bio {
  max-width: 220px;
  word-break: break-word;
}

button.linkish {
  border: 0;
  background: none;
  color: var(--primary);
  padding: 0;
  font-size: inherit;
  font-weight: 600;
}

.history-circles {
  margin: 0;
}

.history-source-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 12px;
}

.history-source-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-source-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.history-current {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}

.home-studio-card {
  padding: 12px;
}

.home-punch {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34vh;
  padding: 28px 16px 24px;
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(79, 70, 229, .16), rgba(255, 255, 255, .82));
  color: var(--primary);
  cursor: pointer;
}

.home-mood {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-sun,
.home-spark,
.home-leaf {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-sun {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  color: #f59e0b;
  animation: spin-slow 18s linear infinite;
}

.home-spark {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  color: #fbbf24;
  animation: sparkle 1.8s ease-in-out infinite;
}

.home-cheer {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: .4; transform: scale(.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.18) rotate(16deg); }
}

.home-punch.live::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, .32);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(.55); opacity: .5; }
  100% { transform: scale(1.45); opacity: 0; }
}

.home-punch.live {
  background: linear-gradient(180deg, rgba(16, 185, 129, .18), rgba(255, 255, 255, .86));
  border-color: rgba(16, 185, 129, .28);
  color: #047857;
}

.home-punch.busy {
  opacity: .85;
}

.home-punch-title {
  font-size: clamp(40px, 12vw, 68px);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.05;
}

.home-punch-sub {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.home-punch-sub.live {
  color: #047857;
  font-variant-numeric: tabular-nums;
}

.home-punch-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.home-empty-studio {
  min-height: 26vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--muted);
}

.home-leaf {
  width: 36px;
  height: 36px;
  color: #059669;
  margin-bottom: 8px;
}

.home-empty-tasks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.setting-title {
  font-size: 16px;
  font-weight: 700;
}

.toggle {
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border: none;
  border-radius: 99px;
  background: #cbd5e1;
  padding: 2px;
  margin-top: 2px;
}

.toggle.on {
  background: #10b981;
}

.toggle i {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .18);
  transform: translateX(0);
  transition: transform .2s ease;
}

.toggle.on i {
  transform: translateX(20px);
}

.setting-logout {
  margin-top: 16px;
}

.home-task-group + .home-task-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.home-task-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.home-task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.home-task-row > div:first-child {
  flex: 1;
  min-width: 0;
}

.logged-shell {
  touch-action: pan-y;
}

.custom-task-fold {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.fold-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.muted-xs {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.fold-body {
  margin-top: 12px;
}

.fold-head-slim {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
}

.invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 14px 12px;
  margin: 10px 0;
  border-radius: 12px;
  background: var(--gray-bg);
  color: var(--text);
  user-select: all;
}

.group-form .btn-small {
  align-self: flex-start;
}

.hour-line {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hour-line.met {
  color: var(--green);
}

.hour-board {
  margin: 10px 0 12px;
}

.hour-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--gray-bg);
  overflow: hidden;
}

.hour-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 99px;
}

.hour-board-meta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
}

.hour-board-meta.met {
  color: var(--green);
}

.student-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
  background: rgba(255, 255, 255, .45);
}

.student-head {
  margin-bottom: 8px;
}

.hour-logs {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hour-log {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.punch-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 8px;
}

.punch-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--primary);
}

.makeup-form {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

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

.crop-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0b1020;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.crop-top,
.crop-bottom {
  flex: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.crop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(10px + env(safe-area-inset-top));
}

.crop-title {
  font-weight: 700;
  font-size: 16px;
}

.crop-text-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 15px;
  padding: 8px 4px;
}

.crop-text-btn.ok {
  color: #86efac;
  font-weight: 700;
}

.crop-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overflow: hidden;
  background: #05070f;
}

.crop-frame {
  position: relative;
  width: min(280px, 78vw);
  height: min(280px, 78vw);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .55);
  background: #111;
}

.crop-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.crop-range {
  width: 100%;
  accent-color: #86efac;
}

.crop-bottom .hint {
  color: #94a3b8;
  text-align: center;
  margin: 8px 0 0;
}
