/* 받은 일 설정(CONTRACT 12-6~8) — 설정 묶음 + 단계 안내. 토큰만 쓴다(tokens.css · 스티커 디자인 정본 6-스티커-최종).
   메모지 글쓰기(디자인시스템 11절): 받은 일 = 붙인 노란 메모지 · 한 문장 · 줄 노트 선 · 형광펜 · 손글씨 번호.
   memo-style.css(memo-style-1119)가 있으면 그 변수(--f-memo · --marker · --memo-rule · --memo-lh)를, 없으면 아래 대신 값을 쓴다.
   inbox-setup.js 가 맨 뒤에 싣는다(index.html 줄 없음). */
/* memo-style.css 가 없을 때 형광펜 대신 값(같은 값: 어두움 #715A20 크림 글자 6.0:1 · 밝음 #FFDD7A 먹 글자 14.2:1) */
:root { --ib-marker: #715A20; }
:root[data-theme='light'] { --ib-marker: #FFDD7A; }
.t-info { display: flex; align-items: center; gap: 2px; }
.info-btn { display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min); margin: -12px -8px -12px -6px; border: 0; background: none; color: var(--t3); padding: 0; flex: none; }
.info-btn:active { color: var(--ink); }
.info-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; border-radius: 50%; }
.st-line { margin-top: 2px; }
/* ⓘ 창 3줄(받은 일 길: 어디에 걸면 · 무엇이 들어오나 · 무엇이 저장되나 — 정본 core/inbox-paths.js) */
.info-rows { margin: 0; display: grid; gap: var(--sp-1); }
.info-rows dt { font-weight: 700; font-size: var(--fs-s); color: var(--ink); margin-top: var(--sp-2); }
.info-rows dt:first-child { margin-top: 0; }
.info-rows dd { margin: 0; }
.mk { background: linear-gradient(transparent 52%, var(--marker, var(--ib-marker)) 52%, var(--marker, var(--ib-marker)) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }

/* ── 설정 「받은 일」 = 붙인 노란 메모지(버터 · 테이프 하나). 스티커 색 위 글자는 먹만(var(--note-fg) 11.8:1 · var(--note-fg-2) 7.0:1) ── */
.group:has(> .inbox-set) { background: transparent; box-shadow: none; overflow: visible; border-radius: 0; }
.inbox-set { position: relative; margin: 14px 2px 6px; padding: 14px 4px 8px; background: var(--note-bg); color: var(--note-fg); border-radius: var(--r-note);
  box-shadow: var(--shadow-note); transform: rotate(calc(-.6deg * var(--tilt-k))); }
.inbox-set::before { content: ''; display: var(--deco-tape); position: absolute; top: -10px; left: 50%; width: 84px; height: 20px; transform: translateX(-50%) rotate(calc(-3deg * var(--tilt-k))); background: var(--tape-3); pointer-events: none; }
.inbox-set .item { padding: 10px 14px; }
.inbox-set .item + .item::before { left: 14px; right: 14px; background: var(--note-line); }
.inbox-set .hands-top { align-items: center; }
.inbox-set .t { font-family: var(--f-memo, var(--f-sans)); font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; color: var(--note-fg); }
.inbox-set .memo-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--note-fg); border: 2px solid var(--note-line); }
.inbox-set .info-btn { color: var(--note-fg-2); }
.inbox-set .stat, .inbox-set .stat.off { color: var(--note-fg-2); white-space: normal; font-weight: 650; font-size: var(--fs-s); }
.inbox-set .stat.k-done { color: var(--note-fg); }
.inbox-set .stat .dot { background: var(--note-fg-2); }
.inbox-set .stat.k-done .dot { background: #1F7A3A; }
.inbox-set .btn { background: var(--note-btn); color: var(--note-fg); border-color: var(--note-line); }
.inbox-set .btn.quiet { background: transparent; border-color: transparent; }
.inbox-set .switch i { background: var(--note-line); }
.inbox-set .switch input:checked + i { background: var(--note-fg); }
.inbox-set .switch input:checked + i::after { background: #FFF; }
.inbox-set .switch input:focus-visible + i { outline-color: var(--note-fg); }
.inbox-set .acts { margin-left: calc(36px + var(--sp-3)); }

/* ── 단계 안내 — 한 화면 한 단계: 점 · 손글씨 번호 + 한 문장(줄 노트) · 그림 · 이전/다음 ── */
.guide-screen .guide { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); padding-bottom: calc(var(--sp-6) + var(--safe-b)); }
.seg.two { grid-template-columns: 1fr 1fr; }
.g-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--sp-2); }
.g-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--control); }
.g-dots i.past { background: var(--t3); }
.g-dots i.on { width: 22px; border-radius: 4px; background: var(--ink); }
.g-note { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 6px 14px 8px; background-color: var(--s1); border-radius: var(--r-paper);
  box-shadow: var(--shadow-paper), 5px 6px 0 -1px var(--stack, var(--s2)), 5px 6px 0 0 var(--line-2);
  --lh: var(--memo-lh, 2.1em);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--memo-rule, rgba(70, 110, 160, .18)) calc(var(--lh) - 1px), var(--memo-rule, rgba(70, 110, 160, .18)) var(--lh)); }
.g-no { font-family: var(--f-memo, var(--f-sans)); font-weight: 700; font-size: 1.6rem; line-height: 1.3; color: var(--watch-fg); flex: none; min-width: 1.4em; }
.g-t { font-size: 1.12rem; font-weight: 600; line-height: var(--memo-lh, 2.1em); margin: 0; word-break: keep-all; overflow-wrap: anywhere; color: var(--ink); }
.g-t.small-t { font-size: var(--fs-s); font-weight: 600; color: var(--t3); line-height: 1.5; text-align: center; }
.g-n { text-align: center; color: var(--t3); font-size: var(--fs-xs); font-weight: 700; margin: -4px 0 0; }
.g-fig { position: relative; margin: var(--sp-2) auto 0; width: min(100%, 300px); padding: 10px; background: var(--s1); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); }
.g-fig img { display: block; width: 100%; height: auto; max-height: 52dvh; object-fit: contain; border-radius: 10px; }
.g-fig.art svg { display: block; width: 100%; height: auto; max-height: 46dvh; }
.g-fig .tape { top: -9px; left: 50%; transform: translateX(-50%) rotate(calc(-3deg * var(--tilt-k))); }
.g-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--sp-2); margin-top: var(--sp-3); }
.g-test { display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.g-sample { padding: 12px var(--sp-4); background: var(--note-bg); color: var(--note-fg); border-radius: var(--r-note); box-shadow: var(--shadow-note); white-space: pre-wrap; line-height: 1.6; font-size: var(--fs-s); transform: rotate(calc(-.6deg * var(--tilt-k))); }
.g-addr { padding: 14px var(--sp-4); background: var(--s1); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); border: 2px var(--rule-style) var(--line-2); font-weight: 700; word-break: break-all; user-select: all; -webkit-user-select: all; text-align: center; }
.g-res { min-height: 28px; display: flex; justify-content: center; text-align: center; }
.stat.big { font-size: var(--fs-s); gap: 6px; white-space: normal; }
.paste-in { min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; width: 100%; }
/* 낮은 화면(노트북 가로·폴더블 접힘 가로) — 그림을 줄여 단추가 첫 화면에 */
@media (max-height: 560px) {
  .g-fig img { max-height: 40dvh; }
  .g-fig.art svg { max-height: 36dvh; }
  .g-t { font-size: var(--fs-m); }
}
@media (prefers-reduced-motion: reduce) { .inbox-set, .g-sample { transform: none; } }
/* 메일 전달 — 서비스 고르기 · 고른 서비스 머리(이름 ⓘ · 다른 메일) */
.guide-screen .guide { width: 100%; }   /* 고르기 화면처럼 넓은 칸이 없어도 폭 그대로 */
.g-pick { display: grid; gap: var(--sp-2); }
.g-pick .g-note { margin-bottom: var(--sp-1); }
.g-svc { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 44px; }
.g-svc .t { font-weight: 700; display: flex; align-items: center; gap: 4px; min-width: 0; }
.g-svc .btn { flex: none; }
/* 웹 안내(#/doc/mail) */
.doc .mail-svc { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.doc ol.mail-steps { padding-left: 1.4em; display: grid; gap: 6px; }
/* 길 상태 「켜 두었어요 · 설정이 남았어요」(11-27) — 남은 일이라 꺼짐보다 눈에 띄게(산호 점), 연결됨(초록)과는 다르게 */
.stat.todo { color: var(--ink); }
.stat.todo .dot { background: var(--stk-coral); }
.inbox-set .stat.todo { color: var(--note-fg); }
.inbox-set .stat.todo .dot { background: var(--stk-coral); }
.g-state { display: flex; justify-content: center; margin: 0 0 var(--sp-3); }
