/* Pretendard는 한글 UI 가독성이 좋은 오픈 글꼴(OFL)이며 외부 CDN 없이 서버에서 직접 제공한다. */
@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
}

/* 제품 전체의 색·모서리·그림자는 루트 토큰으로만 관리한다. 부드러운 아이보리 바탕에 세이지 민트를 주색으로 쓴다. */
:root {
  color-scheme: light;
  --bg: #edf3ef;
  --surface: #ffffff;
  --surface-muted: #f7faf8;
  --surface-sunken: #eaf1ed;
  --ink: #26332f;
  --ink-soft: #66726e;
  --ink-faint: #9ca6a2;
  --line: #e1ebe5;
  --line-strong: #cfddd5;
  --teal-900: #1e5a53;
  --teal-700: #2e7a70;
  --teal-600: #3e9084;
  --teal-100: #d9eee7;
  --teal-50: #eef7f3;
  --orange: #d9803f;
  --orange-soft: #fff1e4;
  --rose: #d8646d;
  --rose-soft: #fdeeee;
  --blue: #5680c0;
  --blue-soft: #edf3fc;
  --purple: #8670c0;
  --purple-soft: #f3effb;
  --shadow-sm: 0 1px 2px rgba(38, 51, 47, 0.04);
  --shadow: 0 1px 3px rgba(30, 70, 60, 0.06), 0 18px 40px -18px rgba(30, 80, 68, 0.34);
  --shadow-hover: 0 2px 4px rgba(30, 70, 60, 0.06), 0 26px 48px -18px rgba(30, 80, 68, 0.42);
  --mint-tint: linear-gradient(150deg, #e4f5ee 0%, #f4fbf8 100%);
  --peach-tint: linear-gradient(150deg, #fdeede 0%, #fff9f3 100%);
  --sky-tint: linear-gradient(150deg, #e3edfb 0%, #f6f9fe 100%);
  --lilac-tint: linear-gradient(150deg, #eee8fa 0%, #faf8fe 100%);
  --rose-tint: linear-gradient(150deg, #fce6e8 0%, #fff8f8 100%);
  --butter-tint: linear-gradient(150deg, #fbf3d6 0%, #fffcf1 100%);
  --shadow-lg: 0 24px 60px -20px rgba(30, 60, 55, 0.28);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-width: 248px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(255, 214, 186, 0.45), transparent 60%),
    radial-gradient(800px 600px at 20% 110%, rgba(170, 222, 204, 0.4), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  /* 한글 문장이 음절 중간에서 줄바꿈되지 않도록 단어 단위로 끊고, 긴 숫자·영문만 강제로 나눈다. */
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(62, 144, 132, 0.28);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ---------- 앱 골격과 사이드바 ---------- */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 280ms var(--ease);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid rgba(46, 122, 112, 0.12);
  background: linear-gradient(180deg, #e2f1ea 0%, #d3e8de 55%, #c9e2d7 100%);
  padding: 24px 14px 16px;
  transition:
    width 280ms var(--ease),
    padding 280ms var(--ease),
    transform 280ms var(--ease);
}

.sidebar__top {
  position: relative;
}

.brand {
  display: flex;
  width: calc(100% - 12px);
  align-items: center;
  gap: 11px;
  margin: 0 6px 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #62b3a3 0%, #2e7a70 100%);
  box-shadow: 0 8px 18px -6px rgba(46, 122, 112, 0.55);
  color: #fff;
  transition: transform 280ms var(--ease);
}

.brand__mark svg {
  width: 24px;
}

.brand__mark .brand__glyph {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.05;
}

.brand__copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 220ms var(--ease),
    opacity 150ms ease;
}

.brand__copy strong,
.brand__copy small {
  display: block;
}

.brand__copy strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand__copy small {
  margin-top: 1px;
  color: #5f7f76;
  font-size: 11.5px;
  font-weight: 500;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: grid;
  min-height: 44px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-radius: 14px;
  padding: 0 14px;
  color: #4b6a61;
  font-size: 14.5px;
  font-weight: 580;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--surface);
  box-shadow: 0 6px 16px -8px rgba(30, 90, 80, 0.35);
  color: var(--teal-700);
  font-weight: 650;
}

.nav-item.is-active::before {
  position: absolute;
  inset: 12px auto 12px -14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--teal-600);
  content: "";
}

.nav-item__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.nav-item__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.nav-item__label {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.nav-item__soon {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 2px 7px;
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 600;
}

/* 서명 받기·관리 메뉴는 로그인 뒤 권한 표에서 허용된 경우에만 보인다(app.js applyMenuPermissions). */
.nav-item--manager {
  display: none;
}

html.nav-sign .nav-item--manager[href="./sign.html"],
html.nav-monthly .nav-item--manager[href="./monthly.html"],
html.nav-news .nav-item--manager[href="./news.html"],
html.nav-inquiry .nav-item--manager[href="./inquiries.html"],
html.nav-manage .nav-item--manager[href="./manage.html"],
html.nav-settings .nav-item--manager[href="./settings.html"] {
  display: grid;
}

.nav-divider {
  height: 1px;
  margin: 10px 14px;
  background: rgba(46, 122, 112, 0.18);
}

.sidebar__footer {
  margin-top: auto;
}

.privacy-note {
  display: flex;
  gap: 9px;
  margin: 0 4px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  padding: 11px 12px;
  color: var(--teal-900);
}

.privacy-note p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
}

.profile-button {
  display: grid;
  width: 100%;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.profile-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.profile-button__logout {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-faint);
  transition: background 150ms ease, color 150ms ease;
}

.profile-button:hover .profile-button__logout {
  background: var(--rose-soft);
  color: var(--rose);
}

.profile-button__logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fde6cf, #f7cfae);
  color: #8a4a1f;
  font-size: 14px;
  font-weight: 700;
}

.profile-button__copy {
  min-width: 0;
}

.profile-button__copy strong,
.profile-button__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-button__copy strong {
  font-size: 13.5px;
  font-weight: 650;
}

.profile-button__copy small {
  color: var(--ink-faint);
  font-size: 11.5px;
}

.main-content {
  grid-column: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px clamp(24px, 3vw, 52px) 56px;
}

/* 미니바에서는 메뉴 의미를 아이콘과 툴팁으로 유지하고, 본문 폭은 즉시 재분배한다. */
body.sidebar-collapsed .app-shell {
  grid-template-columns: 80px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
  width: 80px;
  padding-inline: 12px;
}

body.sidebar-collapsed .brand {
  justify-content: center;
  margin-inline: 0;
  width: 100%;
}

body.sidebar-collapsed .brand__copy,
body.sidebar-collapsed .privacy-note p,
body.sidebar-collapsed .profile-button__copy,
body.sidebar-collapsed .profile-button > span:last-child,
body.sidebar-collapsed .nav-item__soon {
  width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.sidebar-collapsed .brand__mark {
  transform: scale(0.94);
}

body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .nav-item--manager {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
}

body.sidebar-collapsed .nav-item.is-active::before {
  left: -12px;
}

body.sidebar-collapsed .nav-item__label {
  position: absolute;
  width: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.sidebar-collapsed .nav-item::after {
  position: absolute;
  left: 60px;
  z-index: 30;
  display: none;
  width: max-content;
  border-radius: 9px;
  background: var(--ink);
  padding: 7px 10px;
  color: white;
  content: attr(data-nav);
  font-size: 12px;
}

body.sidebar-collapsed .nav-item:hover::after {
  display: block;
}

body.sidebar-collapsed .privacy-note {
  justify-content: center;
  padding: 11px 0;
}

body.sidebar-collapsed .profile-button {
  display: flex;
  justify-content: center;
  padding-inline: 0;
}

/* ---------- 공통 페이지 머리말·버튼 ---------- */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.page-heading > p:last-child,
.panel__header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 650;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.button,
.icon-button,
.text-button,
.mobile-menu {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, #3e9084 0%, #2e7a70 100%);
  box-shadow: 0 10px 22px -10px rgba(46, 122, 112, 0.7);
  color: #fff;
}

.button--primary:hover:not(:disabled) {
  box-shadow: 0 14px 26px -10px rgba(46, 122, 112, 0.75);
  transform: translateY(-1px);
}

.button--secondary,
.icon-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover:not(:disabled) {
  background: var(--surface-muted);
}

.button--soft {
  background: var(--teal-50);
  color: var(--teal-700);
}

.button--soft:hover:not(:disabled) {
  background: var(--teal-100);
}

.button--danger {
  background: var(--rose);
  color: #ffffff;
}

.button--small {
  height: 36px;
  border-radius: 11px;
  padding: 0 13px;
  font-size: 13px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border: 1.5px solid white;
  border-radius: 50%;
  background: var(--rose);
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 17px;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid #f3dcc0;
  border-radius: 16px;
  background: var(--butter-tint);
  padding: 12px 16px;
  color: var(--teal-900);
  font-size: 13px;
}

.demo-banner__icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  font-size: 12px;
  font-weight: 700;
}

.demo-banner p {
  margin: 0;
}

.demo-banner button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 18px;
}

/* ---------- 카드·패널 ---------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}

.metric-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* 지표 카드는 아이콘 색과 같은 파스텔 바탕으로 한눈에 종류가 구분되게 한다. */
.metric-card:has(.metric-icon--teal) { border-color: #cfe9de; background: var(--mint-tint); box-shadow: 0 1px 3px rgba(40, 120, 100, 0.08), 0 18px 38px -18px rgba(40, 130, 105, 0.45); }
.metric-card:has(.metric-icon--orange) { border-color: #f7dcc4; background: var(--peach-tint); box-shadow: 0 1px 3px rgba(190, 110, 50, 0.08), 0 18px 38px -18px rgba(210, 120, 55, 0.42); }
.metric-card:has(.metric-icon--rose) { border-color: #f5d3d6; background: var(--rose-tint); box-shadow: 0 1px 3px rgba(190, 80, 90, 0.08), 0 18px 38px -18px rgba(210, 90, 100, 0.4); }
.metric-card:has(.metric-icon--blue) { border-color: #d4e1f6; background: var(--sky-tint); box-shadow: 0 1px 3px rgba(70, 110, 180, 0.08), 0 18px 38px -18px rgba(80, 120, 190, 0.42); }
.metric-card .metric-icon { background: rgba(255, 255, 255, 0.85); box-shadow: 0 4px 10px -4px rgba(30, 60, 55, 0.2); }

.metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
}

.metric-icon--teal { background: var(--teal-100); color: var(--teal-700); }
.metric-icon--orange { background: var(--orange-soft); color: var(--orange); }
.metric-icon--rose { background: var(--rose-soft); color: var(--rose); }
.metric-icon--blue { background: var(--blue-soft); color: var(--blue); }

.trend,
.status-badge,
.prepare-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 620;
  white-space: nowrap;
}

.trend--neutral { background: var(--surface-sunken); color: var(--ink-soft); }
.trend--warning { background: var(--orange-soft); color: var(--orange); }
.trend--danger { background: var(--rose-soft); color: var(--rose); }

.metric-card > p {
  margin: 16px 0 2px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 550;
}

.metric-card > strong {
  font-size: 30px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.metric-card > strong span {
  margin-left: 3px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
}

.metric-card > small {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  min-width: 0;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel__header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.panel__header a,
.text-button {
  flex: 0 0 auto;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.text-button {
  background: transparent;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-pill {
  border-radius: 999px;
  background: var(--rose-soft);
  padding: 2px 9px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 650;
}

.filter-tabs {
  display: inline-flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--surface-sunken);
  padding: 4px;
}

.filter-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 7px 13px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 580;
  transition: background 150ms ease, color 150ms ease;
}

.filter-tab.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--teal-700);
}

.task-list {
  display: grid;
  gap: 6px;
}

.task-item {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 40px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease;
}

.task-item:hover {
  background: var(--surface-muted);
}

.task-item__status {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
}

.task-item__status--danger { background: var(--rose-soft); color: var(--rose); }
.task-item__status--warning { background: var(--orange-soft); color: var(--orange); }
.task-item__status--blue { background: var(--blue-soft); color: var(--blue); }
.task-item__status--purple { background: var(--purple-soft); color: var(--purple); }
.task-item__status--neutral { background: var(--surface-sunken); color: var(--ink-soft); }

.task-item__body,
.task-item__title,
.task-item__meta {
  min-width: 0;
}

.task-item__title {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c9ceca;
}

.task-item__due {
  border-radius: 999px;
  background: var(--surface-sunken);
  padding: 4px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.task-item__due--danger { background: var(--rose-soft); color: var(--rose); }
.task-item__due--warning { background: var(--orange-soft); color: var(--orange); }
.task-item__arrow { color: #b6bdb9; font-size: 20px; }

.timeline {
  display: flex;
  flex-direction: column;
}

.schedule-item {
  display: grid;
  min-height: 70px;
  grid-template-columns: 46px 14px minmax(0, 1fr);
  gap: 8px;
}

.schedule-item time {
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.timeline__line {
  position: relative;
  border-left: 2px dotted #dcdad3;
  margin-left: 5px;
}

.timeline__line::before {
  position: absolute;
  top: 5px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: #c3c9c5;
  box-shadow: 0 0 0 1px #d9ddda;
  content: "";
}

.schedule-item--done .timeline__line::before { background: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-100); }
.schedule-item--active .timeline__line::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.schedule-item--changed .timeline__line::before { background: var(--purple); box-shadow: 0 0 0 1px var(--purple-soft); }

.schedule-card {
  min-width: 0;
  padding: 0 0 14px;
}

.schedule-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-card strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-card p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.status-badge { background: var(--surface-sunken); color: var(--ink-soft); }
.status-badge--done { background: var(--teal-50); color: var(--teal-700); }
.status-badge--active { background: var(--orange-soft); color: var(--orange); }
.status-badge--changed { background: var(--purple-soft); color: var(--purple); }

.schedule-more {
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: var(--surface-muted);
  padding: 11px;
  color: var(--teal-700);
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.upcoming-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upcoming-list button {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
  padding: 11px;
  cursor: pointer;
  text-align: left;
}

.date-chip {
  display: grid;
  height: 44px;
  place-content: center;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  text-align: center;
}

.date-chip strong,
.date-chip small,
.upcoming-list button > span:nth-child(2) strong,
.upcoming-list button > span:nth-child(2) small {
  display: block;
}

.date-chip strong { font-size: 16px; line-height: 1; }
.date-chip small { margin-top: 3px; font-size: 11px; }
.upcoming-list button > span:nth-child(2) strong { overflow: hidden; font-size: 13.5px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-list button > span:nth-child(2) small { margin-top: 3px; color: var(--ink-faint); font-size: 12px; }
.prepare-badge { background: var(--orange-soft); color: var(--orange); }

.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operation-grid > div {
  border-right: 1px solid var(--line);
  padding: 2px 16px;
}

.operation-grid > div:first-child { padding-left: 0; }
.operation-grid > div:last-child { border-right: 0; }
.operation-grid span,
.operation-grid strong,
.operation-grid small { display: block; }
.operation-grid span { color: var(--ink-soft); font-size: 12.5px; }
.operation-grid strong { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.operation-grid small { margin-top: 3px; color: var(--ink-faint); font-size: 11.5px; }
.operation-grid .text-warning { color: var(--orange); }

/* ---------- 알림·빈 상태 ---------- */

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 40px));
  transform: translateY(16px);
  border-radius: 16px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 13px 18px;
  color: #fff;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: 220ms var(--ease);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  background: var(--rose);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  place-items: center;
  border-radius: 22px;
  background: var(--teal-50);
  color: var(--teal-600);
  font-size: 28px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 680;
}

.empty-state p {
  max-width: 360px;
  margin: 0 0 8px;
  font-size: 14px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(315px, 0.8fr); }
  .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar {
    transform: translateX(-102%);
    box-shadow: 18px 0 45px rgba(30, 50, 45, 0.14);
    transition: transform 200ms var(--ease);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(30, 40, 38, 0.3);
    backdrop-filter: blur(2px);
  }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .main-content { padding: 24px 20px 44px; }
  .mobile-menu { display: block; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
}

@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; }
  .topbar__actions { width: 100%; padding-top: 0; }
  .topbar__actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .upcoming-list { grid-template-columns: 1fr; }
  .operation-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .operation-grid > div:nth-child(2) { border-right: 0; }
  .task-item { grid-template-columns: 40px minmax(0, 1fr) 12px; }
  .task-item__due { display: none; }
}

@media (max-width: 450px) {
  .main-content { padding: 20px 14px 36px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .button--secondary { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px 16px; }
  .metric-card > small { white-space: normal; }
  .task-item__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 태블릿 PIN 잠금 화면 ---------- */

.pin-lock {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(700px 500px at 10% 0%, rgba(170, 222, 204, 0.75), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 214, 186, 0.6), transparent 60%),
    #e9f2ed;
  padding: 24px 16px;
  animation: pin-fade 200ms ease both;
}

.pin-lock__card {
  display: grid;
  width: min(380px, 100%);
  justify-items: center;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px -30px rgba(30, 80, 68, 0.5);
  padding: 32px 28px 22px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.pin-lock__card.is-shake { animation: pin-shake 360ms ease; }

.pin-lock__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #62b3a3, #2e7a70);
  box-shadow: 0 12px 26px -10px rgba(46, 122, 112, 0.7);
  color: #fff;
}

.pin-lock__icon svg { width: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.pin-lock h2 { margin: 0; font-size: 21px; font-weight: 720; }
.pin-lock__hint { margin: 6px 0 18px; color: var(--ink-soft); font-size: 14px; }
.pin-lock__dots { display: flex; min-height: 18px; gap: 12px; }
.pin-lock__dots span { width: 16px; height: 16px; border: 2px solid var(--teal-600); border-radius: 50%; transition: background 120ms ease, transform 120ms ease; }
.pin-lock__dots span.is-filled { background: var(--teal-600); transform: scale(1.05); }
.pin-lock__error { min-height: 20px; margin: 10px 0 6px; color: var(--rose); font-size: 13px; font-weight: 600; }

.pin-lock__pad { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pin-lock__pad button {
  height: 64px;
  border: 0;
  border-radius: 20px;
  background: var(--surface-sunken);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
  transition: background 120ms ease, transform 120ms ease;
}
.pin-lock__pad button:active { background: var(--teal-100); transform: scale(0.96); }
.pin-lock__pad button[data-action-key] { background: transparent; color: var(--ink-soft); font-size: 15px; }
.pin-lock__confirm { width: 100%; height: 52px; font-size: 16px; }
.pin-lock__logout { margin-top: 12px; border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 13px; text-decoration: underline; }

@keyframes pin-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pin-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@media (max-height: 700px) {
  .pin-lock__pad button { height: 52px; }
  .pin-lock__icon { display: none; }
}

/* 테스트 서버(TEST_TOOLS=true) 원장에게만 붙는 테스트 도구(드롭다운 + 실행)다. 운영에서는 나타나지 않는다. */
.test-tools { margin: 14px 4px 0; border: 1.5px dashed #e5484d; border-radius: 14px; background: #fff5f5; padding: 10px; }
.test-tools__title { margin: 0 0 6px; color: #c7353b; font-size: 12.5px; font-weight: 800; }
.test-tools__row { display: flex; gap: 6px; }
.test-tools select { min-width: 0; flex: 1; height: 36px; border: 1px solid #efb2b4; border-radius: 10px; background: #fff; padding: 0 8px; color: var(--ink); font: inherit; font-size: 13px; }
.test-tools button { flex: 0 0 auto; height: 36px; border: 0; border-radius: 10px; background: #e5484d; padding: 0 14px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.test-tools button:hover { background: #cf3a40; }
.test-tools__desc { margin: 6px 0 0; color: #9b4a4d; font-size: 11.5px; line-height: 1.45; }
body.sidebar-collapsed .test-tools { display: none; }

/* ---------- 비밀번호 보기(눈 아이콘) ---------- */
.password-field { position: relative; display: block; width: 100%; }
.password-field > input { width: 100%; padding-right: 48px !important; }
.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  touch-action: manipulation;
}
.password-field__toggle:hover { background: var(--surface-sunken); color: var(--teal-700); }
.password-field__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
/* Edge·IE가 따로 띄우는 비밀번호 보기·지우기 버튼은 숨긴다(우리 눈 아이콘과 겹침). */
input::-ms-reveal,
input::-ms-clear { display: none; }

/* ---------- 프로필(개인정보 설정 링크 + 로그아웃)·알림 배지 ---------- */
.profile-button { display: flex; align-items: center; gap: 6px; cursor: default; }
.profile-link { display: grid; min-width: 0; flex: 1; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.profile-link:hover .profile-button__copy strong { color: var(--teal-700); }
button.profile-button__logout { flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; }
.profile-button:hover .profile-button__logout { background: transparent; color: var(--ink-faint); }
button.profile-button__logout:hover { background: var(--rose-soft) !important; color: var(--rose) !important; }
body.sidebar-collapsed .profile-link { grid-template-columns: 1fr; }

.nav-item__new,
.nav-item__count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #e5484d;
  box-shadow: 0 4px 10px -3px rgba(229, 72, 77, 0.7);
  padding: 0 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.nav-item__new[hidden], .nav-item__count[hidden] { display: none; }
body.sidebar-collapsed .nav-item__new,
body.sidebar-collapsed .nav-item__count { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; }

/* ---------- 홈 알림 카드 ---------- */
.alert-card { margin-bottom: 18px; border-color: #f5d3d6; background: linear-gradient(160deg, #fff6f6 0%, #ffffff 55%); box-shadow: 0 1px 3px rgba(190, 80, 90, 0.08), 0 18px 38px -20px rgba(210, 90, 100, 0.4); padding: 18px 22px; }
.alert-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.alert-card__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 720; }
.alert-card__count { min-width: 22px; border-radius: 999px; background: #e5484d; padding: 1px 8px; color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.alert-card__signup { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; border: 1px solid #f5d3d6; border-radius: 16px; background: #fff; padding: 10px 12px; }
.alert-card__signup > span b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e5484d; color: #fff; font-size: 13px; font-weight: 800; }
.alert-card__signup strong { flex: 1; font-size: 14.5px; }
.alert-card__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.alert-card__empty { padding: 10px 4px; color: var(--ink-faint); font-size: 14px; }
.alert-item { display: grid; width: 100%; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 0; border-radius: 14px; background: transparent; padding: 8px 8px; cursor: pointer; text-align: left; }
.alert-item:hover { background: rgba(255, 255, 255, 0.9); }
.alert-item__icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--blue-soft); font-size: 16px; }
.alert-item--signup .alert-item__icon { background: var(--rose-soft); }
.alert-item__text { min-width: 0; }
.alert-item__text strong, .alert-item__text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-item__text strong { font-size: 14px; font-weight: 650; }
.alert-item__text small { color: var(--ink-soft); font-size: 12.5px; }
.alert-item time { color: var(--ink-faint); font-size: 12px; white-space: nowrap; }

/* ---------- 실시간 새 알림 팝업 ---------- */
.live-alert { position: fixed; z-index: 95; top: 20px; right: 20px; display: flex; align-items: flex-start; gap: 12px; width: min(360px, calc(100vw - 32px)); transform: translateY(-12px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); padding: 14px 12px 14px 16px; opacity: 0; pointer-events: none; transition: transform 220ms var(--ease), opacity 220ms ease; }
.live-alert.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.live-alert__icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--peach-tint); font-size: 19px; }
.live-alert__body { display: grid; flex: 1; gap: 3px; min-width: 0; color: var(--ink); text-decoration: none; }
.live-alert__body strong { font-size: 14.5px; }
.live-alert__body small { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-alert__close { flex: 0 0 28px; height: 28px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 19px; line-height: 1; }
.live-alert__close:hover { background: var(--surface-sunken); }

.notify-offer { position: fixed; z-index: 94; left: 50%; bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); border-radius: 16px; background: var(--ink); box-shadow: var(--shadow-lg); padding: 10px 12px 10px 16px; color: #fff; font-size: 13.5px; }
.notify-offer button { height: 32px; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 650; padding: 0 12px; }
.notify-offer__yes { background: var(--teal-600); color: #fff; }
.notify-offer__no { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* 사진이 있는 이름 칸(아바타): 첫 글자 대신 사진을 꽉 채운다. */
.has-photo { overflow: hidden; background: var(--surface-sunken) !important; padding: 0 !important; }
.has-photo img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* ---------- 일정 색(캘린더·홈 공용) ---------- */
.c-teal { background: #d7efe8; color: #1f6358; }
.c-sky { background: #dbe7fb; color: #2c4f96; }
.c-peach { background: #fde3cf; color: #9a4a1b; }
.c-lilac { background: #e8def8; color: #5b3b93; }
.c-butter { background: #fbefc4; color: #7a5a0f; }
.c-rose { background: #fbdada; color: #a2302b; }

/* ---------- 홈 ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.home-progress { grid-column: 1 / -1; }
.home-grid > .panel { padding: 20px 22px; }
.home-grid .panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.home-grid .panel__header h2 { margin: 0; font-size: 17px; }
.home-grid .panel__header p { margin: 2px 0 0; color: var(--ink-soft); font-size: 12.5px; }
.home-progress__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.progress-card { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: box-shadow 180ms ease, transform 180ms var(--ease); }
.progress-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.progress-card--teal { background: var(--mint-tint); }
.progress-card--lilac { background: var(--lilac-tint); }
.progress-card--sky { background: var(--sky-tint); }
.progress-card--peach { background: var(--peach-tint); }
.progress-card__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.progress-card__icon { font-size: 18px; }
.progress-card__value { margin: 0; font-size: 22px; font-weight: 760; letter-spacing: -0.02em; }
.progress-card__detail { color: var(--ink-soft); font-size: 12.5px; }
.progress-card__bar { overflow: hidden; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); }
.progress-card__bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal-600); }
.home-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.home-empty { color: var(--ink-soft); font-size: 13.5px; list-style: none; }
.home-event { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; border-radius: 12px; padding: 8px 12px; text-decoration: none; }
.home-event__when { font-size: 12.5px; font-weight: 700; opacity: 0.85; white-space: nowrap; }
.home-event strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.home-inquiry { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 9px 12px; color: var(--ink); text-decoration: none; }
.home-inquiry:hover { border-color: var(--teal-600); }
.home-inquiry strong { font-size: 14px; }
.home-inquiry small { color: var(--ink-soft); font-size: 12px; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-event { grid-template-columns: 90px minmax(0, 1fr); }
}

/* 알림 켜기 안내 막대: 휴대폰에서는 내용을 가리지 않게 작게 */
@media (max-width: 640px) {
  .notify-offer { bottom: 12px; gap: 6px 8px; padding: 8px 10px 8px 12px; font-size: 12.5px; }
  .notify-offer button { height: 30px; }
}

/* 홈: 내 담당 아이 */
.home-mine-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 7px 10px; color: var(--ink); text-decoration: none; }
.home-mine-row:hover { border-color: var(--teal-600); }
.home-mine-row__avatar { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border-radius: 10px; background: var(--teal-50, #e8f4f1); color: var(--teal-700); font-size: 13px; font-weight: 700; }
.home-mine-row strong, .home-mine-row small { display: block; }
.home-mine-row strong { font-size: 14px; }
.home-mine-row small { color: var(--ink-soft); font-size: 12px; }
.home-mine-row__status { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.home-mine-row__status.is-todo { background: #f3f4f6; color: var(--ink-soft); }
.home-mine-row__status.is-work { background: #fff4e0; color: #9a5b00; }
.home-mine-row__status.is-ready { background: #e6f1fb; color: #1d5fa3; }
.home-mine-row__status.is-sign { background: #f1ebfb; color: #6a3fb0; }
.home-mine-row__status.is-done { background: #e3f4ee; color: var(--teal-700); }

/* 테스트 서버 전용 공용 "자동 작성" 버튼(TEST_TOOLS=true에서만 붙는다) */
.autofill-fab { position: fixed; right: 12px; bottom: 12px; z-index: 2000; border: 1.5px dashed #c98a2b; border-radius: 999px; background: #fff7e8; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.35); padding: 8px 14px; color: #8a5a12; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.autofill-fab:hover { background: #ffefd2; }
@media print { .autofill-fab { display: none; } }

/* 관리·설정: 사이드바 아래 프로필 칸의 아이콘(권한이 있을 때만 보임, app.js applyMenuPermissions) */
.profile-icon { position: relative; display: none; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--ink-soft); text-decoration: none; transition: background 150ms ease, color 150ms ease; }
html.nav-manage .profile-icon[href="./manage.html"],
html.nav-settings .profile-icon[href="./settings.html"] { display: grid; }
.profile-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-icon:hover { background: var(--teal-50, #e8f4f1); color: var(--teal-700); }
.profile-icon.is-active { background: var(--teal-600); color: #fff; }
.profile-icon__dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border: 2px solid var(--surface); border-radius: 999px; background: var(--rose, #e5484d); }
.profile-icon__dot[hidden] { display: none; }
/* 사이드바를 접으면 프로필 아이콘들을 세로로 쌓는다. */
body.sidebar-collapsed .profile-button { flex-direction: column; gap: 4px; padding-block: 8px; }
