/* ============================================================
   일정관리 — 파스텔 / 라벤더 디자인 시스템
   ============================================================ */
:root {
  --bg: #EAE9F4;
  --sidebar: #2B2840;
  --sidebar-ink: #B4B0C8;
  --surface: #FFFFFF;
  --surface-2: #F6F5FC;
  --text: #2D2A3E;
  --muted: #8E8BA1;
  --line: #ECEAF4;
  --grid: #F2F0F8;
  --accent: #C7CEEA;
  --accent-strong: #A6B1E1;
  --accent-deep: #94A0D6;
  --danger: #F6A6A6;
  --danger-strong: #E98B8B;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(45,40,80,.04), 0 4px 14px rgba(45,40,80,.05);
  --shadow: 0 4px 14px rgba(45,40,80,.06), 0 16px 40px rgba(45,40,80,.10);

  --day-w: 34px;
  --row-h: 40px;
  --label-w: 220px;

  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ============================================================
   앱 셸 + 사이드바
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  flex: 0 0 76px; width: 76px;
  background: var(--sidebar);
  margin: 14px; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 16px;
  position: sticky; top: 14px; height: calc(100vh - 28px);
  box-shadow: var(--shadow);
}
.logo {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(135deg, #A6B1E1, #C8B6FF);
  color: #fff; display: grid; place-items: center; margin-bottom: 24px;
  box-shadow: 0 6px 16px rgba(150,140,220,.45);
}
.logo svg { width: 24px; height: 24px; }

.nav { display: flex; flex-direction: column; gap: 6px; width: 100%; align-items: center; }
.nav-item {
  width: 58px; padding: 9px 0 7px; border: 0; background: transparent;
  color: var(--sidebar-ink); border-radius: 15px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600; font-family: inherit; transition: all .16s ease;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #322F4A; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.22); }

.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 7px; align-items: center; }
.nav-util {
  width: 42px; height: 42px; border-radius: 13px; border: 0;
  background: rgba(255,255,255,.06); color: var(--sidebar-ink);
  cursor: pointer; display: grid; place-items: center; transition: all .16s ease;
}
.nav-util:hover { background: rgba(255,255,255,.15); color: #fff; }
.nav-util svg { width: 19px; height: 19px; }

/* ============================================================
   메인 / 앱바 / 툴바
   ============================================================ */
.main { flex: 1 1 auto; min-width: 0; padding: 18px 26px 44px 8px; }

.appbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 27px; font-weight: 800; margin: 0; letter-spacing: -.6px; }
.page-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.filter { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 600; }

select, input[type="text"], input[type="date"], textarea {
  font-family: inherit; font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 12px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(166,177,225,.25); }
textarea { resize: vertical; }

.btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 15px;
  border-radius: 12px; cursor: pointer; transition: all .15s ease; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-accent2 { background: #9FE0C6; border-color: #9FE0C6; color: #1E5A43; }
.btn-accent2:hover { background: #88D7B7; border-color: #88D7B7; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #5A2B2B; }
.btn-danger:hover { background: var(--danger-strong); border-color: var(--danger-strong); }

/* ============================================================
   통계 스트립
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.stat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; flex: 0 0 auto; }
.stat-meta { display: flex; flex-direction: column; line-height: 1.1; }
.stat-meta b { font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   뷰 전환
   ============================================================ */
.content { }
.view { display: none; animation: fade .24s ease; }
.view.is-active { display: block; }
#comboView.is-active { display: flex; flex-direction: column; gap: 22px; }
@keyframes fade { from { opacity: 0; transform: translateY(5px);} to { opacity: 1; transform: none; } }

.combo-block { }
.block-head { margin: 0 2px 11px; }
.block-title { font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 9px; }
.block-title::before { content: ''; width: 6px; height: 17px; border-radius: 4px; background: var(--accent-strong); }

.empty {
  background: var(--surface); border: 1px dashed #D6D3E4; border-radius: var(--radius);
  padding: 64px 24px; text-align: center; color: var(--muted); box-shadow: var(--shadow-sm);
}

/* ============================================================
   간트차트
   ============================================================ */
.g-scroll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow-x: hidden; overflow-y: auto; max-height: calc(100vh - 240px); }
/* 통합 뷰: 세로 스크롤 없이 전체 행 표시 */
.combo .g-scroll { max-height: none; overflow-y: visible; }
.g-inner { position: relative; width: 100%; }

.g-head { display: flex; position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); }
.g-corner { flex: 0 0 var(--label-w); background: var(--surface); border-right: 1px solid var(--line); display: flex; align-items: flex-end; padding: 0 14px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.g-axis { flex: 1 1 auto; min-width: 0; }
.g-months { display: flex; height: 24px; }
.g-month { flex: 0 0 auto; min-width: 0; font-size: 11px; font-weight: 700; color: var(--text); padding: 5px 0 0 8px; border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-days { display: grid; height: 26px; }
.g-day { font-size: 11px; color: var(--muted); text-align: center; line-height: 26px; border-right: 1px solid var(--grid); overflow: hidden; }
.g-day.weekend { color: #C0738A; background: #FBF3F6; }

.g-bodywrap { position: relative; }
.g-overlay { position: absolute; top: 0; bottom: 0; left: var(--label-w); right: 0; pointer-events: none; z-index: 1; }
.g-weekend { position: absolute; top: 0; bottom: 0; background: rgba(252,186,211,.10); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #F08F8F; opacity: .85; transform: translateX(-1px); }
.g-today span { position: absolute; top: 2px; left: 3px; font-size: 10px; font-weight: 700; color: #E26B6B; background: #fff; padding: 0 4px; border-radius: 5px; white-space: nowrap; }

.g-row { display: flex; align-items: stretch; min-height: var(--row-h); }
.g-row.g-group { min-height: 32px; background: var(--surface-2); }
.g-label { flex: 0 0 var(--label-w); background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--grid); display: flex; flex-direction: column; justify-content: center; padding: 4px 14px; overflow: hidden; }
.g-row.g-group .g-label { flex-direction: row; align-items: center; gap: 8px; background: var(--surface-2); font-weight: 700; }
.g-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.g-gname { font-size: 13px; }
.g-count { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1px 8px; }
.g-label.task { cursor: pointer; }
.g-label.task:hover { background: var(--surface-2); }
.g-part { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-dates { font-size: 11px; color: var(--muted); }
.g-row.g-group .g-gname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row.g-group .g-count { margin-left: 0; }
.g-add { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; line-height: 1; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 7px; cursor: pointer; font-weight: 700; font-size: 14px; transition: all .15s ease; }
.g-add:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.g-grip { flex: 0 0 auto; color: #BBB7CE; font-size: 13px; line-height: 1; cursor: grab; }
.g-group-label[draggable="true"] { cursor: grab; }
.g-group-label[draggable="true"]:active { cursor: grabbing; }
.g-group-label.dragging { opacity: .45; }
.g-row.g-group.drag-over .g-label { background: #EAEEFB; box-shadow: inset 3px 0 0 0 var(--accent-strong); }

.g-track { position: relative; flex: 1 1 auto; min-width: 0; border-bottom: 1px solid var(--grid); background-image: linear-gradient(to right, var(--grid) 0 1px, transparent 1px); background-repeat: repeat-x; background-size: calc(100% / var(--cols)) 100%; }
.g-row.g-group .g-track { background-image: none; }

.g-bar { position: absolute; top: 8px; height: calc(var(--row-h) - 17px); border-radius: 9px; background: color-mix(in srgb, var(--pc) 36%, white); border: 1px solid color-mix(in srgb, var(--pc) 60%, white); box-shadow: var(--shadow-sm); cursor: grab; overflow: hidden; user-select: none; z-index: 2; display: flex; align-items: center; transition: box-shadow .12s ease; }
.g-bar:hover { box-shadow: var(--shadow); }
.g-bar.dragging { cursor: grabbing; box-shadow: var(--shadow); opacity: .92; z-index: 5; }
.g-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--pc); border-radius: 8px 0 0 8px; }
.g-bartext { position: relative; z-index: 1; font-size: 11px; font-weight: 600; color: #43485c; padding: 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.g-bar.status-done { filter: saturate(.85); }
.g-handle { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 3; }
.g-handle.left { left: 0; } .g-handle.right { right: 0; }
.g-handle::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 3px; height: 50%; border-radius: 3px; background: rgba(60,65,90,.28); left: 3px; opacity: 0; transition: opacity .12s ease; }
.g-bar:hover .g-handle::after { opacity: 1; }

/* 프로젝트 전체 기간(요약) 막대 — 프로젝트 헤더 행 */
.g-sumbar { position: absolute; top: 6px; height: 20px; border-radius: 7px; background: color-mix(in srgb, var(--pc) 50%, white); border: 1px solid color-mix(in srgb, var(--pc) 70%, white); overflow: hidden; display: flex; align-items: center; z-index: 2; }
.g-sumbar[data-project] { cursor: pointer; transition: box-shadow .12s ease, filter .12s ease; }
.g-sumbar[data-project]:hover { box-shadow: var(--shadow); filter: brightness(1.03); }
.g-sumfill { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--pc) 82%, white); }
.g-sumtext { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; color: #3f4357; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* ============================================================
   칸반 보드
   ============================================================ */
.b-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.b-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 160px; box-shadow: var(--shadow-sm); transition: background .15s ease, box-shadow .15s ease; }
.b-col.drop { background: #EEF1FC; box-shadow: 0 0 0 2px var(--accent-strong) inset; }
.b-col-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin: 2px 4px 13px; }
.b-col-head::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-strong); }
.b-col[data-status="todo"] .b-col-head::before { background: #C7CEEA; }
.b-col[data-status="doing"] .b-col-head::before { background: #FFC9A8; }
.b-col[data-status="done"] .b-col-head::before { background: #9FE0C6; }
.b-col-count { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 1px 9px; }
.b-col-body { display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.b-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 0; }
.b-add { width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed #D2CFE0; background: transparent; color: var(--muted); border-radius: 11px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s ease; }
.b-add:hover { background: var(--surface-2); border-color: var(--accent-strong); color: var(--text); }

/* 같은 프로젝트 묶음 박스 */
.b-group { background: color-mix(in srgb, var(--pc) 15%, white); border: 1px solid color-mix(in srgb, var(--pc) 40%, white); border-radius: 13px; padding: 9px; margin-bottom: 11px; }
.b-group:last-child { margin-bottom: 0; }
.b-group-head { display: flex; align-items: center; gap: 7px; padding: 1px 4px 9px; }
.b-group-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.b-group-name { font-size: 12.5px; font-weight: 800; color: #45485c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.b-group-count { margin-left: auto; flex: 0 0 auto; font-size: 11px; color: #5c6070; background: rgba(255,255,255,.72); border-radius: 20px; padding: 0 8px; }
.b-group-add { flex: 0 0 auto; width: 20px; height: 20px; padding: 0; line-height: 1; border: 1px solid color-mix(in srgb, var(--pc) 45%, white); background: rgba(255,255,255,.72); color: #6b6f80; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 13px; transition: background .15s ease; }
.b-group-add:hover { background: #fff; }
.b-group-body { display: flex; flex-direction: column; gap: 8px; }

.b-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; box-shadow: var(--shadow-sm); cursor: grab; transition: transform .12s ease, box-shadow .12s ease; }
.b-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.b-card.dragging { opacity: .5; cursor: grabbing; }
.b-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #43485c; padding: 2px 9px; border-radius: 20px; margin-bottom: 8px; }
.b-part { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.b-dates { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.b-prog { height: 7px; background: var(--grid); border-radius: 20px; overflow: hidden; }
.b-prog-fill { height: 100%; border-radius: 20px; transition: width .25s ease; }
.b-prog-num { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }

/* ============================================================
   모달
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(35,32,55,.36); backdrop-filter: blur(3px); animation: fade .15s ease; }
.modal-card { position: relative; width: min(460px, 92vw); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: 0 24px 70px rgba(35,32,55,.32); padding: 22px 24px; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px);} to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; margin-bottom: 17px; }
.modal-head h2 { font-size: 18px; margin: 0; font-weight: 800; }
.modal-x { margin-left: auto; border: 0; background: transparent; font-size: 25px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 8px; }
.modal-x:hover { background: var(--surface-2); color: var(--text); }
.modal-foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.spacer { flex: 1; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { font-weight: 400; color: var(--text); }
.field b { color: var(--accent-deep); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="range"] { padding: 0; accent-color: var(--accent-strong); }

.pm-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.pm-row { display: flex; align-items: center; gap: 9px; }
.pm-row input[type="color"] { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; flex: 0 0 auto; }
.pm-row input[type="text"] { flex: 1; }
.pm-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 8px; flex: 0 0 auto; }
.pm-del:hover { background: #FDEDED; color: var(--danger-strong); }
.pm-add { display: flex; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.pm-add input { flex: 1; }
.pm-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 8px 0; }

/* 프로젝트 상세 창 */
#pvTitle { display: flex; align-items: center; gap: 9px; }
#pvTitle .pv-dot { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; }
.pv-summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.pv-period { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pv-period-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.pv-period-sep { color: var(--muted); }
.pv-period input[type="date"] { padding: 7px 9px; }
.pv-save { padding: 7px 13px; }
.pv-auto { padding: 7px 11px; }
.pv-period-note { font-size: 11px; color: var(--muted); margin-top: 7px; }
.pv-sum-meta { font-size: 13px; color: var(--text); }
.pv-sum-counts { font-size: 12px; color: var(--muted); margin-top: 5px; }
.pv-sum-bar { height: 7px; background: var(--grid); border-radius: 20px; overflow: hidden; margin-top: 9px; }
.pv-sum-bar > i { display: block; height: 100%; border-radius: 20px; }
.pv-list { display: flex; flex-direction: column; gap: 7px; max-height: 46vh; overflow: auto; }
.pv-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; font-family: inherit; transition: background .12s ease; }
.pv-item:hover { background: var(--surface-2); }
.pv-check { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; color: #fff; }
.pv-check.on { background: #7FB88F; border-color: #7FB88F; }
.pv-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pv-item-part { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-item.done .pv-item-part { color: var(--muted); text-decoration: line-through; }
.pv-item-dates { font-size: 11px; color: var(--muted); }
.pv-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.pv-badge.st-todo { background: #EDEFF7; color: #6b7088; }
.pv-badge.st-doing { background: #FFE6D6; color: #B5703F; }
.pv-badge.st-done { background: #D8F0E2; color: #3E7E5A; }
.pv-item-prog { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); width: 42px; text-align: right; }

/* ---------- 토스트 ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #2B2840; color: #fff; font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 13px; box-shadow: var(--shadow); z-index: 80; animation: toastIn .2s ease; }
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px);} to { opacity: 1; transform: translate(-50%, 0);} }

/* ---------- 로그인 화면 ---------- */
.login-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.login-overlay[hidden] { display: none; }
.login-card { width: min(360px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; text-align: center; animation: pop .2s ease; }
.login-logo { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 16px; background: linear-gradient(135deg, #A6B1E1, #C8B6FF); display: grid; place-items: center; font-size: 28px; box-shadow: 0 8px 18px rgba(150,140,220,.45); }
.login-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.4px; }
.login-sub { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.login-card input { width: 100%; text-align: left; padding: 11px 13px; font-size: 14px; }
.login-submit { width: 100%; padding: 12px; font-size: 15px; margin-top: 4px; }
.login-error { color: var(--danger-strong); font-size: 12.5px; font-weight: 600; }
.login-error[hidden] { display: none; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .sidebar { flex: 0 0 auto; width: auto; height: auto; flex-direction: row; align-items: center; margin: 10px; border-radius: 20px; padding: 8px 12px; position: static; }
  .logo { margin: 0 10px 0 2px; width: 40px; height: 40px; }
  .nav { flex-direction: row; width: auto; gap: 4px; }
  .nav-item { width: auto; flex-direction: row; gap: 7px; padding: 9px 14px; font-size: 13px; }
  .nav-bottom { margin-top: 0; margin-left: auto; flex-direction: row; }
  .main { padding: 0 14px 30px; }
  .b-board { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --label-w: 124px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-ic { width: 40px; height: 40px; font-size: 18px; }
  .stat-meta b { font-size: 21px; }
  .page-title { font-size: 23px; }
}
