:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --border: #e3e6ee;
  --text: #1f2330;
  --muted: #6b7186;
  --accent: #4f7cff;
  --accent-soft: #e8efff;
  --danger: #d64545;
  --done-bg: #eef3ff;
  --shadow: 0 4px 14px rgba(20, 24, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1d24;
    --bg-soft: #23262f;
    --border: #353946;
    --text: #e7e9f1;
    --muted: #9ba0b3;
    --accent: #6c8dff;
    --accent-soft: #2b3450;
    --done-bg: #2b3450;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* 모바일 브라우저의 주소창이 차지하는 만큼 줄어드는 실제 보이는 높이 (하단 잘림 방지) */
  height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  flex: 0 0 auto;
}

.user { display: flex; align-items: center; gap: 8px; }
.user-name {
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.user-name:hover { background: var(--accent-soft); }

.status {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c0c4d3;
}
.status.online { background: #3ec97a; }
.status.local { background: #f0b94a; }

.icon-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--text); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  margin-left: 8px;
}
.space-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;           /* 팀이 많아지면 줄바꿈 — 폭 고정 없이 전부 보임 */
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  min-width: 0;
}
.space-btn {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.space-btn:hover { color: var(--text); background: var(--accent-soft); }
.space-btn.active { background: var(--accent); color: #fff; }
.space-btn.add { font-size: 15px; padding: 3px 6px; }

/* 설정 — 팀 목록 */
.team-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.team-row:last-child { border-bottom: none; }
.team-name { flex: 1 1 auto; min-width: 0; cursor: pointer; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-name:hover { color: var(--accent); }
.team-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  cursor: pointer;
}
.team-btn:hover { border-color: var(--accent); color: var(--accent); }
.team-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.team-manage {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 0 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow-x: auto;
  scrollbar-width: thin;
  flex: 0 0 auto;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  user-select: none;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}
.tab .badge {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
  padding: 0 6px;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
  font-weight: 700;
}
.tab .close {
  font-size: 14px;
  color: var(--muted);
  border-radius: 50%;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tab .close:hover { background: var(--danger); color: #fff; }
.tab .name-input {
  font: inherit;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 4px;
  background: var(--bg);
  color: var(--text);
  width: 80px;
}

.tab-add {
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  margin-left: 4px;
}
.tab-add:hover { color: var(--accent); border-color: var(--accent); }

.content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px;
  /* 홈 인디케이터(아이폰) 영역만큼 하단 여백 — 마지막 항목이 가리지 않게 */
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

/* 공유/개인 공간 표시 배너 */
.space-banner {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.space-banner.personal { background: var(--accent-soft); color: var(--accent); }
.space-banner.shared { background: #e8f7ee; color: #1a8a4f; }
@media (prefers-color-scheme: dark) {
  .space-banner.shared { background: #1e3a2a; color: #4fd08a; }
}

/* TODO */
/* 팀 / 개인 세그먼트 토글 (TODO·일정·마인드맵 공용) */
.mode-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 6px;
  line-height: 1.4;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.active {
  background: var(--accent);
  color: #fff;
}

.todo-section {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--bg-soft);
}
.todo-section.self {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.todo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.todo-owner {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.todo-owner .you-tag {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 8px;
}
.todo-head .todo-add {
  flex: 1 1 auto;
}
.todo-head .todo-add input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
.todo-head .todo-add input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* 할 일 / 한 일 좌우 2단 배치 */
.todo-columns {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}
.todo-columns .todo-group {
  flex: 1 1 0;
  min-width: 0;      /* 좁은 사이드패널에서 넘침 방지 */
  margin-top: 0;
}
.todo-columns .todo-group + .todo-group {
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.todo-group {
  margin-top: 10px;
}
.todo-group h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.todo-count {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 8px;
}
/* 카드형 항목 */
.todo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 6px;
  font-size: 14px;
}
.todo-card.done { opacity: 0.75; }
.todo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.todo-row .todo-text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  line-height: 1.4;
  cursor: pointer;
}
.todo-card.done .todo-row .todo-text {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
  opacity: 0.8;
}
.todo-row .member-dot.linkable { cursor: pointer; }
.todo-row .member-dot.linkable:hover { outline: 2px solid var(--accent-soft); }
.todo-act {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.todo-act:hover { border-color: var(--accent); color: var(--accent); }
.todo-act.del:hover { border-color: var(--danger); color: var(--danger); }
.todo-editinput {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.todo-editinput:focus { outline: none; }

.todo-marker {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.todo-marker:hover { background: var(--accent-soft); }
.todo-marker.back {
  color: var(--muted);
  font-size: 16px;
}
.todo-marker.back:hover { color: var(--accent); background: var(--accent-soft); }
.todo-marker:disabled { cursor: default; opacity: 0.5; }
.todo-marker:disabled:hover { background: transparent; }

.todo-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.todo-list .todo-text {
  cursor: pointer;
  word-break: break-word;
  line-height: 1.4;
}
.todo-list li.done .todo-text {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
  color: var(--text);
  opacity: 0.7;
}
.todo-meta {
  font-size: 12px;
  color: var(--muted);
}

/* TODO 요청 표시 + 진행률 바 */
.todo-reqline {
  font-size: 12px;
  color: var(--text);
  border-radius: 4px;
  padding: 1px 6px;
  align-self: flex-start;
}
/* 진행률 — 게이지 상시 표시, % 는 바 안쪽 우측, 동그라미는 호버 시 */
.todo-prog {
  position: relative;
  display: block;
  margin-top: 6px;
}
.todo-prog .todo-prog-label {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  min-width: 0;
}

/* TODO 날짜 (일정 달력 연동) — 📅 아이콘 버튼: ✓ 왼쪽 상시 표시, 날짜 있으면 강조 */
.todo-act.cal { font-size: 13px; }
.todo-act.cal.has {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.todo-date-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  border: 0;
  padding: 0;
  pointer-events: none;
}
.todo-due-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.todo-card { position: relative; }   /* 숨긴 date input 기준점 */

/* 달력에 표시되는 TODO 가상 항목 */
.sched-item.from-todo { border-style: dashed; opacity: 0.9; }
.todo-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;                  /* 얇게 */
  margin: 0;
  border-radius: 4px;
  background: var(--border);    /* 채움은 JS gradient(--pfill) */
  --pfill: #c9d0dd;             /* 평소: 배경보다 살짝 밝은 무채색 */
  cursor: pointer;
  outline: none;
}
@media (prefers-color-scheme: dark) {
  .todo-range { --pfill: #4d5566; }
}
.todo-prog:hover .todo-range:not(:disabled) { --pfill: #7ed957; }   /* 호버 시 형광 */
.todo-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7ed957;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  opacity: 0;                  /* 평소엔 숨김 — 호버 시 표시 */
  transition: opacity 0.12s;
  cursor: ew-resize;
}
.todo-prog:hover .todo-range:not(:disabled)::-webkit-slider-thumb { opacity: 1; }
.todo-range:disabled { cursor: default; }
.todo-prog-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 3px var(--bg);
}

.todo-list .todo-del {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  visibility: hidden;
}
.todo-list li:hover .todo-del { visibility: visible; }
.todo-list .todo-del:hover { color: var(--danger); }

.todo-stats {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  font-size: 13px;
}
.todo-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px;
  border-radius: 4px;
  background: var(--bg);
}
.todo-stats .stat-label {
  font-size: 12px;
  color: var(--muted);
}
.todo-stats .stat-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.todo-stats .stat-val.muted { color: var(--muted); font-weight: 400; }

/* ===== 일정 (공유 달력) ===== */
.sched { display: flex; flex-direction: column; }
.sched-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.sched-title {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}
.sched-nav, .sched-today {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 14px;
  line-height: 1.2;
}
.sched-nav:hover, .sched-today:hover { border-color: var(--accent); color: var(--accent); }

.sched-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2px;
}
.sched-dow .sun { color: var(--danger); }
.sched-dow .sat { color: var(--accent); }

.sched-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  user-select: none;      /* 드래그 범위선택 시 텍스트 선택 방지 */
}
.sched-cell {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  padding: 2px 3px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sched-cell.out { opacity: 0.4; cursor: default; }
.sched-cell.today { border-color: var(--accent); }
.sched-cell.sel { background: var(--accent-soft); border-color: var(--accent); }
.sched-dnum { font-size: 13px; font-weight: 600; color: var(--text); }
.sched-cell.today .sched-dnum { color: var(--accent); }
.sched-prev { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sched-prev-line {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-mini-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
  flex: 0 0 auto;
}
.sched-more { font-size: 11px; color: var(--accent); font-weight: 600; }

/* 상세/입력 패널 */
.sched-detail {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.sched-detail-head { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.sched-multi-hint { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.sched-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.sched-empty { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.sched-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
}
.sched-item-date { flex: 0 0 auto; color: var(--muted); font-size: 12px; min-width: 40px; }
.sched-item-time { flex: 0 0 auto; color: var(--accent); font-weight: 600; min-width: 34px; }
.sched-item-title { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.sched-item-author { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.sched-item-del {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0 2px;
}
.sched-item-del:hover { color: var(--danger); }

/* 일정 인라인 수정 */
.sched-item-time.editable, .sched-item-title.editable { cursor: pointer; }
.sched-item-time.editable:hover, .sched-item-title.editable:hover { text-decoration: underline; }
.sched-item.editing { gap: 4px; }
.sched-edit-time {
  flex: 0 0 64px;
  width: 64px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.sched-edit-title {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.sched-edit-time:focus, .sched-edit-title:focus { outline: none; }

.sched-add { display: flex; flex-direction: column; gap: 6px; }
.sched-add-row { display: flex; gap: 4px; }
.sched-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.sched-cat {
  border: 1px solid var(--cat);
  color: var(--cat);
  background: transparent;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}
.sched-cat::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cat);
  margin-right: 5px;
  vertical-align: middle;
}
.sched-cat.on { background: var(--cat); color: #fff; }
.sched-cat.on::before { background: #fff; }
.sched-cat-ack { --cat: #2ea043; border-style: dashed; }   /* '확인' — 색 분류와 구분 */
.sched-item.editing .sched-cats { flex: 1 1 100%; margin-top: 2px; }   /* 수정 폼: 분류 줄을 아랫줄 전체로 */

/* 확인(읽음 체크) — 항목 아랫줄 */
.sched-item { flex-wrap: wrap; }
.sched-ack {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}
.sched-ack-btn {
  flex: 0 0 auto;
  border: 1px solid #2ea043;
  color: #2ea043;
  background: transparent;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sched-ack-btn.on { background: #2ea043; border-color: #2ea043; color: #fff; }
.sched-ack-who { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
.sched-ack-who.none { color: var(--muted); font-size: 12px; }
.sched-ack-count { color: var(--muted); font-size: 12px; margin-left: 2px; }
/* 팀원 확인 명단 — 확인한 사람만 자기 색 이름+V, 나머지는 회색 */
.sched-ack-name { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sched-ack-name.acked { font-weight: 700; }   /* color는 인라인으로 멤버 색 지정 */

/* ===== 링크트리 ===== */
.lt { display: flex; flex-direction: column; gap: 10px; }
.lt-members { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-mem {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer;
}
.lt-mem.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.lt-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 0; }
.lt-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.lt-tagline { color: var(--muted); font-size: 13px; }
.lt-tagline-input {
  border: 1px dashed var(--border); background: transparent; color: var(--muted);
  text-align: center; border-radius: 6px; padding: 3px 8px; font-size: 13px; max-width: 260px;
}
.lt-tagline-input:focus { outline: none; border-color: var(--accent); color: var(--text); }
.lt-social-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lt-social-wrap { display: inline-flex; align-items: center; gap: 2px; }
.lt-social {
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lt-social:hover { border-color: var(--accent); }
.lt-social.empty { border-style: dashed; color: var(--muted); }
.lt-edit { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 4px; }
.lt-edit:hover { color: var(--accent); }
.lt-links { display: flex; flex-direction: column; gap: 8px; }
.lt-cat-head {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted);
  text-transform: uppercase; margin-top: 6px;
}
.lt-cat-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.lt-cat-del:hover { color: var(--danger); }
.lt-link { display: flex; align-items: center; gap: 6px; }
.lt-link.editing { flex-direction: column; align-items: stretch; gap: 4px; }
.lt-link-btn {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.lt-link-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.lt-thumb {
  flex: 0 0 auto; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; overflow: hidden; border-radius: 6px;
}
.lt-thumb img { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
.lt-link-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lt-link-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-link-desc { font-size: 12px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-in-thumb { flex: 0 0 84px; }
.lt-link-acts { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.lt-link-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 4px; }
.lt-link-del:hover { color: var(--danger); }
.lt-empty { color: var(--muted); text-align: center; padding: 16px 0; font-size: 13px; }
.lt-add { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 4px; }
.lt-add-row { display: flex; gap: 6px; }
.lt-in {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 14px;
  background: var(--bg); color: var(--text);
}
.lt-in:focus { outline: none; border-color: var(--accent); }
.lt-save {
  flex: 0 0 auto; border: none; background: var(--accent); color: #fff;
  border-radius: 6px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lt-save:hover { opacity: .92; }
.lt-addcat {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; cursor: pointer;
}
.sched-add-time {
  flex: 0 0 72px;
  width: 72px;
}
.sched-add-title { flex: 1 1 auto; min-width: 0; }
.sched-add input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.sched-add input:focus { outline: none; border-color: var(--accent); }
.sched-add-btn {
  flex: 0 0 auto;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
}
.sched-add-btn:hover { opacity: 0.92; }
.sched-bulk-del {
  align-self: stretch;
  margin-top: 6px;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}
.sched-bulk-del:hover { background: var(--danger); color: #fff; }

/* ===== 마인드맵 ===== */
/* 화면(뷰포트) 안에 딱 맞춤 — 배너·툴바·범례를 뺀 나머지를 캔버스가 차지해
   하단 오버레이(요청 메모·링크 편집)가 스크롤 없이 항상 보임 */
.mm-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 104px);
  height: calc(100dvh - 104px);   /* 모바일 주소창 높이 반영 (하단 잘림 방지) */
}
.mm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mm-toolbar .mode-toggle { margin-bottom: 0; }
.mm-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 15px;
  line-height: 1.2;
}
.mm-btn:hover { border-color: var(--accent); }
.mm-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mm-btn.danger { color: var(--danger); }
.mm-btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
/* 도구 아이콘 버튼 — 정사각형, 선 아이콘(SVG). 클래스 2개라 모바일 .mm-btn 여백보다 우선한다 */
.mm-btn.icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mm-btn.with-icon { height: 32px; padding: 0 10px 0 8px; display: inline-flex; align-items: center; gap: 4px; }
.mm-btn svg { width: 18px; height: 18px; flex: 0 0 auto; display: block; }
@media (max-width: 640px) {
  .mm-btn.icon { width: 42px; height: 42px; }
  .mm-btn.with-icon { height: 42px; padding: 0 14px 0 10px; font-size: 16px; }
  .mm-btn svg { width: 22px; height: 22px; }
  .mm-toolbar { gap: 6px; }
}

.mm-canvas {
  position: relative;
  width: 100%;
  flex: 1 1 auto;                /* 위 요소들 빼고 남는 높이 전부 */
  height: auto;
  min-height: 220px;
  border: 1px solid #374151;
  border-radius: 8px;
  overflow: hidden;
  /* 원본 스펙: 캔버스는 항상 다크 (#111827) + 점 그리드 */
  background:
    radial-gradient(circle, #2a3242 1px, transparent 1px) 0 0 / 22px 22px,
    #111827;
  touch-action: none;
}
.mm-svg { width: 100%; height: 100%; display: block; }

.mm-node { cursor: grab; }
.mm-node-rect {
  fill: #1f2937;            /* 가지 기본 채움 --panel */
  stroke: #374151;          /* 테두리 --line */
  stroke-width: 1.5;
}
.mm-node-rect.sel { stroke: #f59e0b; stroke-width: 2.5; }   /* 선택/편집 테두리 앰버 */
.mm-node-rect.start { stroke: #22a06b; stroke-width: 3; }
.mm-node-rect.from { stroke: #22a06b; stroke-width: 3; }
.mm-node-rect.to { stroke: #3b82f6; stroke-width: 3; }
.mm-node-rect.arm { stroke: #dc2626; stroke-width: 3.5; }
.mm-node-text {
  fill: #e5e7eb;            /* 기본 글자색 --fg */
  font-size: 15px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.mm-node-text.lit { fill: #fff; }   /* 지정색/뿌리 가지 글자 = 흰색 */
.mm-node-rect.root + .mm-node-text, .mm-node-rect.root ~ .mm-node-text { font-weight: 700; }

/* 🎨 색상 팔레트 */
.mm-palette {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mm-palette-icon { font-size: 15px; }
.mm-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}
.mm-swatch:hover { transform: scale(1.15); }
.mm-swatch.reset {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1;
}

.mm-plus { cursor: pointer; display: none; }
.mm-node.hovered .mm-plus, .mm-node.selnode .mm-plus { display: block; }
.mm-plus-c { fill: var(--accent); opacity: 0.9; }
.mm-plus-t {
  fill: #fff; font-size: 14px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}


.mm-edge { stroke: #374151; stroke-width: 2; }   /* 트리 연결선 --line */

/* 진행률 게이지 (노드 하단, 연두 #a3e635) */
.mm-prog-bg { stroke: rgba(148, 163, 184, 0.28); stroke-width: 3; stroke-linecap: round; }
.mm-prog-fill { stroke: #a3e635; stroke-width: 3; stroke-linecap: round; }
.mm-prog-t {
  fill: #a3e635; font-size: 12px; font-weight: 700;
  text-anchor: start; dominant-baseline: central; pointer-events: none;
}
.mm-prog-handle {
  fill: #a3e635;
  stroke: #111827;
  stroke-width: 2;
  cursor: ew-resize;
  display: none;
}
.mm-node.hovered .mm-prog-handle, .mm-prog-handle.show { display: block; }

/* 팀원 고유 색 점 (TODO 섹션·말풍선·범례 공용) */
.member-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: baseline;
  flex: 0 0 auto;
}

/* 마인드맵 팀원 범례 */
.mm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--muted);
}
.mm-legend-chip { display: inline-flex; align-items: center; white-space: nowrap; }

/* 📨 요청 보내기 버튼 (호버 시 노드 오른쪽) */
.mm-reqbtn { cursor: pointer; display: none; }
.mm-node.hovered .mm-reqbtn, .mm-node.selnode .mm-reqbtn { display: block; }
.mm-reqbtn-c { fill: #1f2937; stroke: #f59e0b; stroke-width: 1.5; }
.mm-reqbtn-t {
  font-size: 12px; text-anchor: middle; dominant-baseline: central; pointer-events: none;
}

/* 요청 메모 표시 점 + 말풍선 */
.mm-req-dots { cursor: pointer; }
.mm-req-hit { fill: transparent; }
.mm-req-dot { stroke: #fff; stroke-width: 1.5; }
.mm-req-more {
  fill: var(--muted); font-size: 11px; font-weight: 700;
  text-anchor: end; dominant-baseline: central;
}
.mm-balloon {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -100%);
  background: var(--bg);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 10px;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: none;
}
.mm-balloon-line { word-break: break-word; }
.mm-reqline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mm-reqline.hidden-req { opacity: 0.65; }
.req-hidden-mark {
  font-size: 12px;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 4px;
  padding: 0 4px;
}
.req-act {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  padding: 1px 5px;
  line-height: 1.3;
  margin-left: auto;
}
.req-act + .req-act { margin-left: 2px; }
.req-act:hover { border-color: var(--accent); color: var(--accent); }
.req-act.del:hover { border-color: var(--danger); color: var(--danger); }

/* 요청 URL 첨부 */
.req-url-list { display: flex; flex-direction: column; gap: 3px; }
.req-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  align-self: flex-start;
  word-break: break-all;
}
.req-url-x {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 12px; padding: 0 2px;
}
.req-url-x:hover { color: var(--danger); }
.req-clip { font-size: 13px; margin-left: 4px; }
.req-url-open {
  border: 1px solid #f59e0b;
  background: var(--bg);
  color: #f59e0b;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  cursor: pointer;
  margin-left: 3px;
}
.req-url-open:hover { background: #f59e0b; color: #fff; }
.mm-req-clip { font-size: 12px; text-anchor: end; dominant-baseline: central; }
.mm-balloon-line + .mm-balloon-line { margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 4px; }
.mm-link { cursor: pointer; }
.mm-link-hit { stroke: transparent; stroke-width: 12; }
.mm-link-line { stroke: #f59e0b; stroke-width: 2.5; }        /* 연결 화살표 앰버 */
.mm-link.sel .mm-link-line { stroke: #fbbf24; stroke-width: 3.5; }
.mm-arrow { fill: #f59e0b; }
.mm-link.sel .mm-arrow { fill: #fbbf24; }
.mm-memo-bg { fill: #1f2937; stroke: #f59e0b; }
.mm-memo-t {
  fill: #f59e0b; font-size: 12px; font-weight: 600;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}

.mm-editor {
  position: absolute;
  z-index: 5;
  border: 2px solid #f59e0b;   /* 편집 중 테두리 앰버 */
  border-radius: 6px;
  padding: 0 6px;
  font-size: 15px;
  background: #1f2937;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}
.mm-editor:focus { outline: none; }

.mm-hint { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* 드래그 박스(마퀴) 다중 선택 */
.mm-marq {
  position: absolute;
  z-index: 6;
  border: 1.5px dashed var(--accent);
  background: rgba(79, 124, 255, 0.12);
  pointer-events: none;
}

/* 마인드맵 캔버스 위 떠있는 오버레이 (아래로 밀려 안 보이던 문제 해결) */
.mm-hint-overlay {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 4;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  opacity: 0.95;
}
.mm-canvas .mm-linkedit {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 6;
  box-shadow: var(--shadow);
}

.mm-linkedit {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
  background: var(--accent-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-linkedit-head { font-weight: 700; font-size: 15px; }
.mm-linkedit-row { display: flex; gap: 6px; align-items: center; }
.mm-seg {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 16px;
  line-height: 1.2;
}
.mm-seg.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mm-linkedit-memo {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.mm-linkedit-memo:focus { outline: none; border-color: var(--accent); }

/* Shared memo (board) */
.board { display: flex; flex-direction: column; gap: 10px; }
.board-composer,
.post,
.reply {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 8px;
}
.post-head,
.reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.post-author { font-weight: 600; color: var(--text); }
.post-body,
.reply-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.5;
}
.post-body img,
.reply-body img,
.editor img {
  max-width: 100%;
  border-radius: 4px;
  margin: 4px 0;
  display: block;
}
.post-actions,
.reply-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.post-actions button,
.reply-actions button,
.composer-actions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 13px;
}
.post-actions button:hover,
.reply-actions button:hover,
.composer-actions button:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.post-actions .danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.replies { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.reply { padding: 6px 8px; }

.editor {
  min-height: 60px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  padding: 6px 8px;
  font-size: 12.5px;
  outline: none;
  overflow-wrap: anywhere;
}
.editor:focus { border-color: var(--accent); }
.editor[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.composer-actions .primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.composer-actions .primary:hover { filter: brightness(1.05); }

/* Personal memo */
.personal-editor {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  padding: 10px;
  font-size: 15px;
  outline: none;
  overflow: auto;
}
.personal-editor:focus { border-color: var(--accent); }

/* ===== 메모 (공유/개인 · 세로 최대 3분할) ===== */
.memo-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.memo-pane {
  flex: 1 1 0;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.memo-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.memo-title {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);        /* 제목은 다른 색으로 티나게 */
  padding: 2px 4px;
}
.memo-title::placeholder { color: var(--accent); opacity: 0.55; font-weight: 600; }
.memo-title:focus { outline: none; background: var(--bg); border-radius: 4px; }
.memo-head-btns { display: flex; gap: 2px; flex: 0 0 auto; }
.memo-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  width: 24px;
  height: 22px;
  border-radius: 4px;
}
.memo-icon-btn.memo-add:hover { background: var(--accent-soft); color: var(--accent); }
.memo-icon-btn.memo-del:hover { background: var(--accent-soft); color: var(--danger); }
.memo-editor {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
}
/* 붙여넣은 이미지 = 180×180 썸네일(왼쪽 정렬), 옆·아래로 글이 흐름. 클릭하면 크게 보기 */
.memo-editor img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  float: left;
  margin: 2px 10px 6px 0;
  cursor: zoom-in;
}
/* 편집칸: 이미지를 X 삭제 버튼 달린 래퍼로 감쌈 (float은 래퍼가 담당) */
.memo-editor .memo-img {
  position: relative;
  display: inline-block;
  float: left;
  margin: 2px 10px 6px 0;
}
.memo-editor .memo-img img { float: none; margin: 0; display: block; }
.memo-img-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: none;               /* PC 기본 숨김 → 호버 시 표시 */
  align-items: center;
  justify-content: center;
}
.memo-img-del:hover { background: var(--danger); }
.memo-editor .memo-img:hover .memo-img-del { display: flex; }
@media (pointer: coarse) {
  .memo-editor .memo-img-del { display: flex; }   /* 모바일: 항상 표시 */
}

/* 이미지 크게 보기 오버레이 */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  cursor: zoom-out;
}
.img-lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* 팀 메모 — 팀원별 영역 */
.memo-owner {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 2px;
}
.memo-pane.readonly {
  flex: 0 1 auto;
  min-height: 40px;
  opacity: 0.95;
  border-style: dashed;
}
.memo-pane.readonly .memo-editor { min-height: 30px; }
.memo-title-ro {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 4px;
}

/* 앱 버전 표시 (설정 제목 옆) */
.app-version {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 8px;
  vertical-align: middle;
}

/* 경고 박스 (계정 코드 등 민감 정보) */
.warn-box {
  margin: 4px 0 8px;
  padding: 8px 10px;
  border: 1.5px solid var(--danger);
  border-radius: 8px;
  background: rgba(214, 69, 69, 0.1);
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.warn-box.small { font-size: 12px; font-weight: 600; padding: 5px 7px; margin-top: 6px; }
.danger-btn {
  border: 1px solid var(--danger) !important;
  color: var(--danger) !important;
  background: var(--bg) !important;
}
.danger-btn:hover { background: var(--danger) !important; color: #fff !important; }

/* 모바일 QR (설정) */
.qr-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qr-img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  flex: 0 0 auto;
}
.qr-side { min-width: 0; }
/* 계정 QR: 평소엔 가림막, 누르면 60초 동안만 보인다 */
.qr-holder { position: relative; flex: 0 0 auto; }
.qr-code { width: 180px; height: 180px; background: #fff; padding: 6px; display: flex; align-items: center; justify-content: center; }
.qr-code.hidden { display: none; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-cover { width: 120px; height: 120px; border: 1px dashed var(--border); border-radius: 8px;
  background: var(--bg-soft); color: var(--text); font-size: 13px; cursor: pointer; padding: 8px; line-height: 1.4; }
.qr-cover:hover { background: var(--accent-soft); }
.qr-cover.hidden { display: none; }
.qr-url {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 7px;
  user-select: all;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;   /* 상단 기준 — 길어도 위에서 시작 (가운데 잘림 방지) */
  justify-content: center;
  z-index: 100;
  padding: 16px 0;
  overflow-y: auto;
}
.modal.hidden { display: none; }

/* 설정 모달 = 화면 전체 채움 (좌우 여백 없음), 우상단 ✕ 닫기 */
#settings-modal { padding: 0; align-items: stretch; }
#settings-modal .modal-card {
  position: relative;
  width: 100%;
  max-width: none;
  max-height: none;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.modal-x {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.modal-x:hover { border-color: var(--danger); color: var(--danger); }

.modal-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  width: 90%;
  max-width: 320px;
  max-height: calc(100vh - 32px);   /* 화면보다 크면 카드 안에서 스크롤 */
  overflow-y: auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-card h3 { margin: 0; }
.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.modal-card label.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.modal-card label.row select { flex: 0 0 auto; }
.modal-card input,
.modal-card select {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
}
.modal-card .hint { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.modal-card .hint.mt8 { margin-top: 8px; }
.modal-card .row { display: flex; gap: 6px; align-items: center; }
.modal-card .row input { flex: 1 1 auto; }
.modal-card .row button {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  flex: 0 0 auto;
}
.modal-card .row button:hover { filter: brightness(1.05); }

.modal-card .group {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* 모달 배경과 대비 — 섹션 경계가 눈에 들어오도록 */
  background: var(--bg-soft);
}
@media (prefers-color-scheme: dark) {
  /* 어두운 테마에서는 모달 배경보다 한 단계 밝게 */
  .modal-card .group {
    background: #2e323d;
    border-color: #3d424f;
  }
}
.modal-card fieldset.group { margin: 0; }
.modal-card fieldset.group legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 4px;
}
.modal-card details.group summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  outline: none;
}
.modal-card details.group[open] { padding-bottom: 10px; }
.modal-card details.group label { margin-top: 6px; }
.modal-card details.group small.hint { font-size: 12px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.modal-actions button {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.modal-actions .ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

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

.modal-card.paywall {
  border-top: 4px solid var(--danger);
  max-width: 340px;
}
.modal-card.paywall h3 {
  color: var(--danger);
  font-size: 16px;
}
.modal-card.paywall .paywall-msg {
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}
.modal-card.paywall .paywall-reason {
  background: var(--bg-soft);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.mt8 { margin-top: 8px; }

/* ── 팀원 메모 접기/펼치기 (본문은 펼칠 때만 서버에서 받아온다) ── */
.memo-owner.clickable { cursor: pointer; user-select: none; }
.memo-owner.clickable:hover { filter: brightness(1.15); }
.memo-caret { display: inline-block; width: 12px; opacity: .7; }
.memo-collapsed-hint { margin-left: 6px; font-size: 12px; opacity: .55; font-weight: 400; }
.memo-pane.readonly.muted { opacity: .6; font-size: 14px; }
.memo-pane.readonly a { color: var(--accent, #f59e0b); word-break: break-all; }

/* ── TODO 첨부 링크 ── */
.todo-urls { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 0 22px; }
.todo-url-add {
  background: none; border: none; cursor: pointer; padding: 0 2px;
  font-size: 13px; opacity: 0; transition: opacity .12s;
}
.todo-card:hover .todo-url-add { opacity: .75; }
.todo-url-add:hover { opacity: 1; }
.todo-urls:empty { display: none; }

/* ── 설정: 계정 코드(비밀) / QR 주소(공개) 를 한 섹션에서 구분 ── */
.sec-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 2px 0;
}
.sec-label.secret { color: var(--danger); }
.sec-label.public { color: #1a8a4f; }
@media (prefers-color-scheme: dark) {
  .sec-label.public { color: #4fd08a; }
}
.sec-split {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 10px 0 4px;
}
.ok-box {
  background: #e8f7ee;
  color: #14663c;
  border-radius: 6px;
  padding: 6px 8px;
  margin: 4px 0 0;
  line-height: 1.45;
}
.ok-box.small { font-size: 12px; }
@media (prefers-color-scheme: dark) {
  .ok-box { background: #1e3a2a; color: #7fe0a8; }
}

/* ── 설정: 업데이트 확인 버튼 ── */
.upd-btn {
  margin-left: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
}
.upd-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.upd-btn:disabled { opacity: .5; cursor: default; }
.upd-msg { margin: 4px 0 0; }

/* ── 할일/한일 접기 캐럿 ── */
.todo-group h4 { cursor: pointer; user-select: none; }
.todo-caret { display: inline-block; width: 12px; opacity: .6; font-size: 12px; }
.todo-group.collapsed .todo-list { display: none; }

/* ── 받은 요청: 보낸 사람 이름 태그 ── */
.todo-req-from { flex: 0 0 auto; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ── '내가 보낸 요청' 접이식 (부드럽게: grid-rows 0fr↔1fr) ── */
.sent-req-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  margin-bottom: 8px;
  overflow: hidden;
}
.sent-req-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}
.sent-req-label { flex: 1 1 auto; text-align: left; }
.sent-req-count {
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}
.sent-req-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .28s ease; }
.sent-req-box.collapsed .sent-req-wrap { grid-template-rows: 0fr; }
.sent-req-list { overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 0 8px 8px; }
.sent-req-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 6px;
}
.sent-req-row.linkable { cursor: pointer; }
.sent-req-row.linkable:hover { background: var(--accent-soft); }
.sent-req-to { flex: 0 0 auto; font-weight: 600; }
.sent-req-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.sent-req-pct { flex: 0 0 auto; font-size: 12px; color: var(--accent); font-weight: 600; }
.sent-req-row.done .sent-req-text { text-decoration: line-through; opacity: .7; }
.sent-req-row.done .sent-req-pct { color: #2ea043; }

/* ── 좁은 화면(모바일 PWA·좁은 사이드패널): 할일/한일을 세로로 쌓고 버튼을 글자 아래로 ── */
@media (max-width: 620px) {
  .todo-columns { flex-direction: column; gap: 0; }
  .todo-columns .todo-group + .todo-group {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 10px;
    margin-top: 10px;
  }
  /* 글자는 한 줄로 넓게, 조작 버튼은 그 아래 줄로 */
  .todo-row { flex-wrap: wrap; }
  .todo-row .todo-text,
  .todo-row .todo-editinput { flex: 1 1 100%; }
  .todo-row .member-dot { order: -1; }        /* 색 점은 글자 앞에 유지 */
  .todo-row .todo-act { margin-top: 2px; }
  .todo-act { width: 30px; height: 30px; font-size: 17px; }   /* 손가락 터치 크기 */
}

/* ── 터치 기기: 마인드맵 조작 버튼을 손가락에 맞게 키움 ── */
@media (pointer: coarse) {
  .mm-plus-c { r: 13; }
  .mm-plus-t { font-size: 18px; }
  .mm-reqbtn-c { r: 14; }
  /* 선택한 가지의 컨트롤을 항상 표시 (터치엔 호버가 없으므로) */
  .mm-node.selnode .mm-plus,
  .mm-node.selnode .mm-reqbtn { display: block; }
}

/* ── 팀 배너: 팀이름 + 팀원 명단 (공유·온라인 문구 대체) ── */
.space-banner.shared {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.space-banner-title { font-weight: 700; }
.space-roster {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  opacity: 0.95;
}
.roster-chip .member-dot { flex: 0 0 auto; }

/* ── 첫 실행 계정 이어받기 안내 (아이폰 홈화면 PWA 등 새 저장소) ── */
.recovery-banner {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recovery-msg { font-size: 13px; line-height: 1.45; color: var(--text); }
.recovery-row { display: flex; gap: 6px; }
.recovery-row input {
  flex: 1 1 auto; min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.recovery-apply {
  flex: 0 0 auto;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.recovery-dismiss {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
}

/* ── 시간 입력칸: 좌우 드래그로 조절 가능함을 커서로 안내 ── */
.sched-add-time, .sched-edit-time { cursor: ew-resize; }
.sched-add-time:focus, .sched-edit-time:focus { cursor: text; }

/* ── 일정 목록: 내용 맨 앞 알람 토글 (꺼짐=회색 / 켜짐=빨강) ── */
.sched-item-alarm {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0 4px 0 0;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(1) opacity(0.4);   /* 비활성 = 회색 */
}
.sched-item-alarm:hover:not(:disabled) { filter: grayscale(0.3) opacity(0.85); }
.sched-item-alarm.on { filter: none; }  /* 활성 = 원래 빨강 종 */
.sched-item-alarm:disabled { cursor: default; }
.sched-item-alarm.on:disabled { filter: none; }

/* ── 일정 알람: 화면 안 배너 (알림 권한이 없어도 반드시 보이게) ── */
.alarm-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(8px + env(safe-area-inset-top));
  z-index: 300;
  max-width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.alarm-toast span { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.alarm-toast button {
  flex: 0 0 auto;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 13px;
}

/* ── 📷 화면 캡쳐 메뉴 (확장 전용) ── */
.cap-wrap { position: relative; flex: 0 0 auto; }
.cap-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cap-menu button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.cap-menu button:hover { background: var(--accent-soft); }
.cap-menu small { color: var(--muted); font-size: 11px; }
.alarm-toast.cap-toast { background: var(--text); color: var(--bg); font-weight: 500; }
.cap-wrap.hidden, .cap-menu.hidden { display: none; }
/* 📷 이모지는 ⚙ 글자보다 작고 아래로 처져 보여 크기·세로 위치를 맞춘다 */
#cap-btn { font-size: 21px; line-height: 1; height: 32px; display: inline-flex; align-items: center;
  padding-top: 0; padding-bottom: 5px; }

/* ── 마인드맵 터치: 선택된 가지 위 ✏️ 수정 버튼, 길게 눌러도 글자 선택 안 됨 ── */
.mm-svg, .mm-svg text { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mm-editor { touch-action: none; }   /* 편집칸을 잡고 끌면 가지 이동 (브라우저 스크롤·선택 대신) */
.mm-editbtn {
  position: absolute; z-index: 6; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px 0 10px; border-radius: 20px;
  border: none; background: #f59e0b; color: #111827;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.mm-editbtn svg { width: 20px; height: 20px; }
/* 모바일엔 두 손가락 확대·축소가 있으니 확대·축소 버튼은 숨긴다 */
@media (max-width: 640px) {
  .mm-toolbar .mm-btn[data-act="zoomIn"], .mm-toolbar .mm-btn[data-act="zoomOut"] { display: none; }
}
/* 🌐 고른 글 번역 */
.tr-chip { position: fixed; z-index: 9000; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); font-size: 17px; line-height: 1; cursor: pointer; }
.tr-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.tr-card { position: fixed; z-index: 9001; width: min(320px, calc(100vw - 16px)); padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); font-size: 13px; }
.tr-chip.hidden, .tr-card.hidden, .tr-card .hidden { display: none; }
.tr-row { display: flex; align-items: center; gap: 6px; }
.tr-row select { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text); font: inherit; }
.tr-row button { flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text); font-size: 15px; cursor: pointer; }
.tr-row .tr-x { border-color: transparent; background: transparent; color: var(--muted); }
.tr-bar { height: 5px; margin: 10px 0 0; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.tr-msg { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.tr-msg:empty { display: none; }
.tr-msg.warn { color: var(--danger); }
.tr-out { max-height: 38vh; overflow: auto; margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); white-space: pre-wrap; line-height: 1.6; user-select: text; -webkit-user-select: text; }
.tr-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.tr-acts:not(:has(button:not(.hidden))) { display: none; }
.tr-acts button { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text); font: 600 13px inherit; cursor: pointer; }
.tr-acts button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
/* 🎬 영상스크랩 */
.vs-wrap { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.vs-find { width: 100%; min-height: 42px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: 700 15px inherit; cursor: pointer; }
.vs-find:disabled { opacity: .6; cursor: default; }
.vs-msg { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.vs-msg:empty { display: none; }
.vs-picker { padding: 10px; border: 2px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
.vs-picker.hidden, .vs-q.hidden { display: none; }
.vs-pick-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.vs-pick-x { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.vs-pick-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.vs-pick { display: flex; flex-direction: column; gap: 5px; padding: 6px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.vs-pick img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 6px; background: #000; cursor: pointer; }
.vs-pick small { font-size: 12px; color: var(--muted); }
.vs-pick-go { min-height: 34px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 700 13px inherit; cursor: pointer; }
.vs-pick-go:disabled { background: #16a34a; cursor: default; }
.vs-q { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text); font: 14px inherit; }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.vs-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.vs-thumb { position: relative; display: block; padding: 0; border: 0; background: #000; cursor: pointer; }
.vs-thumb img { display: block; width: 100%; aspect-ratio: 9 / 12; object-fit: cover; }
.vs-thumb:hover img { opacity: .85; }
.vs-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11.5px; }
.vs-body { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px 8px; min-width: 0; }
.vs-body b { font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.vs-body small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-del { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.vs-card:hover .vs-del, .vs-del:focus { opacity: 1; }
.vs-empty { grid-column: 1 / -1; }
.vs-empty, .vs-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.alarm-toast .vs-undo { width: auto; min-width: 0; padding: 0 12px; white-space: nowrap; font-weight: 700; flex: none; }


/* ===== PWA 모바일 보강 (build-pwa.mjs가 추가) ===== */
/* 모바일은 화면이 작아 글자가 유독 작게 느껴져 데스크톱보다 한 단계 더 키운다 */
@media (max-width: 640px) {
  html, body { font-size: 17px; }
  .content { padding: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .topbar { padding-top: calc(8px + env(safe-area-inset-top)); }
  .tab { padding: 10px 13px; font-size: 15px; }
  .space-btn { padding: 7px 11px; font-size: 14px; max-width: 130px; }
  .todo-card { font-size: 15px; }
  .todo-owner { font-size: 16px; }
  .memo-editor, .memo-title-ro, .memo-title { font-size: 16px; }
  .todo-act { width: 32px; height: 32px; font-size: 16px; }
  .mm-btn { padding: 8px 13px; font-size: 16px; }
  /* iOS 확대 방지 위해 입력 필드는 16px 이상 유지 */
  input[type="text"], input[type="date"], .memo-editor, .todo-editinput,
  .sched-add input, .sched-edit-title, .sched-edit-time { font-size: 17px; }
  .mm-canvas { min-height: 300px; }
}
