﻿:root {

  --bg: radial-gradient(circle at top, #f5f3ff 0%, #ffffff 60%);

  --panel: #fefaff;
 --primary: #8b5cf6;
  --card: #ffffff;
  --line: rgba(124, 58, 237, 0.08);

  --text: #1a1a1a;
--text-muted: #6b6b8a;
--border: #dedee0b7;
--border-color: #dedee0b7;
--bg-elevated: #f6f4fb;
--gradient-primary: linear-gradient(90deg, #a78bfa 0%, #7c3aed 100%);
--radius-sm: 10px;
--success: #10b981;
  --muted: #8b8fa3;

  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
margin: 0;
}

 

body.dark {

  --bg: radial-gradient(circle at top, #1e1430 0%, #0f0b14 60%);

  --panel: #18131d;
  --card: #1e1726;
  --line: rgba(124, 58, 237, 0.15);

  --text: #ffffff;
  --text-muted: #b7b3c7;
  --border: rgba(255, 255, 255, 0.14);
  --border-color: rgba(255, 255, 255, 0.14);
  --bg-elevated: #2a2233;
  --gradient-primary: linear-gradient(90deg, #a78bfa 0%, #7c3aed 100%);
  --radius-sm: 10px;
  --success: #34d399;
  --muted: #aaa;

  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.15);
}


header{
  position: relative;
  border-bottom: none;
  margin: 0;
height: auto;
padding: 0;
  cursor: pointer;
z-index: 1;
}

body.dark .header{
  position: relative;
  border-bottom: none;
  margin: 0;
height: auto;
padding: 0;
  cursor: pointer;
z-index: 1;
}







main {
    display: block;
    flex-direction: column;
    align-items: center; 
    width: 100%;
}



.page-wrapper > button {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  padding: var(--spacing-sm) 0;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all 0.2s ease;
  margin-bottom: var(--spacing-lg);
}

.page-wrapper > button:hover {
  color: var(--primary) !important;
  transform: translateX(-4px);
}

.dashboard-section {
  margin-bottom: 28px;
z-index:10;
}

.dashboard-grid {
z-index: 10;
position: relative;
}

.dashboard-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
margin-top: 20px;
}

.dashboard-card {

  background: var(--card);
  border-radius: 18px;
  padding: 28px;
box-shadow: 0 3px 20px rgba(0,0,0,0.06);
  color: var(--text);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  padding-top: 15px;   /* section */

}

.dark .dashboard-card{

  background: var(--card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: var(--text);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  padding-top: 15px;   /* section */
}



.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
z-index: 1;
}

.date-main {
  font-size: 13px;
  font-weight: 650;
 margin-left: 20px;;
}

.timeline-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.timeline-meta {
  animation: pulse 2s infinite;
 font-size: 14px;
  opacity: 0.7;

}

@keyframes pulse {
  0% {opacity:0.6}
  50% {opacity:1}
  100% {opacity:0.6}
}

.timeline-live {
  font-size: 13px;
  color: #888;
}

.timeline-live strong {
  color: #111;
  font-weight: 700;
}


 
.mypage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.back-btn { 
appearance: none;
border: none; 
background: transparent; 
color: var(--text); 
font-size: 15px; 
font-weight: 600; 
padding: 0; 
margin: 0 0 18px 4px; 
cursor: pointer; 
display: inline-flex; 
align-items: center; 
gap: 8px;
margin-top: 20px; 
line-height: 1; 
transition: transform .15s ease, color .15s ease, opacity .15s ease; 
}


.back-btn:active { 
transform: translateX(-1px) scale(.98); 
}

.goal-section {
  margin-bottom: var(--spacing-xl);
}

.goal-progress{

margin-top:10px;

}

.goal-progress-bar{

height:6px;

background:rgba(0,0,0,0.08);

border-radius:10px;

overflow:hidden;

}

.goal-progress-fill{

height:100%;

background:linear-gradient(90deg,#a855f7,#7c3aed);

}

.goal-progress-text{

font-size:12px;

margin-top:6px;

opacity:.7;

}

.mypage-widgets{

display:grid;

grid-template-columns:1fr 1fr;

gap:16px;

margin-top:20px;

}
.widget-card{
background:var(--card-bg);
border:1px solid var(--border-color);
border-radius:18px;
padding:20px;
transition:.2s;
}

.widget-card:hover{
transform:translateY(-3px);
box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

.weekly-kpi{
text-align:center;
margin-bottom:18px;
}

.weekly-main{
font-size:36px;
font-weight:700;
color:#7C5CFF;
}

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


.top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.weekly-compare-card {
  position: relative;
}

.weekly-compare-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: var(--progress, 40%);
  background: linear-gradient(90deg, #a855f7, #8b5cf6);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

 .weekly-compare-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.weekly-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.goal-hint{
font-size:13px;
color:var(--text-muted);
margin-top:6px;
}

.goal-title{
font-size:16px;
font-weight:600;
}

.goal-hint strong {
  color: var(--primary);
  font-weight: 600;
}


body.dark .subject-chip, 
body.dark .active-subject-tag, 
body.dark .record-subject-tag, 
body.dark .day-record-tag {
 color: #f5f2ff !important; 
border-radius: 24px;
}

.day-record-card {
font-size: 12px;
}

.record-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.record-input:focus {
  border-color: var(--primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}




.record-add-btn {
  background: var(--gradient-primary) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: white !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(168,85,247,0.25);
}

.record-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(168,85,247,0.3);
}


.record-add-btn:active {
  transform: translateY(0);
}


.goal-empty{
text-align:center;
padding:24px 0;
}

.goal-empty-icon{
font-size:28px;
margin-bottom:8px;
opacity:.8;
}

.goal-empty-text{
font-weight:600;
font-size:14px;
margin-bottom:4px;
}

.goal-empty-sub{
font-size:12px;
color:var(--text-muted);
}

.goal-placeholder{
text-align:center;
padding:20px 0;
opacity:.8;
}

.goal-placeholder-icon{
font-size:24px;
margin-bottom:6px;
}

.goal-placeholder-text{
font-size:14px;
font-weight:500;
}

.goal-placeholder-sub{
font-size:12px;
color:var(--text-muted);
}

.weekly-progress{
margin:14px 0 18px;
}

.weekly-progress-bar{
height:8px;
background:#eee;
border-radius:6px;
overflow:hidden;
}

.weekly-progress-fill{
height:100%;
background:linear-gradient(90deg,#9f7aea,#7c5cff);
}




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

.memo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  display: block;
  text-align: center;
}


.study-record-section {
  max-width: 100%;
}

.record-input-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}



body.dark .record-subject-tag {
width: 40px;
}








.record-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
}

.record-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}



/* section */
.record-add-btn {
  background: var(--gradient-primary) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: white !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
}

.record-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.record-add-btn:active {
  transform: translateY(0);
}



/* section */
.subject-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 60px;
  align-items: center;
}

.subject-summary:empty {
  display: none;
}

.subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  animation: tagPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes tagPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}



.subject-tag-remove {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 10px;
  transition: all 0.2s ease;
  padding: 0;
}

.subject-tag-remove:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}






.active-subject-chip {
  background: rgba(139,92,246,0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
}

/* section */
.record-list {
  margin-top: 10px;
margin-bottom:20px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}

.record-list:empty::before {
  content: '아직 기록이 없습니다';
  display: block;
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
  font-size: 13px;
}

.record-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all 0.2s ease;
  animation: recordSlide 0.3s ease;
}

@keyframes recordSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.record-item-content {
  flex: 1;
}

.record-item-subject {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.record-item-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  word-break: keep-all;
}

.record-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}


/* section */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168,85,247,0.45);
}

body.dark ::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.35);
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(168,85,247,0.55);
}

.memo-editor::-webkit-scrollbar {
  width: 6px;
}

.memo-editor::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,0.3);
  border-radius: 999px;
}

.mypage-block {
  background: var(--bg-card);
box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}



.attendance-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  align-items: start;
gap: 10px;
}



.attendance-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.attendance-block .block-header {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-top: 10px;
  justify-content: space-between;
  align-items: center;
  
}



.attendance-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.calendar-month-header{

display:flex;
align-items:center;
justify-content:center;
gap:8px;


}

.calendar-nav-btn{

border:none;

background:rgba(168,85,247,0.12);

width:36px;
height:36px;

border-radius:10px;

cursor:pointer;

font-weight:700;

color:var(--primary);

}

.calendar-month-label{

cursor:pointer;

font-weight:700;

display:flex;
align-items:center;
gap:6px;

}

.calendar-month-dropdown{

display:none;

flex-direction:column;

background:var(--card);

border:1px solid rgba(168,85,247,0.2);

border-radius:12px;

max-height:260px;

overflow-y:auto;

margin-top:6px;

}

.calendar-month-dropdown.show{

display:flex;

}

.calendar-month-option{

padding:8px 14px;

cursor:pointer;

}

.calendar-month-option:hover{

background:rgba(168,85,247,0.08);

}




.calendar-day:hover::after {
  content: attr(data-detail);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.calendar-detail{

display:none;
width: 200px;
margin-top:18px;
margin-bottom: 20px;
padding:18px;

border-radius:18px;

background:rgba(168,85,247,0.08);

border:1px solid rgba(168,85,247,0.18);

box-shadow:0 10px 30px rgba(168,85,247,0.08);

animation:detailSlide .25s ease;

}

.calendar-detail.show{
display:block;
}

.day-card{

padding:14px;

border-radius:16px;

background:rgba(255,255,255,0.6);

border:1px solid rgba(168,85,247,0.18);

}

body.dark .day-card{
background:rgba(255,255,255,0.05);
}

.day-session{

padding:14px;

border-radius:14px;

background:var(--card);

border:1px solid rgba(168,85,247,0.12);

text-align:center;

}

.session-time{

font-size:14px;
color:var(--primary);

}

.session-min{

font-size:16px;
font-weight:700;

margin-top:4px;

}

@keyframes detailSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.calendar-detail-date {
  font-size: 18px;
  font-weight: 800;
text-align: center; 
  color: var(--primary);
}

.calendar-detail-summary {
  font-size: 16px;
font-weight: 700;
text-align: center;
  color: var(--primary);
}

.calendar-detail-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}



.day-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
margin-top: 5px;
}

.day-session-list,
.day-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-session-list {
background:rgba(168,85,247,0.08);
border-radius: 9px;
}

.day-session-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(168, 85, 247, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}




.day-session-time {
  font-size: 12
}

.session-toggle-btn { 
margin-top: 10px; 
border: none; 
background: rgba(168, 85, 247, 0.10); 
color: var(--primary); 
font-size: 13px; 
font-weight: 700; 
border-radius: 999px; 
padding: 8px 14px; 
cursor: pointer; 
transition: transform .15s ease, background .15s ease; 
}

.session-toggle-btn { 
margin-top: 10px; 
border: none; 
background: rgba(168, 85, 247, 0.10); 
color: var(--primary); 
font-size: 13px; 
font-weight: 700; 
border-radius: 999px; 
padding: 8px 14px; 
cursor: pointer; 
transition: transform .15s ease, background .15s ease; 
}

.monthly-hint {
  font-size: 14px;
  color: var(--primary);
  text-align: center;


margin-bottom: 20px;
margin-top: 20px;
}


.section-divider {
  height: 1px;
  background: var(--border);
  margin: var(--spacing-xl) 0;
}



/* section */
.profile-card {

  border-radius: 24px;
  padding: var(--spacing-xl);
  text-align: center;

  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;

  opacity: 0.1;
 
}


.profile-name {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;

  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mini-badge {
  font-size: 18px;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: 8px;
  animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* section */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.goal-card {
  position: relative;
  overflow: hidden;

border-radius: 14px;
text-align: center;
}

.goal-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(168, 85, 247, 0.08),
    transparent
  );
  transition: 0.6s ease;
}

.goal-card:hover::after {
  left: 100%;
}

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

.goal-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.goal-card:hover .goal-icon {
  transform: scale(1.15) rotate(-5deg);
}

.goal-hint code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}


.goal-card.completed {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

.goal-card.completed .goal-title::after {
  content: "";
  color: #22c55e;
}
/* section */
.attendance-block {

box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-radius: 24px;


}


 


.attendance-quick-stats {
  display: flex;
  gap: 8px;
}

.stat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-empty {
  opacity: 0.78;
}

.monthly-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
margin-top: 20px;
margin-bottom: 20px;
}

.monthly-summary strong {
  color: var(--primary);
  font-weight: 700;
}

/* section */
.calendar-container {
  margin: var(--spacing-lg) 0;
}


.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 16px;
}

.calendar-day{

width:42px;
height:42px;

border-radius:12px;

display:flex;
align-items:center;
justify-content:center;

font-weight:600;

border:1px solid var(--border);

background:var(--bg-elevated);

transition:.2s;

}

.calendar-day:hover{

transform:translateY(-2px);
border-color:var(--primary);

}

.calendar-day.attended{

background:var(--primary);
color:white;
border-color:var(--primary);

}
.calendar-hours {
  font-size: 10px;
  opacity: 0.8;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2) rotate(20deg); }
}


body.dark .calendar-day {
  background: rgba(255,255,255,0.02);
}

body.dark .calendar-day.attended {
  background: rgba(168, 85, 247, 0.22);
}

/* section */


.tag-toggle-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}












/* section */
.memo-input-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.memo-editor {


font-family: Georgia, 'Times New Roman', Times, serif;
width: 100%;
height: 120px;

 
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 14px;
  background: var(--panel);
  color: var(--text);
  resize: vertical;
}


.memo-editor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.memo-editor::placeholder {
  color: var(--text-muted);
  line-height: 1.8;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* section */


.study-note-block {
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);padding: 32px;
 
}

.block-title {
  font-size: 18px;
  font-weight: 800;
 letter-spacing: 1px;
  color: var(--text-primary);
}

.note-add-btn {
  background: var(--primary);
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.note-save-btn {
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg,#7c3aed,#a78bfa);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
height: 43px;
text-align: center;
margin-bottom: 10px;
}

.note-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(124,58,237,0.25);
}
.note-add-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
/* section */



.subject-palette { 
display: flex; 
flex-wrap: nowrap; 
gap: 12px; 
overflow-x: auto; 
overflow-y: hidden; 
align-items: stretch; 
  padding: 6px 4px 10px;

}

.subject-palette::-webkit-scrollbar {
  height: 8px;
}

.subject-palette::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.22);
  border-radius: 999px;
}





.subject-add-btn {


color: var(--primary); 
transition: transform .15s ease, background .15s ease, box-shadow .15s ease;


  height: 35px;
  flex: 0 0 auto; 

padding: 0 16px; 
white-space: nowrap; 
border-radius: 16px; 
font-weight: 700; 
font-size: 16px; 
display: inline-flex; 
align-items: center; 
justify-content: center; 

 min-width: 130px;
  height: 42px;

  padding: 0 16px;

  border-radius: 14px;

  border: 2px dashed rgba(168,85,247,0.45);

  background: rgba(168,85,247,0.05);

  color: var(--primary);

  font-weight: 700;

  cursor: pointer;

  white-space: nowrap;

 
  font-size: 15px;
 

}

.subject-add-btn:hover {
  transform: translateY(-1px);
  background: rgba(168, 85, 247, 0.07);

box-shadow: 0 8px 16px rgba(168, 85, 247, 0.12); 
}


.active-subject {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 14px;
}


.active-subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.10);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.08);
}

.subject-text {
  white-space: nowrap;
}





.chip-x{

appearance:none;
border:none;

width:22px;
height:22px;

border-radius:50%;

background:rgba(255,255,255,0.3);

display:flex;
align-items:center;
justify-content:center;

font-size:12px;
font-weight:700;

cursor:pointer;

margin-left:6px;

transition:all .15s ease;

}

body.dark .chip-x{

background:rgba(255,255,255,0.15);
color:#fff;

}

.chip-x:hover{

background:#ff6b6b;
color:white;

transform:scale(1.1);

}

.remove-subject-btn:hover{

background:rgba(255,120,120,0.3);

color:#ff8080;

transform:scale(1.05);

}

.active-subject-tag .remove-subject-btn {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #555;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.active-subject-tag .remove-subject-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  transform: scale(1.08);
}


.active-subject-tag {
 display: inline-flex; 
align-items: center; 
gap: 8px; 


color: var(--primary); 

font-size: 14px; 
box-shadow: 0 4px 10px rgba(168, 85, 247, 0.08); 


padding:6px 12px;

border-radius:16px;

background:rgba(168,85,247,0.15);

font-weight:600;
}


.active-subject-tag .remove-subject-btn {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #555;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.active-subject-tag .remove-subject-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
  transform: scale(1.08);
}


.subject-palette-btn.active {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(168,85,247,0.35);
  border: 2px solid var(--primary);
}

.weekly-chart-block{

margin-top:20px;

padding:16px;

border-radius:16px;

background:rgba(168,85,247,0.06);

border:1px solid rgba(168,85,247,0.2);

}


.goal-row{

display:flex;
align-items:center;

gap:10px;

padding:6px 0;

}

.goal-check{

width:20px;
height:20px;

border-radius:6px;

border:1px solid var(--border-color);

background:transparent;

cursor:pointer;

}

.goal-row.done .goal-text{

text-decoration:line-through;

opacity:.6;

}

.goal-delete{

margin-left:auto;

background:none;
border:none;

cursor:pointer;

opacity:.5;

}

.goal-delete:hover{

opacity:1;
color:#ff6b6b;

}

.goal-add{

margin-top:10px;

background:rgba(168,85,247,0.1);

border:none;

padding:6px 10px;

border-radius:8px;

cursor:pointer;

}
/* section */

.subject-palette-btn {
  border: none;
  border-radius: 14px;
  padding: 0 14px;
  min-width: 80px;
  font-size: 14px;
  font-weight: 600;
height: 35px;
  cursor: pointer;
  transition: 0.2s ease;
text-align: center;
  background: var(--tag-bg);
  color: var(--tag-text);

  white-space: nowrap;
}



.subject-palette-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  border-color: var(--primary);
}





body.dark .subject-palette-btn {

  filter: brightness(1.1);

}


.selected-subject {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}

.selected-subject-tag {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 700;
}



.tag-toggle-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.tag-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

/* section */
.selected-subject {
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: var(--spacing-md);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition: 0.2s ease;
}

.selected-subject:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  background: var(--bg-card);
}

.selected-subject.has-subject {
  border-style: solid;
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.6);

  cursor: default;
}

.selected-subject.has-subject:hover {
  transform: scale(1.02);
}

.subject-placeholder {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.palette-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.palette-toggle-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

/* section */


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

.record-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  animation: recordSlide 0.3s ease;
  border-radius: 18px;
  padding: 18px;
}

.record-item:hover {

  transform: translateY(-2px);
  border-color: var(--primary);


  box-shadow: 0 4px 10px rgba(168,85,247,0.15);
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

}



.record-delete-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.6;
color: var(--text)
}

.record-delete-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.2);
}

.record-content {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: keep-all;
}

.record-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* section */
.subject-stats {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border);
}

.stats-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.stat-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
color: #eee;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-subject {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}


body.dark .stat-subject {
color: #eee;
}

.stat-count {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

/* section */
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 200px;
    opacity: 1;
  }
}

@keyframes recordSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.feed-card{
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  margin: 40px auto;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: var(--text);
}

#settlementBoardSection {
  margin: 28px 0 12px;
}

.settlement-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.settlement-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.settlement-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.settlement-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  font-family: sans-serif;
}

.settlement-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.settlement-week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.settlement-week-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}

.settlement-week-label {
  min-width: 190px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.settlement-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.settlement-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.settlement-summary-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.settlement-summary-value {
  font-size: 22px;
  font-weight: 800;
}

.settlement-carry-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 13px;
}

.settlement-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.settlement-member-select {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px;
}

.settlement-add-btn,
.settlement-remove-btn,
.settlement-toggle {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
}

.settlement-add-btn {
  padding: 0 16px;
  font-weight: 700;
}

.settlement-member-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settlement-member-row {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 16px;
}

.settlement-member-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.settlement-member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settlement-member-profile img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

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

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

.settlement-remove-btn {
  padding: 8px 12px;
}

.settlement-toggle-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.settlement-toggle {
  flex: 1;
  padding: 11px 8px;
  font-weight: 700;
}

.settlement-toggle.active {
  background: rgba(57, 227, 160, 0.16);
  border-color: rgba(57, 227, 160, 0.4);
}

.settlement-toggle.miss.active {
  background: rgba(255, 99, 132, 0.14);
  border-color: rgba(255, 99, 132, 0.4);
}

.settlement-toggle.muted.active {
  background: rgba(255,255,255,0.08);
}

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

.settlement-result {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.settlement-result.good {
  background: rgba(57, 227, 160, 0.14);
  color: #25c989;
}

.settlement-result.bad {
  background: rgba(255, 99, 132, 0.14);
  color: #ff6b8a;
}

.settlement-result.total {
  background: rgba(80, 120, 255, 0.14);
  color: #7da2ff;
}

.settlement-result.neutral {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.settlement-empty {
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 760px) {
  .settlement-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .settlement-header,
  .settlement-carry-box,
  .settlement-add-row,
  .settlement-member-main,
  .settlement-week-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .settlement-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settlement-week-label {
    min-width: 0;
  }

  .settlement-toggle-group {
    flex-wrap: wrap;
  }

  .settlement-toggle {
    min-width: calc(50% - 4px);
  }
}






/* section */
.fab-container {
  position: fixed;
  right: 28px;
  bottom: 28px;

  display: flex;
  flex-direction: column-reverse;
  gap: 10px;

  align-items: flex-end;
  z-index: 12000;
}

/* section */
.fab-container .fab-btn:not(.fab-main) {
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

/* section */
.fab-container.open .fab-btn:not(.fab-main) {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* section */
.fab-btn {

  height: 38px;



  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.4);

  background: rgba(124, 58, 237, 0.08);
  color: #c4b5fd;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;

  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
min-width: 72px;   /* section */
  height: 36px;      /* section */
  padding: 0 12px;   /* section */
  position: relative;
  z-index: 12001;
  pointer-events: auto;

}


.fab-btn:not(.fab-main)::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  margin-right: 6px;
}

/* section */
.fab-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: #a855f7;
  transform: translateY(-2px);
}

.fab-main {
  min-width: unset;
  display: flex;
  align-items: center;
  justify-content: center;
margin-top: 6px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
  font-size: 24px;
  background: #7c3aed;
  color: white;
  border: none;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;

}

.fab-main:hover {
  transform: scale(1.08);
}


.divider {
  height: 1px;
  background: var(--line);
  margin: 60px auto;
  width: 100%;
  opacity: 0.4;
}

.footer-note {
  text-align: center;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--muted);
  opacity: 0.4;
  margin: 80px 0;
}

.community-title {
  font-size: 13px;
  letter-spacing: 6px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.6;
}

.community-title {
  font-size: 13px;
  letter-spacing: 6px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.6;
}









.user-row {
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 8px 0;
  border-radius: 8px;
}

.user-row:hover {
  background: rgba(168, 85, 247, 0.08);
}

.user-list,
.user-grid {
  display: grid;


  justify-items: center;
  padding-top: 20px;

 
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 18px;
}



@media (max-width: 768px) {
  .user-list,
  .user-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.user-card {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}





.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s ease;
background: #22c55e;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.avatar:hover {
  transform: scale(1.05);
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.user-name {
  font-weight: 700;
 transition: color 0.2s ease;
  color: var(--text);
}





.user-card:hover .user-name {
  color: var(--accent);
}

.user-meta {
  font-size: 13px;
  color: var(--text);
  margin-top: 6px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  background: #555; /* section */
}

.status-dot.live {
  background: #ff4d4f; /* section */
}

/* section */
.status-dot.rest {
  background: #555;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}




.user-info {
  flex: 1;
}

.user-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.user-total {
font-size : 13px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}

.status-text {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.6;
}


.user-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124, 58, 237, 0.2);
}



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

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #6b7280;
align-items: center;
}

.online-dot.online {
  background: #22c55e;

}

.online-dot.offline {
  background: #ef4444;
}



.status.live::before,
.status.rest::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}


.status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}









.button {
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #6d28d9;
  border-radius: 999px;
}

.button:hover {
  background: #f3e8ff;
}



h2,h3 {
  color: var(--text) !important;
  opacity: 0.85;
margin-top: 0;
}

.community-title {
  font-size: 14px;
  letter-spacing: 5px;
  font-weight: 600;
margin-top: 0;
}

.hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}



.time-value {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.time-value span {
  font-size: 14px;
  opacity: 0.6;
}

.time-ago-text {
  color: rgba(0,0,0,0.4);
  font-size: 12px;
}



.main-image {
  border-radius: 20px;

}




.theme-toggle {
  position: fixed;   /* section */
  bottom: 25px;

  width: 44px;
  height: 44px;
left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(33, 34, 34, 0.08);
  color: #727272;
  border: none;
  font-size: 18px;
  cursor: pointer;

  z-index: 10000;
}




#manualBtn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25);
  border: none;
  color: white;
  font-size: 26px;
  transition: all 0.25s ease;
}

#manualBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}


.hero {
  width: 100%;
  height: 400px;   /* section */
  position: relative;

}

.hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
    /* section */
}



.blog-hero {
  width: 100%;
  object-fit: cover;
  margin-left: calc(50% - 50vw);
  padding: 0;
  border-bottom-left-radius: 50px;
border-bottom-right-radius: 50px;
display: block;

  width: 100%;
  height: 300px;  
  margin-bottom: -40px;
  position: relative;
z-index: 1;

}

.blog-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    #f6f7fb
  );
}


body.dark .blog-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
}


body.dark .blog-hero {
 width: 100%;
  object-fit: cover;
  margin-left: calc(50% - 50vw);
display: block;
margin: 0;     /* section */
  width: 100%;
  height: 300px;  
  margin-bottom: -40px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  position: relative;
padding:0;
}


.blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
 filter: none;
}







.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(0,0,0,0.5);
}





.card:hover {
  border-color: var(--accent);
}


.progress-bar {
  display: none;
}



.section-header {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;

}

body.dark .section-header {
 text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;

}

.section-title {
  font-weight: 800;
  letter-spacing: 2px;
  color: #1f1f1f;
margin-bottom: 10px;
}

body.dark .section-title {
  font-weight: 800;
  letter-spacing: 1px;
margin-bottom: 10px;
}




.section-label {
  font-size: 10px;
  letter-spacing: 4px;
  opacity: 0.5;
}



.section-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 15px 0;
}




.log-box {
  background: rgba(255,255,255,0.6);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}


.summary-soft {
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 24px;
  margin-top: 30px;
 
}



.summary-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 40px 0;
}


.week-graph {
  margin: 40px 0 30px;
}

.week-date {
  font-size: 12px;
  color: #888;
}

.app-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.35);
backdrop-filter:blur(6px);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

.modal-box{
width:360px;
background: var(--card);
border-radius:18px;
padding:28px;
box-shadow:0 20px 60px rgba(0,0,0,.15);
animation:modalPop .18s ease;
}

@keyframes modalPop{
from{
opacity:0;
transform:translateY(10px) scale(.97);
}
to{
opacity:1;
transform:translateY(0) scale(1);
}
}


#modalInput{
width:220px;
padding:10px 14px;

font-size:16px;
color:#fff;
appearance:textfield;
background:rgba(255,255,255,0.08);

border:2px solid rgba(255,255,255,0.2);
border-radius:10px;

outline:none;

transition:all .2s;
}

#modalInput::-webkit-outer-spin-button,
#modalInput::-webkit-inner-spin-button{
-webkit-appearance:none;
margin:0;
}



#modalInput:focus{
border-color:#9d6bff;
box-shadow:0 0 0 3px rgba(157,107,255,.25);
background:rgba(255,255,255,0.12);
}

.modal-title{
font-size:18px;
font-weight:600;
margin-bottom:20px;
text-align:center;
color:var(--text);
}


.modal-buttons{
margin-top:22px;
display:flex;
gap:12px;
justify-content:flex-end;
}

.modal-buttons button{
padding:10px 20px;
border:none;
border-radius:12px;

font-size:14px;
font-weight:600;

cursor:pointer;

transition:all .15s;
}

#inputOk{
background:linear-gradient(135deg,#7b5cff,#9d6bff);
color:white;
}

#inputOk:hover{
transform:translateY(-1px);
box-shadow:0 4px 14px rgba(123,92,255,.4);
}

#inputCancel{
background:rgba(255,255,255,0.15);
color:#fff;
}

#inputCancel:hover{
background:rgba(255,255,255,0.25);
}

.btn-cancel{
background:#eee;
}

.btn-danger{
background:linear-gradient(135deg,#ff6a6a,#ff3c6f);
color:white;
}

.modal-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.35);
backdrop-filter:blur(6px);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
animation:fadeIn .2s ease;
}

@keyframes fadeIn{
from{opacity:0}
to{opacity:1}
}

.modal-overlay.show {
    display: flex; 
    opacity: 1;
    pointer-events: auto;
}

.memo-modal{
width:480px;
max-width:90%;
background:var(--card);
border-radius:20px;
padding:28px;
box-shadow:
0 20px 60px rgba(0,0,0,0.15),
0 4px 10px rgba(0,0,0,0.05);
animation:modalPop .18s ease;
}

@keyframes modalPop{
from{
transform:translateY(10px) scale(.98);
opacity:0;
}
to{
transform:translateY(0) scale(1);
opacity:1;
}
}




.modal-content {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;

  width: 420px;
  max-width: 90%;

  box-shadow: 0 20px 60px rgba(0,0,0,0.12);

  display: flex;
  flex-direction: column;
  gap: 16px;
}


.modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}


.manual-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}



@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* section */
.modal-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* section */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-control {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 6px 12px;
  border-radius: 999px;   /* section */
height: 40px;
  background: var(--card, #fff);
  border: 1.5px solid rgba(168,85,247,0.35);
  box-shadow: 0 2px 10px rgba(168,85,247,0.08);
}


body:not(.dark) .num-btn {
  color: #7c3aed;
height: 40px;
}

body:not(.dark) .num-btn:hover {
  background: rgba(168,85,247,0.08);
}





.number-control input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  color: inherit;
height: 54px;
}

.num-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #a855f7;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s ease;
}

.num-btn:hover {
  background: rgba(168,85,247,0.12);
}

.num-btn:active {
  transform: scale(0.95);
}






.modal-input {
  background: #f9fafb;
  border: 1px solid #ddd;
  padding: 0 14px;
  border-radius: 14px;
  color: #1a1a1a;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
  height: 52px;
  line-height: 52px;
  box-sizing: border-box;
margin-bottom: 3px;
}

#userSelect {
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
  background-color: #f9fafb;
}

#userSelect option {
  color: #1a1a1a;
  background-color: #ffffff;
}

.modal-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

.modal-primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  height: 48px;
  border-radius: 18px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124,58,237,0.35);
}

.modal-secondary-btn {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  height: 48px;
  border-radius: 18px;
  transition: all 0.2s ease;
}

.modal-secondary-btn:hover {
  background: var(--accent);
  color: #fff;
}















body.dark .modal-input {
  height: 52px;
  line-height: 52px;
  margin-bottom: 3px;
}


.modal-close-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  height: 48px;
  border-radius: 18px;
}








body.dark .modal-primary-btn:hover {
  transform: translateY(-2px);
}











input.bump {
  animation: bump 0.15s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* section */
.total-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* section */
    gap: 20px;
    width: 100%;
}

.total-toggle span {
  padding:6px 12px;
  border-radius:20px;
  cursor:pointer;
  transition:0.2s;
}

.total-toggle .active {
  background:#a855f7;
  color:#fff;
}

.total-container {
  margin: 45px auto;
  width: 100%;
  max-width: 800px;
  padding: 40px 30px 60px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: var(--text-light);
  backdrop-filter: blur(20px);
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
margin-top: -50px;
z-index: 10;
position: relative;
}




.community-summary {
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 28px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.summary-value {
  font-size: 48px;
  font-weight: 700;
  color: #a855f7;
  text-align: center;
}



.summary-label {
  text-align: center;
  color: #888;
  margin-bottom: 10px;
margin-bottom: 20px;
}

.summary-value,
.total-time {
  color: #a855f7;
}

.summary-value small {
  font-size: 14px;
  color: #888;
}

.total-toggle {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.total-toggle span {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 18px;
  transition: 0.2s;
  color: #555;
}

.total-toggle .active {
  background: #a855f7;
  color: #fff;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.total-left {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.total-name {
  font-weight: 700;
  color: #eee;
}

.total-time {
  font-size: 18px;
  font-weight: 800;
  color: #a855f7;
}

.overview-summary {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 30px 0 40px;
}

.overview-item {
  text-align: center;
}

.overview-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.overview-value {
  font-size: 20px;
  font-weight: 600;
}



body.mypage .feed-card {
  display: none;
}


.profile-id {
  font-size: 12px;
  opacity: 0.5;
}





.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;   /* section */
}





.mypage-total {
  font-size: 24px;
  font-weight: 800;
  margin: 20px 0;
  color: #fff;
}

/* section */
.mypage-block {
    width: 100%;             
    margin: 0 auto 30px;     /* section */
    display: flex;           /* section */
    flex-direction: column;  /* section */
    align-items: center;     /* section */
    text-align: center;  
color: #7c3aed;  
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

body.dark .mypage-block-title {
  letter-spacing: 1.5px;;
 font-weight: 500;
}

.mypage-block-title {
  color: #a855f7;
  letter-spacing: 1px;
  font-weight: 500;
}




.day {

 width: 28px;

 height: 28px;

 border-radius: 6px;

}

.day.active {

 background: #1da1f2;

}


.mypage-card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
 padding: 40px 30px;
 border-radius: 28px;
 backdrop-filter: blur(20px);
 text-align: center;

  background: var(--card);
  margin: 40px auto;
  max-width: 730px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: var(--text);
}







.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;

  border: 3px solid var(--card-border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* section */
.avatar, .mypage-avatar {
  animation: float-user 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #ffffff;
}

.profile-id {
  font-size: 12px;
  color: #888;
  margin-bottom: 24px;
}




.mypage-name {

 font-size: 22px;

 font-weight: 600;

}


.mypage-id {

 opacity: 0.6;

 margin-bottom: 20px;

}


.mypage-stats {

display: flex;
justify-content: space-around;

margin-top: 20px;

}



.today-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}








/* section */
.total-scroll-area {
  max-height: 60vh; /* section */
  overflow-y: auto;
  padding-right: 5px;
}

.total-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.total-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  transition: all 0.2s;
}

.week-graph {
  display:flex;
  align-items:flex-end;
  gap:10px;
  height:100px;
  margin:30px 0;
}

.week-bar {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  height: 100%;
}

.bar-fill {
  width:50px;
  background:linear-gradient(180deg,#a855f7,#7c3aed);
  border-radius:6px;
  transition:0.3s;
}

.bar-label {
  margin-top:6px;
  font-size:11px;
  color:var(--text-light);
}

.week-row {
  display:flex;
  align-items:center;
  gap:12px;
  margin:6px 0;
}

.week-bar-bg {
  flex:1;
  height:8px;
  background:#eee;
  border-radius:6px;
}



.user-bar-fill {
  width: 0;
  height: 8px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  border-radius: 6px;
  transition: width 0.8s ease;
}

.week-graph .week-bar-fill {
  width: 50px;
  height: 0;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  border-radius: 6px;
  transition: height 0.5s ease;
margin-bottom: 20px;
}

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

.user-bar-bg {
  flex: 1;
  height: 12px;
  background: #eee;
  border-radius: 6px;

}

.user-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,#a855f7,#7c3aed);
  border-radius: 6px;
}

.user-left {
  width:80px;
}



.user-time {
  width:50px;
  text-align:right;
  font-weight:600;
}

.total-container .user-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  margin-right: 6px;
}

.recent-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}



.recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.recent-row span:first-child {
  font-weight: 500;
}

.recent-row span:last-child {
  font-weight: 600;
  color: #a855f7;
}

.recent-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-left span:last-child {
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.recent-left span:last-child:hover {
  color: #a855f7;
}


.recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
}

.recent-time {
  font-weight: 600;
  color: #a855f7;
}


.calendar-grid {
  display: grid;
grid-template-columns: repeat(7, minmax(45px, 1fr));
  margin-bottom: -10px;
gap: 8px;
width:auto
}

body.dark .calendar-grid {
  display: grid;
grid-template-columns: repeat(7, minmax(45px, 1fr));
  margin-bottom: -10px;
gap: 8px;
}


.monthly-attendance {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar {

border: 1px solid #2a2a2a;
 display: grid;
width: 100%;


 gap: 6px;
align-items: center;

}

.calendar-day {
  position: relative;   /* section */
  width: 100%;          /* section */
  aspect-ratio: 1;
  border: 1px solid #2a2a33;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #ddd;
color: #979797;
}

body.dark .calendar-day {

position: relative;   /* section */
  width: 100%;          /* section */
  aspect-ratio: 1;

  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.calendar-day:hover {
  background: #f0f0f3;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.calendar-day.attended {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  color: #fff;
}

.calendar-date {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--calendar-date-color);
}









.study-note {
  background: var(--memo-bg);
  letter-spacing: 1.5px;
  color: #a855f7;
 font-weight: 500;
}

body.dark .study-note {
  letter-spacing: 1.5px;
 font-weight: 500;
}

/* section */
.calendar-day:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

 
.calendar-day:hover::after {
  content: attr(data-detail);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 10;
  border: 1px solid #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}


.tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    gap: 6px;
    transition: 0.2s ease;
}



.memo-container {
    width: 400px !important;
    background: transparent;
    border: none !important;
    padding: 0 !important;
    position: relative;
    align-items: center;
    margin-top: 10px;
    margin-bottom: -20px;
}






.memo-label {
    color: #7c3aed !important;
}






/* section */
.tag-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.subject-btn {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 10px;
    color: #a855f7;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.subject-btn:hover {
    background: #2a2a2a;
    border-color: #a855f7;
    transform: translateY(-2px);
}




.tag-close {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.9;
    color: #fff;
    font-size: 13px;
}

.tag-close:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* section */
.subject-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.subject-name {
    color: #ccc;
}

.subject-time {
    font-weight: bold;
    color: #a855f7;
}

/* section */
.memo-area {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    min-height: 80px;
    outline: none;
}




/* section */
.tag-dropdown {
    position: absolute;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 5px;
    display: none;
    z-index: 100;
    gap: 5px;
}

#manualHistory {
  min-height: 100px;
}

.manual-card {
  background: #c4c4c4;

  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

body.dark .manual-card {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

.manual-card:hover {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168,85,247,0.3);
}

.manual-box {
  background: #111;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #222;
}




@keyframes tagPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}



@keyframes fadeUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}




.pop-tag {
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.dynamic-tag {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  color: #c084fc;
}






#manualHistory.open {
  max-height: 300px;
  opacity: 1;
}

@keyframes toastIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

.memo-input-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memo-file-btn{
display:inline-block;

padding:8px 14px;

border-radius:10px;

background:rgba(255,255,255,0.12);
color:#fff;

font-size:14px;
font-weight:500;

cursor:pointer;
margin-bottom: 20px;
transition:.15s;
}

.memo-file-btn:hover{
background:rgba(255,255,255,0.22);
}


#memoPreview{
margin-top:12px;
max-width:180px;
border-radius:10px;
box-shadow:0 4px 14px rgba(0,0,0,.3);
}

#memoFileName{
margin-left:10px;
font-size:13px;
color:#bbb;
}

.memo-textarea{
width:90%;
height:160px;
padding:16px;
border-radius:14px;
border:2px solid #ececec;
font-size:14px;
resize:none;
outline:none;
transition:.15s;
font-family:inherit;
line-height:1.5;
background: var(--bg);
color: var(--text);
}

.memo-textarea:focus{
border-color:#8b6cff;
box-shadow:0 0 0 3px rgba(139,108,255,0.15);
}

.fab-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 10px;
}

.fab-image-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.28);
}

.fab-file-name {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}



#activityCard {
background: var(--card-bg);
  border-radius: 28px;
  margin: 20 auto;
margin-bottom: 15px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
backdrop-filter: blur(23px);
box-shadow: 0 8px 24px rgba(168,85,247,0.08);
}

body:not(.dark) #activityCard {
  box-shadow: 0 8px 24px rgba(168,85,247,0.08);

}


.feed-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
border: none;
}




@keyframes modalFade {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.memo-header{
margin-bottom:16px;
}

.memo-header h2{
font-size:22px;
font-weight:700;
letter-spacing:.02em;
}


#memoCount{
font-size:13px;
color:#999;
}

.memo-footer{
margin-top:16px;
display:flex;
align-items:center;
justify-content:space-between;
}

.memo-save-btn{
padding:12px 24px;
border:none;
border-radius:14px;
font-size:14px;
font-weight:600;
color:white;
cursor:pointer;
width: 95%;
background:linear-gradient(
135deg,
#8b6cff,
#6c63ff
);

transition:.15s;
}

.memo-save-btn:hover{
transform:translateY(-1px);
box-shadow:0 6px 16px rgba(108,99,255,.35);
}

.memo-save-btn:active{
transform:translateY(0);
box-shadow:none;
}
.memo-title {
  color: var(--text);
  font-weight: 600;
}

body.dark .memo-title {
  color: #fff;
}

.memo-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}




/* section */
.modal-history:empty {
    display: none;
}

/* section */
.modal-history::-webkit-scrollbar {
    width: 6px;
}

.modal-history::-webkit-scrollbar-track {
    background: transparent;
}

.modal-history::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.modal-history::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.modal-history {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: all 0.2s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.history-item button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.history-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-time {
  color: #ffffff;
  font-weight: 500;
  opacity: 0.7;
  font-size: 11px;
}
.history-limit {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.history-actions button {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}



.toast.success {
  background: linear-gradient(135deg,#7c3aed,#9333ea);
  color: white;
}

.toast.error {
  background: #ef4444;
  color: white;
}

#toast-root{
position:fixed;
bottom:30px;
left:50%;
transform:translateX(-50%);
z-index:13050;
display:flex;
flex-direction:column;
gap:10px;
}

.toast{
padding:12px 18px;

border-radius:10px;

font-size:14px;
font-weight:500;

color:white;

background:#333;

box-shadow:0 6px 20px rgba(0,0,0,.25);

animation:toastIn .25s ease;
z-index:10001;
}

.toast.success{
background:linear-gradient(135deg,#ba6ded,#8321b0);
}

.toast.error{
background:linear-gradient(135deg,#ff6a6a,#ff3c6f);
}

@keyframes toastIn{
from{
opacity:0;
transform:translateY(10px);
}
to{
opacity:1;
transform:translateY(0);
}
}


#toast-notification {
  position: fixed;
  top: 40px;
  right: 40px;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg,#a855f7,#7c3aed);
  color: white;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  z-index: 999999;   /* section */
  opacity: 1;
}






.feed-avatar {
 width: 65px;
  height: 65px;
  border-radius: 50%;
}

.feed-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168,85,247,0.4);
transition: transform .15s ease;
}

.feed-avatar img:hover {

  transform: scale(1.05);

}



.feed-nickname {
  font-weight: 600;
  font-size: 14px;
}

.feed-content {
  font-size: 15px;
  line-height: 1.6;
}


.feed-time {

  font-size: 12px;

  color: var(--muted);

  font-variant-numeric: tabular-nums;

}

.feed-date {
  font-size: 13px;
  opacity: 0.6;
}

.feed-item {

  display: flex;
  justify-content: space-between;

  padding: 16px 18px;

  border-radius: 14px;

  background: var(--card);

  border: 1px solid var(--line);

  transition: transform .15s ease, box-shadow .15s ease;
}

.feed-item:hover {

  transform: translateY(-2px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.15);

}

.feed-main {
  display: flex;
  flex-direction: column;
}

.feed-like {

  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 15px;
  color: var(--muted);

  transition: transform .15s ease;
}

.feed-like:hover {
  transform: scale(1.1);
}

.feed-like:active {
  transform: scale(0.9);
}


.feed-like.liked .heart-icon {
  animation: heartPop .3s ease;
  transform: scale(1.2);
}

.heart-icon {

  display: inline-block;

  transition: transform .15s ease;

}

@keyframes heartPop {

  0% { transform: scale(1); }

  40% { transform: scale(1.4); }

  100% { transform: scale(1); }

}

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



.feed-left {
  display: flex;
  gap: 16px;
}

.feed-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}






.feed-item .feed-content {
  color: var(--text);
}

.feed-item .feed-time {
  color: var(--muted);
}

.feed-item.mine {
 border: none;
}

.feed-item.mine:hover {
  box-shadow: 0 0 0 1px rgba(135, 85, 182, 0.219),
              0 8px 24px rgba(124,58,237,0.15);
  transform: translateY(-2px);
background: rgba(168,85,247,0.1);
}




.feed-item-inner.mine {
  box-shadow: 0 0 0 1px rgba(168,85,247,0.4),
              0 8px 24px rgba(124,58,237,0.12);
width: 100%;
}


.delete-btn {

  margin-left: 10px;

  font-size: 12px;
  color: var(--muted);

  cursor: pointer;

  opacity: .5;

  transition: opacity .15s ease;
}


.input-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
pointer-events: none;
}

.input-inner {
  pointer-events: auto;
}


.delete-btn:hover {
  opacity: 1;
  color: #ff6b6b;
}

.feed-content {
  flex: 1;
}

.feed-header {
  justify-content: space-between;
  align-items: center;
position: relative;
  display: flex;
  gap: 12px;
}

.feed-name {
  position: relative;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  display: inline-block;
  align-items: center;
  gap: 6px;
}

.feed-name-wrapper{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-tooltip {

  position: absolute;
white-space: normal;
  left: 0;
  top: 28px;

  min-width: 140px;
  max-width: 240px;

  padding: 14px 16px;

  font-size: 13px;
  line-height: 1.6;

  border-radius: 14px;

  background: var(--card);
  color: var(--text);

  box-shadow: 0 15px 35px rgba(0,0,0,0.35);

  display: none;

  pointer-events: none;

  z-index: 1000;

  backdrop-filter: blur(8px);


}



.feed-name-wrapper:hover .profile-tooltip {
  display: block;
}




.feed-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.feed-reaction {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.heart-btn {
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0.7;
}

.page-wrapper {
  max-width: 880px;
  margin: -90px auto 0;
  position: relative;
  z-index: 10;
}


@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1.2); }
}

.heart-btn.liked {
  opacity: 0.9;
  transform: scale(1.3);
  text-shadow:
    0 0 6px rgba(168,85,247,0.6),
    0 0 18px rgba(168,85,247,0.4);
}


.heart-btn:hover {
  opacity: 1.1;
  transform: scale(1.15);
}


.heart-btn.pop {
  animation: heartPop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1.3); }
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.6); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1.3); }
}





@media (max-width: 768px) {
  .delete-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.feed-actions {
  opacity: 0;
  transition: 0.2s;
cursor: pointer;

}




.confirm-box {
  width: 360px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(40, 40, 40, 0.95),
    rgba(28, 28, 28, 0.95)
  );
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(168, 85, 247, 0.15);
  text-align: center;
  animation: popUp 0.22s ease-out;
}

.confirm-box p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #f3f3f3;
}

/* section */
.confirm-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* section */
#confirmCancel {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ddd;
  transition: all 0.2s ease;
}

#confirmCancel:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* section */
#confirmYes {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}

#confirmYes:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

/* section */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.overview-box {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.overview-item {
  flex: 1;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
}

.user-total {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

.hidden {
  display: none !important;
}

.overview-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;

  max-width: 900px;     /* section */
  margin: 50px auto 0;  /* section */
}

.extra-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;

  text-align: center;


  transition: transform 0.2s ease, box-shadow 0.2s ease;

  max-width: 1000px;
  margin: 40px auto 0;
}


.extra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}



.feed-image {
  width: 100%;
  max-width: 240px;
  border-radius: 14px;
  margin-top: 10px;
  display: block;
}



.summary-chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 13px;
}


.label {
  font-size: 13px;
  color: var(--muted);
margin-bottom: 15px;
}

.extra-label {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.extra-value {
  font-size: 22px;
  font-weight: 700;

  text-shadow:
    0 0 12px rgba(168,85,247,0.6),
    0 0 30px rgba(168,85,247,0.4);
}

.extra-sub {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 6px;
}




.overview-title {
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 24px;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
text-align: center;
}


.trend-up {
  font-size: 14px;
  margin-left: 10px;
  color: #7c3aed;
  font-weight: 600;
}

body.overview-mode {
  padding-bottom: 120px; /* section */
}





.fire {
  display: inline-block;
  transition: transform 0.2s ease;
}

.fire-live {
  animation: firePulse 1.2s infinite ease-in-out;
}

@keyframes firePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2) rotate(-5deg); }
  100% { transform: scale(1); }
}

.week-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-top: 20px;
}



.week-bar-fill:hover{
filter:brightness(1.1);
}

.bar-label {
  margin-top: 6px;
  opacity: 0.6;
  font-size:11px;
  color:var(--text-light);
}




.newGoalInput {
text-align: center;
width: auto;
margin-top: 10px;
height: 15px;
background: var(--bg-card);
}


.week-chart .bar {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    #caa6ff,
    #7c3aed
  );
  opacity: 0.8;
  transition: 0.3s ease;
}

.week-chart .bar:hover {
  opacity: 1;
}

.weekly-status{
text-align:center;
font-size:13px;
margin:6px 0 12px;
color:#8b6cff;
font-weight:500;
}

.weekly-status.good {
  color: #a78bfa;
  font-weight: 600;
}

.weekly-status.bad {
  color: #f87171;
  font-weight: 600;
}


.skeleton-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
}


.skeleton-card {
  height: 120px;
  margin-bottom: 20px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    #2a1f3d 25%,
    #3a2a55 50%,
    #2a1f3d 75%
  );
  background-size: 200% 100%;
  animation: loading 1.2s infinite;
  border-radius: 10px;
  margin-bottom: 16px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-title {
  height: 28px;
  width: 160px;
}

.skeleton-block {
  height: 80px;
}

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

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

.goal-check-btn{

width:20px;
height:20px;

border-radius:6px;

border:1px solid var(--border-color);

background:transparent;

cursor:pointer;

}

.goal-text{
flex:1;
font-size:14px;
}

.goal-delete-btn{

background:none;
border:none;

cursor:pointer;

opacity:.5;

}

.goal-delete-btn:hover{
opacity:1;
color:#ff6b6b;
}

.goal-input-area{
margin-top:10px;
display:flex;
gap:6px;
}

.goal-text-input{
flex:1;
padding:6px 10px;
border-radius:8px;
border:1px solid var(--border-color);
}

.goal-save-btn{
padding:6px 10px;
border:none;
border-radius:8px;
background:#a855f7;
color:white;
cursor:pointer;
}

.goal-add-trigger{

background:rgba(168,85,247,0.1);

border:none;

padding:6px 12px;

border-radius:8px;
color: var(--text);
cursor:pointer;
text-align: center;

}




.goal-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
}

.goal-left {
  padding: 20px;
  background: var(--card);
}

.goal-right {
  padding: 20px;
  background: var(--accent-soft);
}

.goal-week-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
  margin-top: 4px;
  font-weight: 500;
}

.goal-progress-container {
  margin-top: 16px;
}

.goal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.goal-stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.goal-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.goal-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.progress-bar-wrapper {
  margin: 16px 0;
}

.progress-bar-bg {
  width: 100%;
  height: 24px;
  background: var(--bg-elevated);
  background: color-mix(in srgb, var(--bg-elevated) 84%, #ffffff 16%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 12px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.progress-percentage {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.goal-achievement {
  text-align: center;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
  animation: celebrate 0.6s ease;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes celebrate {
  0% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.no-goal {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.no-goal p {
  margin-bottom: 8px;
  font-size: 14px;
}

.no-goal small {
  font-size: 12px;
}

.no-goal code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-family: monospace;
}

/* section */
.weekly-summary {
  margin-top: 12px;
}

.weekly-chart{
display:flex;
align-items:flex-end;
gap:8px;
height:120px;
margin-top:10px;
}

.chart-bar{
flex:1;
display:flex;
flex-direction:column;
align-items:center;
justify-content:flex-end;
min-width:0;
}

.chart-bar-hour{
font-size:10px;
line-height:1;
color:var(--text-muted);
margin-bottom:6px;
}

.chart-bar-fill{
width:100%;
min-height:4px;
border-radius:8px;
background:linear-gradient(180deg,#9f7aea 0%, #7c5cff 100%);
}

.chart-bar-label{
font-size:11px;
line-height:1;
margin-top:6px;
color:var(--text-muted);
}

.last-week-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  flex-wrap: wrap;
}

.last-week-label {
  color: var(--text-muted);
  font-weight: 500;
  flex: 1 1 auto;
}

.last-week-range {
  color: var(--text-muted);
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 6px;
}

.last-week-hours {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-left: auto;
}

.month-goal-cat{
display:block;
width:100%;
max-height:250px;
object-fit:cover;
border-radius:12px;
margin-top:10px;
margin-bottom:12px;
}

.month-goal-edit-row{
display:flex;
gap:8px;
margin-top:12px;
}

.month-goal-input{
flex:1;
height:36px;
padding:0 10px;
border-radius:10px;
border:1px solid var(--border-color);
background:var(--card-bg);
color:var(--text);
font-size:13px;
}

.month-goal-save-btn{
height:36px;
padding:0 12px;
border:none;
border-radius:10px;
cursor:pointer;
background:linear-gradient(135deg,#9f7aea,#7c5cff);
color:#fff;
font-weight:600;
font-size:13px;
}

.weekly-stats{
display:flex;
justify-content:space-around;
margin-bottom:18px;
}

.weekly-stat{
text-align:center;
}

.weekly-stat-value{
font-size:18px;
font-weight:600;
display:block;
}

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

.weekly-stats{
display:flex;
justify-content:space-around;
margin-bottom:18px;
}

.weekly-stat{
text-align:center;
}

.weekly-stat-value{
font-size:18px;
font-weight:600;
display:block;
}

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


.free-goals-card {
  background: var(--bg-card);
 
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);

}

.free-goals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;


}

.free-goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.free-goal-item:hover {
  border-color: var(--primary);
}

.free-goal-item.completed {
  opacity: 0.6;
}

.free-goal-item.completed .goal-label {
  text-decoration: line-through;
}

.goal-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.goal-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}

.goal-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.goal-remove-btn:hover {
  background: var(--danger);
  color: white;
}

.free-goal-add {
  display: flex;
  gap: 8px;
}

.goal-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.goal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.goal-add-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.weekly-goal::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #a855f7, #8b5cf6);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}










.memo-save-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 0;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;

  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;

  transition: 0.2s ease;
}

.memo-save-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.memo-save-btn:active {
  transform: translateY(0);
}


.community-progress{
margin-top:12px;
max-width:260px;
margin-left:auto;
margin-right:auto;
}

.community-progress-bar{
height:8px;
background:#eee;
border-radius:6px;
overflow:hidden;
}

.community-progress-fill{
height:100%;
background:linear-gradient(90deg,#9f7aea,#7c5cff);
}

.community-progress-text{
font-size:12px;
margin-top:6px;
color:var(--text-muted);
text-align:center;
}

.graph-title{
text-align:center;
font-size:13px;
color:var(--text-muted);
margin-top:20px;
margin-bottom:8px;
letter-spacing:.08em;
}
/* section */
@media (max-width: 768px) {
  body.mypage .page-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.mypage .mypage-card {
    padding: 14px;
    border-radius: 16px;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }

  body.mypage .mypage-widgets {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.mypage .widget-card {
    padding: 16px;
    border-radius: 14px;
  }

  body.mypage .weekly-main {
    font-size: 28px;
  }

  body.mypage .goal-stats {
    gap: 8px;
  }

  body.mypage .goal-stat {
    padding: 8px 6px;
  }

  body.mypage .goal-stat-value {
    font-size: 16px;
  }

  body.mypage .chart-bar {
    min-width: 0;
  }

  body.mypage .weekly-chart {
    gap: 4px;
  }

  body.mypage .profile-card,
  body.mypage .attendance-block,
  body.mypage .study-note-block,
  body.mypage .goal-card,
  body.mypage .free-goals-card {
    border-radius: 14px;
    padding: 14px;
  }

  body.mypage .profile-name {
    font-size: 20px;
    line-height: 1.2;
  }

  body.mypage .block-title {
    font-size: 15px;
    letter-spacing: 0;
  }

  body.mypage .goals-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.mypage .attendance-quick-stats {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  body.mypage .stat-pill {
    font-size: 12px;
    padding: 5px 10px;
  }

  body.mypage .monthly-summary {
    font-size: 13px;
    padding: 12px;
  }

  body.mypage .calendar-container {
    margin: 10px 0;
  }

  body.mypage .calendar-grid {
    gap: 6px;
    padding: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  body.mypage .calendar-day {
    width: 100%;
    min-width: 0;
    height: 38px;
    border-radius: 10px;
    font-size: 12px;
  }

  body.mypage .calendar-date {
    font-size: 12px;
  }

  body.mypage .calendar-detail {
    padding: 10px;
    font-size: 12px;
  }

  body.mypage .monthly-hint {
    font-size: 12px;
    margin: 10px 0 0;
  }

  body.mypage .study-note-block {
    padding: 14px;
  }

  body.mypage .subject-palette {
    gap: 8px;
    padding: 4px 2px 8px;
  }

  body.mypage .subject-palette-btn,
  body.mypage .subject-add-btn {
    min-width: auto;
    height: 34px;
    font-size: 12px;
    padding: 0 10px;
    border-radius: 10px;
  }

  body.mypage .active-subject,
  body.mypage #activeSubject {
    gap: 6px;
    margin: 8px 0;
  }

  body.mypage .active-subject-chip,
  body.mypage .active-subject-tag {
    font-size: 12px;
    padding: 5px 10px;
  }

  body.mypage .memo-editor {
    min-height: 96px;
    font-size: 13px;
    padding: 12px;
  }

  body.mypage .note-save-btn {
    width: 100%;
    height: 40px;
    margin-top: 8px;
  }

  body.mypage .record-list {
    max-height: 320px;
    gap: 8px;
  }

  body.mypage .record-item {
    padding: 10px;
  }

  body.mypage .record-content {
    font-size: 13px;
    line-height: 1.5;
  }

  body.mypage .record-time {
    font-size: 11px;
  }

  body.mypage .free-goal-add {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  body.mypage .goal-input {
    min-width: 0;
    width: 100%;
    font-size: 13px;
  }

  body.mypage .goal-add-btn {
    white-space: nowrap;
    padding: 0 12px;
  }

  body.mypage .free-goal-item {
    gap: 8px;
    align-items: flex-start;
  }

  body.mypage .goal-label {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
  }
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-modal.show {
  display: flex;
}

.image-modal-img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.feed-image {
  cursor: zoom-in;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.image-modal.show {
  display: flex;
}

.image-modal-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transform-origin: center center;
  transition: transform 0.08s ease;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.image-modal-img.dragging {
  cursor: grabbing;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.image-modal.show {
  display: flex;
}

.image-modal-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transform-origin: center center;
  transition: transform 0.06s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.image-modal-img.dragging {
  cursor: grabbing;
}

.image-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 38px;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.feed-image {
  cursor: zoom-in;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

#guildSelect {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
margin-right: 50px;
margin-top: 50px;
}
