/* D안: 순위 보드, 일정, 폴더·카테고리·할 일, 메뉴, 입력창, 알림 */

/* ---------- 순위 보드: 손으로 그린 메모 칸 ---------- */
#board { margin-bottom: 26px; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pri {
  --pc: var(--p4); --po: .5;
  display: flex; flex-direction: column; min-width: 0; min-height: 122px; padding: 10px 12px;
  border: 1.8px solid var(--ink); border-radius: 12px 18px 14px 20px; transition: box-shadow .12s;
}
.pri[data-pri="1"] { --pc: var(--p1); --po: .35; border-radius: 18px 14px 20px 12px; }
.pri[data-pri="2"] { --pc: var(--p2); --po: .7; border-radius: 14px 20px 12px 18px; }
.pri[data-pri="3"] { --pc: var(--p3); --po: .35; border-radius: 20px 12px 18px 14px; }
.pri-head { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 0 2px 4px; text-align: left; font-family: var(--hand); line-height: 1.1; }
.pri-head b { position: relative; z-index: 0; font-size: calc(23px * var(--fs) * var(--hs)); font-weight: 700; flex: none; }
.pri-head b::before { /* 형광펜 */
  content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 1px; height: 10px;
  border-radius: 3px; background: var(--pc); opacity: var(--po); transform: rotate(-1deg);
}
.pri-head span { font-size: calc(17px * var(--fs) * var(--hs)); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 순위 기준: 진한 글자 */
.pri-head em { margin-left: auto; font-style: normal; font-size: calc(16px * var(--fs) * var(--hs)); color: var(--sub); flex: none; }
.pri-list {
  list-style: none; margin: 0; padding: 0; flex: 1; min-height: 56px; max-height: 172px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
}
.pri.big { grid-column: 1 / -1; }
.pri.big .pri-list { max-height: none; }
.pri-list:empty::after { /* 빈 칸 안내: 순위 기준과 헷갈리지 않게 회색 글자에 점선 테두리 */
  content: var(--t-drop, '여기로 끌어오세요'); margin: auto; padding: 3px 14px 4px; border: 1.5px dashed var(--line); border-radius: 999px;
  font: calc(16px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub);
}

/* ---------- 어제 못 한 일 ---------- */
.carry { margin-bottom: 14px; border: 1.5px dashed var(--sub); border-radius: 14px 18px 12px 16px; }
.carry-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; font-size: calc(14px * var(--fs)); text-align: left; }
.carry-head span { flex: 1; }
.carry-head svg { width: 16px; height: 16px; transition: transform .15s; }
.carry.open .carry-head svg { transform: rotate(180deg); }
.carry-body { padding: 0 12px 10px; }
.carry-list { list-style: none; margin: 0; padding: 0; }
.carry-btns { display: flex; gap: 8px; margin-top: 8px; } /* 모두 오늘로 · 모두 지우기 */

/* ---------- 일정 (그날 수업도 함께) ---------- */
#events { margin-bottom: 22px; }
.sec-head { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.sec-title { margin: 0; font: 700 calc(22px * var(--fs) * var(--hs))/1.1 var(--hand); }
.event { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 2px; text-align: left; border-bottom: 1px dashed var(--line); }
.event:hover { background: var(--soft); }
.event .time { width: calc(152px * var(--fs)); flex: none; font: calc(18px * var(--fs) * var(--hs))/1.15 var(--hand); color: var(--sub); }
.event .bar { width: 10px; height: 10px; border-radius: var(--wob1); background: var(--c); flex: none; }
.event .body { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.event .et { font-weight: 500; overflow-wrap: anywhere; }
.event .memo { font-size: calc(12px * var(--fs)); color: var(--sub); }
.event .tag { padding: 0 8px; border: 1px dashed var(--sub); border-radius: 999px; font: calc(15px * var(--fs) * var(--hs))/1.3 var(--hand); color: var(--sub); flex: none; }

/* ---------- 폴더와 카테고리 ---------- */
.cat-group { min-height: 4px; }
.folder { margin-bottom: 8px; }
.folder-head {
  display: flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 6px; border-bottom: 1.5px dashed var(--line);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.folder-head > svg { width: 18px; height: 18px; }
.folder-name { font: 700 calc(21px * var(--fs) * var(--hs))/1.1 var(--hand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-count { font: calc(16px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub); flex: none; }
.folder-fold { margin-left: auto; transition: transform .15s; }
.folder.folded .folder-fold { transform: rotate(-90deg); }
.folder.folded .cat-group { display: none; }
.folder .cat-group { padding-left: 14px; }
.folder .cat-group:empty::after { content: var(--t-drop-cat, '카테고리를 여기로 끌어오세요'); display: block; padding: 2px 0 10px; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }
.cat { margin-bottom: 14px; }
.cat-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.cat-name { position: relative; z-index: 0; padding: 0 5px; font: 700 calc(26px * var(--fs) * var(--hs))/1.15 var(--hand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-name::before { /* 카테고리 색 형광펜 */
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 3px; height: 11px;
  border-radius: 3px; background: var(--c); opacity: .35; transform: rotate(-1deg);
}
.cat-count { font: calc(16px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub); flex: none; }
.cat-fold { margin-left: auto; transition: transform .15s; }
.cat.folded .cat-fold { transform: rotate(-90deg); }
.cat.folded .task-list, .cat.folded .add-form { display: none; }
.task-list { list-style: none; margin: 0; padding: 0; min-height: 6px; display: flex; flex-direction: column; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* 카테고리 관리 창: 폴더 > 카테고리 */
.mg-sum { margin: -6px 0 12px; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }
.mg-folder { margin-bottom: 14px; }
.mg-folder.none.empty { display: none; }
body.drag-cat .mg-folder.none.empty { display: block; } /* 끄는 동안에는 폴더 밖으로 뺄 자리가 보인다 */
.mg-fhead {
  display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1.5px dashed var(--line);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.mg-folder.real .mg-fhead { cursor: grab; }
.mg-fhead > svg { width: 18px; height: 18px; }
.mg-fname { min-width: 0; font: 700 calc(22px * var(--fs) * var(--hs))/1.15 var(--hand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-fname[role="button"] { cursor: pointer; }
.mg-fhead .folder-count { flex: 1; }
.mg-list { min-height: 8px; padding-left: 14px; }
.mg-list:empty::after { content: var(--t-no-cat, '카테고리가 없어요'); display: block; padding: 8px 0 4px; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }
.mg-cat {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; border-bottom: 1px dashed var(--line2);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.mg-cat:hover { background: var(--soft); }
.mg-cat .nm { flex: 1; min-width: 0; cursor: pointer; }
.mg-cat.paused .nm b, .mg-cat.ended .nm b { color: var(--sub); }
.mg-cat.ended .cdot { opacity: .45; }
.mg-cat .icon-btn { width: 34px; height: 34px; }
.mg-cat .icon-btn svg { width: 16px; height: 16px; }
body.drag-cat .mg-list { min-height: 46px; outline: 1.5px dashed var(--line); outline-offset: 2px; border-radius: 10px; }
.nm b { display: block; font: 700 calc(20px * var(--fs) * var(--hs))/1.15 var(--hand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm small { font-size: calc(12px * var(--fs)); color: var(--sub); }
.cdot { width: 12px; height: 12px; border: 1.4px solid var(--ink); border-radius: var(--wob1); background: var(--c); flex: none; }

/* ---------- 할 일 한 줄 (카테고리·순위 칸·어제 못 한 일에서 같이 쓴다) ---------- */
.task {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 2px; list-style: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.task-list .task { border-bottom: 1px dashed var(--line2); } /* 공책 줄 */
.task:hover { background: var(--soft); }
.check { /* 손으로 그린 동그라미. 체크는 동그라미 밖으로 살짝 삐져나온다 */
  position: relative; width: 22px; height: 22px; border: 1.8px solid var(--ink); border-radius: var(--wob1);
  flex: none; color: transparent;
}
.check svg { position: absolute; left: 1px; top: -7px; width: 22px; height: 22px; stroke-width: 2.8; pointer-events: none; }
.task.done .check { background: var(--c); color: var(--ck, var(--ink)); }
.task .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; display: none; }
.task .title { flex: 1; min-width: 0; font-size: calc(15px * var(--fs)); overflow-wrap: anywhere; cursor: text; }
.task.done .title { color: var(--sub); }
.task .rep { display: inline-grid; flex: none; }
.task .rep svg { width: 14px; height: 14px; }
.task .badge {
  --pc: var(--p4);
  width: 22px; height: 22px; border: 1.8px solid var(--pc); border-radius: var(--wob2); flex: none;
  display: grid; place-items: center; font: 700 calc(16px * var(--fs) * var(--hs))/1 var(--hand);
}
.badge[data-pri="1"] { --pc: var(--p1); }
.badge[data-pri="2"] { --pc: var(--p2line); }
.badge[data-pri="3"] { --pc: var(--p3); }
.task .mini { padding: 1px 10px 2px; border: 1.5px dashed var(--sub); border-radius: 999px; font: 700 calc(16px * var(--fs) * var(--hs))/1.2 var(--hand); flex: none; }
.pri-list .task { min-height: 28px; gap: 7px; }
.pri-list .task .check { width: 18px; height: 18px; border-width: 1.6px; }
.pri-list .task .check svg { left: 0; top: -6px; width: 18px; height: 18px; }
.pri-list .task .dot, .carry .task .dot { display: block; }
.pri-list .task .badge, .carry .task .badge { display: none; }
.pri-list .task .title { font-size: calc(14px * var(--fs)); }
.edit-form, .add-form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; }
.add-form { min-height: 36px; padding: 0 2px; }
.add-form .check { border-style: dashed; }
.edit-form input, .add-form input {
  user-select: text; -webkit-user-select: text;
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 2px 0;
  border-bottom: 1.5px solid var(--ink); border-radius: 0; font-size: calc(15px * var(--fs));
}

/* 할 일마다 ⋯ 메뉴 버튼 */
.task .more { width: 28px; height: 28px; margin-right: -4px; border-radius: 50%; display: grid; place-items: center; color: var(--sub); flex: none; }
.task .more:hover { background: var(--paper); color: var(--ink); }
.task .more svg { width: 18px; height: 18px; }
.pri-list .task .more { display: none; }

/* 마감일: 끝내기 전까지 D-3처럼 보인다. 사흘 안이거나 지났으면 빨갛게 */
.due { font: 700 calc(16px * var(--fs) * var(--hs))/1 var(--hand); color: var(--sub); white-space: nowrap; flex: none; }
.due.soon { color: var(--red); }
/* 주간 보기 칸 안의 할 일은 작게 */
.week-list .task { min-height: 26px; gap: 6px; align-items: flex-start; padding: 3px 0; }
.week-list .task .check { width: 16px; height: 16px; border-width: 1.5px; margin-top: 2px; }
.week-list .task .check svg { left: 0; top: -5px; width: 16px; height: 16px; }
.week-list .task .dot { display: block; margin-top: 7px; }
.week-list .tbody { padding: 0; }
.week-list .task .title { font-size: calc(13px * var(--fs)); line-height: 1.4; }
.week-list .task .rep, .week-list .task .badge { display: none; }
.week-list .due { font-size: calc(13px * var(--fs)); margin-top: 3px; }
body.drag-task .week-list { min-height: 90px; outline: 1.5px dashed var(--line); outline-offset: 2px; border-radius: 8px; }

/* 할 일 메모: 제목 아래 두 줄까지 */
.tbody { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 5px 0; }
.tbody .title { flex: none; }
.tmemo {
  margin-top: 1px; font-size: calc(12px * var(--fs)); line-height: 1.4; color: var(--sub); white-space: pre-line; overflow-wrap: anywhere; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pri-list .tbody { padding: 0; }
.sec-hint.all { color: var(--ink); font-weight: 700; } /* 그날 할 일을 모두 끝냈을 때 */

/* 지난 못 한 일: 날짜별로 묶는다 */
.carry-list { max-height: 340px; overflow: hidden auto; padding-right: 4px; }
.carry-date { list-style: none; padding: 8px 2px 2px; font: 700 calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }

/* 반복 할 일 목록 · 검색 결과 · 수업 고르기 */
.mg-rule { cursor: default; }
.sr-list { margin-top: 12px; max-height: min(52vh, 420px); overflow-y: auto; }
.sr { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 4px 2px; text-align: left; border-bottom: 1px dashed var(--line2); }
.sr:hover { background: var(--soft); }
.sr-date { width: calc(108px * var(--fs)); flex: none; font: calc(17px * var(--fs) * var(--hs))/1.15 var(--hand); color: var(--sub); }
.sr-body { flex: 1; min-width: 0; }
.sr-body b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.sr.done .sr-body b { color: var(--sub); text-decoration: line-through; }
.sr-body small { display: block; font-size: calc(12px * var(--fs)); color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 35% { background: rgba(242, 201, 76, .55); } 100% { background: transparent; } }
.cls-pick { min-height: 36px; }
.cls-pick small { margin-left: auto; font-size: calc(12px * var(--fs)); color: var(--sub); }

/* ---------- 할 일 선택: 여러 개를 골라 한꺼번에 ---------- */
.sec-head .sp { flex: 1; }
.sec-hint { font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }
.task.pick { cursor: pointer; }
.task.picked { background: var(--soft); }
.pickbox { position: relative; width: 22px; height: 22px; border: 1.8px solid var(--ink); border-radius: 7px 9px 6px 8px; flex: none; color: transparent; }
.pickbox svg { position: absolute; left: 1px; top: -7px; width: 22px; height: 22px; stroke-width: 2.8; }
.task.picked .pickbox { background: var(--p2); color: #2B2B2B; }
main.selecting { padding-bottom: 130px; }
main.selecting #carry, main.selecting #board, main.selecting #events, main.selecting .add-row { opacity: .35; pointer-events: none; }
main.selecting .cat-add, main.selecting .cat-fold, main.selecting .folder-fold, main.selecting .folder-head .ring-btn { visibility: hidden; }
#selbar {
  position: fixed; z-index: 46; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); padding: 10px 12px 12px; background: var(--paper);
  border: 1.8px solid var(--ink); border-radius: 18px 14px 20px 12px; box-shadow: var(--shadow);
}
.sel-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sel-top b { font: 700 calc(22px * var(--fs) * var(--hs))/1.2 var(--hand); }
.sel-top .sp { flex: 1; }
.sel-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sel-acts .btn { flex: 1 1 auto; }

/* ---------- 그날 메뉴: 하나를 고르고 확인 ---------- */
.opts { display: flex; flex-direction: column; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 4px 2px; border-bottom: 1px dashed var(--line2); cursor: pointer; }
.opt:hover { background: var(--soft); }
.opt.off { opacity: .45; cursor: default; }
.opt.off:hover { background: none; }
.opt-ico { width: 34px; height: 34px; border: 1.6px solid var(--ink); border-radius: var(--wob1); display: grid; place-items: center; flex: none; }
.opt-ico svg { width: 17px; height: 17px; }
.opt-label { flex: 1; min-width: 0; font: 700 calc(21px * var(--fs) * var(--hs))/1.2 var(--hand); }
.opt small { display: block; font: 400 calc(12px * var(--fs))/1.3 var(--font); color: var(--sub); }
.opt.danger .opt-label { color: var(--red); }
.opt.danger .opt-ico { color: var(--red); border-color: var(--red); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { position: relative; width: 24px; height: 24px; border: 1.8px solid var(--ink); border-radius: var(--wob2); flex: none; }
.opt input:checked + .radio::after { content: ''; position: absolute; inset: 4px; border-radius: var(--wob1); background: var(--ink); }
.opt input:focus-visible + .radio { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- 끄는 동안: 놓을 수 있는 곳을 테두리로 ---------- */
body.drag-task .cat-head { outline: 1.5px dashed var(--line); outline-offset: -1px; border-radius: 12px; }
body.drag-task .cat-head.drop { background: var(--soft); outline: 2px solid var(--ink); } /* 카테고리 이름 위에 놓으면 그 카테고리로 */
.sortable-ghost { opacity: .35; }
.sortable-chosen { background: var(--soft); }
.sortable-fallback { background: var(--paper) !important; box-shadow: var(--shadow); border-radius: 12px; opacity: .96 !important; }
body.drag-task .pri { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pc); }
body.drag-task .task-list { min-height: 36px; outline: 1.5px dashed var(--line); outline-offset: -1px; border-radius: 8px; }
body.drag-task .cal-day { box-shadow: inset 0 0 0 1px var(--line2); }
body.drag-task .cal-day.drop { box-shadow: inset 0 0 0 2px var(--ink); }
body.drag-cat .cat-group { min-height: 40px; outline: 1.5px dashed var(--line); outline-offset: 3px; border-radius: 10px; }
body.drag-task, body.drag-cat { cursor: grabbing; }
body.drag-task .task:hover, body.drag-cat .task:hover { background: none; }

/* ---------- 메뉴: Mac은 작은 창, 폰은 아래에서 올라오는 시트 ---------- */
#menu { position: fixed; inset: 0; z-index: 70; }
.menu-back { position: absolute; inset: 0; }
.menu-card {
  position: absolute; min-width: 200px; max-width: 280px; padding: 6px; background: var(--paper);
  border: 1.8px solid var(--ink); border-radius: 16px 12px 18px 12px; box-shadow: var(--shadow);
}
.menu-title { padding: 6px 12px 4px; font-size: calc(12px * var(--fs)); color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: calc(14px * var(--fs)); text-align: left; }
.menu-item:hover { background: var(--soft); }
.menu-item svg { width: 17px; height: 17px; }
.menu-item small { margin-left: auto; color: var(--sub); font-size: calc(12px * var(--fs)); }
.menu-item.danger { color: var(--red); }
#menu.sheet .menu-back { background: rgba(0, 0, 0, .35); }
#menu.sheet .menu-card {
  left: 0; right: 0; bottom: 0; max-width: none; border-width: 1.8px 0 0; border-radius: 22px 22px 0 0;
  padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); animation: sheet-up .18s ease-out;
}
#menu.sheet .menu-item { padding: 14px; font-size: calc(16px * var(--fs)); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- 입력창 ---------- */
#modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.modal-card {
  position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px;
  background: var(--paper); border: 1.8px solid var(--ink); border-radius: 20px 16px 22px 14px; box-shadow: var(--shadow);
}
.modal-card h3 { margin: 0 0 12px; font: 700 calc(28px * var(--fs) * var(--hs))/1.1 var(--hand); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font: calc(17px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub); }
.inp {
  width: 100%; min-height: 42px; padding: 9px 12px; outline: 0; background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 12px 14px 11px 13px;
}
.inp:focus { box-shadow: 0 0 0 3px var(--line2); }
.inp:disabled { border-style: dashed; color: var(--sub); }
textarea.inp { resize: vertical; min-height: 64px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; } /* 이름표가 두 줄이 돼도 입력칸은 나란히 */
.check-line { display: flex; align-items: center; gap: 8px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 4px; }
.sw { aspect-ratio: 1; border: 1.6px solid var(--ink); border-radius: var(--wob1); background: var(--c); display: grid; place-items: center; color: transparent; }
.sw:nth-child(even) { border-radius: var(--wob2); }
.sw.on, .cc-pick.on { color: var(--ck); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.8px var(--ink); }
.sw svg, .cc-pick svg { width: 58%; height: 58%; stroke-width: 3; pointer-events: none; }
.custom-color { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 4px; }
.custom-color > span { flex: 1; font: calc(17px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub); }
.cc-pick {
  position: relative; width: 36px; height: 36px; border: 1.6px solid var(--ink); border-radius: var(--wob2);
  background: var(--c); display: grid; place-items: center; color: transparent; cursor: pointer; flex: none;
}
.cc-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; border: 0; cursor: pointer; }
.cc-hex { width: 116px; flex: none; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cc-hex.bad { border-color: var(--red); }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.status { flex: 1 1 100%; font: 700 calc(19px * var(--fs) * var(--hs))/1.2 var(--hand); }
.status.paused, .status.ended { color: var(--sub); }
.seg { display: flex; gap: 4px; }
.seg button { flex: 1; white-space: nowrap; padding: 5px 4px 6px; border: 1.5px dashed var(--line); border-radius: 12px; font: calc(18px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }
.seg button.on { border: 1.6px solid var(--ink); color: var(--ink); font-weight: 700; }
.wds { display: flex; gap: 6px; justify-content: space-between; }
.wds button { width: 38px; height: 38px; border: 1.5px dashed var(--line); border-radius: var(--wob1); font: calc(18px * var(--fs) * var(--hs))/1 var(--hand); color: var(--sub); }
.wds button.on { border: 1.8px solid var(--ink); background: var(--ink); color: var(--onink); font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px 8px;
  border: 1.6px solid var(--ink); border-radius: 13px 15px 12px 16px; font: 700 calc(19px * var(--fs) * var(--hs))/1.2 var(--hand); white-space: nowrap;
}
.btn:hover { background: var(--soft); }
.btn.main { background: var(--ink); color: var(--onink); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.main.danger { background: var(--red); color: var(--paper); }
.btn.small { flex: none; padding: 3px 12px 4px; font-size: calc(17px * var(--fs)); }
.btn:disabled, .chip:disabled { opacity: .4; cursor: default; }
.btn svg { width: 14px; height: 14px; stroke-width: 2.4; }
.msg { margin: -4px 0 10px; font-size: calc(14px * var(--fs)); color: var(--sub); }
.err { min-height: 16px; margin: 0; font-size: calc(13px * var(--fs)); color: var(--red); }
.slot { display: grid; grid-template-columns: 74px 1fr 1fr 32px; gap: 6px; margin-bottom: 10px; }
.slot .inp { min-height: 38px; padding: 6px 8px; }
.slot .place { grid-column: 1 / 4; }
.slot .icon-btn { align-self: center; }

/* ---------- 디데이·설정 화면 ---------- */
.dd-list { list-style: none; margin: 0; padding: 0; }
.dd-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 4px; list-style: none; border-bottom: 1px dashed var(--line2);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.dd-row:hover { background: var(--soft); }
.dd-row.past { padding-left: 44px; }
.dd-info { flex: 1; min-width: 0; text-align: left; cursor: pointer; border-radius: 8px; }
.dd-name, .dd-date { display: block; }
.dd-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-date { font-size: calc(12px * var(--fs)); color: var(--sub); }
.dd-d { font: 700 calc(22px * var(--fs) * var(--hs))/1 var(--hand); color: var(--red); flex: none; }
.dd-row.past .dd-d { color: var(--sub); }
.dd-row.up .dd-d { color: var(--ink); } /* 지난 날부터 세는 디데이 (100일째) */
.dd-star { color: var(--line); }
.dd-star.on { color: var(--ink); }
.dd-star.on svg { fill: var(--p2); }
.dd-row.dl { padding-left: 14px; gap: 12px; } /* 마감일을 단 할 일 */
.dd-row.dl .dd-d { color: var(--ink); }
.dd-row.dl.late .dd-d { color: var(--red); }
.sub-title { margin: 20px 4px 6px; font: 700 calc(20px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub); }
.set-note { margin: 0 4px 6px; font-size: calc(12px * var(--fs)); color: var(--sub); }
.snap-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed var(--line2); }
.snap-row .nm { flex: 1; min-width: 0; }
.set-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 4px; border-bottom: 1px dashed var(--line2); }
.set-row .lab { flex: 1; min-width: 120px; }
.set-row small { display: block; color: var(--sub); font-size: calc(12px * var(--fs)); }
.set-row .inp { width: 150px; }
.set-row .seg { width: 200px; flex: none; }
.set-row .seg:has(> :nth-child(4)) { width: 276px; } /* 네 칸짜리(글자 크기) */
.set-row select.inp { width: 150px; flex: none; }

/* ---------- 알림 ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80;
  display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 10px 16px;
  background: var(--ink); color: var(--onink); border-radius: 14px 16px 12px 15px; box-shadow: var(--shadow);
  font-size: calc(14px * var(--fs)); white-space: nowrap;
}
#toast button { font: 700 calc(19px * var(--fs) * var(--hs))/1 var(--hand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  #toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  #selbar { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .opt { gap: 10px; }
  .opt-ico { width: 30px; height: 30px; }
  .opt-label { font-size: calc(19px * var(--fs)); }
  .sel-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .sel-acts .btn { min-height: 40px; }
  main.selecting { padding-bottom: 190px; }
  .task .more { width: 36px; height: 36px; }
  .event .time { width: calc(108px * var(--fs)); }
  .pri-list:empty::after { padding: 3px 8px 4px; white-space: nowrap; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* 좁은 순위 칸에서도 안내 글자가 한 줄에 들어가게 (글자 크기 설정과 상관없이) */
  .pri-list { overflow-x: hidden; }
  .pri-head span { white-space: normal; } /* 좁은 칸에서는 순위 기준을 두 줄로 (큰 글자일 때) */
}

/* ---------- 그 날짜에 바로 추가: 주간 보기의 + · 큰 달력 칸의 + ---------- */
.wk-add {
  display: grid; place-items: center; width: 100%; height: 28px; margin-top: 6px;
  border: 1.5px dashed var(--line); border-radius: 10px 12px 9px 11px; color: var(--sub);
}
.wk-add:hover { background: var(--soft); color: var(--ink); }
.wk-add svg { width: 14px; height: 14px; stroke-width: 2.4; }
.cal-add { display: none; } /* 큰 달력(Mac의 달력 화면)에서만 보인다 */
@media (min-width: 768px) {
  body[data-tab="calendar"] .cal-day { position: relative; }
  body[data-tab="calendar"] .cal-add {
    display: grid; place-items: center; position: absolute; top: 7px; right: 7px; width: 24px; height: 24px;
    border: 1.5px dashed var(--line); border-radius: var(--wob1); background: var(--paper); color: var(--sub); opacity: .45;
  }
  body[data-tab="calendar"] .cal-day:hover .cal-add { opacity: 1; }
  body[data-tab="calendar"] .cal-add:hover { border: 1.6px solid var(--ink); color: var(--ink); }
  .cal-add svg { width: 13px; height: 13px; stroke-width: 2.4; }
}

/* ---------- 습관: 아무 날에나 해도 되는 칸(일주일에 몇 번) · 오늘 줄의 이번 주 횟수 ---------- */
.hb-cell.opt i { border-style: dotted; }
.hb-chip em { font: calc(15px * var(--fs) * var(--hs))/1 var(--hand); font-style: normal; color: var(--sub); flex: none; }

/* ---------- 계정: 가입 동의 · 약관과 정책 글 ---------- */
.link { text-decoration: underline; text-underline-offset: 3px; color: var(--sub); font-size: calc(13px * var(--fs)); }
.link:hover { color: var(--ink); }
.agree { margin: 10px 0 2px; font-size: calc(14px * var(--fs)); cursor: pointer; }
.agree input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.legal-inline { margin: 0 0 4px 26px; }
.legal-inline summary { font-size: calc(12px * var(--fs)); color: var(--sub); cursor: pointer; }
.legal-text { max-height: 180px; overflow-y: auto; margin-top: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px;
  font-size: calc(12px * var(--fs)); line-height: 1.65; color: var(--ink); }
.legal-text.tall { max-height: min(56vh, 460px); margin-top: 0; }
.legal-text h4 { margin: 12px 0 3px; font: 700 calc(13px * var(--fs))/1.4 var(--font); }
.legal-text h4:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 6px; }
.legal-text mark { background: rgba(242, 201, 76, .45); color: inherit; padding: 0 2px; border-radius: 3px; }
.legal-draft { padding: 6px 8px; border-radius: 8px; background: var(--soft); color: var(--sub); }

/* ---------- 다른 앱에서 옮겨 오기: 칸 맞추기 창 ---------- */
.imp-map { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.imp-map .field { min-width: 0; margin-bottom: 10px; }
.imp-map .inp { padding-left: 8px; padding-right: 4px; }
.imp-more { margin: 0 0 12px; }
.imp-more summary { margin-bottom: 8px; font: calc(16px * var(--fs) * var(--hs))/1.3 var(--hand); color: var(--sub); cursor: pointer; }
.imp .check-line { font-size: calc(14px * var(--fs)); }
.imp .check-line input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.imp-sum { margin: 4px 0 10px; font-size: calc(13px * var(--fs)); line-height: 1.65; }
.imp-sum b { font-size: calc(15px * var(--fs)); }
.imp-sum .warn { color: var(--red); }
.imp-prev:empty { display: none; }
.imp-prev { margin-bottom: 4px; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; }
.imp-prev table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: calc(12px * var(--fs)); }
.imp-prev th, .imp-prev td { padding: 5px 8px; text-align: left; border-bottom: 1px dashed var(--line2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-prev th { color: var(--sub); font-weight: 600; }
.imp-prev tr:last-child td { border-bottom: 0; }
.imp-rest { margin: 0; padding: 4px 8px 6px; font-size: calc(12px * var(--fs)); color: var(--sub); border-top: 1px dashed var(--line2); }

/* ---------- 주간·월간 계획: 종이 다이어리처럼 목표 · 메모 · 돌아보기 ---------- */
.tt-sub { font: calc(18px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); }
.plan-seg { width: calc(140px * var(--fs)); flex: none; }
.plan-seg button { padding: 3px 4px 4px; }
.plan { display: grid; gap: 12px; align-items: start; }
.plan-week { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.plan-card { min-width: 0; padding: 8px 12px 10px; background: var(--paper); border: 1.6px solid var(--ink); border-radius: 14px 12px 16px 12px; }
.plan-card:nth-child(2) { border-radius: 12px 16px 12px 14px; }
.plan-card:focus-within { box-shadow: 0 0 0 3px var(--line2); }
.plan-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font: 700 calc(21px * var(--fs) * var(--hs))/1.2 var(--hand); }
.plan-title span { position: relative; z-index: 0; }
.plan-title span::before { /* 노란 형광펜 */
  content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 1px; height: 9px;
  border-radius: 3px; background: var(--p2); opacity: .55; transform: rotate(-1deg);
}
.plan-title em { font: calc(16px * var(--fs) * var(--hs))/1 var(--hand); font-style: normal; color: var(--sub); }
.goal-list { list-style: none; margin: 0; padding: 0; }
.goal { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.goal .check { margin-top: 3px; }
.goal.done .check { background: var(--p2); color: #2B2B2B; }
.goal-text { flex: 1; min-width: 0; padding-top: 1px; font: calc(19px * var(--fs) * var(--hs))/1.35 var(--hand); overflow-wrap: anywhere; cursor: text; }
.goal.done .goal-text { color: var(--sub); text-decoration: line-through; text-decoration-color: var(--line); }
.goal .edit-form input { font: calc(19px * var(--fs) * var(--hs))/1.35 var(--hand); }
.goal-del { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--sub); opacity: 0; }
.goal:hover .goal-del, .goal-del:focus-visible { opacity: 1; }
.goal-del:hover { background: var(--soft); color: var(--ink); }
.goal-del svg { width: 14px; height: 14px; }
@media (hover: none) { .goal-del { opacity: .55; } } /* 폰: 늘 보인다 */
.goal-add { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 2px; }
.goal-add .check { border-style: dashed; border-color: var(--sub); }
.goal-add input {
  flex: 1; min-width: 0; padding: 2px 0; border: 0; border-bottom: 1.5px dashed var(--line); border-radius: 0; outline: 0;
  background: transparent; font: calc(19px * var(--fs) * var(--hs))/1.35 var(--hand);
}
.goal-add input:focus { border-bottom: 1.5px solid var(--ink); }
.lined { /* 줄 공책: 글줄마다 옅은 선 */
  --lh: calc(30px * var(--fs));
  display: block; width: 100%; min-height: calc(var(--lh) * 4); margin: 0; padding: 0 2px; overflow: hidden; resize: none;
  border: 0; border-radius: 0; outline: 0; color: var(--ink);
  font-family: var(--hand); font-size: calc(19px * var(--fs) * var(--hs)); line-height: var(--lh);
  background: transparent repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--line2) calc(var(--lh) - 1px), var(--line2) var(--lh));
  background-attachment: local;
}
.lined::placeholder { color: var(--sub); opacity: .7; }
.month-sum.bare { margin: 0 0 6px; padding: 0; border: 0; }
.ms-line, .ms-none { margin: 0 0 4px; font-size: calc(12px * var(--fs)); color: var(--sub); }
.month-side { margin-top: 18px; }
@media (min-width: 768px) {
  /* 달력 화면(월간): 달력 오른쪽에 이달의 목표 · 메모 · 돌아보기 */
  body[data-tab="calendar"] .month-page { display: grid; grid-template-columns: minmax(0, 1fr) calc(290px * var(--fs)); gap: 24px; align-items: start; }
  body[data-tab="calendar"] .month-side { margin-top: 0; }
}
@media (max-width: 767px) {
  .plan-week { grid-template-columns: minmax(0, 1fr); }
  .lined { font-size: calc(19px * var(--fs) * var(--hs)) !important; } /* 폰 입력칸의 16px 규칙보다 앞선다 (16px보다 커서 화면이 확대되지 않는다) */
  body[data-tab="calendar"] .cal-head { flex-wrap: wrap; row-gap: 6px; }
}

/* ---------- 습관 트래커: 한 달을 세는 방법 · 시작 전 칸 ---------- */
.hb-mode { width: calc(250px * var(--fs)); flex: none; }
.hb-mode button { padding: 3px 4px 4px; white-space: nowrap; }
.hb-cell.pre i { display: none; } /* 시작 전 · 그 습관의 한 달에 없는 칸: 비워 둔다 */
.hb-corner { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 8px 6px 0; }
.hb-corner i { font: calc(13px * var(--fs) * var(--hs))/1 var(--hand); font-style: normal; color: var(--sub); }
.hb-name small.hb-period { opacity: .85; }
@media (max-width: 767px) { .hb-mode { width: 100%; } }
@media (max-width: 767px) { .tt-head .hb-mode { order: 9; } } /* 폰: 제목 줄에 화살표를 두고, 모드 고르기는 맨 아래 줄로 */

/* ---------- 타임테이블: 하루의 계획(왼쪽)과 기록(오른쪽)을 한 표에. 한 줄은 한 시간, 한 칸은 10분 ---------- */
.day-seg { width: calc(170px * var(--fs)); flex: none; }
.day-seg button { padding: 3px 4px 4px; }
@media (max-width: 767px) { #dayhead .day-seg { order: 9; width: 100%; } } /* 폰: 날짜와 화살표 아래 줄에 */
/* 영어 · 일본어: 고르는 단추의 글자가 한국어보다 길어서, 정해 둔 너비 대신 가장 긴 글자에 맞춘 같은 너비로 늘린다 (폰에서 한 줄을 다 쓰는 것은 그대로) */
html:not(:lang(ko)) :is(.plan-seg, .tl-mode) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; }
@media (min-width: 768px) { html:not(:lang(ko)) :is(.day-seg, .hb-mode) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; } }
html:not(:lang(ko)) :is(.day-seg, .plan-seg, .tl-mode, .hb-mode) button { padding-left: 10px; padding-right: 10px; }
#timeline { display: none; container: tl / inline-size; }
body[data-dayview="time"] #timeline { display: block; }
@media screen { body[data-dayview="time"] :is(#carry, #board, #events, #cats) { display: none; } } /* 인쇄할 때는 할 일도 함께 */
.tl-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tl-brush {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 3px 12px 4px 10px;
  border: 1.5px dashed var(--line); border-radius: 999px; font: calc(17px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub);
}
.tl-brush span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-brush i { width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--c); opacity: .6; }
.tl-brush svg { width: 16px; height: 16px; flex: none; }
.tl-brush.on { border: 1.6px solid var(--ink); color: var(--ink); font-weight: 700; }
.tl-brush.on i { opacity: 1; }
.tl-away { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; padding: 6px 10px; border: 1.5px dashed var(--line); border-radius: 10px; font-size: calc(13px * var(--fs)); color: var(--sub); }
.tl-body { display: grid; gap: 18px; align-items: start; }
@container tl (min-width: 600px) { .tl-body { grid-template-columns: minmax(0, 1fr) calc(248px * var(--fs)); } }
.tl-grid {
  border: 1.6px solid var(--ink); border-radius: 14px 12px 16px 12px; overflow: hidden; background: var(--paper);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.tl-row { display: grid; grid-template-columns: calc(32px * var(--fs)) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px dashed var(--line2); }
.tl-head { border-top: 0; border-bottom: 1.6px solid var(--ink); }
.tl-head + .tl-row { border-top: 0; }
.tl-head b { display: grid; place-items: center; padding: 6px 0 5px; border-left: 1.5px solid var(--line); font: 700 calc(19px * var(--fs) * var(--hs))/1.1 var(--hand); }
.tl-head b:last-child { border-left: 1.6px solid var(--ink); }
.tl-head b span { position: relative; z-index: 0; }
.tl-head b span::before, .tl-h span::before { /* 노란 형광펜 */
  content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 1px; height: 9px;
  border-radius: 3px; background: var(--p2); opacity: .55; transform: rotate(-1deg);
}
.tl-hour { display: grid; place-items: center; font: calc(16px * var(--fs) * var(--hs))/1 var(--hand); color: var(--sub); }
.tl-row.now .tl-hour { color: var(--red); font-weight: 700; }
.tl-lane { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1.5px solid var(--line); }
.tl-lane[data-lane="log"] { border-left: 1.6px solid var(--ink); }
.tl-cell { position: relative; display: block; min-height: calc(26px * var(--fs)); border-left: 1px dotted var(--line2); cursor: pointer; }
.tl-cell:first-child { border-left: 0; }
.tl-cell:nth-child(4) { border-left: 1px dashed var(--line); } /* 30분 */
.tl-cell.on::before { /* 형광펜처럼 칠한 칸. 이어진 칸은 한 줄로 이어 보인다 */
  content: ''; position: absolute; top: 4px; bottom: 4px; left: -1px; right: 0; background: var(--c); opacity: .5;
}
.tl-cell.on:first-child::before { left: 0; }
.tl-cell.on.a::before { left: 2px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.tl-cell.on.z::before { right: 2px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.tl-cell.pick::after { content: ''; position: absolute; inset: 2px 0; background: var(--b); opacity: .35; }
.tl-grid.erase .tl-cell.pick::after { background: repeating-linear-gradient(45deg, var(--sub) 0 1.5px, transparent 1.5px 6px); opacity: .6; }
@media (hover: hover) { .tl-cell:hover:not(.pick)::after { content: ''; position: absolute; inset: 2px 0; background: var(--b); opacity: .18; } }
.tl-tag {
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 700 calc(14px * var(--fs) * var(--hs))/1.2 var(--hand); font-style: normal; color: var(--ink); pointer-events: none;
}
.tl-now { position: absolute; z-index: 2; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--red); pointer-events: none; }
.tl-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.tl-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 calc(21px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tl-h span { position: relative; z-index: 0; }
.tl-side .mini, .tl-away .mini { flex: none; white-space: nowrap; padding: 1px 9px 2px; border: 1.5px dashed var(--sub); border-radius: 999px; font: 700 calc(15px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tl-h .mini { margin-left: auto; }
.tl-total { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 8px; font-size: calc(13px * var(--fs)); color: var(--sub); }
.tl-total b { font: 700 calc(18px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--ink); }
.tl-cat { display: grid; grid-template-columns: 12px minmax(0, 1fr) calc(40px * var(--fs)) calc(40px * var(--fs)); align-items: center; gap: 8px; min-height: 28px; border-bottom: 1px dashed var(--line2); }
.tl-cat i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); opacity: .6; }
.tl-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tl-cat em { font: 700 calc(16px * var(--fs) * var(--hs))/1 var(--hand); font-style: normal; text-align: right; }
.tl-cat-head { min-height: 18px; border-bottom: 0; }
.tl-cat-head i { visibility: hidden; }
.tl-cat-head em { font: calc(12px * var(--fs))/1 var(--font); color: var(--sub); }
.tl-list ul { list-style: none; margin: 0; padding: 0; }
.tl-item { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 3px 0; border-bottom: 1px dashed var(--line2); }
.tl-item i { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--c); opacity: .7; }
.tl-txt { display: grid; flex: 1; min-width: 0; }
.tl-when { font-size: calc(12px * var(--fs)); line-height: 1.3; color: var(--sub); font-variant-numeric: tabular-nums; }
.tl-when span { white-space: nowrap; } /* 시각과 걸린 시간 사이에서만 줄을 바꾼다 */
.tl-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tl-item .icon-btn { width: 28px; height: 28px; color: var(--sub); }
.tl-item .icon-btn + .icon-btn { margin-left: -6px; }
.tl-item .icon-btn svg { width: 15px; height: 15px; }
.tl-empty { margin: 0; font-size: calc(12px * var(--fs)); color: var(--sub); }
.tl-start { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--fs)); color: var(--sub); }
.tl-start select { flex: 1; width: auto; min-width: 0; }
@media (max-width: 767px) { .tl-cell { min-height: calc(28px * var(--fs)); } }

/* 타임테이블 모양: 나란히(계획 표 · 기록 표) · 겹쳐서(한 표에 계획은 연하게, 기록은 진한 띠로. --pa · --la 는 진하기) */
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.tl-mode { width: calc(132px * var(--fs)); flex: none; }
.tl-mode button { padding: 3px 4px 4px; }
.tl-alpha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: calc(13px * var(--fs)); color: var(--sub); }
.tl-alpha b { font: 700 calc(17px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--ink); }
.tl-alpha label { display: flex; align-items: center; gap: 6px; }
.tl-alpha input { width: calc(92px * var(--fs)); margin: 0; accent-color: var(--ink); }
.tl-grid.one .tl-row { grid-template-columns: calc(32px * var(--fs)) minmax(0, 1fr); }
.tl-grid.one .tl-lane[data-lane] { border-left: 1.5px solid var(--line); }
.tl-layer { display: grid; grid-template-columns: 1fr 1fr; border-left: 1.5px solid var(--line); }
.tl-layer button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 4px 0 3px; font: calc(19px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub); }
.tl-layer button + button { border-left: 1px dashed var(--line); }
.tl-layer button.on { color: var(--ink); font-weight: 700; background: var(--soft); }
.tl-layer button.on span { position: relative; z-index: 0; }
.tl-layer button.on span::before {
  content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 1px; height: 9px;
  border-radius: 3px; background: var(--p2); opacity: .55; transform: rotate(-1deg);
}
.tl-layer i { width: 20px; height: 12px; border-radius: 3px; background: var(--b); }
.tl-layer [data-v="plan"] i { opacity: var(--pa); }
.tl-layer [data-v="log"] i { opacity: var(--la); }
.tl-grid.one .tl-cell.on::before { top: 2px; bottom: 2px; opacity: var(--pa); } /* 계획: 칸 가득 연하게 */
.tl-ink { /* 기록: 가운데 띠로 진하게 */
  position: absolute; top: 6px; bottom: 6px; left: -1px; right: 0; background: var(--c); opacity: var(--la); pointer-events: none;
}
.tl-cell:first-child .tl-ink { left: 0; }
.tl-ink.a { left: 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.tl-ink.z { right: 3px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.tl-tag.plan { font-weight: 400; color: var(--sub); }
@media (max-width: 767px) { .tl-alpha input { width: calc(84px * var(--fs)); } }

/* ---------- 타임테이블 더하기: 타이머 · 불러오기 단추, 할 일 붓, 오늘 할 일, 하루 목표, 타이머가 도는 칸 ---------- */
.tl-bar .sp { flex: 1; }
.tl-bar .tl-alpha { order: 9; flex-basis: 100%; } /* 투명도는 늘 아랫줄에 */
.tl-act { display: inline-flex; align-items: center; gap: 5px; padding: 2px 12px 3px 10px; font-size: calc(17px * var(--fs)); }
.tl-act svg { width: 16px; height: 16px; flex: none; }
.tl-brush.task { border-style: solid; }
.tl-brush.task svg { width: 16px; height: 16px; flex: none; color: var(--c); }
.tl-cell.live { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5.5px); } /* 타이머로 기록하는 중 */
.tl-tasks ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.tl-tasks li { max-width: 100%; }
.tl-task {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 3px 10px 4px 8px;
  border: 1.5px dashed var(--line); border-radius: 10px 12px 9px 11px; font: calc(16px * var(--fs) * var(--hs))/1.2 var(--hand); text-align: left; cursor: grab;
}
.tl-task:hover { background: var(--soft); }
.tl-task.on { border: 1.6px solid var(--ink); font-weight: 700; }
.tl-task i { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--c); }
.tl-task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-task small { flex: none; font: calc(11px * var(--fs))/1 var(--font); color: var(--sub); }
.tl-goal { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2px; margin: -1px 0 6px 20px; }
.tl-goal::before, .tl-goal b { grid-row: 1; grid-column: 1; height: 6px; border-radius: 3px; background: var(--c); }
.tl-goal::before { content: ''; opacity: .2; } /* 채울 길 */
.tl-goal b { display: block; opacity: .8; }
.tl-goal small { font-size: calc(11px * var(--fs)); color: var(--sub); }
.tl-goal.done small { color: var(--ink); font-weight: 600; }
.goal-rows { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; margin-bottom: 4px; }
.goal-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) calc(136px * var(--fs)); align-items: center; gap: 10px; }
.goal-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: calc(18px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tpl-list .tpl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: calc(18px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tpl-list small { color: var(--sub); }
.tm-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-cat {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 5px 10px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 999px; font: calc(17px * var(--fs) * var(--hs))/1.1 var(--hand); color: var(--sub);
}
.tm-cat input { position: absolute; opacity: 0; pointer-events: none; }
.tm-cat i { width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--c); }
.tm-cat:has(input:checked) { border: 1.6px solid var(--ink); color: var(--ink); font-weight: 700; }
.tm-cat:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--line2); }

/* ---------- 타이머 막대: Mac은 위쪽 메뉴 줄 오른쪽, 폰은 아래 메뉴 바로 위 ---------- */
#timerbar {
  position: fixed; z-index: 44; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; background: var(--paper);
  border: 1.8px solid var(--ink); border-radius: 16px 14px 18px 12px; box-shadow: var(--shadow);
}
#timerbar[hidden] { display: none; }
.tb-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); animation: tb-blink 2s ease-in-out infinite; }
@keyframes tb-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .tb-dot { animation: none; } }
.tb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); }
.tb-time { flex: none; font: 700 calc(17px * var(--fs))/1 var(--font); font-variant-numeric: tabular-nums; }
.tb-stop { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 4px 11px 5px 9px; border-radius: 999px; background: var(--ink); color: var(--onink); font: 700 calc(15px * var(--fs) * var(--hs))/1.1 var(--hand); }
.tb-stop svg { width: 13px; height: 13px; }
#timerbar .icon-btn { width: 30px; height: 30px; color: var(--sub); }
@media (max-width: 767px) {
  body.timing #toast { bottom: calc(142px + env(safe-area-inset-bottom)); }
  body.timing #selbar { bottom: calc(130px + env(safe-area-inset-bottom)); }
  body.timing #app { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  #timerbar { top: 9px; bottom: auto; left: auto; right: max(16px, calc((100vw - 1080px) / 2 + 16px)); z-index: 31; max-width: 430px; padding: 3px 5px 3px 12px; box-shadow: none; }
}

/* ---------- 한 줄 일기: 기분 얼굴 다섯 가지와 한 줄 ---------- */
#diary { margin-top: 26px; }
.dy-card { padding: 10px 12px 12px; background: var(--paper); border: 1.6px solid var(--ink); border-radius: 14px 12px 16px 12px; }
.dy-moods { display: flex; gap: 4px; margin-bottom: 6px; }
.dy-mood { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 5px 0 4px; border-radius: 12px; color: var(--sub); font: calc(14px * var(--fs) * var(--hs))/1.1 var(--hand); }
.dy-mood:hover { background: var(--soft); }
.dy-mood svg { width: 28px; height: 28px; padding: 2px; border-radius: 50%; stroke-width: 1.6; }
.dy-mood.on { color: var(--ink); font-weight: 700; }
.dy-mood.on svg { background: var(--p2); color: #2B2B2B; } /* 고른 얼굴: 노란 형광펜 */
.dy-line {
  width: 100%; padding: 6px 2px 5px; border: 0; border-bottom: 1.5px dashed var(--line); border-radius: 0; outline: 0;
  background: transparent; color: var(--ink); font: calc(19px * var(--fs) * var(--hs))/1.4 var(--hand);
}
.dy-line:focus { border-bottom: 1.5px solid var(--ink); }
.dy-line::placeholder { color: var(--sub); opacity: .75; }
.cal-mood { /* 달력 칸: 그날의 기분 */
  position: absolute; right: -9px; bottom: -6px; width: 17px; height: 17px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--ink);
}
.cal-mood svg { width: 15px; height: 15px; stroke-width: 1.8; }
.wk-diary { display: flex; align-items: flex-start; gap: 4px; margin: 0 0 6px; font: calc(15px * var(--fs) * var(--hs))/1.25 var(--hand); color: var(--sub); }
.wk-diary .mood { display: grid; flex: none; margin-top: 1px; }
.wk-diary svg { width: 15px; height: 15px; stroke-width: 1.8; }
.wk-diary span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dy-month { margin-top: 12px; }
.dy-list { margin: 0; padding: 0; list-style: none; }
.dy-list button { display: flex; align-items: flex-start; gap: 6px; width: 100%; padding: 5px 0; border-bottom: 1px dashed var(--line2); text-align: left; font: calc(16px * var(--fs) * var(--hs))/1.3 var(--hand); }
.dy-list button:hover { background: var(--soft); }
.dy-list b { flex: none; min-width: calc(30px * var(--fs)); }
.dy-list .mood { display: grid; flex: none; margin-top: 1px; }
.dy-list svg { width: 16px; height: 16px; stroke-width: 1.8; }
.dy-list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767px) { .dy-line { font-size: calc(19px * var(--fs) * var(--hs)) !important; } }

/* ---------- 시간 돌아보기: 날마다 쌓은 막대(카테고리 색) · 계획대로 한 비율 · 카테고리 표 ---------- */
.stat-card { margin-bottom: 16px; }
.month-side .stat-card { margin: 12px 0 0; }
.sc-sum { margin: 0 0 10px; font-size: calc(13px * var(--fs)); color: var(--sub); }
.sc-sum b { color: var(--ink); }
.sc-chart { --h: 112px; display: grid; grid-template-columns: calc(34px * var(--fs)) minmax(0, 1fr); column-gap: 6px; }
.sc-y { position: relative; height: var(--h); font-size: calc(10px * var(--fs)); color: var(--sub); }
.sc-y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.sc-y span:nth-child(1) { top: 0; }
.sc-y span:nth-child(2) { top: 50%; }
.sc-y span:nth-child(3) { top: 100%; }
.sc-cols { /* 눈금: 맨 위와 가운데에 가는 실선 (바닥 선은 막대 칸이 긋는다) */
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  background: linear-gradient(var(--line2), var(--line2)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--line2), var(--line2)) 0 calc(var(--h) / 2) / 100% 1px no-repeat;
}
.sc-col { display: grid; grid-template-rows: var(--h) auto; justify-items: center; min-width: 0; padding: 0; border-radius: 6px 6px 0 0; }
.sc-col:hover { background: var(--soft); }
.sc-plot { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: var(--h); border-bottom: 1px solid var(--line); }
.sc-bar { display: flex; flex-direction: column; gap: 2px; width: min(24px, 62%); }
.sc-chart.month .sc-bar { width: min(24px, 72%); }
.sc-bar i { display: block; flex-basis: 0; min-height: 2px; background: var(--c); }
.sc-bar i:first-child { border-radius: 4px 4px 0 0; } /* 막대 끝만 둥글게, 바닥은 반듯하게 */
.sc-chart.month .sc-bar i:first-child { border-radius: 2px 2px 0 0; }
.sc-col small { min-height: 1.3em; padding-top: 3px; font-size: calc(11px * var(--fs)); line-height: 1.2; color: var(--sub); }
.sc-col.today small { color: var(--ink); font-weight: 700; }
.sc-keep { display: grid; grid-template-columns: calc(34px * var(--fs) + 6px) repeat(var(--n), minmax(0, 1fr)); align-items: baseline; margin-top: 4px; font-size: calc(11px * var(--fs)); color: var(--sub); }
.sc-keep span { text-align: center; }
.sc-keep .sc-k, .sc-weeks .sc-k { font-size: calc(10px * var(--fs)); text-align: left; white-space: nowrap; }
.sc-weeks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: calc(11px * var(--fs)); color: var(--sub); }
.sc-weeks b { color: var(--ink); }
.sc-table { margin-top: 10px; }
.sc-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.sc-row i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.sc-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: calc(17px * var(--fs) * var(--hs))/1.2 var(--hand); }
.sc-row b { font: 700 calc(16px * var(--fs) * var(--hs))/1 var(--hand); }
.sc-row small { grid-column: 2 / -1; font-size: calc(11px * var(--fs)); color: var(--sub); }

/* ---------- 인쇄 · PDF: 종이 플래너처럼 (메뉴 · 단추는 빼고, 하루 쪽은 할 일과 타임테이블을 나란히) ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  :root, :root[data-theme="dark"], :root[data-theme="beige"] {
    --paper: #FFFFFF; --ink: #222222; --onink: #FFFFFF; --sub: #555555; --line: #9A9AA2; --line2: #CFCFD5; --soft: #F2F2F4;
    --shadow: none; color-scheme: light;
  }
  html, body { background: #FFFFFF !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tabs, #side, #selbar, #timerbar, #menu, #modal, #toast, #panel-backdrop, .panel, #offline,
  .hb-nav, .day-seg, .plan-seg, .icon-btn, .ring-btn, .chip:not(.now), .add-row, .wk-add, .cal-add, .more, .goal-add, .goal-del,
  .tl-bar, .tl-tools, .tl-away, .tl-side, .tt-foot { display: none !important; }
  #app { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  #right { margin: 0 !important; }
  .plan-card, .tl-grid, .dy-card, .pri, .wk-day, .stat-card, .cat { break-inside: avoid; }
  .tl-cell:hover::after, .tl-now, .pri-list:empty::after { display: none; }
  .tl-cell.live { background: none; } /* 종이에는 타이머 빗금 · 지금 시각 선을 찍지 않는다 */
  .lined::placeholder, .dy-line::placeholder, .goal-add input::placeholder { color: transparent; } /* 빈 칸 안내 글은 종이에 찍지 않는다 */
  /* 하루 쪽: 왼쪽은 할 일 · 일정 · 한 줄 일기, 오른쪽은 타임테이블 */
  body[data-print="day"] #main { display: grid !important; grid-template-columns: minmax(0, 1fr) 74mm; column-gap: 7mm; align-items: start; }
  body[data-print="day"] #main > * { grid-column: 1; min-width: 0; }
  body[data-print="day"] #dayhead { grid-column: 1 / -1; }
  body[data-print="day"] #timeline { display: block !important; grid-column: 2; grid-row: 2 / span 8; }
  body[data-print="day"] .tl-body { display: block; }
  body[data-print="day"] .tl-cell { min-height: 6.4mm; }
  /* 주간 쪽: 목표 · 메모 · 돌아보기, 시간 돌아보기, 일곱 날을 네 칸씩 */
  body[data-print="week"] .plan-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-print="week"] .week { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4mm; }
}

/* ---------- 글씨체 고르기 (설정): 글씨체마다 그 글씨로 이름과 보기 글 ---------- */
.font-now { font-family: var(--hand); font-size: calc(17px * var(--fs) * var(--hs)); }
.font-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(190px * var(--fs)), 1fr)); gap: 8px; max-height: 58vh; overflow-y: auto; margin: 4px 0 6px; padding: 2px; }
.font-opt {
  display: grid; gap: 2px; padding: 9px 12px 10px; text-align: left; border: 1.5px dashed var(--line); border-radius: 14px 12px 16px 12px;
}
.font-opt:hover { background: var(--soft); }
.font-opt.on { border: 1.8px solid var(--ink); box-shadow: 0 0 0 3px var(--line2); }
.font-opt b { font: 700 calc(23px * var(--fs) * var(--fhs))/1.2 var(--fh); }
.font-opt.on b { text-decoration: underline; text-decoration-color: var(--p2); text-decoration-thickness: 6px; text-underline-offset: -2px; text-decoration-skip-ink: none; }
.fo-desc { font-size: calc(12px * var(--fs)); color: var(--sub); }
.fo-hand { font: calc(18px * var(--fs) * var(--fhs))/1.3 var(--fh); }
.fo-body { font: calc(13px * var(--fs))/1.4 var(--fb); color: var(--sub); }

/* ---------- 오픈소스 라이선스: 글꼴마다 저작권 표시, 라이선스 전문 ---------- */
.lic-item { margin: 0 0 10px; overflow-wrap: anywhere; }
.lic-item small { color: var(--sub); }
.lic-full { margin: 4px 0 12px; }
.lic-full summary { cursor: pointer; font-weight: 600; }
.lic-full pre, .lic-pre { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--sub); }

/* ---------- 사용법 설명서: 처음 열 때 한 번, 설정 → 도움말에서 다시 ---------- */
.modal-card.guide-card { width: min(460px, 100%); }
.gd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gd-step { font-size: calc(12px * var(--fs)); color: var(--sub); font-variant-numeric: tabular-nums; }
.gd-skip { padding: 2px 6px; font: calc(16px * var(--fs) * var(--hs))/1.2 var(--hand); color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.gd-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 10px;
  border: 1.8px solid var(--ink); border-radius: var(--wob1); background: var(--paper); position: relative; z-index: 0;
}
.gd-icon::before { /* 노란 형광펜 동그라미 */
  content: ''; position: absolute; z-index: -1; inset: 8px; border-radius: var(--wob2); background: var(--p2); opacity: .55;
}
.gd-icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.guide h3 { text-align: center; }
.gd-lines { display: grid; gap: 8px; min-height: calc(176px * var(--fs)); margin: 0 0 12px; padding: 0; list-style: none; }
.gd-lines li { position: relative; padding: 0 0 8px 22px; border-bottom: 1px dashed var(--line2); font-size: calc(14px * var(--fs)); line-height: 1.55; }
.gd-lines li::before { /* 손으로 그린 체크 */
  content: ''; position: absolute; left: 3px; top: .45em; width: 9px; height: 5px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}
.gd-dots { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; }
.gd-dots button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.gd-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--sub); }
.gd-dots button.on::after { width: 18px; border-radius: 5px; border-color: var(--ink); background: var(--ink); }

/* 다른 날 하기 창: 그날 할 일의 맨 위 · 맨 아래 */
.pos-field { margin: 12px 0 4px; }
.pos-field .seg { max-width: calc(260px * var(--fs)); }
