/* DERBY 메신저 — 로고의 에스프레소 브라운 + 크림 무드 */
:root {
  --espresso: #3b302e;
  --espresso-2: #2f2624;
  --espresso-3: #46393660;
  --side-text: #efe3da;
  --side-muted: #b3a097;
  --side-hover: #4a3d3a;
  --side-active: #f3e6dc;
  --side-active-text: #3b302e;

  --bg: #faf6f2;
  --panel: #ffffff;
  --paper: #f4ece5;
  --line: #e7dcd3;
  --line-2: #d9cabd;
  --text: #2d2422;
  --muted: #84736a;
  --faint: #b6a69c;
  --accent: #8c5f48;
  --accent-soft: #f1e3d8;
  --accent-text: #6e4836;
  --gold: #b48a5a;
  --ok: #4f7a5a;
  --ok-soft: #e3eee4;
  --warn: #a8742a;
  --warn-soft: #f6ead6;
  --danger: #a64b45;
  --danger-soft: #f6e1de;
  --info: #4f6b8a;
  --info-soft: #e2e9f1;
  --mention: #fbecc9;
  --pri: #3b302e; --pri-hover: #4b3d3a; --pri-fg: #fbf3ec;
  --shadow: 0 10px 30px rgba(45, 30, 25, .14), 0 2px 6px rgba(45, 30, 25, .08);
  --radius: 12px;
  /* 글꼴은 Pretendard 고딕 하나로 통일 (로고만 이미지) */
  --serif: var(--sans);
  --serif-kr: var(--sans);
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pri: #e3c3ad; --pri-hover: #ecd2bf; --pri-fg: #2a2220; --bg: #2a2220; --panel: #322927; --paper: #382e2b; --line: #463a37; --line-2: #574844;
    --text: #f3e8e0; --muted: #b3a097; --faint: #7e6d66; --accent: #d8ad92; --accent-soft: #4a3a33; --accent-text: #ecc8b2;
    --ok: #93c39d; --ok-soft: #2f3f33; --warn: #e2b46a; --warn-soft: #4a3d27; --danger: #e48f87; --danger-soft: #4c2f2c;
    --info: #9fb9d6; --info-soft: #2f3a46; --mention: #5a4a2c; --espresso-2: #221b1a; --espresso: #2a2220; color-scheme: dark; --tl-f: #b8876c; --tl-c: #c9a26b;
  }
}
:root[data-theme="dark"] {
  --pri: #e3c3ad; --pri-hover: #ecd2bf; --pri-fg: #2a2220; --bg: #2a2220; --panel: #322927; --paper: #382e2b; --line: #463a37; --line-2: #574844;
  --text: #f3e8e0; --muted: #b3a097; --faint: #7e6d66; --accent: #d8ad92; --accent-soft: #4a3a33; --accent-text: #ecc8b2;
  --ok: #93c39d; --ok-soft: #2f3f33; --warn: #e2b46a; --warn-soft: #4a3d27; --danger: #e48f87; --danger-soft: #4c2f2c;
  --info: #9fb9d6; --info-soft: #2f3a46; --mention: #5a4a2c; --espresso-2: #221b1a; --espresso: #2a2220; color-scheme: dark; --tl-f: #b8876c; --tl-c: #c9a26b;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow: hidden; font-feature-settings: 'tnum' 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.serif { font-family: var(--serif); }

/* ---------- 로그인 ---------- */
.auth { position: fixed; inset: 0; background: var(--espresso); display: grid; place-items: center; padding: 24px 16px; overflow: auto; }
.auth-card { width: 100%; max-width: 380px; text-align: center; color: var(--side-text); }
.auth-card img.logo { width: 220px; max-width: 64%; margin: 0 auto 14px; display: block; }
.auth-sub { font-family: var(--sans); letter-spacing: .28em; font-size: 11.5px; font-weight: 600; color: var(--side-muted); margin-bottom: 32px; text-transform: uppercase; }
.auth form { display: grid; gap: 10px; text-align: left; }
.auth label { font-size: 12px; color: var(--side-muted); letter-spacing: .04em; }
.auth input, .auth select { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #5a4a46; background: #463936; color: #fff; outline: none; }
.auth input:focus { border-color: #d9bfae; }
.auth .btn-primary { background: #f3e6dc; color: var(--espresso); padding: 13px; border-radius: 10px; font-weight: 600; margin-top: 6px; }
.auth .switch { margin-top: 18px; font-size: 13px; color: var(--side-muted); }
.auth .switch button { color: #f3e6dc; text-decoration: underline; }
.auth .err { color: #ffb4aa; font-size: 13px; min-height: 18px; }

/* ---------- 레이아웃 ---------- */
.app { display: grid; grid-template-columns: var(--side-w, 268px) minmax(0, 1fr) auto; height: 100dvh; padding-top: env(safe-area-inset-top); box-sizing: border-box; }
.side { background: var(--espresso); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; }
.side-head { padding: 20px 16px 12px; display: flex; align-items: center; justify-content: center; }
.brand { display: block; width: 100%; text-align: center; padding: 2px 0; border-radius: 10px; }
.brand-logo { width: 158px; max-width: 80%; height: auto; display: block; margin: 0 auto; }
.set-btn.on { background: var(--side-active); color: var(--side-active-text); }
.side-search { margin: 4px 12px 8px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #46393690; color: var(--side-muted); font-size: 14px; text-align: left; width: calc(100% - 24px); }
.side-search:hover { background: var(--side-hover); }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 16px; scrollbar-width: thin; scrollbar-color: #5a4a46 transparent; }
.side-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid #4d403c; }
.side-sec:first-child { margin-top: 2px; border-top: 0; padding-top: 0; }
.side-sec-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 6px; font-size: 12px; letter-spacing: .08em; color: #c9b2a5; font-weight: 700; }
.side-sec-h button { color: var(--side-muted); font-size: 17px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.side-sec-h button:hover { color: #fff; background: var(--side-hover); }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 9px; color: var(--side-text); font-size: 14.5px; text-align: left; position: relative; }
.nav-item:hover { background: var(--side-hover); }
.nav-item.active { background: var(--side-active); color: var(--side-active-text); font-weight: 600; }
.nav-item .ic { width: 22px; text-align: center; flex: none; font-size: 15px; }
.nav-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.sub { padding-left: 28px; font-size: 13.5px; opacity: .92; }
.nav-item.sub .ic { font-size: 13px; }
.nav-item.unread .lbl { font-weight: 700; color: #fff; }
.nav-item.active.unread .lbl { color: var(--side-active-text); }
.badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: #d9a48a; color: #2d2120; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.badge.mention { background: #f0c46a; }
.badge.soft { background: #5a4a46; color: #f3e6dc; }
.side-foot { border-top: 1px solid #4a3d3a; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; font-size: 13.5px; }
.side-foot .who b { display: block; font-weight: 600; }
.side-foot .who span { color: var(--side-muted); font-size: 12px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 16px; color: inherit; flex: none; }
.icon-btn:hover { background: var(--line); }
.side .icon-btn:hover { background: var(--side-hover); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: 13.5px; flex: none; position: relative; letter-spacing: -.02em; }
.avatar.sm { width: 22px; height: 22px; font-size: 10.5px; }
.avatar.xs { width: 18px; height: 18px; font-size: 9px; }
.avatar .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--espresso); background: #8a7a72; }
.avatar .dot.on { background: #5fc77a; }
.avatar.sm .dot { width: 9px; height: 9px; right: -3px; bottom: -3px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.topbar { height: 60px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.topbar .back { display: none; }
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar h1 .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .topic { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.topbar .spacer { flex: 1; }
.view { flex: 1; min-height: 0; overflow-y: auto; }
.pad { padding: 22px 24px 40px; max-width: 1080px; margin: 0 auto; }

/* ---------- 메시지 ---------- */
.msgs { flex: 1; overflow-y: auto; padding: 12px 0 8px; overscroll-behavior: contain; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 16px 20px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.new-sep { display: flex; align-items: center; gap: 10px; margin: 8px 20px; color: var(--danger); font-size: 11.5px; font-weight: 700; }
.new-sep::after { content: ''; flex: 1; height: 1px; background: var(--danger); opacity: .5; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 6px 20px; position: relative; }
.msg:hover { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.msg.cont { padding-top: 1px; }
.msg.cont .avatar, .msg.cont .meta { display: none; }
.msg.cont .gutter-time { visibility: hidden; font-size: 10.5px; color: var(--faint); text-align: right; padding-top: 3px; }
.msg.cont:hover .gutter-time { visibility: visible; }
.msg.mentioned { background: color-mix(in srgb, var(--mention) 55%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.msg.flash { animation: flash 2s ease; }
@keyframes flash { 0%, 40% { background: var(--mention); } 100% { background: transparent; } }
.meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.meta b { font-weight: 700; font-size: 14.5px; }
.meta .role { font-size: 11px; color: var(--accent-text); background: var(--accent-soft); padding: 0 6px; border-radius: 5px; font-weight: 600; }
.meta time { font-size: 11.5px; color: var(--faint); }
.body { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.body .at { background: var(--accent-soft); color: var(--accent-text); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.body .at.me { background: var(--mention); color: var(--text); }
.edited { color: var(--faint); font-size: 11.5px; margin-left: 4px; text-decoration: underline dotted; }
.edited:hover { color: var(--accent); }
.msg.system .body { color: var(--muted); font-size: 13.5px; }
.sys-line { color: var(--muted); font-size: 13px; padding: 4px 20px 4px 66px; }

.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.files img { max-height: 220px; max-width: min(320px, 100%); border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; display: block; object-fit: cover; background: var(--paper); }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; text-decoration: none; color: var(--text); max-width: 300px; }
.file-chip .nm { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .sz { font-size: 12px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; color: var(--text); line-height: 20px; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-text); font-weight: 600; }
.chip.ack.on { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.chip.task { background: var(--warn-soft); border-color: transparent; color: var(--warn); font-weight: 600; }
.chip.task.done { background: var(--ok-soft); color: var(--ok); text-decoration: line-through; }
.chip.task.overdue { background: var(--danger-soft); color: var(--danger); }
.thread-link { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); font-weight: 600; padding: 3px 8px 3px 4px; border-radius: 8px; }
.thread-link:hover { background: var(--accent-soft); }
.thread-link .last { color: var(--faint); font-weight: 400; }

.actions { position: absolute; right: 16px; top: -14px; display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 2px; z-index: 5; }
.msg:hover .actions, .actions.show { display: flex; }
.actions button { width: 32px; height: 30px; border-radius: 8px; font-size: 15px; display: grid; place-items: center; }
.actions button:hover { background: var(--paper); }
.more-btn { display: none; }

/* 채팅방: 카카오톡처럼 내 메시지는 오른쪽, 상대 메시지는 왼쪽 말풍선 */
.msgs .msg { padding: 2px 18px; }
.msgs .msg:not(.cont) { padding-top: 10px; }
.msgs .msg:hover { background: transparent; }
.msgs .msg > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.msgs .msg > div:nth-child(2) > * { max-width: 100%; }
.bline { display: flex; align-items: flex-end; gap: 6px; max-width: min(600px, 100%); min-width: 0; }
.bline > .body { min-width: 0; }
.btime { flex: none; font-size: 11px; color: var(--faint); white-space: nowrap; padding-bottom: 3px; }
.bmeta { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding-bottom: 3px; line-height: 1.2; }
.bmeta .btime { padding-bottom: 0; }
.msgs .msg.mine .bmeta { align-items: flex-end; }
.rc { font-size: 11.5px; font-weight: 800; color: var(--gold); cursor: pointer; }
.rc:empty { display: none; }
.rec-rc { display: flex; margin-top: 4px; }
.msgs .msg.mine .rec-rc { justify-content: flex-end; }
.rec-rc .bmeta { padding: 0; }
/* 읽음 확인 */
.rd-msg { padding: 10px 14px; background: var(--paper); border-radius: 10px; font-size: 14px; color: var(--text); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.rd-grid h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rd-n { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--paper); color: var(--text); }
.rd-n.no { background: var(--gold); color: #fff; }
.rd-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.rd-row small { color: var(--muted); font-size: 12px; }
.rd-empty { margin: 4px 0; font-size: 13px; color: var(--faint); }
@media (max-width: 520px) { .rd-grid { grid-template-columns: minmax(0, 1fr); } }
.msgs .msg.text .meta time { display: none; }
.msgs .msg .meta { margin-bottom: 4px; }
.msgs .msg.text .body { padding: 9px 14px; border-radius: 4px 18px 18px 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(59, 48, 46, .05); line-height: 1.5; }
.msgs .msg.cont .body { border-radius: 18px; }
.msgs .msg.cont > .gutter-time, .msgs .msg.cont:hover > .gutter-time { visibility: hidden; }
/* 내 메시지: 오른쪽 · 에스프레소 말풍선 */
.msgs .msg.mine { grid-template-columns: minmax(0, 1fr); }
.msgs .msg.mine > .avatar, .msgs .msg.mine > .gutter-time { display: none; }
.msgs .msg.mine > div:nth-child(2) { align-items: flex-end; }
.msgs .msg.mine .bline { flex-direction: row-reverse; }
.msgs .msg.mine .meta { display: none; }
.msgs .msg.mine.record .meta, .msgs .msg.mine.file .meta { display: flex; justify-content: flex-end; }
.msgs .msg.mine.text .body { background: var(--pri); color: var(--pri-fg); border-color: transparent; border-radius: 18px 4px 18px 18px; }
.msgs .msg.mine.cont .body { border-radius: 18px; }
.msgs .msg.mine .body .at { background: rgba(255, 255, 255, .18); color: inherit; }
.msgs .msg.mine .body a { color: inherit; }
.msgs .msg.mine .edited { color: inherit; opacity: .6; }
.msgs .msg.mine .files, .msgs .msg.mine .chips { justify-content: flex-end; }
.bline > .files { min-width: 0; margin-top: 0; width: fit-content; }
.bline > .files img { max-width: min(320px, 62vw); }
.bline + .bline > .files { margin-top: 6px; }
.msgs .msg.mine .actions { right: 18px; left: auto; }
.msgs .msg:not(.mine) .actions { right: auto; left: 64px; }
.msgs .msg.mine.mentioned { box-shadow: none; }
.msgs .msg.mentioned:not(.mine) { background: transparent; box-shadow: none; }
.msgs .msg.mentioned:not(.mine) .body { box-shadow: 0 0 0 2px var(--gold); }
/* PC: 대화는 화면 폭을 꽉 채우고 (카톡 PC처럼), 말풍선만 읽기 좋은 폭으로 */
.msgs > .day-sep, .msgs > .new-sep { padding: 0 20px; }
@media (min-width: 821px) {
  .msgs .msg { padding-left: 28px; padding-right: 28px; }
  .msgs > .day-sep, .msgs > .new-sep { padding: 0 28px; }
  .bline { max-width: min(640px, 72%); }
  .msgs .msg.mine .actions { right: 28px; }
  .msgs .msg:not(.mine) .actions { left: 80px; }
  .composer-wrap { padding: 0 24px 18px; }
}
.msgs .day-sep { margin-top: 18px; }
.msgs .day-sep span, .msgs .day-sep { font-size: 12px; }

/* 기록 카드 */
.msgs .rec-card { cursor: pointer; }
.rec-card { margin-top: 6px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--panel); border-radius: 10px; padding: 12px 14px; max-width: 560px; }
.rec-card.t-return { border-left-color: var(--info); }
.rec-card.t-store { border-left-color: var(--gold); }
.rec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rec-type { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.rec-title { font-weight: 700; font-size: 15px; flex-basis: 100%; }
.pill { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--paper); color: var(--muted); white-space: nowrap; }
.pill.s0 { background: var(--warn-soft); color: var(--warn); }
.pill.s1 { background: var(--info-soft); color: var(--info); }
.pill.s2 { background: var(--accent-soft); color: var(--accent-text); }
.pill.done { background: #efe1d6; color: #7a5238; } /* 끝난 상태(협의완료 · 정산완료 …)는 매장 브라운 톤 */
.pill.gray { background: var(--paper); color: var(--muted); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
.steps { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.steps button { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg); }
.steps button:hover { border-color: var(--accent); color: var(--accent-text); }
.steps button.cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.steps button.past { color: var(--text); background: var(--accent-soft); border-color: transparent; }

/* ---------- 채널 기능 버튼 줄 ---------- */
.action-bar { flex: none; display: flex; gap: 8px; padding: 8px 18px 2px; overflow-x: auto; scrollbar-width: none; }
.action-bar::-webkit-scrollbar { display: none; }
.act-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; background: var(--panel); border: 1.5px solid var(--accent); color: var(--accent-text); box-shadow: 0 2px 6px rgba(45, 30, 25, .08); }
.act-btn:hover { background: var(--accent-soft); }
.act-btn.primary { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.act-btn.primary:hover { background: var(--pri-hover); }

/* ---------- 알림함 ---------- */
.bell-btn { position: relative; }
.bell-btn .badge { position: absolute; top: -3px; right: -5px; font-size: 10px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--danger); color: #fff; }
.tb-bell { display: none; }
.notif-tabs { margin: 10px 12px 4px; display: flex; }
.notif-tabs button { flex: 1; padding: 6px 2px; font-size: 12.5px; white-space: nowrap; }
.notif-day { padding: 10px 16px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.notif { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif:hover { background: var(--paper); }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); }
.n-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--paper); font-size: 16px; font-weight: 800; color: var(--accent-text); }
.k-shift .n-ic { background: var(--info-soft); }
.k-order .n-ic { background: var(--warn-soft); }
.k-task .n-ic { background: var(--ok-soft); }
.n-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.n-main b { font-size: 14px; }
.n-body { font-size: 13px; color: var(--muted); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.n-main small { color: var(--faint); font-size: 11.5px; }
.n-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex: none; margin-top: 6px; }

/* ---------- 채팅방 안 검색 ---------- */
.chat-search { position: relative; flex: none; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 14px; z-index: 6; }
.cs-bar { display: flex; align-items: center; gap: 6px; }
.cs-ic { font-size: 14px; }
.cs-bar #csQ { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; background: var(--bg); outline: none; }
.cs-bar #csQ:focus { border-color: var(--accent); background: var(--panel); }
.cs-bar #csDate { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 8px; background: var(--bg); color: var(--text); width: 148px; }
.cs-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 52px; text-align: right; cursor: pointer; }
.cs-results { position: absolute; left: 14px; right: 14px; top: calc(100% - 2px); max-height: min(52vh, 420px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 4px; }
.cs-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; align-items: flex-start; }
.cs-item:hover, .cs-item.on { background: var(--accent-soft); }
.cs-txt { min-width: 0; font-size: 13.5px; }
.cs-txt small { color: var(--faint); }
.cs-txt span { display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
mark { background: #f6d77a; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- 입력창 ---------- */
.composer-wrap { padding: 0 18px 16px; flex: none; position: relative; }
.composer { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); box-shadow: 0 1px 3px rgba(45, 30, 25, .05); }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: transparent; padding: 12px 14px 4px; max-height: 40vh; min-height: 46px; display: block; line-height: 1.5; }
.composer .bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.composer .bar .icon-btn { color: var(--muted); }
.composer .bar .hint { flex: 1; font-size: 11.5px; color: var(--faint); padding-left: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.send { background: var(--pri); color: var(--pri-fg); border-radius: 9px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.send:disabled { opacity: .4; cursor: default; }
.pending-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.pending-files .pf { position: relative; font-size: 12.5px; background: var(--paper); border-radius: 8px; padding: 4px 26px 4px 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-files .pf img { height: 52px; border-radius: 6px; display: block; }
.pending-files .pf button { position: absolute; right: 4px; top: 3px; color: var(--muted); }
.pending-files .pf.img { padding: 4px; }
.pending-files .pf.img img { height: 72px; cursor: pointer; }
.pending-files .pf.img .pf-x { right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(28, 22, 20, .6); color: #fff; font-size: 11px; display: grid; place-items: center; }
.pending-files .pf .pf-edit { position: absolute; left: 6px; right: auto; top: auto; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(28, 22, 20, .68); color: #fff; font-size: 11.5px; font-weight: 600; }
/* 사진 편집 */
.ie { display: grid; gap: 12px; }
.ie-stage { height: min(60vh, 520px); display: grid; place-items: center; background: #1f1917; border-radius: 12px; overflow: hidden; padding: 14px; box-sizing: border-box; }
.ie-wrap { position: relative; touch-action: none; }
.ie-cv { display: block; }
.ie-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); outline: 2px solid #fff; cursor: move; touch-action: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; }
.ie-wrap { overflow: hidden; }
.ie-crop i { position: absolute; width: 22px; height: 22px; border: 0 solid #fff; }
.ie-crop i[data-h=nw] { left: 0; top: 0; border-width: 4px 0 0 4px; cursor: nwse-resize; }
.ie-crop i[data-h=ne] { right: 0; top: 0; border-width: 4px 4px 0 0; cursor: nesw-resize; }
.ie-crop i[data-h=sw] { left: 0; bottom: 0; border-width: 0 0 4px 4px; cursor: nesw-resize; }
.ie-crop i[data-h=se] { right: 0; bottom: 0; border-width: 0 4px 4px 0; cursor: nwse-resize; }
.ie-crop i::after { content: ''; position: absolute; inset: -12px; } /* 손가락으로 잡기 쉽게 */
.ie-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ie-tools .btn { padding: 7px 12px; font-size: 13.5px; }
.ie-tools .ie-ratio.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.ie-rot { display: inline-flex; align-items: center; gap: 6px; }
.ie-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.ie-tip { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) { .ie-stage { height: 52vh; padding: 10px; } .ie-sep { display: none; } .ie-tools { gap: 5px; } .ie-tools .btn { padding: 8px 10px; } .ie-rot span { display: none; } }
.readonly-note { text-align: center; color: var(--muted); font-size: 13px; padding: 12px; background: var(--paper); border-radius: 12px; }
.typing { min-height: 18px; font-size: 12px; color: var(--muted); padding: 0 4px 4px; }
/* 입력 중 표시 */
.ty-bubble { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); animation: tyIn .2s ease; }
.ty-bubble .avatar { width: 20px; height: 20px; font-size: 9px; margin-right: -2px; box-shadow: 0 0 0 2px var(--paper); }
.ty-t { font-size: 12px; font-weight: 600; color: var(--muted); }
.ty-dots { display: inline-flex; gap: 3px; align-items: center; margin: 0 2px; }
.ty-dots i, .side-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: tyDot 1.2s infinite ease-in-out; }
.ty-dots i:nth-child(2), .side-typing i:nth-child(2) { animation-delay: .15s; }
.ty-dots i:nth-child(3), .side-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tyDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes tyIn { from { opacity: 0; transform: translateY(4px); } }
.side-typing { display: inline-flex; gap: 2px; align-items: center; margin-left: auto; padding: 0 4px; }
.side-typing[hidden] { display: none; }
.side-typing i { width: 4px; height: 4px; background: #e3c3ad; }
.side-typing + .badge { margin-left: 4px; }
.cr-typing { color: var(--accent-text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

.popover { position: absolute; z-index: 90; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.mention-list { bottom: calc(100% - 10px); left: 18px; width: 260px; max-height: 260px; overflow: auto; padding: 4px; }
.mention-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 8px; text-align: left; font-size: 14px; }
.mention-list button.sel, .mention-list button:hover { background: var(--accent-soft); }
.mention-list small { color: var(--muted); }

.emoji-pop { width: 320px; max-width: calc(100vw - 24px); padding: 8px; }
.emoji-pop .cat { font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 4px 2px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.emoji-grid button { font-size: 21px; height: 36px; border-radius: 8px; }
.emoji-grid button:hover { background: var(--paper); }
.emoji-scroll { max-height: 260px; overflow-y: auto; }

/* ---------- 오른쪽 패널 ---------- */
.panel { width: 400px; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.panel-head { height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.panel-head h2 { margin: 0; font-size: 16px; flex: 1; }
.panel-head small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 13px; }
.panel-body { flex: 1; overflow-y: auto; }
.panel .msg { padding: 6px 16px; }
.panel .composer-wrap { padding: 0 14px 14px; }
.thread-root { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.reply-count { padding: 4px 16px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.reply-count::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- 공통 UI ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--paper); }
.btn.primary { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.btn.primary:hover { background: var(--pri-hover); }
.btn.danger { color: var(--danger); }
.btn.danger.fill { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--paper); }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field > span em { color: var(--danger); font-style: normal; }
.input, .field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); outline: none; }
.field textarea { resize: vertical; min-height: 70px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--panel); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 6px 13px; border-radius: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card h3 .more { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }
.empty .big { font-size: 34px; display: block; margin-bottom: 6px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 160px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.switch-t { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); transition: .2s; flex: none; }
.switch-t::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch-t.on { background: var(--ok); }
.switch-t.on::after { left: 19px; }

/* 모달 · 토스트 */
.modal-back { position: fixed; inset: 0; background: rgba(30, 20, 18, .5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; animation: pop .18s ease; }
.modal.wide { max-width: 720px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-h { padding: 18px 20px 8px; display: flex; align-items: center; gap: 8px; }
.modal-h h2 { margin: 0; font-size: 18px; flex: 1; font-weight: 800; letter-spacing: -.02em; }
.modal-b { padding: 8px 20px; overflow-y: auto; }
.modal-f { padding: 12px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--espresso-2); color: #f8eee7; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; animation: pop .2s; cursor: pointer; }
.toast.err { background: var(--danger); }
.banner { background: var(--gold); color: #fff; padding: 8px 16px; text-align: center; font-size: 13.5px; font-weight: 600; }
.banner button { text-decoration: underline; color: #fff; font-weight: 700; margin-left: 8px; }
.banner.offline { background: var(--danger); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 10, 9, .9); z-index: 150; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92dvh; max-width: 96vw; border-radius: 8px; }
.menu { position: fixed; z-index: 120; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; min-width: 190px; }
.menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; border-radius: 8px; text-align: left; font-size: 14px; }
.menu button:hover { background: var(--paper); }
.menu button.danger { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px; }
/* 휴대폰: 아래에서 올라오는 메뉴 */
.menu-back { position: fixed; inset: 0; z-index: 119; background: rgba(28, 22, 20, .32); animation: fadeIn .15s; }
.menu.sheet { left: 0; right: 0; bottom: 0; top: auto; border-radius: 18px 18px 0 0; padding: 6px 10px calc(12px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; animation: sheetUp .2s ease-out; border-bottom: 0; }
.menu.sheet button { padding: 13px 12px; font-size: 15.5px; }
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { padding: 2px 12px 10px; display: grid; gap: 2px; }
.sheet-head b { font-size: 13px; color: var(--muted); }
.sheet-head span { font-size: 14.5px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu.sheet .sheet-quick { display: flex; justify-content: space-between; gap: 6px; padding: 4px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu.sheet .sheet-quick button { width: 46px; height: 46px; padding: 0; justify-content: center; font-size: 24px; border-radius: 50%; background: var(--paper); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.msg.pressed .body, .msg.pressed .files img, .msg.pressed .rec-card { transform: scale(.97); filter: brightness(.94); transition: transform .15s, filter .15s; }

/* ---------- 매장 현황 홈 v2 — 덜어내고 한눈에 ---------- */
.pad.home { max-width: none; padding-left: 28px; padding-right: 28px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.st-m { display: grid; gap: 2px; padding: 14px 18px; text-align: left; border-left: 1px solid var(--line); transition: background .15s; }
.st-m:first-child { border-left: 0; }
.st-m:hover { background: var(--paper); }
.st-m b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--faint); }
.st-m.has b, .st-m:first-child b { color: var(--text); }
.st-m b small { font-size: 13px; font-weight: 600; margin-left: 2px; color: var(--muted); }
.st-m > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.st-m em { font-style: normal; color: var(--danger); font-weight: 800; }
.home .sec { margin-bottom: 16px; }
.home .sec-h h3 { font-size: 16px; }
.htabs { margin-left: auto; }
.htabs button { padding: 5px 12px; font-size: 13px; }
.ht-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 800; text-align: center; }
.htabs button.on .ht-n { background: var(--pri); color: var(--pri-fg); }
.tl-clock { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
/* 상단 히어로 — 에스프레소 카드 */
/* 매장 현황: 넓은 PC에서는 오늘 근무 · 확인할 일 나란히 */
@media (min-width: 1280px) {
  .home-split { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 16px; align-items: stretch; }
  .home-split > .sec { margin-bottom: 16px; min-width: 0; display: flex; flex-direction: column; }
  .home-split #homeList { flex: 1; max-height: 460px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
  .home-split .htabs button { padding: 5px 9px; }
  .home-split .sec-h { flex-wrap: wrap; row-gap: 8px; }
}

/* 최근 활동 */
.act-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.act-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; text-align: left; padding: 10px 6px; border-top: 1px solid var(--line); border-radius: 10px; }
.act-row:first-child { border-top: 0; }
.act-row:hover { background: var(--paper); }
.act-row .avatar { flex: none; margin-top: 1px; }
.act-m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.act-top { display: flex; align-items: baseline; min-width: 0; font-size: 13.5px; }
.act-top b { flex: none; font-weight: 700; }
.act-v { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-top time { flex: none; margin-left: 8px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.act-txt { font-size: 13px; color: var(--text); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 이번 주 근무 */
.wk-sec { display: flex; flex-direction: column; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.wk-d { display: flex; flex-direction: column; gap: 8px; padding: 10px 6px 12px; border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--text); min-width: 0; }
.wk-d:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.wk-d.today { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent); }
.wk-d.pastd { opacity: .6; }
.wk-h { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.wk-h b { font-size: 13px; }
.wk-h small { font-size: 11px; color: var(--muted); }
.wk-d.we .wk-h b { color: var(--danger); }
.wk-n { text-align: center; font-size: 20px; font-weight: 800; line-height: 1; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.wk-n small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.wk-p { display: grid; gap: 6px; justify-items: center; }
.wk-p i { font-style: normal; display: grid; justify-items: center; line-height: 1.2; }
.wk-p i b { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wk-p i .wk-t { font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; line-height: 1.15; }
.wk-p i.off .wk-t { color: var(--danger); }
.wk-p i { max-width: 100%; min-width: 0; }
.wk-p i em { font-style: normal; font-size: 10.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-p i.off b { color: var(--danger); text-decoration: line-through; }
.wk-p i.off em { color: var(--danger); font-weight: 700; }
.wk-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 12px; }
.wk-sum span { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--paper); text-align: center; }
.wk-sum b { font-size: 15px; font-weight: 800; }
.wk-sum small { font-size: 11px; color: var(--muted); }
.wk-sum .warn b { color: var(--danger); }
.wk-sum .me { background: var(--accent-soft); }
@media (max-width: 820px) {
  .wk { gap: 4px; }
  .wk-d { padding: 8px 2px; }
  .wk-n { font-size: 17px; }
  .wk-p i b { font-size: 11px; letter-spacing: -.03em; }
  .wk-p i em { display: none; }
  .wk-sum span { padding: 7px 4px; }
  .wk-sum b { font-size: 13.5px; }
}

/* 채팅 목록 (휴대폰 채팅 탭) */
.chats { max-width: 760px; margin: 0 auto; padding: 10px 12px 40px; }
.chats-search { display: flex; align-items: center; gap: 8px; margin: 4px 4px 10px; padding: 9px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.chats-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.chats-sec { margin-bottom: 8px; }
.chats-h { padding: 12px 8px 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 12px; text-align: left; }
.chat-row:hover, .chat-row:active { background: var(--paper); }
.chat-row .avatar { width: 44px; height: 44px; font-size: 15px; flex: none; }
.cr-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--accent-soft); }
.cr-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cr-top, .cr-bot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cr-name { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-top time { flex: none; font-size: 12px; color: var(--faint); }
.cr-prev { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-prev b { color: var(--text); font-weight: 600; }
.chat-row.unread .cr-name { font-weight: 800; }
.chat-row.unread .cr-prev { color: var(--text); }
.chat-row .badge { flex: none; }
.shared-from { display: block; margin: 2px 0 6px; font-size: 12.5px; color: var(--accent-text); text-align: left; }

/* 푸시 알림 켜기 안내 */
.push-banner { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.push-banner[hidden] { display: none; }
.pb-ic { font-size: 20px; }
.pb-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pb-t b { font-size: 14px; }
.pb-t span { font-size: 12.5px; color: var(--muted); }
.pb-x { flex: none; }

/* 상단 인사 카드 — 에스프레소 바탕 + 크림 라인 (매장 간판 느낌) */
.hero { position: relative; overflow: hidden; margin: 2px 0 16px; border-radius: 20px; color: #f6ece3;
  background: radial-gradient(120% 140% at 100% 0%, #5e4740 0%, transparent 55%), linear-gradient(135deg, #46383a 0%, #3b302e 45%, #2c2321 100%);
  box-shadow: 0 12px 30px -16px rgba(43, 32, 30, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hero::before { content: ''; position: absolute; inset: 7px; border-radius: 14px; border: 1px solid rgba(227, 195, 173, .2); pointer-events: none; }
.hero-in { position: relative; padding: 30px 32px 18px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero-main { min-width: 0; }
.hero-date { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #d9b896; margin-bottom: 8px; }
.hero-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; color: #fbf3ec; }
.hero-side { display: flex; align-items: center; gap: 22px; flex: none; }
.hero-sub { margin: 8px 0 0; font-size: 14px; color: #cdb6a4; }
.hero-sub b { color: #fbf3ec; font-weight: 700; }
.ring { display: flex; align-items: center; gap: 12px; }
.ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.ring-fg { fill: none; stroke: #e3c3ad; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring-ic { fill: none; stroke: #f0dccb; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transform: rotate(90deg); transform-origin: 28px 28px; }
.ring.live .ring-fg { filter: drop-shadow(0 0 4px rgba(227, 195, 173, .45)); }
.ring-t { display: grid; text-align: right; }
.ring-t b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fbf3ec; line-height: 1.15; white-space: nowrap; }
.ring-t span { font-size: 12px; color: #d9b896; font-weight: 600; white-space: nowrap; }
.hero-new { padding: 10px 18px; border-radius: 12px; background: #f3e4d6; color: #3b302e; font-weight: 800; font-size: 14px; transition: transform .15s, background .15s; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5); }
.hero-new:hover { background: #fbefe4; transform: translateY(-1px); }
/* 하단: 지금 매장 · 최신 공지 */
.hero-bottom { display: flex; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(243, 228, 214, .14); }
.hb { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: left; color: #f6ece3; transition: background .15s; }
.hb:hover { background: rgba(255, 255, 255, .1); }
.hb-who { flex: none; max-width: 52%; }
.hb-notice { flex: 1; }
.hb-k { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #d9b896; }
.hb-txt { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-txt b { font-weight: 700; color: #fbf3ec; }
.hb-txt em { font-style: normal; color: #bfa591; }
.hf-row { display: flex; flex: none; }
.hf { position: relative; margin-left: -4px; border-radius: 50%; box-shadow: 0 0 0 2px #3b302e; }
.hf:first-child { margin-left: 0; }
.hf .avatar { display: grid; place-items: center; width: 30px; height: 30px; font-size: 10px; letter-spacing: -.04em; overflow: hidden; }
.hf.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: #7fbf8c; box-shadow: 0 0 0 2px #3b302e; }
.hf.brk { box-shadow: 0 0 0 2px #3b302e, 0 0 0 4px #e2b46a; margin-left: 2px; }
.hf.brk + .hf.brk { margin-left: 4px; }
.hf.brk::after { content: '☕'; position: absolute; right: -6px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; background: #e2b46a; box-shadow: 0 0 0 2px #3b302e;
  display: grid; place-items: center; font-size: 9px; line-height: 1; }
.hf-sep { flex: none; width: 1px; height: 22px; background: rgba(243, 228, 214, .2); }
.brk-pill { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(226, 180, 106, .18); box-shadow: inset 0 0 0 1px rgba(226, 180, 106, .45);
  color: #f3d49a; font-weight: 800; font-size: 12.5px; vertical-align: 1px; }
.hb-txt > .brk-pill:first-child { margin-left: 0; }
.st-m { transition: background .15s, transform .15s; }
.st-m:hover b { transform: translateY(-1px); }
.st-m b { transition: transform .15s; display: block; }

/* 클래식 타임라인 */
.tl2 { --nmw: 92px; font-variant-numeric: tabular-nums; container-type: inline-size; }
/* 타임라인이 좁으면 시간 눈금을 2시간 간격으로 */
@container (max-width: 820px) { .tl2-hours span:nth-child(even) { display: none; } }
.tl2-head { display: grid; grid-template-columns: var(--nmw) minmax(0, 1fr); height: 26px; }
.tl2-biz { align-self: end; padding-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--gold); white-space: nowrap; }
.tl2-hours { position: relative; border-bottom: 1px solid var(--line-2); }
.tl2-hours span { position: absolute; bottom: 6px; transform: translateX(-50%); font-size: 11px; letter-spacing: .06em; color: var(--faint); }
.tl2-hours span:first-child { transform: none; }
.tl2-hours span:last-of-type { transform: translateX(-100%); }
.tl2-nowtag { position: absolute; bottom: 3px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: var(--pri-fg); background: var(--pri); padding: 2px 7px; border-radius: 999px; z-index: 3; letter-spacing: .02em; transition: left .6s ease; }
.tl2-body { position: relative; padding-top: 6px; }
.tl2-row { display: grid; grid-template-columns: var(--nmw) minmax(0, 1fr); align-items: center; height: 52px; border-bottom: 1px solid var(--line); }
.tl2-row:last-child { border-bottom: 0; }
.tl2-row .nm { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; }
.tl2-row .nm .live { width: 7px; height: 7px; border-radius: 50%; background: #5f9b6b; box-shadow: 0 0 0 3px color-mix(in srgb, #5f9b6b 22%, transparent); flex: none; }
.tl2-row.is-off .nm { color: var(--danger); text-decoration: line-through; }
.tl2-track { position: relative; height: 100%; }
.tl2-grid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent); pointer-events: none; }
/* 근무 바 — 가는 선 위로 지난 시간만큼 채워지고, 지금 위치에 손잡이 */
.tb { --c: var(--tl-f, #6f4e3d); position: absolute; top: 0; bottom: 0; z-index: 4; container-type: inline-size; }
.tb.cafe { --c: var(--tl-c, #a8834f); }
.tb.add { --c: #5f7d5b; }
.tb-lbl { position: absolute; left: -5px; right: -5px; top: 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text); white-space: nowrap; }
.tb-t { padding: 1px 5px; border-radius: 5px; background: var(--panel); }
.tb-t.e { color: var(--muted); font-weight: 500; }
.tb-t em { font-style: normal; font-size: 10.5px; color: color-mix(in srgb, var(--c) 70%, var(--muted)); margin-right: 8px; font-weight: 600; }
.tb.past .tb-lbl, .tb.past .tb-t.e { color: var(--faint); font-weight: 500; }
.tb-rail { position: absolute; left: 0; right: 0; top: 31px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 15%, var(--panel)); }
.tb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--c); transition: width .8s ease; }
.tb.past .tb-fill { background: color-mix(in srgb, var(--c) 48%, var(--panel)); }
.tb-brk { position: absolute; top: -2px; bottom: -2px; z-index: 1; background: var(--panel);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent) 1px, transparent 1.4px); background-size: 5px 100%; background-position: center; }
.tb-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; z-index: 2; border-radius: 50%;
  background: var(--panel); box-shadow: inset 0 0 0 3px var(--c), 0 1px 4px color-mix(in srgb, var(--c) 40%, transparent); transition: left .8s ease; }
.tb .pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; animation: tbPulse 1.6s ease-in-out infinite; }
.tb.open .tb-t.e { color: var(--c); font-weight: 700; }
@keyframes tbPulse { 50% { opacity: .25; } }
@container (max-width: 150px) { .tb-t em { display: none; } }
@container (max-width: 84px) { .tb-t.e { display: none; } }
@container (max-width: 34px) { .tb-t { display: none; } }
.tb.off .tb-rail { background: repeating-linear-gradient(90deg, var(--danger) 0 5px, transparent 5px 9px); height: 2px; top: 33px; }
.tb-off { position: absolute; left: 0; right: 0; top: 9px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--danger); white-space: nowrap; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
.tl2-now { position: absolute; top: -7px; bottom: 0; width: 0; border-left: 1px solid color-mix(in srgb, var(--pri) 70%, transparent); pointer-events: none; z-index: 3; transition: left .8s ease; }
.tl2-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; padding-left: var(--nmw); font-size: 12px; color: var(--muted); }
.tl2-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.tl2-legend i { border-radius: 3px; height: 6px; }
.tl2-legend .fashion { background: var(--tl-f, #6f4e3d); } .tl2-legend .cafe { background: var(--tl-c, #a8834f); } .tl2-legend .add { background: #5f7d5b; }
.tl2-legend .lg-split { width: 26px; position: relative; background: linear-gradient(90deg, var(--tl-f, #6f4e3d) 50%, color-mix(in srgb, var(--tl-f, #6f4e3d) 15%, var(--panel)) 50%); }
.tl2-legend .lg-split::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--tl-f, #6f4e3d); }
.tl2-legend .brkl { background: radial-gradient(circle, #a8834f 1px, transparent 1.4px) center / 5px 100%; }
.tl2-legend .offl { height: 2px; background: repeating-linear-gradient(90deg, var(--danger) 0 4px, transparent 4px 7px); }

/* ---------- 매장 현황 홈 (대시보드) ---------- */
.dash { max-width: 1180px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hello { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.hello-date { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.off-txt { color: var(--danger); font-weight: 700; }
.ico { width: 20px; height: 20px; flex: none; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.qa { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.qa .ico { color: var(--accent); width: 22px; height: 22px; }
.qa:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(45, 30, 25, .08); transform: translateY(-1px); }
.qa:first-child { background: var(--pri); border-color: var(--pri); color: var(--pri-fg); }
.qa:first-child .ico { color: var(--pri-fg); opacity: .75; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'ic l' 'n n' 's s'; align-items: center; gap: 4px 10px; text-align: left; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.kpi:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(45, 30, 25, .07); }
.kpi-ic { grid-area: ic; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.kpi-ic .ico { width: 19px; height: 19px; }
.kpi-l { grid-area: l; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.kpi-n { grid-area: n; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.1; }
.kpi-n small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi-s { grid-area: s; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-brown { background: var(--accent-soft); color: var(--accent); }
.t-blue { background: var(--info-soft); color: var(--info); }
.t-gold { background: var(--warn-soft); color: var(--warn); }
.t-red { background: var(--danger-soft); color: var(--danger); }
.t-green { background: var(--ok-soft); color: var(--ok); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sec { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.sec.span2 { grid-column: 1 / -1; }
.sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-h > .ico { color: var(--accent); width: 19px; height: 19px; }
.sec-h h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.sec-h .cnt { font-size: 12.5px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.sec-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.sec-h .more:hover { color: var(--accent); }
.sec-h .more .ico { width: 15px; height: 15px; }
.sec-empty { padding: 18px 0 8px; text-align: center; color: var(--faint); font-size: 13.5px; }
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 0; border-top: 1px solid var(--line); }
.rows > .row:first-child { border-top: 0; padding-top: 2px; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; }
.row-main b { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.row:hover .row-main b, .row-main:hover b { color: var(--accent); }
.row-chk { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
/* 매장 현황 목록: 제목 바로 옆에 상태 · 처리 버튼 */
.hrow { cursor: pointer; }
.rm { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rm-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rm-top b { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rm-top .pill { flex: none; }
.rm-act { flex: none; margin-left: 2px; }
.rm-act .btn.sm { padding: 3px 10px; font-size: 12.5px; }
.rm small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow:hover .rm-top b { color: var(--accent); }
/* 오늘 근무 타임라인 */
.timeline { display: grid; gap: 8px; }
.tl-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13.5px; }
.tl-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; height: 30px; background: var(--bg); border-radius: 8px; }
.tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; padding: 0 9px; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.tl-bar.fashion { background: #8c5f48; }
.tl-bar.cafe { background: #b9925e; }
.tl-bar.add { background: var(--ok); }
.tl-bar.narrow { padding: 0; }
.tl-bar.off { background: repeating-linear-gradient(135deg, var(--danger-soft) 0 8px, color-mix(in srgb, var(--danger-soft) 55%, var(--panel)) 8px 16px); color: var(--danger); border: 1.5px dashed var(--danger); font-weight: 800; }
.tl-row.is-off .nm { color: var(--danger); text-decoration: line-through; }
.tl-break { position: absolute; top: 3px; bottom: 3px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 3px, transparent 3px 7px); border-radius: 4px; pointer-events: none; }
.tl-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--danger); border-radius: 1px; }
.tl-axis { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; font-size: 11.5px; color: var(--faint); }
.tl-hours { position: relative; height: 16px; }
.tl-hours span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tl-hours span:first-child { transform: none; }
.tl-hours span:last-child { transform: translateX(-100%); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; padding-left: 82px; font-size: 12px; color: var(--muted); }
.tl-legend .lg { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-right: 5px; vertical-align: 1px; }
.lg.fashion { background: #8c5f48; } .lg.cafe { background: #b9925e; } .lg.add { background: var(--ok); }
.lg.brk { background: repeating-linear-gradient(45deg, #b9925e 0 2px, #f0e3d6 2px 4px); }
.lg.off { background: var(--danger-soft); border: 1px dashed var(--danger); }
.lg.now { width: 2px; height: 11px; background: var(--danger); }
.list-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.list-item:first-of-type { border-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t1 { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-item .t2 { font-size: 12.5px; color: var(--muted); }

/* 기록 목록 */
.rec-list { display: grid; gap: 10px; }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; text-align: left; width: 100%; }
.rec-row.t-return { border-left-color: var(--info); }
.rec-row.t-store { border-left-color: var(--gold); }
.rec-row:hover { border-color: var(--line-2); }
.rec-row .r-title { font-weight: 700; }
.rec-row .r-sub { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }

/* 근무표 */
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.week-nav .lbl { font-weight: 700; font-size: 16px; min-width: 150px; text-align: center; }
.shift-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 760px; }
.shift-tbl th { padding: 10px 8px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; background: var(--panel); position: sticky; top: 0; }
.shift-tbl th.today { color: var(--accent-text); }
.shift-tbl th.today span { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.shift-tbl th.we { color: var(--danger); }
.shift-tbl td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; height: 64px; }
.shift-tbl td.who { white-space: nowrap; font-weight: 600; padding-left: 14px; vertical-align: middle; width: 110px; }
.shift-tbl td.who small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.shift-tbl td.today { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.sh { display: block; width: 100%; text-align: left; border-radius: 8px; padding: 6px 8px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.sh.cafe { background: var(--warn-soft); color: var(--warn); }
.sh small { display: block; font-weight: 500; opacity: .85; font-size: 11px; }
.sh.off { background: var(--danger-soft); color: var(--danger); border: 1.5px dashed var(--danger); }
.sh.off s { opacity: .7; margin-left: 4px; font-weight: 600; }
.sh.off small { color: var(--danger); opacity: .85; }
.off-tag { display: inline-block; white-space: nowrap; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-right: 4px; letter-spacing: .02em; }
.sh.add { background: var(--ok-soft); color: var(--ok); }
.sh-empty { display: block; width: 100%; height: 100%; min-height: 50px; border-radius: 8px; color: transparent; font-size: 18px; }
.sh-empty:hover { background: var(--paper); color: var(--faint); }
.day-cards { display: none; gap: 12px; }
.day-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.day-card.today { border-color: var(--accent); }
.day-card h4 { margin: 0 0 8px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.day-card .ds { display: grid; gap: 6px; }
.day-card .sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* 빠짐: 「근무 빠짐 · 시간」 한 줄 + 사유 아래 줄 (글자 깨짐 방지) */
.day-card .sh.off { flex-wrap: wrap; justify-content: flex-start; row-gap: 2px; }
.day-card .sh.off s { white-space: nowrap; margin-left: 0; }
.day-card .sh.off small { flex-basis: 100%; }
.day-card .sh small { white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 5px; }

/* 고정 양식 */
.photo-slot .ps-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ps-add { display: inline-flex; align-items: center; justify-content: center; height: 64px; padding: 0 16px; border: 1.5px dashed var(--line-2); border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--accent-text); cursor: pointer; background: var(--bg); }
.ps-add:hover { border-color: var(--accent); }
.ps-thumbs { display: contents; }
.ps-th { position: relative; }
.ps-th img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.ps-th button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--espresso); color: #fff; font-size: 11px; }
.ps-th img { cursor: pointer; }
.ps-th.ps-file { display: flex; align-items: center; max-width: 180px; height: 64px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ps-th .ps-ed { top: auto; right: auto; left: 50%; bottom: 4px; transform: translateX(-50%); width: auto; height: auto; padding: 1px 7px; border-radius: 999px; background: rgba(28, 22, 20, .7); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ox-seg button { min-width: 84px; font-size: 15px; padding: 8px 16px; }
.qty-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qty { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 10px; }
.qty span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.qty input { border: 0 !important; background: transparent !important; padding: 6px 0 !important; text-align: right; min-width: 0; font-size: 16px; font-weight: 700; }
.form-card .kv dd { font-weight: 500; }
.ph-sec { margin-top: 10px; }
.ph-lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.ph-sec .files img { max-height: 130px; max-width: 160px; }

/* 사이드바 기본 메뉴 묶음 */
.nav-sec { border-top: 0 !important; margin-top: 4px !important; padding-top: 0 !important; }
.nav-grp { margin-top: 12px; }
.nav-grp.home { margin-top: 2px; }
.nav-grp-h { padding: 0 10px 4px; font-size: 11.5px; font-weight: 700; color: #a8958b; letter-spacing: .04em; }
.side .nav-item .ic .ico { width: 19px; height: 19px; color: #d9c3b5; display: block; margin: 0 auto; }
.side .nav-item.active .ic .ico { color: var(--side-active-text); }
.side-search .ico { width: 17px; height: 17px; }
.side-search span { flex: 1; }
.side-search kbd { font: 600 10.5px var(--sans); color: #8f7d74; border: 1px solid #5a4a46; border-radius: 5px; padding: 1px 5px; }

/* 사이드바 폴더 — 부서 제목이 잘 보이게 */
.folder { margin-top: 10px; }
.folder + .folder { border-top: 1px solid #4d403c; padding-top: 10px; }
.folder-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; margin-bottom: 2px; color: #fbf3ec; background: #46393680; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-align: left; border-radius: 9px; }
.folder-h:hover { background: var(--side-hover); color: #fff; }
.folder-h .caret { width: 14px; font-size: 11px; color: #d9bfae; transition: transform .15s; }
.folder-h .ic { width: 22px; text-align: center; font-size: 16px; }
.folder-h .lbl { flex: 1; }
.folder.closed .caret { transform: rotate(-90deg); }
.folder.closed .folder-b { display: none; }
.folder-b { margin-left: 17px; padding-left: 6px; border-left: 2px solid #5a4a46; }
.folder-b .nav-item { padding-left: 10px; font-size: 14px; }
.rec-dept { font-size: 10.5px; display: block; line-height: 1.1; color: var(--muted); font-weight: 600; }
/* 업무 기록: 게시판 탭 · 검색 */
.rec-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rec-tabs::-webkit-scrollbar { display: none; }
.rec-tab { flex: none; display: grid; gap: 2px; text-align: left; padding: 8px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.rec-tab.on { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rt-n { font-size: 14px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.rt-c { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--pri); color: var(--pri-fg); font-size: 11px; text-align: center; }
.rec-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-bottom: 14px; }
.rec-filter .input { min-width: 0; }
@media (max-width: 820px) {
  .rec-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rec-filter #recQ { grid-column: 1 / -1; }
  .rec-filter .btn { white-space: nowrap; }
}

/* 직원 현황 */
.st-summary { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; font-size: 13.5px; }
.st-chip { padding: 4px 12px; border-radius: 999px; font-weight: 600; background: var(--paper); }
.st-chip b { margin-left: 2px; }
.st-me { margin-bottom: 16px; border-color: var(--accent); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.st-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; }
.st-top { display: flex; gap: 10px; align-items: flex-start; }
.st-top .grow { flex: 1; min-width: 0; }
.st-pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--paper); color: var(--muted); }
.st-detail { margin-top: 10px; font-size: 13.5px; }
.st-ok { border-left-color: var(--ok); } .st-ok .st-pill, .st-chip.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-warn { border-left-color: var(--warn); } .st-warn .st-pill, .st-chip.st-warn { background: var(--warn-soft); color: var(--warn); }
.st-info { border-left-color: var(--info); } .st-info .st-pill, .st-chip.st-info { background: var(--info-soft); color: var(--info); }
.st-gray { opacity: .75; }
.st-danger { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger-soft) 45%, var(--panel)); } .st-danger .st-pill, .st-chip.st-danger { background: var(--danger); color: #fff; } .st-danger .st-detail { color: var(--danger); font-weight: 600; }
.st-card.st-warn { box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent); }

/* 직원 현황 페이지 */
.pad.stp { max-width: none; padding-left: 28px; padding-right: 28px; }
.stp-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 12px; }
.stp-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stp-head .muted { font-size: 13px; }
.stt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stt { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.stt.st-ok { border-top-color: var(--ok); } .stt.st-warn { border-top-color: var(--warn); } .stt.st-info { border-top-color: var(--info); } .stt.st-danger { border-top-color: var(--danger); }
.stt.st-gray { opacity: 1; }
.stt-h { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.stt-h b { font-size: 24px; color: var(--text); font-weight: 800; }
.stt-f { display: flex; min-height: 24px; align-items: center; }
.stt-f { gap: 4px; flex-wrap: wrap; } .stt-f .avatar { width: 26px; height: 26px; font-size: 10px; }
.stt-f small { color: var(--faint); font-size: 12px; }
.stp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.stp-side { display: grid; gap: 16px; }
.stp-side .card, .stp-side .sec { margin: 0; }
.st-me { border-color: var(--accent); }
.st-me h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-brk-now { padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; margin-bottom: 10px; }
.me-brk-btns { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.me-brk-btns .btn { justify-content: center; }
/* 직원별 줄 */
.sr-list { display: grid; }
.sr { display: grid; grid-template-columns: 190px 104px minmax(0, 1fr) 150px; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sr:first-child { border-top: 0; }
.sr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sr-who b { display: block; font-size: 14.5px; }
.sr-who small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr .st-pill { justify-self: start; font-size: 12.5px; }
.sr-line { position: relative; }
/* 가는 선 + 지난 만큼 채워짐 + 지금 위치 동그라미 (매장 현황 타임라인과 같은 모양) */
.sb { --c: var(--tl-f, #6f4e3d); position: relative; min-width: 60px; }
.sb.cafe { --c: var(--tl-c, #a8834f); } .sb.add { --c: #5f7d5b; }
.sb-lbl { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-lbl span:first-child { color: var(--text); }
.sb-rail { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 15%, var(--panel)); }
.sb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--c); }
.sb.past .sb-fill { background: color-mix(in srgb, var(--c) 45%, var(--panel)); }
.sb.past .sb-lbl { opacity: .6; }
.sb-brk { position: absolute; top: -2px; bottom: -2px; z-index: 1; background: var(--panel);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--c) 60%, transparent) 1px, transparent 1.4px); background-size: 5px 100%; background-position: center; }
.sb-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; z-index: 2; border-radius: 50%; background: var(--panel);
  box-shadow: inset 0 0 0 3px var(--c), 0 1px 4px color-mix(in srgb, var(--c) 40%, transparent); }
.sr.st-warn .sb-knob { box-shadow: inset 0 0 0 3px var(--warn), 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); }
.sr-none { font-size: 13px; color: var(--faint); }
.sr.st-danger .sr-none { color: var(--danger); font-weight: 700; }
.sr-d { font-size: 13.5px; font-weight: 600; text-align: right; }
.sr-d small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.sr.st-gray .sr-who, .sr.st-gray .sr-d { opacity: .6; }
.sr.st-warn { background: linear-gradient(90deg, color-mix(in srgb, var(--warn-soft) 70%, transparent), transparent 60%); border-radius: 10px; }
.sr-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sr-legend i { display: inline-block; width: 18px; height: 6px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.lg-shift { background: linear-gradient(90deg, var(--tl-f, #6f4e3d) 55%, color-mix(in srgb, var(--tl-f, #6f4e3d) 15%, var(--panel)) 55%); }
.lg-brk { background: radial-gradient(circle, #a8834f 1px, transparent 1.4px) center / 5px 100%; }
.lg-d.fashion { background: var(--tl-f, #6f4e3d); } .lg-d.cafe { background: var(--tl-c, #a8834f); }
.lg-now { width: 10px !important; height: 10px !important; border-radius: 50% !important; box-shadow: inset 0 0 0 2.5px var(--tl-f, #6f4e3d); }
/* 직원 카드 (원형 게이지) */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sc { --tone: var(--line-2); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.sc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone); }
.sc.st-ok { --tone: var(--ok); } .sc.st-warn { --tone: var(--warn); } .sc.st-info { --tone: var(--info); } .sc.st-danger { --tone: var(--danger); }
.sc.st-warn { background: color-mix(in srgb, var(--warn-soft) 45%, var(--panel)); }
.sc.st-gray .sc-mid, .sc.st-gray .sc-kv { opacity: .55; }
.sc-top { display: flex; align-items: center; gap: 10px; }
.sc-name { flex: 1; min-width: 0; }
.sc-name b { display: block; font-size: 15px; }
.sc-name small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .st-pill { font-size: 12px; padding: 2px 9px; }
.sc-mid { position: relative; width: 112px; height: 112px; margin: 2px auto 0; }
.sc-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring .bg { fill: none; stroke: var(--paper); stroke-width: 6; }
.sc-ring .fg { fill: none; stroke: var(--tone); stroke-width: 6; stroke-linecap: round; }
.sc-ring-t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sc-ring-t b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sc-ring-t small { font-size: 11.5px; color: var(--muted); }
.sc-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); text-align: center; }
.sc-kv > div { min-width: 0; }
.sc-kv dt { font-size: 11px; color: var(--faint); }
.sc-kv dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sc { padding: 12px 10px; gap: 8px; }
  .sc-top .avatar { display: none; }
  .sc .st-pill { display: none; }
  .sc-mid { width: 92px; height: 92px; }
  .sc-ring-t b { font-size: 16px; }
  .sc-ring-t small { font-size: 10.5px; }
  .sc-kv dt { font-size: 10px; } .sc-kv dd { font-size: 11px; }
}

/* PC: 상태 타일은 얇은 한 줄, 직원 카드는 가로형으로 폭을 채움 */
@media (min-width: 821px) {
  .stt-row { display: flex; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .stt-row .stt { flex: 1; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 12px 18px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; position: relative; }
  .stt-row .stt:first-child { border-left: 0; }
  .stt-row .stt::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-2); }
  .stt-row .stt.st-ok::before { background: var(--ok); } .stt-row .stt.st-warn::before { background: var(--warn); } .stt-row .stt.st-info::before { background: var(--info); } .stt-row .stt.st-danger::before { background: var(--danger); }
  .stt-h { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
  .stt-h b { font-size: 26px; line-height: 1.1; }
  .stt-h span { font-size: 12.5px; white-space: nowrap; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sc { padding: 16px 18px; gap: 14px; }
  .sc-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; }
  .sc-mid { margin: 0; }
  .sc-kv { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 0 0 16px; border-top: 0; border-left: 1px dashed var(--line); text-align: left; }
  .sc-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .sc-kv dt { font-size: 12px; }
  .sc-kv dd { font-size: 13.5px; margin: 0; }
}

/* 오늘 휴게 일정 */
.bp { display: grid; }
.bp-r { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.bp-r:first-child { border-top: 0; }
.bp-t { width: 96px; flex: none; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.bp-r b { flex: 1; }
.bp-s { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bp-warn { background: var(--warn-soft); color: var(--warn); } .bp-info { background: var(--info-soft); color: var(--info); } .bp-gray { background: var(--paper); color: var(--faint); }
@media (max-width: 1100px) { .stp-grid { grid-template-columns: minmax(0, 1fr); } .stp-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
@media (max-width: 820px) {
  .pad.stp { padding: 14px 14px 32px; }
  .stp-head h2 { font-size: 18px; }
  .stt-row { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
  .stt { padding: 8px 6px; gap: 2px; text-align: center; border-radius: 12px; }
  .stt-h { flex-direction: column-reverse; gap: 2px; font-size: 11.5px; }
  .stt-h b { font-size: 20px; }
  .stt-f { display: none; }
  .stp-side { grid-template-columns: minmax(0, 1fr); }
  .sr { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .sr-line { grid-column: 1 / -1; order: 3; }
  .sr-d { grid-column: 1 / -1; order: 4; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .sr-d small { display: inline; }
}

/* 메뉴 구성 편집 */
.menu-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.menu-ed .card:nth-child(3) { grid-column: 1 / -1; }
.ed-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.ed-row:first-of-type { border-top: 0; }
.ed-row .input { padding: 7px 10px; min-width: 0; flex: 1; }
.ed-row .input:disabled { opacity: .5; }
.ed-row .ed-ic { flex: 0 0 52px; text-align: center; font-size: 17px; padding: 5px; }
.ed-row .ed-short { flex: 0 0 84px; }
.ed-row .ed-wide { flex: 2; }
.ed-row .ed-grp { flex: 0 0 120px; }
.ed-row .grow { flex: 1; }
.ed-tag { font-size: 13.5px; font-weight: 600; min-width: 92px; }
.ed-chk { display: flex; gap: 4px; align-items: center; font-size: 13px; white-space: nowrap; }
.mv { display: inline-flex; flex: none; }
.mv .icon-btn { width: 28px; height: 30px; font-size: 14px; color: var(--muted); }
.mv .icon-btn:disabled { opacity: .25; cursor: default; }
.mv .icon-btn:not(:disabled):hover { color: var(--text); }

/* 월간 근무표 — 배경 없이 점 · 이름 · 시간만, 빠진 근무만 빨갛게 */
.topbar .mode-seg { margin-left: 8px; }
.topbar .mode-seg button { padding: 5px 12px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cal-h { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.cal-h.we { color: var(--danger); }
.cal-day { min-height: 128px; padding: 8px 8px 10px; cursor: pointer; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); transition: background .12s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.we { background: color-mix(in srgb, var(--paper) 45%, var(--panel)); }
.cal-day:hover { background: color-mix(in srgb, var(--accent-soft) 35%, var(--panel)); }
.cal-day.out { background: var(--bg); }
.cal-day.out .cal-num .n { color: var(--faint); font-weight: 500; }
.cal-day.sel { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent-soft) 30%, var(--panel)); }
.cal-num { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cal-num .n { font-size: 14px; font-weight: 800; color: var(--text); width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; }
.cal-day.we .cal-num .n { color: var(--danger); }
.cal-day.today .cal-num .n { background: var(--pri); color: var(--pri-fg); }
.cal-num small { font-size: 11.5px; color: var(--faint); font-weight: 600; margin-left: auto; }
.cal-num small.off-cnt { margin-left: 0; color: var(--danger); font-weight: 800; }
.cal-num small + small.off-cnt { margin-left: 4px; }
.cal-list { display: grid; gap: 2px; }
.cal-sh { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; font-size: 12.5px; line-height: 1.5; padding: 1px 4px; border-radius: 6px; color: var(--text); white-space: nowrap; overflow: hidden; }
.cal-sh:hover { background: var(--paper); }
.cal-sh b { font-weight: 600; }
.cal-sh .tm { color: var(--muted); font-size: 11.5px; margin-left: auto; font-variant-numeric: tabular-nums; }
.cal-sh .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #8c5f48; }
.cal-sh.cafe .dot { background: #c9a066; }
.cal-sh.add .dot { background: var(--ok); }
.cal-sh.add b::after { content: ' ＋'; color: var(--ok); font-weight: 800; }
.cal-sh.off { background: var(--danger-soft); color: var(--danger); margin-top: 3px; }
.cal-sh.off b { text-decoration: line-through; font-weight: 700; }
.cal-sh.off .off-tag { font-size: 10px; padding: 0 6px; margin-right: 0; }

/* 공유 메모 편집기 (Quill) */
.doc-toolbar.ql-toolbar.ql-snow { position: sticky; top: 0; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 6px 8px; font-family: var(--sans); }
.doc-toolbar .ql-formats { margin-right: 8px !important; }
.doc-toolbar button.tb-txt { font-size: 15px; line-height: 1; width: 30px; color: var(--text); }
.doc-toolbar .ql-picker { color: var(--text); }
.doc-toolbar .ql-picker.ql-header { width: 104px; }
.doc-toolbar .ql-picker.ql-header .ql-picker-label::before, .doc-toolbar .ql-picker.ql-header .ql-picker-item::before { content: '본문'; }
.doc-toolbar .ql-picker.ql-header [data-value="1"]::before { content: '큰 제목' !important; }
.doc-toolbar .ql-picker.ql-header [data-value="2"]::before { content: '중간 제목' !important; }
.doc-toolbar .ql-picker.ql-header [data-value="3"]::before { content: '작은 제목' !important; }
.doc-toolbar .ql-picker-options { background: var(--panel); border-color: var(--line) !important; border-radius: 10px; box-shadow: var(--shadow); }
.ql-snow .ql-stroke { stroke: var(--text); }
.ql-snow .ql-fill { fill: var(--text); }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--accent); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--accent); }
.ql-snow.ql-toolbar button.ql-active, .ql-snow.ql-toolbar button:hover { color: var(--accent); background: var(--accent-soft); border-radius: 6px; }
.doc-editor.ql-container.ql-snow { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--panel); font-family: var(--sans); font-size: 15.5px; min-height: 55vh; }
.doc-editor.ro.ql-container.ql-snow { border-top: 1px solid var(--line); border-radius: 12px; min-height: 0; }
.doc-editor .ql-editor { line-height: 1.75; padding: 20px 24px 60px; color: var(--text); }
.doc-editor.ro .ql-editor { padding: 12px 16px; }
.doc-editor .ql-editor.ql-blank::before { color: var(--faint); font-style: normal; left: 24px; right: 24px; }
.doc-editor .ql-editor h1 { font-size: 24px; font-weight: 800; margin: .8em 0 .3em; }
.doc-editor .ql-editor h2 { font-size: 20px; font-weight: 800; margin: .8em 0 .3em; }
.doc-editor .ql-editor h3 { font-size: 17px; font-weight: 700; margin: .7em 0 .2em; }
.doc-editor .ql-editor blockquote { border-left: 4px solid var(--gold) !important; background: var(--paper); padding: 8px 14px !important; border-radius: 0 10px 10px 0; margin: 8px 0; }
.doc-editor .ql-editor img { max-width: 100%; max-height: 480px; width: auto; border-radius: 10px; margin: 6px 0; }
.doc-editor .ql-editor a { color: var(--accent); }
.doc-editor .ql-editor table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.doc-editor .ql-editor td { border: 1px solid var(--line-2); padding: 6px 10px; min-width: 60px; }
.doc-editor .ql-editor li[data-list="checked"] { color: var(--muted); text-decoration: line-through; }
.doc-editor .ql-editor li[data-list=checked] > .ql-ui, .doc-editor .ql-editor li[data-list=unchecked] > .ql-ui { cursor: pointer; }
.ql-snow .ql-tooltip { z-index: 20; border-radius: 10px; box-shadow: var(--shadow); background: var(--panel); color: var(--text); border-color: var(--line); }
.ql-snow .ql-tooltip input[type=text] { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.link-btn { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* 공유 메모 */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 24px 24px 60px; }
.doc-title { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.doc-title .emo { font-size: 30px; width: 46px; height: 46px; border-radius: 10px; }
.doc-title .emo:hover { background: var(--paper); }
.doc-title input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 26px; font-weight: 800; letter-spacing: -.02em; min-width: 0; }
.doc-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.doc-edit { width: 100%; min-height: 60vh; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--panel); outline: none; resize: vertical; line-height: 1.7; font-size: 15px; }
.doc-edit:focus { border-color: var(--accent); }
.md h1, .md h2, .md h3 { font-weight: 800; margin: 1.2em 0 .4em; }
.md h2 { font-size: 20px; } .md h3 { font-size: 17px; }
.md p { margin: .4em 0; }
.md ul { padding-left: 1.3em; margin: .3em 0; }
.md li.chk { list-style: none; margin-left: -1.3em; }
.md li.chk label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.md li.chk input { margin-top: 5px; accent-color: var(--accent); }
.md li.chk.done span { color: var(--muted); text-decoration: line-through; }
.md blockquote { margin: .6em 0; padding: 8px 14px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 8px 8px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); }
.md-view { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 22px 18px; min-height: 40vh; }

/* 하단 탭 (휴대폰) */
.tabbar { display: none; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 1100px) {
  .panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 80; box-shadow: var(--shadow); max-width: 100vw; }
}
@media (max-width: 820px) {
  body { font-size: 15.5px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .app.show-side .side { display: flex; }
  .app.show-side .main { display: none; }
  .main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .in-chat .main { padding-bottom: 0; }
  .in-chat .tabbar { display: none !important; }
  .topbar { padding: 0 10px; height: 56px; }
  .topbar .back { display: inline-grid; }
  .topbar .topic { display: none; }
  .panel { width: 100vw; border-left: 0; }
  .pad, .pad.home { padding: 16px 16px 32px; }
  .msg { padding: 6px 14px; grid-template-columns: 34px minmax(0, 1fr); }
  .sys-line { padding-left: 58px; }
  .actions { right: 8px; }
  .msgs .more-btn { display: none !important; }
  .msgs .body, .msgs .files img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .bline { max-width: 86%; }
  .more-btn { display: inline-grid; position: absolute; right: 6px; top: 4px; width: 30px; height: 28px; color: var(--faint); border-radius: 8px; place-items: center; }
  .msg:hover .actions { display: none; }
  .actions.show { display: flex !important; }
  .composer-wrap { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
    .qty-row { grid-template-columns: minmax(0, 1fr); }
  .ph-sec .files img { max-height: 96px; max-width: 120px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .shift-scroll { display: none; }
  .topbar .mode-seg { margin-left: 2px; }
  .topbar .mode-seg button { padding: 5px 9px; font-size: 13px; white-space: nowrap; }
  .topbar .mode-seg { flex: none; display: flex; }
  .week-nav { flex-wrap: nowrap; gap: 6px; }
  .week-nav .lbl { min-width: 0; flex: 1; font-size: 15px; white-space: nowrap; }
  .week-nav .btn { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
  .topbar .btn.sm { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
  .topbar h1 { flex: 0 1 auto; }
  .menu-ed { grid-template-columns: minmax(0, 1fr); }
  .hero { border-radius: 18px; }
  .hero-in { padding: 20px 18px 14px; }
  .hero-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-bottom { flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 12px; }
  .hb-who { max-width: none; }
  .hb-who .hb-txt:has(.brk-pill) > b { display: none; }
  .hb-who .hb-txt:has(.brk-pill) > .brk-pill { margin-left: 0; }
  .hero-title { font-size: 21px; }
  .hero-sub { font-size: 13px; margin-top: 6px; }
  .hero-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .ring { flex-direction: row-reverse; }
  .ring-t { text-align: left; }
  .ring svg { width: 48px; height: 48px; }
  .hero-new { padding: 10px 14px; }
  .st-m { padding: 11px 4px; text-align: center; }
  .st-m b { font-size: 19px; }
  .st-m b small { font-size: 11px; }
  .st-m > span { font-size: 11px; letter-spacing: -.03em; white-space: nowrap; }
  .st-m em { display: none; }
  .tb-lbl, .tb-off { font-size: 10.5px; letter-spacing: 0; }
  .home .sec-h { flex-wrap: wrap; }
  .htabs { margin-left: 0; width: 100%; display: flex; }
  .htabs button { flex: 1 1 auto; padding: 6px 4px; font-size: 12px; white-space: nowrap; letter-spacing: -.03em; }
  .htabs .ht-n { min-width: 16px; padding: 0 4px; font-size: 10.5px; }
  .tl2 { --nmw: 58px; }
  .tl2-hours span:not(:nth-child(3n+1)) { display: none; }
  .tl2-hours span:nth-child(3n+1) { display: block !important; }
  .tl2-biz { font-size: 10px; letter-spacing: 0; }
  .tl2-row .nm { font-size: 13px; }
  .tl2-legend { padding-left: 0; gap: 10px; }
  .side-search kbd { display: none; }
  .dash-head { margin-bottom: 14px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .qa { padding: 12px 8px; font-size: 13.5px; gap: 6px; flex-direction: column; align-items: center; text-align: center; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .kpi { padding: 13px 14px; }
  .kpi-n { font-size: 26px; margin-top: 4px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sec { padding: 16px; }
  .tl-row, .tl-axis { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .tl-hours span:nth-child(even) { display: none; }
  .tl-legend { padding-left: 0; gap: 10px; }
  .hello { font-size: 21px; }
  .tb-bell { display: inline-flex; margin-left: auto; }
  .action-bar { padding: 6px 10px 2px; gap: 6px; }
  .act-btn { padding: 9px 13px; font-size: 14px; }
  .chat-search { padding: 6px 10px; }
  .cs-bar { flex-wrap: wrap; }
  .cs-bar #csQ { flex-basis: calc(100% - 30px); }
  .cs-bar #csDate { width: auto; flex: 1; }
  .cs-results { left: 6px; right: 6px; }
  .ed-row { flex-wrap: wrap; }
  .ed-row .ed-wide { flex-basis: 100%; order: 9; }
  .cal-day { min-height: 84px; padding: 4px 2px 6px; }
  .cal-num { margin-bottom: 3px; }
  .cal-num .n { width: 22px; height: 22px; font-size: 12.5px; }
  .cal-num small { display: none; }
  .cal-num small.off-cnt { display: inline; font-size: 10px; }
  .cal-sh { font-size: 10.5px; padding: 0 2px; gap: 3px; }
  .cal-sh .tm { display: none; }
  .cal-sh .dot { width: 5px; height: 5px; }
  .cal-sh.off .off-tag { display: none; }
  .day-cards { display: grid; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar button { flex: 1; height: 60px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--muted); position: relative; }
  .tabbar button .ti { font-size: 20px; line-height: 1; }
  .tabbar button.on { color: var(--text); font-weight: 700; }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); font-size: 10px; min-width: 17px; height: 17px; }
  .modal-back { align-items: end; padding: 0; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .doc-wrap { padding: 16px 16px 40px; }
  .doc-title input { font-size: 22px; }
  .doc-toolbar.ql-toolbar.ql-snow { display: flex; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .doc-toolbar .ql-formats { flex: none; }
  .doc-editor .ql-editor { padding: 16px 16px 60px; }
  .hide-m { display: none !important; }
}

/* 공유 메모: 읽기 화면 */
.doc-wrap.reading .doc-toolbar, .doc-wrap.reading .doc-hint { display: none; }
.doc-wrap.reading .doc-editor.ql-container.ql-snow { border: 1px solid var(--line); border-radius: 14px; min-height: 0; box-shadow: 0 1px 3px rgba(59, 48, 46, .04); }
.doc-wrap.reading .doc-editor .ql-editor { padding-bottom: 28px; }
.doc-wrap.reading .doc-editor .ql-editor { cursor: default; }
.doc-wrap.reading .doc-title .emo { pointer-events: none; }
.doc-wrap.reading .doc-editor .ql-editor.ql-blank::before { content: '아직 내용이 없어요. 위의 ✏️ 편집을 눌러 써 보세요.'; }
@media (max-width: 820px) {
  .topbar .doc-edit-btn { padding: 6px 12px; white-space: nowrap; }
  .topbar .doc-hist span { display: none; }
  .topbar .doc-hist { padding: 6px 8px; }
}

/* 관리자: 백업 안전 점검 */
.bk-rows { display: grid; gap: 4px; }
.bk-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bk-row:first-child { border-top: 0; padding-top: 2px; }
.bk-row .bk-ic { font-size: 18px; width: 26px; text-align: center; flex: none; }
.bk-row b { font-size: 14px; }
.bk-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.5; }
.bk-row.bad b { color: var(--danger); }
.bk-bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin-top: 6px; max-width: 420px; }
.bk-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.bk-row.bad .bk-bar i { background: var(--danger); }
.bk-fail span { display: block; overflow-wrap: anywhere; } /* 드라이브에 아직 못 올린 파일 목록 */

/* 근무 시간 수정 · 지각 */
.late-pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); white-space: nowrap; }
.sc-top .late-pill { margin-left: auto; margin-right: 6px; }
.sc-top .late-pill + .st-pill { margin-left: 0; }
.sc-edit { margin-left: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); white-space: nowrap; }
.sc-edit:hover { color: var(--text); border-color: var(--line-2); }
s.orig { color: var(--faint); font-size: .85em; font-weight: 400; }
.et-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
@media (max-width: 820px) { .sc-edit span { display: none; } .sc-edit { padding: 4px 7px; } }

.wk-closed { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--danger); margin-top: 1px; }

/* 보안: 로그인된 기기 */
.sess-list { display: grid; }
.sess-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sess-row:first-child { border-top: 0; }
.sess-ic { font-size: 22px; }
.sess-row b { font-size: 14px; }
.sess-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sec-toggle { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.sec-toggle input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pri); }
.sec-toggle b { display: block; font-size: 14px; }
.sec-toggle small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 화면 위 알림 배너 */
.nbs { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 20px; z-index: 210; display: grid; gap: 10px; width: 380px; pointer-events: none; }
.nb { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--pri); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(40, 28, 24, .18), 0 2px 6px rgba(40, 28, 24, .08); cursor: pointer; animation: nbIn .28s cubic-bezier(.2, .9, .3, 1.2); transition: opacity .2s, transform .2s; }
.nb.out { opacity: 0; transform: translateY(-12px); }
.nb-at { border-left-color: var(--gold); }
.nb-notice { border-left-color: var(--danger); }
.nb-av .avatar { width: 44px; height: 44px; font-size: 14px; }
.nb-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); font-size: 20px; }
.nb-main { flex: 1; min-width: 0; }
.nb-top { display: flex; align-items: center; gap: 6px; }
.nb-top b { font-size: 15.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 20%, var(--panel)); color: var(--accent-text); white-space: nowrap; }
.nb-notice .nb-tag { background: var(--danger-soft); color: var(--danger); }
.nb-n { margin-left: auto; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--pri); color: var(--pri-fg); }
.nb-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.nb-body { font-size: 14.5px; line-height: 1.45; color: var(--text); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.nb-x { flex: none; width: 26px; height: 26px; border-radius: 50%; color: var(--faint); font-size: 12px; display: grid; place-items: center; margin: -4px -4px 0 0; }
.nb-x:hover { background: var(--paper); color: var(--text); }
@keyframes nbIn { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
@media (max-width: 820px) {
  .nbs { left: 10px; right: 10px; width: auto; top: calc(8px + env(safe-area-inset-top)); }
  .nb { padding: 13px 12px 13px 14px; border-radius: 18px; }
}

/* 필독 공지 */
.must-pill { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); border: 0; cursor: pointer; }
.must-pill.sm { font-size: 11px; padding: 1px 7px; margin: 0; }
.msgs .msg.mine .must-pill { align-self: flex-end; }
.must-tg { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }
.must-tg.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.must-card { border: 1px solid var(--line); border-left: 4px solid var(--danger); border-radius: 12px; padding: 14px 16px; background: var(--panel); max-height: 50vh; overflow-y: auto; }
.must-from { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.must-from small { margin-left: auto; color: var(--faint); font-size: 12px; }
.must-body { font-size: 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
/* 예약 메시지 */
.sched-strip { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0 0 8px; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--paper); color: var(--text); font-size: 13px; text-align: left; }
.sched-strip span { margin-left: auto; color: var(--muted); font-weight: 600; }
.sched-strip[hidden] { display: none; }
.sch-prev { padding: 10px 14px; border-radius: 10px; background: var(--paper); font-size: 14px; margin-bottom: 12px; }
.sch-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sch-quick .chip.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.sch-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.sch-row:first-child { border-top: 0; }
.sch-body { font-size: 13px; color: var(--muted); margin-top: 3px; }
/* PC: 화면 위 알림을 더 크고 잘 보이게 */
@media (min-width: 821px) {
  .nbs { width: min(640px, calc(100vw - 48px)); top: 18px; right: 24px; gap: 12px; }
  .nb { padding: 18px 18px 18px 20px; gap: 16px; border-radius: 18px; border-left-width: 6px; box-shadow: 0 18px 44px rgba(40, 28, 24, .24), 0 3px 8px rgba(40, 28, 24, .1); }
  .nb-av .avatar, .nb-ic { width: 56px; height: 56px; font-size: 17px; }
  .nb-top b { font-size: 18px; }
  .nb-tag, .nb-n { font-size: 13px; padding: 3px 10px; }
  .nb-sub { font-size: 14px; margin-top: 2px; }
  .nb-body { font-size: 16.5px; line-height: 1.5; margin-top: 7px; }
  .nb-x { width: 30px; height: 30px; font-size: 14px; }
}

/* 채팅 화면: 대화 + (넓은 PC) 오른쪽 대화 정보 */
.chat-col { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.chat-info { display: none; }
@media (min-width: 1280px) {
  .chat-info { display: block; width: var(--info-w, 300px); flex: none; border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding: 18px 18px 28px; box-sizing: border-box; }
  .app:has(#panel:not([hidden])) .chat-info { display: none; }
}
@media (min-width: 1600px) { .chat-info { width: var(--info-w, 330px); } }
.ci-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ci-emo { font-size: 28px; line-height: 1; }
.ci-head b { font-size: 17px; font-weight: 800; display: block; }
.ci-head small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.ci-prof { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.ci-prof .avatar { width: 72px; height: 72px; font-size: 20px; margin-bottom: 6px; }
.ci-prof b { font-size: 18px; font-weight: 800; }
.ci-prof small { font-size: 13px; color: var(--muted); }
.ci-prof-st { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; margin-top: 6px; }
.ci-sub { font-size: 13px; color: var(--muted); }
.ci-sec { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.ci-sec:last-child { border-bottom: 0; }
.ci-sec h4 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.ci-sec h4 span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--paper); padding: 1px 8px; border-radius: 999px; }
.ci-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border-radius: 10px; text-align: left; }
.ci-person:hover, .ci-item:hover { background: var(--paper); }
.ci-pn { flex: 1; font-size: 14px; font-weight: 600; }
.ci-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.ci-st.st-ok { background: var(--ok-soft); color: var(--ok); } .ci-st.st-warn { background: var(--warn-soft); color: var(--warn); } .ci-st.st-info { background: var(--info-soft); color: var(--info); } .ci-st.st-danger { background: var(--danger-soft); color: var(--danger); }
.ci-item { display: block; width: 100%; text-align: left; padding: 8px 8px; border-radius: 10px; }
.ci-it { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ci-empty { margin: 0 0 8px; font-size: 13px; color: var(--faint); }
.ci-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.ci-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }
.ci-person .avatar { width: 30px; height: 30px; font-size: 11.5px; }

/* 화면 위 알림: 상단 가운데에서 내려왔다가 다시 위로 들어가기 */
.nbs { left: 50%; right: auto; transform: translateX(-50%); }
.nb { animation: nbDrop .5s cubic-bezier(.2, .9, .25, 1.15) both; transition: transform .35s cubic-bezier(.5, 0, .75, 0), opacity .3s ease-in; }
.nb.bump { animation: nbBump .35s ease-out; }
.nb.out { animation: nbUp .34s cubic-bezier(.5, 0, .75, 0) forwards; pointer-events: none; }
@keyframes nbUp { from { transform: none; opacity: 1; } to { transform: translateY(calc(-100% - 40px)); opacity: 0; } }
@keyframes nbDrop { 0% { transform: translateY(calc(-100% - 40px)); opacity: 0; } 60% { opacity: 1; } 80% { transform: translateY(6px); } 100% { transform: none; } }
@keyframes nbBump { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
@media (max-width: 820px) { .nbs { left: 10px; right: 10px; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nb, .nb.bump { animation: fadeIn .2s; } .nb.out { animation: none; opacity: 0; } }

/* ---------- 움직이는 스티커 (더비콩) ---------- */
.stk { display: inline-grid; justify-items: center; gap: 2px; }
.stk svg { width: 132px; height: 132px; overflow: visible; }
.stk svg [class*="stk-"] { transform-box: fill-box; }
.stk-cap { font-size: 13.5px; font-weight: 900; letter-spacing: -.02em; color: var(--espresso, #3b302e); background: #fff; border: 2px solid #3b302e; border-radius: 999px; padding: 2px 12px; transform: rotate(-3deg); box-shadow: 2px 2px 0 #3b302e; }
.msgs .msg.stkmsg .bline { max-width: none; }
.msgs .msg.stkmsg .body { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.stk-hop, .stk-run, .stk-nod, .stk-strain, .stk-sway, .stk-jump, .stk-bow, .stk-pump, .stk-shake, .stk-disco { transform-origin: 50% 100%; }
.stk-hop { animation: stkHop 1s ease-in-out infinite; }
@keyframes stkHop { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(0) scale(1.08, .92); } 55% { transform: translateY(-10px) scale(.96, 1.05); } }
.stk-wave { transform-origin: 0% 100%; animation: stkWave .6s ease-in-out infinite alternate; }
.stk-wave.d2 { animation-delay: .3s; }
@keyframes stkWave { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.stk-steam { animation: stkSteam 1.4s ease-in-out infinite; }
@keyframes stkSteam { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.stk-run { animation: stkRun .35s linear infinite; }
@keyframes stkRun { 0%, 100% { transform: translateX(6px) rotate(6deg); } 50% { transform: translateX(10px) translateY(-4px) rotate(9deg); } }
.stk-speed { animation: stkSpeed .35s linear infinite; }
@keyframes stkSpeed { from { transform: translateX(6px); opacity: 1; } to { transform: translateX(-8px); opacity: .2; } }
.stk-nod { animation: stkNod 1.1s ease-in-out infinite; }
@keyframes stkNod { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 50% { transform: rotate(0) translateY(2px); } }
.stk-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: stkDraw 1.8s ease-out infinite; }
@keyframes stkDraw { 0% { stroke-dashoffset: 1; } 35%, 100% { stroke-dashoffset: 0; } }
.stk-strain { animation: stkStrain .5s ease-in-out infinite; }
@keyframes stkStrain { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(1.05, .9) rotate(2deg); } }
.stk-drip { animation: stkDrip 1s ease-in infinite; }
@keyframes stkDrip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(14px); opacity: 0; } }
.stk-sway { animation: stkSway 1.2s ease-in-out infinite; }
@keyframes stkSway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.stk-twinkle { transform-origin: center; animation: stkTwinkle 1.2s ease-in-out infinite; }
.stk-twinkle.d2 { animation-delay: .4s; } .stk-twinkle.d3 { animation-delay: .8s; }
@keyframes stkTwinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.stk-jump { animation: stkJump .7s cubic-bezier(.3, 0, .5, 1) infinite; }
@keyframes stkJump { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 50% { transform: translateY(-16px) scale(.95, 1.06); } }
.stk-confetti { animation: stkConf 1.4s linear infinite; }
@keyframes stkConf { from { transform: translateY(-6px); opacity: 1; } to { transform: translateY(14px); opacity: .1; } }
.stk-swing { transform-origin: 0% 50%; animation: stkSwing .8s ease-in-out infinite alternate; }
@keyframes stkSwing { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.stk-thumb { transform-origin: 30% 100%; animation: stkThumb .9s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes stkThumb { 0%, 60%, 100% { transform: scale(1) rotate(0); } 20% { transform: scale(1.25) rotate(-12deg); } }
.stk-bow { animation: stkBow 1.6s ease-in-out infinite; }
@keyframes stkBow { 0%, 20%, 100% { transform: rotate(0); } 45%, 70% { transform: rotate(-28deg) translateY(4px); } }
.stk-pump { animation: stkHop .6s ease-in-out infinite; }
.stk-fist { transform-origin: 0% 100%; animation: stkFist .3s ease-in-out infinite alternate; }
@keyframes stkFist { from { transform: rotate(-8deg) translateY(4px); } to { transform: rotate(6deg) translateY(-4px); } }
.stk-shake { animation: stkShake .25s linear infinite; }
@keyframes stkShake { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
.stk-tear { animation: stkTear .4s linear infinite; }
.stk-tear.d2 { animation-delay: .2s; }
@keyframes stkTear { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -12; } }
.stk-puddle { transform-origin: center; animation: stkPuddle 1.6s ease-in-out infinite alternate; }
@keyframes stkPuddle { from { transform: scaleX(.8); } to { transform: scaleX(1.1); } }
.stk-float { animation: stkFloat 1.8s ease-out infinite; }
.stk-float.d2 { animation-delay: .6s; } .stk-float.d3 { animation-delay: 1.2s; }
@keyframes stkFloat { 0% { transform: translateY(6px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-16px) scale(1.1); opacity: 0; } }
.stk-beat { transform-origin: center; animation: stkBeat .7s ease-in-out infinite; }
@keyframes stkBeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.25); } }
.stk-ball { transform-origin: 50% 0%; animation: stkBall 1.2s ease-in-out infinite alternate; }
@keyframes stkBall { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.stk-disco { animation: stkDisco .9s ease-in-out infinite; }
@keyframes stkDisco { 0%, 100% { transform: translateX(-6px) rotate(-8deg); } 50% { transform: translateX(6px) rotate(8deg) translateY(-4px); } }
/* 더비(구두) 전용 움직임 */
.stk-lace { transform-origin: 50% 100%; animation: stkLace .5s ease-in-out infinite alternate; }
@keyframes stkLace { from { transform: rotate(-12deg) scale(1, .95); } to { transform: rotate(12deg) scale(1, 1.08); } }
.stk-droop { transform-origin: 50% 100%; transform: rotate(-38deg) translate(-4px, 4px) scale(1, .8); }
.stk-tip { transform-origin: 30% 100%; animation: stkTip 1.2s ease-in-out infinite; }
@keyframes stkTip { 0%, 50%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg) translateY(-6px); } }
.stk-gloss { animation: stkGloss 1.6s ease-in-out infinite; }
@keyframes stkGloss { 0% { transform: translateX(-24px); opacity: 0; } 40% { opacity: .7; } 100% { transform: translateX(34px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stk svg * { animation: none !important; } }
/* 스티커 고르기 */
.stk-picker { width: 380px; max-width: calc(100vw - 20px); padding: 10px; }
.stk-picker h5 { margin: 2px 4px 8px; font-size: 13px; color: var(--muted); }
.stk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-height: 330px; overflow-y: auto; }
.stk-grid button { border-radius: 12px; padding: 4px 2px 6px; display: grid; justify-items: center; }
.stk-grid button:hover { background: var(--paper); }
.stk-grid svg { width: 72px; height: 72px; overflow: visible; }
.stk-grid svg [class*="stk-"] { transform-box: fill-box; }
.stk-grid small { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- 움직이는 이모지 스티커 ---------- */
.stk-art { position: relative; display: block; width: 132px; height: 120px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }
.stk-main { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; display: grid; place-items: center; font-size: 72px; }
.stk-fx { position: absolute; }
.stk-art .stk-main, .stk-art .stk-fx { transform-origin: 50% 80%; }
.stk-art .stk-wave { transform-origin: 70% 90%; animation: stkWave2 .7s ease-in-out infinite alternate; }
@keyframes stkWave2 { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
.stk-spin { animation: stkSpin 6s linear infinite; }
@keyframes stkSpin { to { transform: rotate(360deg); } }
.stk-art .stk-run { animation: stkRun2 .32s ease-in-out infinite; }
@keyframes stkRun2 { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.stk-puff { animation: stkPuff .7s ease-out infinite; }
@keyframes stkPuff { from { transform: translateX(10px) scale(.6); opacity: 1; } to { transform: translateX(-12px) scale(1.2); opacity: 0; } }
.stk-pop { animation: stkPop 1.4s cubic-bezier(.3, 1.8, .5, 1) infinite; }
@keyframes stkPop { 0% { transform: scale(0); } 25%, 80% { transform: scale(1); } 100% { transform: scale(0); } }
.stk-slide { animation: stkSlide 2s ease-in-out infinite; }
@keyframes stkSlide { 0% { transform: translateX(30px); opacity: 0; } 30%, 70% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-30px); opacity: 0; } }
.stk-fall { animation: stkFall 1.4s linear infinite; }
@keyframes stkFall { from { transform: translateY(-6px) rotate(0); opacity: 1; } to { transform: translateY(70px) rotate(200deg); opacity: 0; } }
.stk-flicker { animation: stkFlicker .5s ease-in-out infinite alternate; }
@keyframes stkFlicker { from { transform: scale(.85) rotate(-6deg); } to { transform: scale(1.15) rotate(6deg); } }
.stk-drop { animation: stkDrop .9s ease-in infinite; }
@keyframes stkDrop { from { transform: translateY(0) scale(.7); opacity: 1; } to { transform: translateY(40px) scale(1); opacity: 0; } }
.stk-art .stk-bow { transform-origin: 50% 90%; }
.stk-art .stk-thumb { transform-origin: 50% 90%; }
.stk-art .stk-swing { transform-origin: 50% 0%; }
.stk-grid .stk-art { zoom: .58; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .stk-art * { animation: none !important; } }
.stk-grid button { overflow: hidden; }

/* 입력 중: 채팅창 맨 아래에 상대 말풍선처럼 크게 (레이아웃이 밀리지 않게 입력창 위에 떠 있음) */
.composer-wrap { position: relative; }
.composer-wrap > .typing { position: absolute; left: 18px; bottom: 100%; min-height: 0; padding: 0 0 8px; pointer-events: none; z-index: 3; }
.panel .composer-wrap > .typing { left: 14px; }
.ty-row { display: flex; align-items: flex-end; gap: 8px; animation: tyIn .22s ease; }
.ty-avs { display: flex; }
.ty-avs .avatar { width: 32px; height: 32px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
.ty-avs .avatar + .avatar { margin-left: -10px; }
.ty-col { display: grid; gap: 3px; }
.ty-name { font-size: 12px; font-weight: 700; color: var(--muted); text-shadow: 0 0 6px var(--bg); }
.ty-bub { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 4px 18px 18px 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(40, 28, 24, .1); width: fit-content; }
.ty-dots.big { gap: 5px; }
.ty-dots.big i { width: 8px; height: 8px; background: var(--muted); animation: tyDotBig 1.1s infinite ease-in-out; }
.ty-dots.big i:nth-child(2) { animation-delay: .15s; } .ty-dots.big i:nth-child(3) { animation-delay: .3s; }
@keyframes tyDotBig { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }
@media (min-width: 821px) { .composer-wrap > .typing { left: 28px; } }

/* ===== 처음 로그인 안내 (온보딩) ===== */
.ob-back { position: fixed; inset: 0; z-index: 95; background: rgba(30, 22, 20, .55); display: grid; place-items: center; padding: 20px; animation: obFade .2s ease; }
.ob-back.out { animation: obFade .2s ease reverse forwards; }
.ob { width: min(920px, 100%); height: min(720px, calc(100dvh - 40px)); background: var(--panel); color: var(--text); border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; animation: obUp .3s cubic-bezier(.2,.9,.3,1.1); }
.ob-hero { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 22px 26px 18px; background: linear-gradient(135deg, #3b302e, #8c5f48); color: #fbf3ec; }
.ob-hero > div { flex: 1; min-width: 0; }
.ob-hero small { opacity: .75; font-size: 12.5px; letter-spacing: .02em; }
.ob-hero h2 { margin: 4px 0 4px; font-size: 22px; }
.ob-hero p { margin: 0; opacity: .85; font-size: 14px; }
.ob-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: inherit; font-size: 15px; cursor: pointer; }
.ob-x:hover { background: rgba(255,255,255,.28); }
.ob-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.ob-nav { border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.ob-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.ob-nav button span { width: 22px; text-align: center; }
.ob-nav button:hover { background: var(--line); }
.ob-nav button.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.ob-body { overflow-y: auto; padding: 22px 26px; }
.ob-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; }
.ob-sec h3 small { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ob-lead { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.ob-items { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ob-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ob-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font-size: 19px; font-weight: 700; }
.ob-item b { font-size: 15px; }
.ob-item p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.ob-item p b { font-size: inherit; color: var(--text); }
.ob-item .btn { margin-top: 8px; }
.ob-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.ob-foot { flex: none; display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.ob-opt { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ob-opt:hover { background: var(--line); color: var(--text); }
.ob-left { margin-left: auto; font-size: 12.5px; color: var(--faint); }
@keyframes obFade { from { opacity: 0; } }
@keyframes obUp { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@media (max-width: 820px) {
  .ob-back { padding: 0; place-items: end stretch; }
  .ob { width: 100%; height: 100dvh; border-radius: 0; }
  .ob-hero { padding: calc(14px + env(safe-area-inset-top)) 18px 14px; }
  .ob-hero h2 { font-size: 19px; }
  .ob-hero p { font-size: 13px; }
  .ob-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .ob-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; scrollbar-width: none; }
  .ob-nav::-webkit-scrollbar { display: none; }
  .ob-nav button { flex: none; padding: 8px 12px; font-size: 13.5px; white-space: nowrap; gap: 6px; }
  .ob-nav button span { width: auto; }
  .ob-body { padding: 16px; }
  .ob-sec h3 { font-size: 18px; }
  .ob-items { grid-template-columns: minmax(0, 1fr); }
  .ob-foot { flex-wrap: wrap; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .ob-opt { font-size: 13px; padding: 8px 6px; }
  .ob-left { display: none; }
  .ob-foot .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .ob-back, .ob { animation: none; } }
/* 시작일 ~ 종료일 고르기 */
.rg-info { margin: -2px 0 12px; color: var(--accent-text); }
.rg-scope { display: flex; width: 100%; }
.rg-scope button { flex: 1; }
/* ✍️ 내가 한 일 */
.self-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--ok-soft); color: var(--ok, #3f7a4f); font-size: 11.5px; font-weight: 600; }
.self-add { display: grid; gap: 2px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; text-align: left; color: var(--accent-text); font-weight: 600; font-size: 14px; background: none; cursor: pointer; }
.self-add small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.self-add:hover { background: var(--paper); border-color: var(--accent); }
.wl-day { margin-bottom: 12px; }
.wl-day h3 { margin-bottom: 6px; }
.wl-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px; border-top: 1px solid var(--line); }
.wl-row:first-of-type { border-top: 0; }
.wl-row[data-tedit], .wl-row[data-open-mid]:not([data-open-mid=""]) { cursor: pointer; }
.wl-row[data-tedit]:hover, .wl-row[data-open-mid]:not([data-open-mid=""]):hover { background: var(--paper); border-radius: 8px; }
.wl-body { white-space: pre-line; font-size: 14.5px; line-height: 1.5; }
.wl-row small { color: var(--muted); font-size: 12.5px; }
.rec-filter .seg { flex: none; }
.rec-filter.wl-filter { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 820px) {
  .rec-filter.wl-filter { grid-template-columns: minmax(0, 1fr); }
  .wl-filter .seg { display: flex; }
  .wl-filter .seg button { flex: 1; }
}

/* ===== 화면 둘러보기 (투어) ===== */
#tour { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.tour-block { position: absolute; inset: 0; pointer-events: auto; }
.tour-spot { position: absolute; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(26, 18, 16, .58), 0 0 0 3px #f2c48d inset; transition: left .45s cubic-bezier(.3,.8,.3,1), top .45s cubic-bezier(.3,.8,.3,1), width .45s cubic-bezier(.3,.8,.3,1), height .45s cubic-bezier(.3,.8,.3,1); animation: tourGlow 1.6s ease-in-out infinite; }
@keyframes tourGlow { 50% { box-shadow: 0 0 0 9999px rgba(26, 18, 16, .58), 0 0 0 5px #f2c48d inset, 0 0 22px 6px rgba(242, 196, 141, .55); } }
.tour-cur { position: absolute; z-index: 2; opacity: 0; transition: left .7s cubic-bezier(.45,.05,.3,1), top .7s cubic-bezier(.45,.05,.3,1), opacity .3s; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.tour-cur.on { opacity: 1; }
.tour-cur svg { display: block; transform: translate(-4px, -2px); transition: transform .15s; }
.tour-cur.tap svg { animation: tourClick .3s ease; }
@keyframes tourClick { 50% { transform: translate(-4px, -2px) scale(.8); } }
.tour-cur::after { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #f2c48d; opacity: 0; }
.tour-cur.tap::after { animation: tourRipple .6s ease-out; }
@keyframes tourRipple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
.tour-cur.touch i { display: block; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(140, 95, 72, .6); transition: transform .2s; }
.tour-cur.touch.tap i { animation: tourTouch .35s ease; }
@keyframes tourTouch { 50% { transform: scale(.7); background: rgba(242, 196, 141, .85); } }
.tour-cur.touch.hold i { transform: scale(.75); background: rgba(242, 196, 141, .85); transition: transform .6s; }
.tour-cur.hold::after { animation: tourRipple .7s ease-out infinite; }
.tour-bub { position: absolute; z-index: 3; pointer-events: auto; width: 360px; max-width: calc(100vw - 24px); background: var(--panel); color: var(--text); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: left .45s cubic-bezier(.3,.8,.3,1), top .45s cubic-bezier(.3,.8,.3,1); }
.tour-bub.mid { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tb-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.tb-sec { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.tb-n { color: var(--muted); margin-left: auto; }
.tb-x { border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 2px 4px; }
.tour-bub h4 { margin: 10px 0 4px; font-size: 17px; }
.tour-bub p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tour-bub p b { color: var(--text); }
.tb-bar { height: 4px; border-radius: 4px; background: var(--line); margin: 12px 0 10px; overflow: hidden; }
.tb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.tb-btns { display: flex; gap: 6px; justify-content: space-between; }
.tb-btns [data-tr] { margin-left: auto; }
.tour-bub.busy [data-tr] { opacity: .45; }
.msg.tour-hover .actions { display: flex !important; }
/* 사용 안내 창의 둘러보기 버튼 */
.ob-tour { margin-top: 12px; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 0; background: #f2c48d; color: #2a2220; font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); animation: obPulse 2.2s ease-in-out infinite; }
.ob-tour small { font-weight: 500; font-size: 12px; opacity: .75; }
@keyframes obPulse { 50% { box-shadow: 0 4px 14px rgba(0,0,0,.2), 0 0 0 6px rgba(242, 196, 141, .35); } }
.ob-play { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 700; }
@media (max-width: 820px) { .ob-tour small { display: none; } .tour-bub { padding: 12px 14px 10px; } .tour-bub h4 { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .ob-tour { animation: none; } }
/* 위탁 폼 연동 */
.hook-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.75; font-size: 14px; }
.hook-steps code, .modal code { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 12.5px; }
/* 알림 받는 시간 */
.qt-opts { display: grid; gap: 8px; }
.qt-opt { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: var(--text); }
.qt-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.qt-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.qt-opt.on b::after { content: '  ✓'; color: var(--accent-text); }
/* 할 일 분류 · 하나씩 담기 · 직원별 */
.cat-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.cat-chip.none { background: var(--line); color: var(--muted); font-weight: 500; }
.tf-parts { display: flex; margin-bottom: 8px; }
.tf-parts button { flex: 1; }
.tf-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-add { display: flex; gap: 6px; align-items: center; }
.tf-add .input { flex: 1; min-width: 0; }
.tf-cur { flex: none; }
.tf-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: tf; }
.tf-list li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14px; animation: tfIn .25s ease; }
.tf-list li:not(.empty-li)::before { counter-increment: tf; content: counter(tf); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--pri); color: var(--pri-fg); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.tf-list li .icon-btn { width: 28px; height: 28px; }
.tf-list .empty-li { color: var(--muted); border-style: dashed; justify-content: center; font-size: 13px; background: none; }
@keyframes tfIn { from { opacity: 0; transform: translateY(-6px); } }
.tf-who { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-p { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: var(--text); }
.tf-p small { color: var(--muted); font-size: 11.5px; }
.tf-p.on { border-color: var(--accent); background: var(--accent-soft); }
.self-tag.given { background: var(--warn-soft); color: var(--text); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.team-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.tc-top { display: flex; align-items: center; gap: 10px; }
.tc-top small { display: block; color: var(--muted); font-size: 12px; }
.tc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tc-stats span { display: grid; justify-items: center; padding: 6px 4px; border-radius: 10px; background: var(--paper); font-size: 11.5px; color: var(--muted); }
.tc-stats b { font-size: 18px; color: var(--text); }
.tc-stats .bad b { color: var(--danger); }
.tc-stats .ok b { color: var(--ok); }
.tc-list { display: grid; gap: 4px; }
.tc-row { display: flex; gap: 6px; align-items: center; font-size: 13.5px; padding: 4px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.tc-row input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.tc-row small { color: var(--muted); white-space: nowrap; }
.tc-row small.late { color: var(--danger); font-weight: 700; }
.wl-cats { margin: -4px 0 10px; }
/* ===== 📢 공지 카드 ===== */
.msg.notice-msg { display: block; padding: 10px 20px; }
.notice-card { max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 14px; box-shadow: 0 2px 10px rgba(60, 40, 30, .06); position: relative; overflow: hidden; }
.notice-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.notice-card.must::before { background: var(--danger); }
.notice-card.todo { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 10%, transparent), 0 2px 10px rgba(60, 40, 30, .06); }
.nc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.nc-tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); letter-spacing: .02em; }
.must .nc-tag { background: var(--danger-soft); color: var(--danger); }
.nc-new { font-size: 11.5px; font-weight: 800; color: #fff; background: var(--danger); padding: 2px 8px; border-radius: 999px; animation: ncPulse 1.8s ease-in-out infinite; }
@keyframes ncPulse { 50% { opacity: .55; } }
.nc-head time { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.nc-title { margin: 0 0 8px; font-size: 19px; line-height: 1.4; letter-spacing: -.01em; }
.nc-title p { margin: 0; }
.nc-body { font-size: 15px; line-height: 1.7; padding: 12px 14px; background: var(--paper); border-radius: 12px; }
.nc-files { margin-top: 10px; }
.nc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.nc-author { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.nc-stat { display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.nc-stat:hover { background: var(--paper); }
.nc-stat b { color: var(--text); }
.nc-bar { width: 90px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.nc-bar i { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .4s; }
.nc-ack { margin-left: auto; border: 0; border-radius: 999px; padding: 9px 18px; background: var(--pri); color: var(--pri-fg); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.nc-ack:hover { background: var(--pri-hover); }
.nc-ack.done { background: var(--ok-soft); color: var(--ok); cursor: default; font-weight: 700; }
.nc-sub { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.nt-must { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); cursor: pointer; }
.nt-must input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--danger); }
.nt-must span { display: grid; gap: 2px; font-size: 14px; }
.nt-must small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 820px) {
  .msg.notice-msg { padding: 8px 12px; }
  .notice-card { padding: 14px 14px 12px; border-radius: 16px; }
  .nc-title { font-size: 17px; }
  .nc-ack { width: 100%; margin-left: 0; padding: 11px; }
  .nc-head time { margin-left: 0; width: 100%; }
}
/* ===== 📌 전달 메모 카드 ===== */
.rec-card.memo-card { max-width: 560px; padding: 14px 16px; border-left: 5px solid #e0a43a; background: var(--panel); }
.memo-card.mm-done { border-left-color: var(--ok); }
.memo-card.mm-me { box-shadow: 0 0 0 3px rgba(224, 164, 58, .22); }
.mm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mm-tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: #fbedd3; color: #8a5a10; }
.mm-st { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--muted); }
.mm-st.ok { background: var(--ok-soft); color: var(--ok); }
.mm-head time { margin-left: auto; font-size: 12px; color: var(--muted); }
.mm-title { font-size: 16.5px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.mm-grid { display: grid; grid-template-columns: 70px minmax(0, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.mm-grid dt, .mm-grid dd { margin: 0; padding: 8px 10px; border-top: 1px solid var(--line); }
.mm-grid dt:first-of-type, .mm-grid dt:first-of-type + dd { border-top: 0; }
.mm-grid dt { background: var(--paper); color: var(--muted); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; }
.mm-note { white-space: pre-line; line-height: 1.6; }
.mm-by { display: flex; align-items: center; gap: 6px; }
.mm-who { display: flex; flex-wrap: wrap; gap: 5px; }
.mm-p { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--muted); font-weight: 600; }
.mm-p.ok { background: var(--ok-soft); color: var(--ok); }
.mm-ack { margin: 10px 0 0 !important; width: 100%; }
.mm-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; cursor: pointer; }
.mm-file span { font-weight: 700; color: var(--accent-text); }
.mm-auto { margin-bottom: 0; padding: 8px 12px; background: var(--paper); border-radius: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mm-tag { background: #4a3a1e; color: #f0c77a; } }
:root[data-theme="dark"] .mm-tag { background: #4a3a1e; color: #f0c77a; }
.gd-card.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.gd-card.bad { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.dom-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.dom-f label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; flex: 1 1 200px; min-width: 0; }
@media (max-width: 820px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .team-card { padding: 12px; gap: 8px; }
  .tc-stats span { padding: 4px; }
  .tc-stats b { font-size: 16px; }
}
/* 🌐 온라인 사전접수 위탁 카드 */
.pre-badge { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e3eefb; color: #2d5a8c; }
.pre-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pre-badge { background: #22364d; color: #9cc3ef; } }
:root[data-theme="dark"] .pre-badge { background: #22364d; color: #9cc3ef; }
.pre-links a.btn { text-decoration: none; }
/* ===== 🌐 사전접수 위탁 카드 (제품 넘겨 보기) ===== */
.rec-card.pre-card { max-width: 640px; border-left-color: #2d5a8c; }
.pc-total { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.pc-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 10px 0; }
.pc-i { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: 13.5px; min-width: 0; }
.pc-i span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pc-i b { font-weight: 700; overflow-wrap: anywhere; }
.pc-i small { font-weight: 400; color: var(--muted); }
.pc-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.pc-cats button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.pc-cats button b { margin-left: 2px; }
.pc-cats button.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.pc-wrap { position: relative; margin: 0 -4px; }
.pc-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 4px 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.pg { flex: 0 0 236px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.pg[hidden] { display: none; }
.pg-ph { position: relative; aspect-ratio: 1 / 1; background: var(--paper); }
.pg-ph > img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pg-noph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--muted); }
.pg-noph span { font-size: 44px; opacity: .55; }
.pg-noph small { font-size: 12px; }
.pg-n { position: absolute; left: 8px; top: 8px; background: rgba(20, 14, 12, .72); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pg-pn { position: absolute; right: 8px; bottom: 8px; background: rgba(20, 14, 12, .72); color: #fff; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; }
.pg-thumbs { display: flex; gap: 4px; padding: 6px 8px 0; }
.pg-thumbs img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; cursor: zoom-in; border: 1px solid var(--line); }
.pg-b { padding: 10px 12px 12px; display: grid; gap: 5px; flex: 1; align-content: start; }
.pg-cat { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.pg-t { font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pg-chip .sw { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.pg-chip.new { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-weight: 700; }
.pg-chip.warn { background: var(--danger-soft); color: var(--danger); border-color: transparent; font-weight: 700; }
.pg-l { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pg-price { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); }
.pg-price b { color: var(--text); font-size: 16px; }
.pg-price.consult { color: #2d5a8c; font-weight: 700; }
.pc-nav { position: absolute; top: 40%; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); font-size: 20px; line-height: 1; cursor: pointer; color: var(--text); }
.pc-nav.prev { left: -8px; } .pc-nav.next { right: -8px; }
.pc-hint { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: -2px; }
.pc-none { padding: 14px; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 13.5px; text-align: center; margin-bottom: 8px; }
.pc-memo { font-size: 12.5px; color: var(--muted); margin: 6px 0 2px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; cursor: pointer; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-n { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 820px) {
  .pg { flex-basis: 74%; }
  .pc-nav { display: none; }
  .pc-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (hover: none) { .pc-nav { display: none; } }
/* 공지 · 카드 글: 단어 중간에서 줄이 끊기지 않게, PC는 넓게 */
.notice-card, .memo-card, .pre-card, .rec-card { word-break: keep-all; overflow-wrap: anywhere; }
.msg .body { word-break: keep-all; overflow-wrap: anywhere; }
.notice-card { max-width: min(980px, 100%); }
.nc-title { font-size: 18px; text-wrap: pretty; }
.nc-body { display: grid; gap: 6px; }
.nc-p { white-space: normal; }
.nc-h { font-size: 13px; font-weight: 800; color: var(--accent-text); margin-top: 4px; letter-spacing: .01em; }
.nc-h:first-child { margin-top: 0; }
.nc-memo { font-size: 12.5px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line-2); }
.nc-note { display: flex; gap: 6px; align-items: baseline; margin-top: 8px; font-size: 13px; color: var(--muted); background: var(--paper); border-radius: 10px; padding: 8px 12px; }
.nc-note::before { content: '비고'; font-size: 11px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; flex: none; }
.nc-note p, .nc-p p, .nc-memo p { margin: 0; }
/* ===== 🌐 위탁 사전접수: 탭 · 방문 캘린더 ===== */
.pre-tabs { display: flex; gap: 6px; padding: 10px 20px 0; flex: none; }
.pre-tabs button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.pre-tabs button.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.cons-cal { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-content: start; }
.cons-cal[hidden] { display: none; }
.cc-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-head > b { font-size: 16px; }
.cc-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cc-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cc-legend i.new, .cc-ev.new { background: #e3eefb; } .cc-legend i.ing, .cc-ev.ing { background: var(--warn-soft); } .cc-legend i.done, .cc-ev.done { background: var(--ok-soft); }
.cc-ev.gray { background: var(--line); opacity: .7; }
.cc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); align-self: start; }
.cc-wd { padding: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); }
.cc-wd.we { color: var(--danger); }
.cc-day { min-height: 92px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-day:nth-child(7n + 7) { border-right: 0; }
.cc-day.out { background: var(--paper); opacity: .55; }
.cc-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cc-n { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.cc-day.we .cc-n { color: var(--danger); }
.cc-n small { font-size: 10px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-cnt { margin-left: auto; font-size: 10.5px; background: var(--pri); color: var(--pri-fg); border-radius: 999px; padding: 0 6px; }
.cc-ev { display: grid; text-align: left; border: 0; border-radius: 7px; padding: 3px 6px; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; min-width: 0; }
.cc-ev b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-ev small, .cc-ev i { font-size: 10.5px; color: var(--muted); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-side { display: grid; gap: 12px; align-content: start; }
.cc-side h3 { margin-top: 0; }
.cc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.cc-row:first-of-type { border-top: 0; }
@media (max-width: 1100px) { .cons-cal { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .pre-tabs { padding: 8px 12px 0; }
  .cons-cal { padding: 10px 10px 16px; }
  .cc-day { min-height: 64px; padding: 2px; }
  .cc-ev { padding: 2px 3px; font-size: 10.5px; }
  .cc-ev small, .cc-ev i { display: none; }
  .cc-legend { margin-left: 0; width: 100%; }
}
.cons-cal { grid-auto-rows: max-content; }
/* ===== 📌 전달 메모 보드 (공통메모) ===== */
.memo-board { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 24px; }
.memo-board[hidden] { display: none; }
.mb-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mb-head > div { flex: 1; min-width: 0; }
.mb-head h2 { margin: 0 0 2px; font-size: 20px; }
.mb-head p { margin: 0; font-size: 13.5px; color: var(--muted); word-break: keep-all; }
.mb-filter { display: inline-flex; margin-bottom: 10px; flex-wrap: wrap; }
.mb-filter b { margin-left: 3px; font-size: 12px; opacity: .75; }
.mb-cols, .mb-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 240px 96px; gap: 14px; align-items: center; }
.mb-cols { padding: 0 14px 6px 19px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.mb-list { display: grid; gap: 8px; }
.mb-row { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #e0a43a; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: box-shadow .15s, transform .15s; word-break: keep-all; }
.mb-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.mb-row.mine { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 4%, var(--panel)); }
.mb-row.done { border-left-color: var(--ok); opacity: .78; }
.mb-t { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.mb-flag { display: inline-block; margin-right: 6px; font-size: 11px; font-weight: 800; color: #fff; background: var(--danger); padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.mb-note { margin-top: 4px; font-size: 13px; color: var(--muted); white-space: pre-line; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-sub { margin-top: 4px; font-size: 12px; color: var(--accent-text); }
.mb-by { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mb-by span { display: grid; }
.mb-by small { color: var(--muted); font-size: 11.5px; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mb-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.mb-bar i { display: block; height: 100%; background: var(--ok); }
.mb-act { justify-self: end; }
.mb-act .nc-ack { margin: 0; padding: 7px 14px; font-size: 13px; }
.mb-st { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1100px) { .mb-cols, .mb-row { grid-template-columns: minmax(0, 1fr) 130px 190px 86px; } }
@media (max-width: 820px) {
  .memo-board { padding: 10px 12px 20px; }
  .mb-head { flex-direction: column; }
  .mb-head .btn { width: 100%; }
  .mb-cols { display: none; }
  .mb-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .mb-main { grid-column: 1 / -1; }
  .mb-who { grid-column: 1 / -1; }
  .mb-by { grid-row: 3; } .mb-act { grid-row: 3; }
}

/* ===== 공지 분류 색 (위탁 · 반품 · 촬영 · 주의 · 안내) ===== */
:root { --k-cs: #2d6cb0; --k-cs-s: #e3eefb; --k-pre: #3c8fb8; --k-pre-s: #e2f3fa; --k-rt: #c26a1c; --k-rt-s: #fbecdc; --k-sh: #7a4bb0; --k-sh-s: #efe6fa; --k-wn: #c0392b; --k-wn-s: #fbe3e0; --k-in: #8c5f48; --k-in-s: #f3e7de; --k-etc: #6f6a66; --k-etc-s: #ecebea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-cs-s: #1f3247; --k-pre-s: #1d3540; --k-rt-s: #42301f; --k-sh-s: #33284a; --k-wn-s: #4a2622; --k-in-s: #3d302a; --k-etc-s: #333; --k-cs: #8db8ea; --k-pre: #8cc9e4; --k-rt: #efb27a; --k-sh: #c2a3ea; --k-wn: #f0938a; --k-in: #d8ad92; --k-etc: #bbb; } }
:root[data-theme="dark"] { --k-cs-s: #1f3247; --k-pre-s: #1d3540; --k-rt-s: #42301f; --k-sh-s: #33284a; --k-wn-s: #4a2622; --k-in-s: #3d302a; --k-etc-s: #333; --k-cs: #8db8ea; --k-pre: #8cc9e4; --k-rt: #efb27a; --k-sh: #c2a3ea; --k-wn: #f0938a; --k-in: #d8ad92; --k-etc: #bbb; }
.notice-card.nk-cs::before { background: var(--k-cs); } .notice-card.nk-rt::before { background: var(--k-rt); } .notice-card.nk-sh::before { background: var(--k-sh); } .notice-card.nk-wn::before { background: var(--k-wn); } .notice-card.nk-in::before { background: var(--k-in); }
.notice-card.must::before { width: 7px; }
.nc-tag.nk { font-size: 12.5px; }
.nk-cs .nc-tag.nk { background: var(--k-cs-s); color: var(--k-cs); } .nk-rt .nc-tag.nk { background: var(--k-rt-s); color: var(--k-rt); } .nk-sh .nc-tag.nk { background: var(--k-sh-s); color: var(--k-sh); } .nk-wn .nc-tag.nk { background: var(--k-wn-s); color: var(--k-wn); } .nk-in .nc-tag.nk { background: var(--k-in-s); color: var(--k-in); }
.nc-tag.must-tag { background: var(--danger); color: #fff; }
.nc-ev { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 10px; }
.nc-evc { font-size: 13.5px; font-weight: 700; }
.nc-evd { border: 1.5px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 5px 12px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; color: var(--text); }
.nc-evd:hover { border-color: var(--accent); }
.nc-evd.need { border-style: dashed; border-color: #d8a020; color: #a06a00; background: #fff8e6; }
.nc-evcal { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nc-auto { font-size: 11.5px; color: var(--muted); }
.nk-pick, .mk-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-pick button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--text); }
.nk-pick button.on.nk-cs { background: var(--k-cs-s); border-color: var(--k-cs); color: var(--k-cs); font-weight: 800; }
.nk-pick button.on.nk-rt { background: var(--k-rt-s); border-color: var(--k-rt); color: var(--k-rt); font-weight: 800; }
.nk-pick button.on.nk-sh { background: var(--k-sh-s); border-color: var(--k-sh); color: var(--k-sh); font-weight: 800; }
.nk-pick button.on.nk-wn { background: var(--k-wn-s); border-color: var(--k-wn); color: var(--k-wn); font-weight: 800; }
.nk-pick button.on.nk-in { background: var(--k-in-s); border-color: var(--k-in); color: var(--k-in); font-weight: 800; }
.nt-ev { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: var(--paper); }
.nt-evon { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.nt-evon input { width: 18px; height: 18px; accent-color: var(--accent); }
.nt-evf { margin-top: 10px; }
.nt-evf[hidden] { display: none; }

/* ===== 📅 패션부 캘린더 (분류 색) ===== */
.cons-cal.page { height: 100%; }
.cc-kinds { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.cc-kinds button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); opacity: .6; }
.cc-kinds button.on { opacity: 1; color: var(--text); font-weight: 700; }
.cc-kinds button b { margin-left: 2px; font-size: 12px; }
.cc-kinds.pick button { opacity: 1; }
.cc-kinds button.on.k-cs, .cc-kinds.pick button.on.k-cs { background: var(--k-cs-s); border-color: var(--k-cs); color: var(--k-cs); }
.cc-kinds button.on.k-pre { background: var(--k-pre-s); border-color: var(--k-pre); color: var(--k-pre); }
.cc-kinds button.on.k-rt, .cc-kinds.pick button.on.k-rt { background: var(--k-rt-s); border-color: var(--k-rt); color: var(--k-rt); }
.cc-kinds button.on.k-sh, .cc-kinds.pick button.on.k-sh { background: var(--k-sh-s); border-color: var(--k-sh); color: var(--k-sh); }
.cc-kinds button.on.k-etc, .cc-kinds.pick button.on.k-etc { background: var(--k-etc-s); border-color: var(--k-etc); color: var(--k-etc); }
.cc-ev.k-cs { background: var(--k-cs-s); box-shadow: inset 3px 0 0 var(--k-cs); } .cc-ev.k-pre { background: var(--k-pre-s); box-shadow: inset 3px 0 0 var(--k-pre); }
.cc-ev.k-rt { background: var(--k-rt-s); box-shadow: inset 3px 0 0 var(--k-rt); } .cc-ev.k-sh { background: var(--k-sh-s); box-shadow: inset 3px 0 0 var(--k-sh); } .cc-ev.k-etc { background: var(--k-etc-s); box-shadow: inset 3px 0 0 var(--k-etc); }
.cc-day { cursor: copy; }
.cc-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cc-dot.k-cs { background: var(--k-cs); } .cc-dot.k-pre { background: var(--k-pre); } .cc-dot.k-rt { background: var(--k-rt); } .cc-dot.k-sh { background: var(--k-sh); } .cc-dot.k-etc { background: var(--k-etc); }
.cc-dt { display: block; color: #a06a00; font-size: 11.5px; }

/* ===== 📌 전달 메모 분류 · 보드 ===== */
:root { --mk-dl: #d08a1e; --mk-dl-s: #fdf0dc; --mk-rq: #2f7d55; --mk-rq-s: #e2f2e8; --mk-is: #c0392b; --mk-is-s: #fbe3e0; --mk-rf: #4f72a3; --mk-rf-s: #e5ecf6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mk-dl-s: #45351c; --mk-rq-s: #1f3a2b; --mk-is-s: #4a2622; --mk-rf-s: #24324a; --mk-dl: #f0c77a; --mk-rq: #8fd3a9; --mk-is: #f0938a; --mk-rf: #a9c2ea; } }
:root[data-theme="dark"] { --mk-dl-s: #45351c; --mk-rq-s: #1f3a2b; --mk-is-s: #4a2622; --mk-rf-s: #24324a; --mk-dl: #f0c77a; --mk-rq: #8fd3a9; --mk-is: #f0938a; --mk-rf: #a9c2ea; }
.mk-pick button { display: grid; gap: 1px; text-align: left; border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--text); min-width: 120px; }
.mk-pick button small { color: var(--muted); font-size: 11.5px; }
.mk-pick button.on.mk-dl { background: var(--mk-dl-s); border-color: var(--mk-dl); } .mk-pick button.on.mk-rq { background: var(--mk-rq-s); border-color: var(--mk-rq); } .mk-pick button.on.mk-is { background: var(--mk-is-s); border-color: var(--mk-is); } .mk-pick button.on.mk-rf { background: var(--mk-rf-s); border-color: var(--mk-rf); }
.memo-card.mk-dl { border-left-color: var(--mk-dl); } .memo-card.mk-rq { border-left-color: var(--mk-rq); } .memo-card.mk-is { border-left-color: var(--mk-is); } .memo-card.mk-rf { border-left-color: var(--mk-rf); }
.mm-tag.mk { font-size: 12.5px; }
.mk-dl .mm-tag.mk, .mk-dl .mb-kind { background: var(--mk-dl-s); color: var(--mk-dl); } .mk-rq .mm-tag.mk, .mk-rq .mb-kind { background: var(--mk-rq-s); color: var(--mk-rq); }
.mk-is .mm-tag.mk, .mk-is .mb-kind { background: var(--mk-is-s); color: var(--mk-is); } .mk-rf .mm-tag.mk, .mk-rf .mb-kind { background: var(--mk-rf-s); color: var(--mk-rf); }
.mb-hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--pri), #6b4a3a); color: var(--pri-fg); margin-bottom: 12px; }
.mb-hero > div { flex: 1; min-width: 0; }
.mb-hero h2 { margin: 0 0 4px; font-size: 21px; color: inherit; }
.mb-hero p { margin: 0; font-size: 13.5px; opacity: .85; word-break: keep-all; }
.mb-hero .btn.primary { background: #f2c48d; color: #2a2220; border-color: #f2c48d; font-weight: 800; }
.mb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mb-tile { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; font: inherit; color: var(--text); }
.mb-tile span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mb-tile b { font-size: 24px; line-height: 1.1; }
.mb-tile.on { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri) inset; }
.mb-tile.t-me b { color: var(--danger); } .mb-tile.t-done b { color: var(--ok); }
.mb-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mb-kinds button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.mb-kinds button b { margin-left: 2px; font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; }
.mb-kinds button.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.mb-kinds button.on.mk-dl { background: var(--mk-dl-s); color: var(--mk-dl); border-color: var(--mk-dl); } .mb-kinds button.on.mk-rq { background: var(--mk-rq-s); color: var(--mk-rq); border-color: var(--mk-rq); }
.mb-kinds button.on.mk-is { background: var(--mk-is-s); color: var(--mk-is); border-color: var(--mk-is); } .mb-kinds button.on.mk-rf { background: var(--mk-rf-s); color: var(--mk-rf); border-color: var(--mk-rf); }
.mb-row.mk-dl { border-left-color: var(--mk-dl); } .mb-row.mk-rq { border-left-color: var(--mk-rq); } .mb-row.mk-is { border-left-color: var(--mk-is); } .mb-row.mk-rf { border-left-color: var(--mk-rf); }
.mb-row.mk-is:not(.done) { background: color-mix(in srgb, var(--mk-is) 5%, var(--panel)); }
.mb-row.mine { box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 35%, transparent); }
.mb-tags { display: flex; gap: 6px; margin-bottom: 3px; }
.mb-kind { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.mb-flag { margin-right: 0; }
@media (max-width: 820px) {
  .mb-hero { flex-direction: column; align-items: stretch; }
  .mb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-tile b { font-size: 20px; }
}

/* ===== 근무 빠짐: 사유 · 시간을 옆에, 표시 크게 ===== */
.off-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.off-tag.big { font-size: 13px; padding: 3px 11px; margin: 0; }
.off-time { font-weight: 700; }
.off-why { font-size: 13px; font-weight: 700; color: var(--danger); }
.sh.off small:empty { display: none; }
.mb-tile i { font-style: normal; }
.mb-tile .sm { display: none; }
@media (max-width: 820px) {
  .mb-hero { padding: 12px 14px; gap: 10px; }
  .mb-hero p { display: none; }
  .mb-hero h2 { font-size: 18px; }
  .mb-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .mb-tile { padding: 7px 8px; border-radius: 12px; }
  .mb-tile span { font-size: 11.5px; }
  .mb-tile .lg { display: none; } .mb-tile .sm { display: inline; }
  .mb-tile b { font-size: 19px; }
  .mb-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mb-kinds button { flex: none; }
}
/* 🛍 픽업 예정 색 + 📅 채팅 일정 카드 */
:root { --k-pk: #1f8a70; --k-pk-s: #def3ec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-pk: #7fd3bb; --k-pk-s: #1c3a33; } }
:root[data-theme="dark"] { --k-pk: #7fd3bb; --k-pk-s: #1c3a33; }
.notice-card.nk-pk::before { background: var(--k-pk); } .nk-pk .nc-tag.nk { background: var(--k-pk-s); color: var(--k-pk); }
.nk-pick button.on.nk-pk { background: var(--k-pk-s); border-color: var(--k-pk); color: var(--k-pk); font-weight: 800; }
.cc-kinds button.on.k-pk, .cc-kinds.pick button.on.k-pk { background: var(--k-pk-s); border-color: var(--k-pk); color: var(--k-pk); }
.cc-ev.k-pk { background: var(--k-pk-s); box-shadow: inset 3px 0 0 var(--k-pk); } .cc-dot.k-pk { background: var(--k-pk); }
.ev-card { --kc: var(--k-etc); --ks: var(--k-etc-s); max-width: 380px; margin-top: 4px; border: 1.5px solid var(--line); border-left: 5px solid var(--kc); border-radius: 14px; background: var(--panel); padding: 12px 14px 10px; display: grid; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.ev-card.k-cs { --kc: var(--k-cs); --ks: var(--k-cs-s); } .ev-card.k-pk { --kc: var(--k-pk); --ks: var(--k-pk-s); } .ev-card.k-rt { --kc: var(--k-rt); --ks: var(--k-rt-s); } .ev-card.k-sh { --kc: var(--k-sh); --ks: var(--k-sh-s); }
.ev-card.past { opacity: .7; }
.evc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.evc-k { background: var(--ks); color: var(--kc); font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.evc-pay { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fdecd8; color: #a5560c; margin-left: auto; }
.evc-pay.ok { background: #dff3e4; color: #237a3b; }
.evc-d { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 19px; font-weight: 800; color: var(--text); cursor: pointer; letter-spacing: -.2px; }
.evc-d.need { color: #a06a00; font-size: 15px; }
.evc-c { font-size: 14.5px; } .evc-c small { color: var(--muted); }
.evc-t { font-size: 14px; color: var(--text); word-break: keep-all; }
.evc-m { font-size: 12.5px; color: var(--muted); }
.evc-a { display: flex; gap: 6px; margin-top: 2px; border-top: 1px dashed var(--line); padding-top: 8px; }
.evc-a button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.evc-a button:hover { border-color: var(--kc); color: var(--kc); }
.ev-pick { border: 1.5px dashed var(--k-pk); background: var(--k-pk-s); border-radius: 12px; padding: 10px 12px 0; margin-bottom: 12px; }
.seg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-chips button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.seg-chips button.on { border-color: var(--k-pk); background: var(--k-pk); color: #fff; }
/* ☕ 카페부 캘린더 분류 색: 예약 · 입고 · AS·점검 · 발주 필요일 */
:root { --k-bk: #c2457a; --k-bk-s: #fbe4ee; --k-ip: #3f7d3a; --k-ip-s: #e3f2df; --k-fx: #b07d12; --k-fx-s: #fbf0d6; --k-od: #5a5fc0; --k-od-s: #e6e7fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-bk: #f09cc0; --k-bk-s: #47263a; --k-ip: #9ed596; --k-ip-s: #233a21; --k-fx: #e8c46e; --k-fx-s: #43361a; --k-od: #a9adf0; --k-od-s: #2a2c4a; } }
:root[data-theme="dark"] { --k-bk: #f09cc0; --k-bk-s: #47263a; --k-ip: #9ed596; --k-ip-s: #233a21; --k-fx: #e8c46e; --k-fx-s: #43361a; --k-od: #a9adf0; --k-od-s: #2a2c4a; }
.cc-kinds button.on.k-bk, .cc-kinds.pick button.on.k-bk { background: var(--k-bk-s); border-color: var(--k-bk); color: var(--k-bk); }
.cc-kinds button.on.k-ip, .cc-kinds.pick button.on.k-ip { background: var(--k-ip-s); border-color: var(--k-ip); color: var(--k-ip); }
.cc-kinds button.on.k-fx, .cc-kinds.pick button.on.k-fx { background: var(--k-fx-s); border-color: var(--k-fx); color: var(--k-fx); }
.cc-kinds button.on.k-od, .cc-kinds.pick button.on.k-od { background: var(--k-od-s); border-color: var(--k-od); color: var(--k-od); }
.cc-ev.k-bk { background: var(--k-bk-s); box-shadow: inset 3px 0 0 var(--k-bk); } .cc-ev.k-ip { background: var(--k-ip-s); box-shadow: inset 3px 0 0 var(--k-ip); }
.cc-ev.k-fx { background: var(--k-fx-s); box-shadow: inset 3px 0 0 var(--k-fx); } .cc-ev.k-od { background: var(--k-od-s); box-shadow: inset 3px 0 0 var(--k-od); }
.cc-dot.k-bk { background: var(--k-bk); } .cc-dot.k-ip { background: var(--k-ip); } .cc-dot.k-fx { background: var(--k-fx); } .cc-dot.k-od { background: var(--k-od); }
.ev-card.k-bk { --kc: var(--k-bk); --ks: var(--k-bk-s); } .ev-card.k-ip { --kc: var(--k-ip); --ks: var(--k-ip-s); } .ev-card.k-fx { --kc: var(--k-fx); --ks: var(--k-fx-s); }
.acct-copy { margin-left: 6px; padding: 2px 8px; font-size: 12px; }
/* 일정 카드 아래 정보 크게 · 상품 코드 */
.ev-card { max-width: 420px; }
.evc-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15.5px; font-weight: 600; }
.evc-code { font-size: 13.5px; font-weight: 700; padding: 2px 9px; border-radius: 8px; background: var(--ks); color: var(--kc); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2px; }
.evc-info { display: grid; gap: 6px; background: var(--bg); border-radius: 10px; padding: 9px 11px; }
.evc-info > div { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.evc-info span { flex: none; width: 84px; font-size: 13px; color: var(--muted); }
.evc-info b { font-weight: 600; word-break: keep-all; }
.ev-rough .seg-chips { margin-bottom: 8px; }
.ev-rough .seg-chips button.on { border-color: #a06a00; background: #a06a00; }
.ev-rough.dim { opacity: .45; }
/* 📋 할 일 보드: 카드가 쌓이는 모양 */
.tk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tk-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.tk-tile b { font-size: 26px; line-height: 1.1; }
.tk-tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tk-tile.late b { color: #c0392b; } .tk-tile.today b { color: #c26a1c; } .tk-tile.ok b { color: #2e8a4a; }
.tk-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tk-lane { background: var(--paper, #f3ece6); border-radius: 16px; padding: 10px; border-top: 4px solid var(--line); min-width: 0; }
.tk-lane.hot { border-top-color: #d0533f; } .tk-lane.todo { border-top-color: var(--accent); } .tk-lane.fin { border-top-color: #3d9a5a; }
.tk-lane > header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; flex-wrap: wrap; }
.tk-lane > header b { font-size: 15.5px; }
.tk-lane > header small { color: var(--muted); font-size: 12px; margin-left: auto; }
.tk-n { background: var(--panel); border-radius: 999px; padding: 1px 9px; font-weight: 800; font-size: 13px; }
.tk-stack { display: grid; gap: 8px; }
.tk { position: relative; display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 11px 12px; box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px var(--panel), 0 4px 0 -1px var(--line), 0 6px 14px -8px rgba(0,0,0,.18); transition: transform .12s; }
.tk:hover { transform: translateY(-1px); }
.tk.tk-late { border-left-color: #d0533f; background: color-mix(in srgb, #d0533f 5%, var(--panel)); }
.tk.tk-today { border-left-color: #e08a2c; }
.tk.tk-done { border-left-color: #3d9a5a; box-shadow: none; opacity: .8; }
.tk.tk-done .tk-body { text-decoration: line-through; color: var(--muted); }
.tk-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.tk-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 0; }
.tk-top:empty { display: none; }
.tk-body { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; cursor: pointer; line-height: 1.45; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.tk-who { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--text); }
.tk-who .avatar { width: 20px; height: 20px; font-size: 9px; }
.tk-due { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tk-due.late { background: #fde4e0; color: #b3321f; border-color: transparent; } .tk-due.today { background: #fdebd6; color: #b0600f; border-color: transparent; } .tk-due.ok { background: #e1f3e6; color: #2e7d45; border-color: transparent; }
.tk-chk { flex: none; position: relative; width: 26px; height: 26px; margin-top: 1px; cursor: pointer; }
.tk-chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tk-chk i { position: absolute; inset: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--panel); transition: .15s; }
.tk-chk:hover i { border-color: #3d9a5a; }
.tk-chk input:checked + i { background: #3d9a5a; border-color: #3d9a5a; }
.tk-chk input:checked + i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px; font-style: normal; }
.tk-chk input:disabled + i { opacity: .4; }
.tk-chk.sm { width: 22px; height: 22px; } .tk-chk.sm input:checked + i::after { font-size: 13px; }
.tk-del { opacity: .35; } .tk:hover .tk-del, .tm-row:hover .tk-del { opacity: 1; }
.tk-empty { text-align: center; color: var(--muted); padding: 22px 8px; font-size: 13.5px; border: 1.5px dashed var(--line); border-radius: 12px; }
.tk-empty .big { display: block; font-size: 28px; margin-bottom: 4px; }
.tk-lane .self-add { margin-top: 10px; width: 100%; }
/* 👥 직원 할 일 */
.tm-filter { margin: 0 0 14px; }
.tm-filter button.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.tm-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.tm-card.has-late { border-top-color: #d0533f; }
.tm-head { display: flex; align-items: center; gap: 10px; }
.tm-head b { font-size: 16px; } .tm-head small { display: block; color: var(--muted); font-size: 12.5px; }
.tm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tm-stats span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: var(--bg); font-size: 12px; color: var(--muted); font-weight: 600; }
.tm-stats b { font-size: 22px; color: var(--text); line-height: 1.15; }
.tm-stats .bad b { color: #c0392b; } .tm-stats .ok b { color: #2e8a4a; }
.tm-prog { position: relative; height: 10px; border-radius: 999px; background: var(--bg); overflow: visible; margin-bottom: 6px; }
.tm-prog i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #6cc287, #3d9a5a); }
.tm-prog small { position: absolute; right: 0; top: 12px; font-size: 11px; color: var(--muted); }
.tm-sec h4 { margin: 4px 0 8px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.tm-sec h4 span { background: var(--bg); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.tm-sec summary { list-style: none; cursor: pointer; } .tm-sec summary::-webkit-details-marker { display: none; }
.tm-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; margin-bottom: 6px; background: var(--panel); }
.tm-row.tk-late { border-left-color: #d0533f; background: color-mix(in srgb, #d0533f 5%, var(--panel)); } .tm-row.tk-today { border-left-color: #e08a2c; }
.tm-row.tk-done { border-left-color: #3d9a5a; } .tm-row.tk-done .tm-body { text-decoration: line-through; color: var(--muted); }
.tm-body { font-size: 14.5px; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.45; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) {
  .tk-board { grid-template-columns: minmax(0, 1fr); }
  .tk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tk-due.late { background: #4a2622; color: #f0938a; } :root:not([data-theme="light"]) .tk-due.today { background: #42301f; color: #efb27a; } :root:not([data-theme="light"]) .tk-due.ok { background: #1f3a28; color: #8fd3a3; } }
:root[data-theme="dark"] .tk-due.late { background: #4a2622; color: #f0938a; } :root[data-theme="dark"] .tk-due.today { background: #42301f; color: #efb27a; } :root[data-theme="dark"] .tk-due.ok { background: #1f3a28; color: #8fd3a3; }
@media (max-width: 900px) {
  .tk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tk-tile { padding: 8px 4px; justify-items: center; text-align: center; border-radius: 12px; }
  .tk-tile b { font-size: 20px; } .tk-tile span { font-size: 11px; white-space: nowrap; }
}

/* ================= 정리: 공통 카드 틀 =================
   모든 카드(업무 기록 · 전달 메모 · 공지 · 일정 · 사전접수)를 같은 모양으로:
   둥근 모서리 14px · 왼쪽 색 띠 5px · 분류는 둥근 태그 · 같은 그림자 · 빨강은 '급함 · 문제'에만 */
:root { --card-r: 14px; --card-shadow: 0 1px 2px rgba(60, 40, 30, .05), 0 6px 16px -10px rgba(60, 40, 30, .25); }
.rec-card, .ev-card { border: 1px solid var(--line); border-left-width: 5px; border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 13px 16px 12px; max-width: 560px; }
.rec-card.memo-card { border-left-width: 5px; }
.notice-card { border-radius: var(--card-r); box-shadow: var(--card-shadow); }
.notice-card::before { width: 5px; }
.rec-head, .nc-head, .mm-head, .evc-h { gap: 6px; margin-bottom: 8px; }
.rec-type, .nc-tag, .mm-tag, .evc-k, .pre-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: 0; line-height: 1.4; }
.rec-type { background: var(--accent-soft); color: var(--accent-text); }
.rec-title { font-size: 16px; margin-top: 2px; }
.rec-card .kv { font-size: 14px; }
.rec-card .steps, .notice-card .nc-foot { margin-top: 10px; }
/* 입력창 ＋ 더 보기 */
.plus-btn { font-size: 20px; font-weight: 700; color: var(--accent); }
.plus-btn:hover { background: var(--accent-soft); }
/* 캘린더 위 패션부 · 카페부 · 전체 */
.cal-boards { display: flex; gap: 6px; padding: 14px 20px 0; flex-wrap: wrap; }
.cal-boards button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.cal-boards button.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
@media (max-width: 820px) { .cal-boards { padding: 10px 12px 0; } .cal-boards button { padding: 6px 12px; font-size: 13px; } }

/* ================= 📢 공지 화면 =================
   공통 뼈대 + body.ntc-v4: 확인할 공지는 머리띠 카드, 확인 끝난 공지는 한 줄 목록 */
.ntc.k-cs { --kd: var(--k-cs); --ks: var(--k-cs-s); } .ntc.k-pk { --kd: var(--k-pk); --ks: var(--k-pk-s); } .ntc.k-rt { --kd: var(--k-rt); --ks: var(--k-rt-s); }
.ntc.k-sh { --kd: var(--k-sh); --ks: var(--k-sh-s); } .ntc.k-wn { --kd: var(--k-wn); --ks: var(--k-wn-s); } .ntc.k-in { --kd: var(--k-in); --ks: var(--k-in-s); }
.ntc-filter { display: flex; gap: 6px; padding: 12px 20px 4px; flex: none; overflow-x: auto; scrollbar-width: none; }
.ntc-filter::-webkit-scrollbar { display: none; }
.ntc-filter button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ntc-filter button b { font-size: 12px; color: var(--faint); }
.ntc-filter button.on { background: var(--pri); border-color: var(--pri); color: var(--pri-fg); } .ntc-filter button.on b { color: var(--pri-fg); opacity: .8; }
.ntc-filter button.hot b { color: #fff; background: #d0533f; border-radius: 999px; padding: 0 6px; opacity: 1; }
.ntc-filter i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ntc-filter i.k-cs { background: var(--k-cs); } .ntc-filter i.k-pk { background: var(--k-pk); } .ntc-filter i.k-rt { background: var(--k-rt); } .ntc-filter i.k-sh { background: var(--k-sh); } .ntc-filter i.k-wn { background: var(--k-wn); } .ntc-filter i.k-in { background: var(--k-in); }
#msgs[data-nf="todo"] .notice-msg:not(.is-todo), #msgs[data-nf="must"] .notice-msg:not(.is-must),
#msgs[data-nf="cs"] .notice-msg:not([data-nk="cs"]), #msgs[data-nf="pk"] .notice-msg:not([data-nk="pk"]), #msgs[data-nf="rt"] .notice-msg:not([data-nk="rt"]),
#msgs[data-nf="sh"] .notice-msg:not([data-nk="sh"]), #msgs[data-nf="wn"] .notice-msg:not([data-nk="wn"]), #msgs[data-nf="in"] .notice-msg:not([data-nk="in"]) { display: none; }
.msg.notice-msg { padding: 8px 20px; }
.ntc { max-width: 820px; background: var(--panel); position: relative; }
.ntc-head { display: flex; align-items: flex-start; gap: 14px; }
.ntc-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--ks); }
.ntc-hm { flex: 1; min-width: 0; }
.ntc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.ntc-kind { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--kd); }
.ntc-kind i { display: none; }
.ntc-must { font-weight: 800; font-size: 11.5px; color: #fff; background: #d0533f; border-radius: 6px; padding: 1px 7px; }
.ntc-new { font-weight: 900; font-size: 10.5px; letter-spacing: .04em; color: #fff; background: #d0533f; border-radius: 6px; padding: 2px 6px; }
.ntc-top time { margin-left: auto; color: var(--faint); font-size: 12.5px; }
.ntc-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.ntc-pre { display: none; }
.ntc-st, .ntc-chev { display: none; }
.ntc-by { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 10px 0 14px; }
.ntc-by .avatar { width: 22px; height: 22px; font-size: 9.5px; } .ntc-by b { color: var(--text); font-weight: 700; }
.ntc-edited { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--faint); text-decoration: underline; cursor: pointer; }
.ntc-facts { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ntc-facts > div { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 9px 14px; }
.ntc-facts dt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.ntc-facts dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 800; }
.ntc-facts .ntc-facts-act { background: none; padding: 9px 4px; }
.ntc-date { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--text); cursor: pointer; border-bottom: 1.5px dashed var(--faint); }
.ntc-date.need { color: #a06a00; border-bottom-color: #d9a441; }
.ntc-warn { font-size: 11.5px; font-weight: 800; color: #a06a00; background: color-mix(in srgb, #e0a43a 18%, transparent); border-radius: 6px; padding: 2px 7px; }
.ntc-auto { font-size: 11.5px; color: var(--faint); }
.ntc-link { border: 0; background: none; padding: 6px 4px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ntc-link:hover { color: var(--text); }
.ntc-body { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.ntc-body .nc-h { font-size: 13px; font-weight: 800; color: var(--muted); margin: 12px 0 4px; } .ntc-body .nc-memo { font-size: 13px; color: var(--muted); }
.ntc-note { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; background: var(--bg); border-radius: 12px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.ntc-note b { flex: none; font-size: 12px; color: var(--text); background: var(--panel); border-radius: 6px; padding: 1px 7px; }
.ntc-files { margin-bottom: 14px; } .ntc-reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ntc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ntc-read { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; color: var(--muted); font-size: 13px; }
.ntc-stack { display: flex; } .ntc-stack:empty { display: none; }
.ntc-stack .avatar { width: 24px; height: 24px; font-size: 9px; border: 2px solid var(--panel); margin-left: -7px; } .ntc-stack .avatar:first-child { margin-left: 0; }
.ntc-cnt b { color: var(--text); }
.ntc-bar { width: 72px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; } .ntc-bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.ntc-sp { flex: 1; }
.ntc-ack { border: 0; border-radius: 12px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 800; background: var(--pri); color: var(--pri-fg); cursor: pointer; }
.ntc-ack:hover { background: var(--pri-hover); }
.ntc-acked { font-size: 13.5px; font-weight: 800; color: var(--ok); padding: 10px 6px; }

/* ── 공지: 확인할 공지 = 머리띠 카드 · 확인 끝난 공지 = 한 줄 목록(눌러서 펼치기) ── */
/* 끝난 공지: 한 줄 목록 */
.ntc-v4 .msg.notice-msg:not(.is-fresh) { padding: 3px 20px; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ntc-v4 .notice-msg.is-todo:not(.is-fresh) .ntc { border-left: 4px solid #d0533f; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-head { align-items: center; padding: 14px 18px; cursor: pointer; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-head:hover { background: var(--bg); }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-ic { width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-top { margin-bottom: 2px; font-size: 12px; } .ntc-v4 .notice-msg:not(.is-fresh) .ntc-top time { margin-left: 4px; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-title { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-pre { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-st { display: inline-block; flex: none; font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-st.need { background: color-mix(in srgb, #d0533f 12%, transparent); color: #c0392b; } .ntc-v4 .notice-msg:not(.is-fresh) .ntc-st.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-chev { display: inline-block; flex: none; color: var(--faint); font-size: 18px; transition: transform .15s; }
.ntc-v4 .notice-msg.open:not(.is-fresh) .ntc-chev { transform: rotate(180deg); }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-detail { display: none; padding: 0 18px 16px 70px; border-top: 1px solid var(--line); }
.ntc-v4 .notice-msg.open:not(.is-fresh) .ntc-detail { display: block; }
.ntc-v4 .notice-msg.open:not(.is-fresh) .ntc-title { white-space: normal; } .ntc-v4 .notice-msg.open:not(.is-fresh) .ntc-pre { display: none; }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-foot { padding-top: 12px; border-top: 1px dashed var(--line); }

/* 확인할 공지: 머리띠 카드 */
.ntc-v4 .notice-msg.is-fresh .ntc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px -16px rgba(40, 25, 20, .35); }
.ntc-v4 .notice-msg.is-fresh .ntc-head { background: var(--ks); padding: 16px 20px; align-items: center; }
.ntc-v4 .notice-msg.is-fresh .ntc-ic { background: var(--panel); width: 42px; height: 42px; border-radius: 50%; }
.ntc-v4 .notice-msg.is-fresh .ntc-st { display: inline-block; flex: none; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.ntc-v4 .notice-msg.is-fresh .ntc-st.need { background: #d0533f; color: #fff; } .ntc-v4 .notice-msg.is-fresh .ntc-st.ok { color: var(--ok); }
.ntc-v4 .notice-msg.is-fresh .ntc-detail { padding: 4px 20px 0; }
.ntc-v4 .notice-msg.is-fresh .ntc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ntc-v4 .notice-msg.is-fresh .ntc-facts > div { flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.ntc-v4 .notice-msg.is-fresh .ntc-facts dd { font-size: 16.5px; }
.ntc-v4 .notice-msg.is-fresh .ntc-facts .ntc-facts-act { border: 0; justify-content: center; }
.ntc-v4 .notice-msg.is-fresh .ntc-foot { margin: 0 -20px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg); }

@media (max-width: 820px) {
  .ntc-filter { padding: 10px 12px 2px; }
  .msg.notice-msg, .ntc-v4 .msg.notice-msg:not(.is-fresh) { padding: 5px 12px; }
  .ntc-v4 .notice-msg:not(.is-fresh) .ntc-head { padding: 12px 14px; gap: 10px; } .ntc-v4 .notice-msg:not(.is-fresh) .ntc-detail { padding: 0 14px 14px; } .ntc-v4 .notice-msg:not(.is-fresh) .ntc-top time { display: none; }
  .ntc-v4 .notice-msg.is-fresh .ntc-head { padding: 14px 16px; } .ntc-v4 .notice-msg.is-fresh .ntc-detail { padding: 4px 16px 0; } .ntc-v4 .notice-msg.is-fresh .ntc-foot { margin: 0 -16px; padding: 10px 16px; }
  .ntc-title { font-size: 17px; } .ntc-bar { display: none; }
}

/* 확인 끝난 공지 목록은 촘촘하게 붙여서 쌓기 */
.ntc-v4 .msg.notice-msg:not(.is-fresh) { padding-top: 2px; padding-bottom: 2px; }
.ntc-v4 .notice-msg.is-fresh { padding-top: 10px; padding-bottom: 10px; }

/* ================= 📌 전달 메모 보드: 확인할 메모 = 머리띠 카드 · 끝난 메모 = 한 줄 목록 ================= */
.mbc, .mbl { --mc: var(--mk-dl); --ms: var(--mk-dl-s); }
.mbc.mk-rq, .mbl.mk-rq { --mc: var(--mk-rq); --ms: var(--mk-rq-s); } .mbc.mk-is, .mbl.mk-is { --mc: var(--mk-is); --ms: var(--mk-is-s); } .mbc.mk-rf, .mbl.mk-rf { --mc: var(--mk-rf); --ms: var(--mk-rf-s); }
.mb-filter { padding: 4px 0 12px; }
.mb-sec { margin-bottom: 18px; }
.mb-sec h4 { margin: 4px 2px 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mb-sec h4 span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; font-size: 12.5px; }
.mbc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.mbc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px -16px rgba(40, 25, 20, .35); }
.mbc.mine { box-shadow: 0 0 0 2px #d0533f, 0 6px 20px -16px rgba(40, 25, 20, .35); border-color: transparent; }
.mbc-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ms); cursor: pointer; }
.mbc-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 20px; }
.mbc-hm { flex: 1; min-width: 0; }
.mbc-top { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.mbc-top b { color: var(--mc); font-weight: 800; } .mbc-top span { color: var(--muted); }
.mbc-h h3 { margin: 2px 0 0; font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
.mbc-st { flex: none; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.mbc-st.need { background: #d0533f; color: #fff; }
.mbc-b { padding: 14px 18px 4px; }
.mbc-note { margin: 0 0 12px; font-size: 15px; line-height: 1.65; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.mbc-facts { margin: 0 0 10px; display: grid; gap: 8px; }
.mbc-facts > div { display: flex; gap: 12px; align-items: center; }
.mbc-facts dt { flex: none; width: 64px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mbc-facts dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.mbc-facts dd small { color: var(--faint); }
.mbc-facts .avatar { width: 22px; height: 22px; font-size: 9px; }
.mbc-p { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.mbc-p i { font-style: normal; font-size: 11px; color: var(--muted); }
.mbc-p.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); } .mbc-p.ok i { color: var(--ok); }
.mbc-bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 4px 0 10px; } .mbc-bar i { display: block; height: 100%; background: var(--ok); }
.mbc-f { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13px; color: var(--muted); }
.mbl-list { display: grid; gap: 4px; }
.mbl { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 14px; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.mbl:hover { background: var(--bg); }
.mbl-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--ms); display: grid; place-items: center; font-size: 15px; }
.mbl-k { flex: none; font-size: 12px; font-weight: 800; color: var(--mc); width: 34px; }
.mbl-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbl-by { flex: none; font-size: 12.5px; color: var(--muted); }
.mbl-st { flex: none; font-size: 12px; font-weight: 800; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 820px) {
  .mbc-list { grid-template-columns: minmax(0, 1fr); }
  .mbc-h { padding: 12px 14px; } .mbc-b { padding: 12px 14px 2px; } .mbc-f { padding: 10px 14px; }
  .mbl-by { display: none; }
  .mb-filter .ntc-sp { display: none; }
}
@media (max-width: 820px) {
  .mb-hero { flex-direction: row; align-items: center; padding: 12px 14px; border-radius: 14px; }
  .mb-hero h2 { font-size: 17px; margin: 0; } .mb-hero p { display: none; }
  .mb-hero .btn { flex: none; padding: 8px 12px; font-size: 13.5px; }
}
@media (max-width: 820px) {
  .ntc-v4 .notice-msg.is-fresh .ntc-top time { display: none; }
  .ntc-v4 .notice-msg.is-fresh .ntc-st { padding: 5px 10px; font-size: 12px; }
  .ntc-v4 .notice-msg:not(.is-fresh) .ntc-st.ok { font-size: 0; padding: 4px 9px; }
  .ntc-v4 .notice-msg:not(.is-fresh) .ntc-st.ok::before { content: '✓'; font-size: 14px; }
}

/* ================= 차분하게: 공지 카드 안은 상자 없이 · 색은 중요한 것에만 ================= */
/* 공지 머리띠는 연하게, 목록 아이콘은 무채색 */
.ntc-v4 .notice-msg.is-fresh .ntc-head { background: color-mix(in srgb, var(--ks) 55%, var(--panel)); }
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-kind { color: var(--muted); }
/* 고객 · 일정 · 캘린더 보기: 한 줄 */
.ntc-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; font-size: 14.5px; color: var(--muted); margin: 14px 0 10px; }
.ntc-meta b { color: var(--text); font-weight: 700; }
.ntc-meta i { font-style: normal; color: var(--faint); }
.ntc-meta em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #a06a00; }
.ntc-meta .ntc-link { padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.ntc-date { font-size: 14.5px; }
.ntc-body { margin: 10px 0 12px; }
.ntc-notep { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ntc-notep span { font-weight: 700; color: var(--text); margin-right: 8px; }
/* 아래 줄: 작성자 · 확인 n/8 · 댓글 · 확인했어요 */
.ntc-foot { font-size: 13px; color: var(--muted); }
.ntc-author { color: var(--muted); } .ntc-dot { font-style: normal; color: var(--faint); }
.ntc-v4 .notice-msg.is-fresh .ntc-foot { margin: 0 -20px; padding: 12px 20px; background: none; }
.ntc-ack { padding: 9px 18px; }

/* 전달 메모 보드: 머리 부분 담백하게 · 목록 */
.mb-hero { background: none; color: var(--text); padding: 6px 2px 10px; border-radius: 0; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.mb-hero h2 { font-size: 20px; margin: 0 0 2px; } .mb-hero p { color: var(--muted); margin: 0; font-size: 13.5px; }
.mb-sec h4 { color: var(--muted); font-size: 13.5px; }
.mbr-list { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.mbr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 64px; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.mbr:first-child { border-top: 0; }
.mbr:hover { background: var(--bg); }
.mbr-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mbr.issue .mbr-k { color: #c0392b; }
.mbr-m { min-width: 0; display: grid; gap: 2px; }
.mbr-t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbr-n { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbr-who { display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); }
.mbr-who .ok { color: var(--ok); font-weight: 700; }
.mbr-by { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.mbr-act { text-align: right; }
.mbr-st { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mbr.fin { opacity: .65; } .mbr.fin .mbr-st { color: var(--ok); }
.mbr-ack { border: 0; border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 800; background: var(--pri); color: var(--pri-fg); cursor: pointer; }
.mbr.mine::before, .mbr.issue::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #d0533f; }
.mbr.mine .mbr-t::after { content: '내 확인 필요'; margin-left: 8px; font-size: 11.5px; font-weight: 800; color: #c0392b; }
@media (max-width: 820px) {
  .mb-hero { flex-direction: row; } .mb-hero h2 { font-size: 18px; }
  .mbr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .mbr-k { grid-column: 1; font-size: 11.5px; }
  .mbr-m { grid-column: 1; }
  .mbr-who { display: none; }
  .mbr-by { grid-column: 1; }
  .mbr-act { grid-column: 2; grid-row: 1 / 4; }
  .mbr.mine .mbr-t::after { display: none; }
  .ntc-v4 .notice-msg.is-fresh .ntc-foot { margin: 0 -16px; padding: 10px 16px; }
  .ntc-author, .ntc-dot { display: none; }
}
.mb-hero .btn.primary { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }

/* ↔ 메뉴 · 정보 패널 너비 조절 손잡이 (PC) */
.rs-bar { display: none; }
@media (min-width: 821px) {
  .rs-side { display: block; position: fixed; top: 0; bottom: 0; left: calc(var(--side-w, 268px) - 3px); width: 7px; cursor: col-resize; z-index: 40; }
  .rs-info { display: block; flex: none; width: 7px; margin: 0 -4px 0 -3px; cursor: col-resize; position: relative; z-index: 5; }
  .rs-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: background .15s; }
  .rs-bar:hover::after, .rs-drag .rs-bar::after { background: var(--accent); }
  body.rs-drag { cursor: col-resize; user-select: none; }
  body.rs-drag iframe { pointer-events: none; }
}
@media (max-width: 1279px) { .rs-info { display: none !important; } }
.app:has(#panel:not([hidden])) .rs-info { display: none !important; }

/* 한 건당 화면 꽉 차게: 공지 · 업무 기록 · 전달 메모 · 일정 · 사전접수 카드는 채팅 폭 전체 (일반 말풍선은 그대로) */
.ntc, .rec-card, .rec-card.memo-card, .rec-card.pre-card, .ev-card { max-width: none; width: 100%; box-sizing: border-box; }
.msgs .msg:has(> div > .rec-card, > div > .ev-card) > div:nth-child(2) { flex: 1; min-width: 0; }
/* 공지: 마우스를 올렸을 때 나오는 😊 💬 ⋯ 도구를 오른쪽 위로 (왼쪽 분류 글자를 가리지 않게) */
.msgs .msg.notice-msg .actions { left: auto; right: 34px; top: -10px; }
/* 내가 올린 기록이어도 카드 안 사진은 왼쪽부터 (카드가 꽉 차서 오른쪽 끝으로 밀리지 않게) */
.msgs .msg.mine .rec-card .files, .msgs .msg.mine .ev-card .files, .msgs .msg.mine .rec-card .chips { justify-content: flex-start; }

/* ================= 📷 기록 사진: 옆으로 넘겨 보기 ================= */
.ph-cnt { font-weight: 500; color: var(--faint); margin-left: 4px; }
.ph-strip { position: relative; }
.ph-strip .files, .rec-card ~ .bline .files, .bline > .files { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.ph-strip .files img, .bline > .files img { flex: none; scroll-snap-align: start; }
.ph-sec .files img { height: 180px; max-height: none; width: auto; max-width: 260px; }
.bline > .files { max-width: 100%; }
.ph-arr { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.ph-arr.l { left: -6px; } .ph-arr.r { right: -6px; }
.ph-strip:hover .ph-arr { opacity: 1; }
@media (max-width: 820px) { .ph-arr { display: none; } .ph-sec .files img { height: 140px; max-width: 200px; } }

/* ================= 🔍 사진 크게 보기: 닫기 쉽게 ================= */
.lightbox { cursor: default; touch-action: pan-y; }
.lightbox img { transition: transform .15s; }
.lb-top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 12px) 14px 12px; z-index: 2; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.lb-top .lb-n { position: static; transform: none; }
.lb-x { border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #222; font: inherit; font-size: 15px; font-weight: 800; padding: 10px 16px; cursor: pointer; }
.lb-rm { margin-left: auto; margin-right: 8px; border: 0; border-radius: 999px; background: rgba(192, 57, 43, .92); color: #fff; font: inherit; font-size: 14px; font-weight: 800; padding: 10px 14px; cursor: pointer; }
.lb-dots { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 20px); left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.lb-dots i.on { background: #fff; width: 18px; border-radius: 4px; }
@media (max-width: 820px) { .lb-nav { display: none; } .lightbox img { max-width: 100vw; border-radius: 0; } }
@media (max-width: 820px) { .lightbox { padding: 0; } .lightbox img { max-width: 100%; max-height: 80dvh; object-fit: contain; } }
.lightbox { background: rgba(10, 8, 7, .95); }
/* 기록 카드 사진 한 줄: 사진마다 어떤 사진인지(송장 · 제품 · 택) 작은 이름표 */
.ph-strip .files { touch-action: pan-x pan-y; gap: 8px; }
.ph-fig { flex: none; position: relative; margin: 0; scroll-snap-align: start; }
.ph-fig img { display: block; }
.ph-fig figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 7px; pointer-events: none; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 📦 운송장번호 */
.trk-row { display: flex; gap: 8px; } .trk-row input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .03em; font-weight: 700; }
.trk-st { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.trk-st.busy { color: var(--info); } .trk-st.ok { color: var(--ok); font-weight: 600; } .trk-st.no { color: #a06a00; }
.trk-no { font-variant-numeric: tabular-nums; letter-spacing: .03em; font-size: 15px; }
.trk-read { margin-top: 10px; }

/* =====================================================================
   클래식 · 세련된 톤 (20대 중반~40대 직원이 쓰는 세컨핸즈샵 업무 도구)
   - 글씨체는 Pretendard 고딕 그대로, 굵기 · 크기 · 간격으로 위계를 줌
   - 모서리는 덜 둥글게(6~8px), 그림자는 얇게, 파스텔 바탕색은 거의 무채색으로
   - 이모지는 원래 색 그대로, 강조색은 '중요한 것'(필독 · 확인 필요 · 마감 지남 · 이슈 · 주의)에만
   ===================================================================== */
:root {
  --radius: 8px; --card-r: 8px;
  --shadow: 0 12px 32px rgba(40, 28, 24, .12), 0 1px 3px rgba(40, 28, 24, .06);
  --card-shadow: 0 1px 2px rgba(40, 28, 24, .04);
  --hot: #b23a2c; --hot-soft: #f7e4e0; --due: #9a6516; --due-soft: #f6ecd9;
}
:root:not([data-theme="dark"]) {
  /* 분류 바탕은 아주 연한 웜그레이, 글자색도 채도를 낮춤 (주의 · 이슈의 빨강만 그대로) */
  --k-cs: #7a5238; --k-cs-s: #f3ece6; --k-pk: #3b6355; --k-pk-s: #edf1ee; --k-rt: #9a5a26; --k-rt-s: #f5ece3; /* 📥 들어와요 = 갈색 · 📤 나가요 = 초록 */
  --k-cp: #94683f; --k-cp-s: #f5eee5; --k-qk: #3d6b4c; --k-qk-s: #ecf2ee; --k-rc: #5a6d38; --k-rc-s: #eff2e8;
  --k-sh: #5c4d6c; --k-sh-s: #f0eef2; --k-in: #6b5749; --k-in-s: #f2eeea; --k-etc: #6f6a66; --k-etc-s: #efedea;
  --k-pre: #7a5238; --k-pre-s: #f3ece6; --k-bk: #7a4659; --k-bk-s: #f3eef0; --k-ip: #4b6741; --k-ip-s: #eef1ec; --k-fx: #7c6020; --k-fx-s: #f4f0e6; --k-od: #4b4f7d; --k-od-s: #eeeff4;
  --mk-dl: #8a6324; --mk-dl-s: #f4efe6; --mk-rq: #3c6a4f; --mk-rq-s: #edf1ee; --mk-rf: #4a6283; --mk-rf-s: #eef0f3;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hot: #ec8a7d; --hot-soft: #4a2622; --due: #e3b36a; --due-soft: #463821; } }
:root[data-theme="dark"] { --hot: #ec8a7d; --hot-soft: #4a2622; --due: #e3b36a; --due-soft: #463821; }

/* 제목 · 큰 숫자: 고딕 그대로, 굵기 · 자간으로 정돈 */
.topbar h1 .t, .stp-head h2, .mb-hero h2, .card > h3, .sec-h h3, .rec-title, .tm-head b, .tk-lane > header b, .mb-sec h4, .tm-sec h4, .cc-head b { font-weight: 700; letter-spacing: -.02em; }
.tk-tile b, .tm-stats b, .stt b { font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.topbar h1 { font-size: 0; gap: 0; } /* 제목 앞 이모지는 숨기고 글자만 */
.topbar h1 .t { font-size: 19px; }
@media (max-width: 820px) { .topbar h1 .t { font-size: 18px; } }

/* 모서리 · 알약 모양 줄이기 */
.chip, .pill, .cat-chip, .self-tag, .tk-n, .tk-due, .ntc-st, .mbc-st, .evc-k, .evc-pay, .rec-type, .nc-tag, .mm-tag, .mbl-st, .mbr-st, .ntc-must, .ntc-new, .ntc-warn,
.ntc-filter button, .cc-kinds button, .pre-tabs button, .cal-boards button, .seg-chips button, .tm-filter button, .mb-sec h4 span, .tm-sec h4 span, .pre-badge { border-radius: 5px; }
.btn, .act-btn, .seg, .ntc-ack, .mbr-ack, .lb-x, .nc-ack { border-radius: 6px; }
.seg button { border-radius: 5px; }
.card, .modal, .rec-card, .ev-card, .ntc, .mbr-list, .mbc, .mbl, .tk, .tm-card, .tm-row, .tk-tile, .tk-lane, .notice-card, .team-card, .cons-cal .card, .cc-grid { border-radius: 8px; }
.act-btn { box-shadow: none; border-width: 1px; font-weight: 600; }
.badge { border-radius: 9px; }


/* 분류 글자 칩: 무채색 */
.cat-chip { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; }
.self-tag, .self-tag.given { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ── 할 일 보드: 차분하게 ── */
.tk-tiles { gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.tk-tile { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; padding: 14px 18px; }
.tk-tile:first-child { border-left: 0; }
.tk-tile b { font-size: 28px; color: var(--text); }
.tk-tile span { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.tk-tile.late b { color: var(--hot); } .tk-tile.today b { color: var(--due); } .tk-tile.ok b { color: var(--text); }
.tk-lane { background: transparent; border-top: 0; padding: 0; }
.tk-lane > header { border-bottom: 1px solid var(--text); padding: 0 2px 8px; margin-bottom: 10px; }
.tk-lane.hot > header { border-bottom-color: var(--hot); }
.tk-lane > header b { font-size: 16px; }
.tk-n { background: transparent; border: 1px solid var(--line-2); font-weight: 700; }
.tk { box-shadow: none; border-left: 1px solid var(--line); padding: 12px 14px; }
.tk:hover { transform: none; border-color: var(--line-2); }
.tk.tk-late { border-left: 3px solid var(--hot); background: var(--panel); }
.tk.tk-today { border-left: 3px solid var(--due); }
.tk.tk-done { border-left: 1px solid var(--line); opacity: .7; }
.tk-body { font-weight: 600; font-size: 15px; }
.tk-due { background: transparent; border: 0; padding: 0; color: var(--muted); font-weight: 600; }
.tk-due.late { background: transparent; color: var(--hot); } .tk-due.today { background: transparent; color: var(--due); } .tk-due.ok { background: transparent; color: var(--muted); }
.tk-chk { width: 22px; height: 22px; }
.tk-chk i { border-width: 1.5px; border-color: var(--line-2); }
.tk-chk input:checked + i { background: var(--text); border-color: var(--text); }
.tk-chk input:checked + i::after { font-size: 13px; }
.tk-empty { border-style: solid; border-color: var(--line); background: transparent; }
.self-add { border-radius: 8px; border-style: dashed; }

/* ── 직원 할 일 ── */
.tm-card { border-top: 1px solid var(--line); box-shadow: none; }
.tm-card.has-late { border-top: 3px solid var(--hot); }
.tm-stats span { background: transparent; border: 1px solid var(--line); border-radius: 6px; }
.tm-stats .bad b { color: var(--hot); } .tm-stats .ok b { color: var(--text); }
.tm-prog { height: 4px; } .tm-prog i { background: var(--text); }
.tm-row { border-left: 1px solid var(--line); }
.tm-row.tk-late { border-left: 3px solid var(--hot); background: var(--panel); } .tm-row.tk-today { border-left: 3px solid var(--due); }

/* ── 카드 · 버튼 전반 ── */
.rec-card, .ev-card { box-shadow: var(--card-shadow); }
.ntc-v4 .notice-msg.is-fresh .ntc { box-shadow: var(--card-shadow); }
.ntc-v4 .notice-msg.is-fresh .ntc-head { background: color-mix(in srgb, var(--ks) 70%, var(--panel)); }
.ntc-v4 .notice-msg.is-fresh .ntc-st.need, .mbc-st.need { background: var(--hot); }
.ntc-must, .ntc-new { background: var(--hot); }
.btn.primary, .act-btn.primary, .ntc-ack, .mbr-ack { letter-spacing: .01em; }
.modal { border-radius: 10px; }

/* ── 매장 현황: 상단 카드는 예전처럼 따뜻한 그라데이션 그대로(친근하게), 아래 숫자 칸 · 배너만 정돈 ── */
.strip { border-radius: 8px; box-shadow: none; }
.st-m b { font-weight: 700; }
.st-m > span { font-size: 12px; letter-spacing: .02em; }
.push-banner { border-radius: 8px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: none; }
.sec, .kpi { border-radius: 8px; }
.sec-h h3 { font-size: 15px; }

/* ── 업무 기록 탭: 밑줄 탭으로 ── */
.rec-tabs { gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rec-tab { border-radius: 0; background: transparent; box-shadow: none; padding: 8px 16px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rec-tab.on { background: transparent; box-shadow: none; border-bottom-color: var(--text); }
.rec-tab .rt-n { filter: none; }
.rec-row, .rec-list > * { border-radius: 8px; }

/* ── 상단 탭 묶음(채팅/캘린더, 패션부/카페부/전체): 밑줄 탭 ── */
.pre-tabs, .cal-boards { gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.pre-tabs button, .cal-boards button { border: 0; background: transparent; border-radius: 0; padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); }
.pre-tabs button.on, .cal-boards button.on { background: transparent; color: var(--text); border-bottom-color: var(--text); }

/* ── 할 일 · 기록 화면 위 세그먼트 ── */
.seg { background: transparent; border: 1px solid var(--line); padding: 2px; }
.seg button.on { background: var(--text); color: var(--panel); box-shadow: none; }

/* ── 휴대폰 아래 탭: 선택된 탭에 위쪽 가는 선 ── */
@media (max-width: 820px) {
  .tabbar button { position: relative; }
  .tabbar button.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--text); border-radius: 0 0 2px 2px; }
}

/* ── 캘린더: 분류 버튼 · 일정 칸 차분하게 ── */
.cc-kinds button { background: transparent; }
.cc-kinds button.on { font-weight: 700; }
.cc-ev { border-radius: 4px; }
.cc-grid { box-shadow: none; }
.cc-day.today { box-shadow: inset 0 0 0 2px var(--text); }

/* ── 채팅 위 양식 버튼 줄 ── */
.act-btn { padding: 9px 14px; font-size: 14px; }
@media (max-width: 760px) { .act-btn { padding: 9px 11px; font-size: 13.5px; gap: 4px; } } /* 판매내역: 택배 · 픽업퀵 · 판매장부 세 개가 한 줄에 */

/* 확인 끝난 공지 목록 아이콘 바탕 */
.ntc-v4 .notice-msg:not(.is-fresh) .ntc-ic { background: var(--bg); }

/* ================= 👥 직원 할 일: 많이 쌓여도 깔끔하게 (한 줄 행 · 5개 + 더 보기 · 빈 직원은 한 줄) ================= */
.tw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 14px; align-items: start; }
.tw { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tw.has-late { border-top: 3px solid var(--hot); }
.tw-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tw-h .avatar { width: 26px; height: 26px; font-size: 10px; }
.tw-h > b { font-size: 15px; } .tw-h > small { color: var(--muted); font-size: 12px; margin-right: 6px; }
.tw-stat { font-size: 12.5px; color: var(--muted); } .tw-stat b { color: var(--text); font-size: 14px; margin-left: 2px; }
.tw-stat.bad, .tw-stat.bad b { color: var(--hot); }
.tw-prog { width: 54px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .tw-prog i { display: block; height: 100%; background: var(--text); }
.tw-h .sp { flex: 1; }
.tw, .tw-grid > * { min-width: 0; }
.tw-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.tw-row { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-top: 1px solid var(--line); min-height: 40px; }
.tw-row:first-child { border-top: 0; }
.tw-row.tk-late { box-shadow: inset 3px 0 0 var(--hot); } .tw-row.tk-today { box-shadow: inset 3px 0 0 var(--due); }
.tw-row.tk-done .tw-body { text-decoration: line-through; color: var(--muted); }
.tw-row .cat-chip { flex: none; }
.tw-body { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tw-due { flex: none; font-size: 12px; } .tw-due .tk-due { font-size: 12px; }
.tw-by { flex: none; font-size: 11.5px; color: var(--faint); min-width: 26px; text-align: right; }
.tw-row .tk-del { flex: none; width: 26px; height: 26px; }
.tw-none { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.tw-more { border: 0; border-top: 1px dashed var(--line); background: transparent; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-text); cursor: pointer; text-align: left; }
.tw-more:hover { background: var(--bg); }
.tw-fin { border-top: 1px solid var(--line); }
.tw-fin summary { padding: 8px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tw-idle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 8px; }
.tw-idle-l { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.tw-p { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 4px 10px 4px 4px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text); }
.tw-p .avatar { width: 22px; height: 22px; font-size: 9px; }
.tw-p small { color: var(--faint); font-weight: 500; font-size: 11.5px; }
.tw-p i { font-style: normal; color: var(--accent-text); font-weight: 800; }
.tw-p:hover { border-color: var(--line-2); background: var(--bg); }
@media (max-width: 820px) {
  .tw-grid { grid-template-columns: minmax(0, 1fr); }
  .tw-prog, .tw-by { display: none; }
  .tw-row .cat-chip { display: none; }
  .tw-row { padding: 7px 10px; gap: 6px; }
  .tw-due, .tw-due .tk-due { font-size: 11.5px; }
}

/* 근무 합계 표: 휴대폰에서도 이름 · 숫자가 세로로 쪼개지지 않게 한 줄로 */
.ms-tbl th, .ms-tbl td { white-space: nowrap; }
.ms-tbl th:not(:first-child), .ms-tbl td:not(:first-child) { text-align: right; }
.ms-tbl td { font-variant-numeric: tabular-nums; }
.ms-n b { display: block; font-size: 14.5px; }
.ms-n small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.ms-tbl .faint { color: var(--faint); }
@media (max-width: 820px) {
  .ms-tbl { font-size: 13px; }
  .ms-tbl th { padding: 8px 6px; font-size: 11.5px; }
  .ms-tbl td { padding: 10px 6px; }
  .ms-tbl th:first-child, .ms-tbl td:first-child { padding-left: 2px; }
  .ms-tbl th:last-child, .ms-tbl td:last-child { padding-right: 2px; }
}

/* 공지 대상: 공통 · 패션부 · 카페부 */
.ntc-aud { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 800; margin-right: 6px; background: var(--chip, #f1ebe5); color: var(--muted); }
.ntc-aud.a-fa { background: #f3e4da; color: #8a4f35; }
.ntc-aud.a-ca { background: #f6ecd6; color: #7a5a1c; }
.ntc-aud.a-co { background: #eee9e4; color: #6f625b; }
#msgs[data-nf="aco"] .notice-msg:not([data-aud="co"]), #msgs[data-nf="afa"] .notice-msg:not([data-aud="fa"]), #msgs[data-nf="aca"] .notice-msg:not([data-aud="ca"]) { display: none; }
.nt-aud { display: flex; flex-wrap: wrap; }
.nt-aud button { flex: 1; min-width: 88px; }
#ntAH { display: block; margin-top: 6px; line-height: 1.45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ntc-aud.a-fa { background: #4a352b; color: #f0c7b0; } :root:not([data-theme="light"]) .ntc-aud.a-ca { background: #4a3d27; color: #ecd08f; } :root:not([data-theme="light"]) .ntc-aud.a-co { background: #3a332f; color: #c9bcb3; } }
:root[data-theme="dark"] .ntc-aud.a-fa { background: #4a352b; color: #f0c7b0; } :root[data-theme="dark"] .ntc-aud.a-ca { background: #4a3d27; color: #ecd08f; } :root[data-theme="dark"] .ntc-aud.a-co { background: #3a332f; color: #c9bcb3; }

/* 위탁 · 반품 채널 위 탭 (전체 · 택배 · 현장 / 전체 · 반품 택배 · 기타 반품): 고른 종류의 기록만 보이게 */
#msgs[data-rf="위탁택배"] .msg:not([data-rf="위탁택배"]), #msgs[data-rf="현장위탁"] .msg:not([data-rf="현장위탁"]),
#msgs[data-rf="반품택배"] .msg:not([data-rf="반품택배"]), #msgs[data-rf="return"] .msg:not([data-rf="return"]) { display: none; }

/* 키보드가 올라온 동안: 앱 높이를 보이는 화면만큼 · 아래 탭 · 양식 버튼 줄은 잠깐 숨겨 입력창이 보이게 */
.app { height: var(--app-h, 100dvh); }
body.kb-open .app { transform: translateY(var(--app-y, 0px)); }
body.kb-open .tabbar, body.kb-open .action-bar, body.kb-open .readonly-note { display: none !important; }
/* 내 메시지의 사진 여러 장: 오른쪽 정렬이어도 첫 사진이 잘리지 않게 왼쪽부터 넘겨 보기 */
.msgs .msg.mine .bline > .files { justify-content: flex-start; }
/* 사진 여러 장: 휴대폰에서도 2장이 한 줄에 다 보이게 크기를 맞춤 (3장 이상은 옆으로 넘겨 보기) */
.bline > .files:has(img + img) img { width: min(200px, 36vw); max-width: none; height: min(220px, 44vw); object-fit: cover; }

/* 사진 + 글을 같이 보내면 사진이 위, 글이 아래 */
.bline:has(> .files) + .bline { margin-top: 6px; }

/* 일정 완료 표시 (위탁 방문 완료 · 픽업 완료 …) */
.cc-ev.done { opacity: .5; } .cc-ev.done b { text-decoration: line-through; text-decoration-thickness: 1px; }
.cc-done { color: var(--ok, #4f7a5a); font-weight: 700; margin-left: 4px; }
.evc-done { margin-left: auto; font-size: 12px; font-weight: 800; color: #3f6a4b; background: #e3eee4; border-radius: 6px; padding: 3px 8px; }
.ev-card.done { opacity: .82; }
.evc-a .evc-dbtn { background: #2d2422; color: #fff; border-color: #2d2422; }
.ntc-evdone { border: 0; background: #e3eee4; color: #3f6a4b; font: inherit; font-weight: 800; font-size: 12.5px; border-radius: 6px; padding: 2px 8px; cursor: pointer; }

/* 사진 크게 보기: 확대 · 옮기기 */
.lightbox { touch-action: none; overflow: hidden; }
.lightbox img { transform-origin: center center; will-change: transform; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lightbox.zoomed img { cursor: grab; }
.lightbox.zoomed .lb-nav, .lightbox.zoomed .lb-dots, .lightbox.zoomed .lb-hint { display: none; }
.lb-zoom { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 8px; }
.lb-zoom button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.lb-zv { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.lb-hint { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: 12px; white-space: nowrap; pointer-events: none; }
.lightbox .lb-dots { bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (max-width: 820px) { .lb-zoom { display: none; } }
/* ⬇ 사진 저장 (이 사진 · 전체 N장) */
.lb-save { display: inline-flex; gap: 6px; margin-left: auto; margin-right: 8px; }
.lb-zoom + .lb-save { margin-left: 0; }
.lb-save + .lb-rm { margin-left: 0; }
.lb-save button { border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #222; font: inherit; font-size: 14px; font-weight: 800; padding: 0 12px; min-height: 40px; cursor: pointer; white-space: nowrap; }
@media (max-width: 400px) { .lb-top { flex-wrap: wrap; row-gap: 8px; } .lb-save button { font-size: 13px; padding: 0 10px; } }

/* 완료 체크칸 (픽업 완료 · 방문 완료 …): 빈 네모 → 누르면 초록 체크 */
.done-chk { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 8px; padding: 5px 10px 5px 7px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.done-chk i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #b6a69c; background: #fff; display: grid; place-items: center; flex: none; }
.done-chk.on { border-color: #b9d3bf; background: #eef6ef; color: #3f6a4b; }
.done-chk.on i { border-color: #4f7a5a; background: #4f7a5a; }
.done-chk.on i::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.done-chk small { font-weight: 600; opacity: .8; }
.ntc-meta .done-chk { padding: 2px 8px 2px 5px; font-size: 12.5px; } .ntc-meta .done-chk i { width: 15px; height: 15px; }

/* 화면 전체 두 손가락 확대 · 두 번 탭 확대 막기 (사진 크게 보기는 직접 확대) */
html, body { touch-action: pan-x pan-y; }
/* 업무 기록 카드 · 글 아래: 최근 댓글 미리보기 — 「💬 이 글의 최근 댓글 N개 · 모두 보기 ›」 머리말 + [아바타] 이름 · 시각 / 내용(두 줄) */
.rec-last { display: block; width: 100%; margin-top: 12px; padding: 9px 14px 11px 12px; text-align: left; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px; transition: background .15s, border-color .15s; }
.rec-last:hover { background: color-mix(in srgb, var(--accent-soft) 75%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.rec-last .rl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 7px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--accent-text); }
.rec-last .rl-h em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 3px; }
.rec-last .rl-more { flex: none; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.rec-last .rl-more i { font-style: normal; display: inline-block; transition: transform .15s; }
.rec-last:hover .rl-more i { transform: translateX(2px); }
.rec-last .rl-row { display: flex; align-items: flex-start; gap: 10px; }
.rec-last .avatar { flex: none; margin-top: 1px; }
.rec-last .rl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rec-last .rl-top { display: flex; align-items: baseline; gap: 8px; }
.rec-last .rl-top b { font-weight: 700; font-size: 13.5px; }
.rec-last .rl-top time { font-size: 12px; color: var(--muted); }
.rec-last .rl-txt { color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.rec-card .rec-last { background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }
.rec-card.st-done .rec-last { background: color-mix(in srgb, var(--accent-soft) 30%, var(--panel)); }
/* 💬 원글 말풍선 안 아래쪽: 이 글에 달린 최근 댓글 (말풍선과 한 덩어리) */
.msgs .msg.text .body.has-reply { min-width: min(330px, 70vw, calc(100% - 56px)); padding-bottom: 10px; } /* 옆 시각(오후 6:47)이 들어갈 자리는 남기고 — 작은 휴대폰(360)에서 시각이 잘렸어요 */
.body .b-reply { white-space: normal; margin: 10px -6px 0; }
.body .b-reply .rec-last { margin: 0; padding: 8px 11px 9px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); } /* 아주 옅은 브라운 톤 */
.body .b-reply .rec-last:hover { background: color-mix(in srgb, var(--accent-soft) 75%, var(--panel)); }
.body .b-reply .rl-h { padding-bottom: 6px; margin-bottom: 7px; border-bottom-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.msgs .msg.mine .body .b-reply .rec-last { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); } /* 진한 말풍선 안: 밝은 상자에 진한 글씨로 또렷하게 (하영님 2026-10-20 — 예전 브라운 빛은 잘 안 보였어요) */
.msgs .msg.mine .body .b-reply .rec-last:hover { background: color-mix(in srgb, var(--accent-soft) 35%, var(--panel)); }
.body .b-reply .rl-txt { font-size: 14.5px; color: var(--text); line-height: 1.5; }
/* 글 없이 사진만 있는 글 아래 미리보기: 원글에서 꺾여 내려오는 연결선 (└) */
.msg-last { position: relative; padding-left: 22px; }
.msg-last::before { content: ''; position: absolute; left: 8px; top: -6px; width: 14px; height: 37px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-bottom: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-bottom-left-radius: 10px; pointer-events: none; }
.msg-last .rec-last { margin-top: 8px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }
/* ✅ 홈 「확인할 일」 나눠 보기 칩 */
/* ✅ 매장 현황 맨 위 「확인할 일」 줄: 왼쪽 큰 숫자 | 오른쪽 항목 칸 (가운데 맞춤) */
.td-bar { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; padding: 8px 10px 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); max-width: 100%; }
.td-total { display: flex; align-items: baseline; gap: 4px; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.td-total span { font-size: 12.5px; font-weight: 600; color: #cdb6a4; margin-right: 4px; align-self: center; }
.td-total b { font-size: 24px; line-height: 1; font-weight: 800; color: #fbf3ec; font-variant-numeric: tabular-nums; }
.td-total small { font-size: 12px; color: #cdb6a4; }
.td-items { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.td-it .td-sun { display: inline-grid; place-items: center; } .td-it .td-sun svg { width: 18px; height: 18px; stroke-width: 2.4; }
.td-it { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 10px; border-radius: 11px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #f3e6da; font-size: 13px; font-weight: 600; transition: background .15s; }
.td-it:hover { background: rgba(255, 255, 255, .16); }
.td-it .td-ic { font-size: 13px; opacity: .9; }
.td-it em { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 8px; display: grid; place-items: center; background: #e3c3ad; color: #3b302e; font-size: 12.5px; font-weight: 800; }
.td-it.td-am { padding-right: 10px; color: #f6dcae; }
.td-it.td-am .td-ic { color: #e7b46a; }
.td-it.td-am i { font-style: normal; opacity: .7; }
.td-done { font-size: 13px; color: #d9c4b3; padding: 0 4px; }
.td-bar.clear .td-total b { color: #cfe6d6; }
@media (max-width: 640px) { .td-bar { display: flex; gap: 10px; padding: 8px; } .td-total { padding-right: 10px; } .td-total b { font-size: 21px; } .td-it { height: 32px; font-size: 12.5px; } }
.td-rows .td-days { color: var(--danger, #c0392b); font-weight: 700; }
.td-rows .rm-top { flex-wrap: wrap; } .td-rows .td-seen { margin-left: auto; flex: none; }
.mm-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mm-files .mm-file { flex: 1 1 140px; justify-content: center; }
.ps-add.ps-file { padding: 0 12px; font-size: 13px; }
/* 메시지 한 번 누르기 → 메뉴 맨 위 반응 줄 (PC 메뉴에도) */
.menu:not(.sheet) .sheet-quick { display: flex; gap: 2px; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu:not(.sheet) .sheet-quick button { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 19px; border-radius: 50%; }
.menu .sheet-quick button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.menu .sheet-quick button:active { transform: scale(1.2); }
/* ✅ 끝난 업무 기록(협의완료 · 정산완료 · 처리완료 …): 카드 전체를 매장 브라운 톤으로 칠하고 오른쪽 위에 완료 도장 */
.rec-card.st-done { background: linear-gradient(0deg, rgba(139, 98, 72, .17), rgba(139, 98, 72, .17)), var(--panel); border-color: rgba(139, 98, 72, .42); border-left-color: #8b6248; position: relative; }
.rec-card.st-done::after { content: '✓  완료'; white-space: pre; position: absolute; top: 10px; right: 12px; padding: 7px 15px 7px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.3;
  color: #fff; background: #8b6248; box-shadow: 0 2px 8px rgba(60, 35, 25, .18); pointer-events: none; } /* 완료 표시 (예전 빨간 도장 대신 — 진한 브라운 알약) */
.rec-card.st-done .rec-head { padding-right: 96px; }
.rec-card.st-done .ph-fig img, .rec-card.st-done .files img { filter: saturate(.8); }
/* 회수 · 반려 · 취소: 회색으로 한 걸음 물러나게 */
.rec-card.st-gray { background: linear-gradient(0deg, rgba(120, 110, 105, .08), rgba(120, 110, 105, .08)), var(--panel); border-left-color: #9a908b; opacity: .85; }
/* 사이드 아래 🔔 · 설정도 선 아이콘 */
.side-foot .icon-btn .ico { width: 20px; height: 20px; color: #d9c3b5; }
.side-foot .icon-btn.on .ico { color: var(--side-active-text); }
.rec-card.st-done .pill.done { background: #8b6248; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.done { background: #4a3a33; color: #ecc8b2; } }
:root[data-theme="dark"] .pill.done { background: #4a3a33; color: #ecc8b2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rec-card.st-done::after { color: #2c2321; background: #d8ad92; } }
:root[data-theme="dark"] .rec-card.st-done::after { color: #2c2321; background: #d8ad92; }
.sale-sum.in-card { margin-top: 10px; background: rgba(139, 98, 72, .08); }
.dm-note { margin: 4px 0 0; }
/* 📅 일정 내용 보기 */
.evv { border-left: 4px solid var(--accent); padding: 2px 0 2px 14px; }
.evv-t { font-size: 18px; font-weight: 800; margin-bottom: 10px; line-height: 1.4; }
.evv-r { display: flex; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.evv-r > span { flex: none; width: 92px; color: var(--muted); }
.evv-r > b { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.evv-r a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.evv-done { margin-top: 10px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13.5px; }
/* 📌 전달 메모: 카드뉴스처럼 한 장씩 — 누르면 펼쳐서 내용을 크게 */
.mcd-list { display: flex; flex-direction: column; gap: 10px; }
.mcd { --c: var(--mk-dl); --cs: var(--mk-dl-s); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: 12px 16px 14px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.mcd.mk-rq { --c: var(--mk-rq); --cs: var(--mk-rq-s); } .mcd.mk-is { --c: var(--mk-is); --cs: var(--mk-is-s); } .mcd.mk-rf { --c: var(--mk-rf); --cs: var(--mk-rf-s); }
.mcd:hover { box-shadow: 0 6px 18px -10px rgba(60, 40, 30, .35); }
.mcd.open { cursor: default; box-shadow: 0 10px 28px -14px rgba(60, 40, 30, .45); }
.mcd.fin { opacity: .72; }
.mcd.mine { box-shadow: inset 0 0 0 2px var(--c); }
.mcd-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; }
.mcd-k { font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--cs); color: var(--c); }
.mcd-st { font-weight: 700; color: var(--muted); }
.mcd-st.me { color: #fff; background: var(--c); padding: 2px 9px; border-radius: 999px; }
.mcd-st.ok { color: var(--accent-text); }
.mcd-by { color: var(--muted); margin-left: auto; }
.mcd-caret { color: var(--accent-text); font-weight: 700; }
.mcd-t { margin: 8px 0 2px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.mcd-pre { margin: 4px 0 0; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcd-body { margin-top: 10px; display: grid; gap: 10px; }
.mcd-note { background: var(--cs); border-radius: 12px; padding: 10px 14px 12px; }
.mcd-note-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--c); margin-bottom: 6px; }
.mcd-note-b { font-size: 16px; line-height: 1.75; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.mcd-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.mcd-who > span { color: var(--muted); margin-right: 4px; }
.mcd-who i { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--paper); font-weight: 600; }
.mcd-who i.ok { background: var(--accent-soft); color: var(--accent-text); }
.mcd-who i.none { color: var(--muted); font-weight: 500; }
.mcd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.memo-card .mcd-note { --c: var(--mk-dl); --cs: var(--mk-dl-s); margin: 8px 0 10px; }
.memo-card.mk-rq .mcd-note { --c: var(--mk-rq); --cs: var(--mk-rq-s); } .memo-card.mk-is .mcd-note { --c: var(--mk-is); --cs: var(--mk-is-s); } .memo-card.mk-rf .mcd-note { --c: var(--mk-rf); --cs: var(--mk-rf-s); }

/* 판매 · 발주 같은 일반 글 아래 최근 댓글 (기록 카드와 같은 모양) */
.msg-last { max-width: 582px; }
.evv-cust b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evv-cust .evc-in { flex: 1; min-width: 120px; height: 36px; padding: 0 10px; font-size: 15px; }

/* 📆 캘린더 분류: 📥 들어와요(갈색 계열) · 📤 나가요(초록 계열) · 🗂️ 그 밖에(회색) */
:root { --k-cs: #8a5a3c; --k-cs-s: #f3e6dc; --k-pre: #8a5a3c; --k-pre-s: #f3e6dc; --k-cp: #a8743f; --k-cp-s: #f7ead9; --k-rt: #c26a1c; --k-rt-s: #fbecdc;
  --k-pk: #1f8a70; --k-pk-s: #def3ec; --k-qk: #2f7d4f; --k-qk-s: #e1f1e6; --k-rc: #5d7f2e; --k-rc-s: #eaf2dc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-cs: #d8ad92; --k-cs-s: #3d2e25; --k-pre: #d8ad92; --k-pre-s: #3d2e25; --k-cp: #e3bb8a; --k-cp-s: #40321f; --k-qk: #8fd3a8; --k-qk-s: #1e3a28; --k-rc: #b8d68a; --k-rc-s: #2c3a1d; } }
:root[data-theme="dark"] { --k-cs: #d8ad92; --k-cs-s: #3d2e25; --k-pre: #d8ad92; --k-pre-s: #3d2e25; --k-cp: #e3bb8a; --k-cp-s: #40321f; --k-qk: #8fd3a8; --k-qk-s: #1e3a28; --k-rc: #b8d68a; --k-rc-s: #2c3a1d; }
.cc-ev.k-cp { background: var(--k-cp-s); box-shadow: inset 3px 0 0 var(--k-cp); } .cc-dot.k-cp { background: var(--k-cp); }
.cc-ev.k-qk { background: var(--k-qk-s); box-shadow: inset 3px 0 0 var(--k-qk); } .cc-dot.k-qk { background: var(--k-qk); }
.cc-ev.k-rc { background: var(--k-rc-s); box-shadow: inset 3px 0 0 var(--k-rc); } .cc-dot.k-rc { background: var(--k-rc); }
.cc-kinds button.on.k-cp, .cc-kinds.pick button.on.k-cp { background: var(--k-cp-s); border-color: var(--k-cp); color: var(--k-cp); }
.cc-kinds button.on.k-qk, .cc-kinds.pick button.on.k-qk { background: var(--k-qk-s); border-color: var(--k-qk); color: var(--k-qk); }
.cc-kinds button.on.k-rc, .cc-kinds.pick button.on.k-rc { background: var(--k-rc-s); border-color: var(--k-rc); color: var(--k-rc); }
.ev-card.k-cp { --kc: var(--k-cp); --ks: var(--k-cp-s); } .ev-card.k-qk { --kc: var(--k-qk); --ks: var(--k-qk-s); } .ev-card.k-rc { --kc: var(--k-rc); --ks: var(--k-rc-s); } .ev-card.k-pre { --kc: var(--k-pre); --ks: var(--k-pre-s); }
.cc-kinds.grouped { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cc-kinds.grouped .cc-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-kinds.grouped .cc-grp-h { flex: 0 0 auto; min-width: 74px; font-size: 12px; font-weight: 700; color: var(--muted); }
@media (max-width: 640px) { .cc-kinds.grouped .cc-grp-h { flex-basis: 100%; min-width: 0; } }

/* 📅 검색창 날짜로 찾기 (모든 채널 · 전체 검색): 기간 칸 + 오늘 · 어제 · 이번 주 … 버튼 */
.cs-dates { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-left: 26px; }
.cs-dates .cs-dl { font-size: 14px; }
.cs-dates input[type=date] { flex: 0 1 160px; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; height: 38px; }
.cs-tilde { color: var(--muted); font-size: 13px; }
.cs-days { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding-left: 26px; }
.cs-days button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cs-days button.on { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.cs-sum { position: sticky; top: -4px; z-index: 1; margin: -4px -4px 6px; padding: 10px 14px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 14px; border-radius: 10px 10px 0 0; }
.cs-sum b { font-size: 15.5px; }
.cs-sum small { color: var(--muted); }
.sx-dates { margin: 2px 0 14px; }
.sx-dates .cs-dates, .sx-dates .cs-days { padding-left: 0; }
@media (max-width: 640px) {
  /* 휴대폰: 날짜 두 칸은 반반, 날짜 버튼은 한 줄로 옆으로 밀어서 */
  .cs-dates { padding-left: 0; }
  .cs-dates .cs-dl { display: none; }
  .cs-dates input[type=date] { flex: 1 1 0; height: 42px; font-size: 15px; padding: 8px 10px; }
  .cs-days { padding-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; margin-right: -12px; padding-right: 12px; -webkit-overflow-scrolling: touch; }
  .cs-days::-webkit-scrollbar { display: none; }
  .cs-days button { padding: 8px 15px; font-size: 14px; flex: none; }
  .cs-results { max-height: 58vh; }
}
@media (max-width: 640px) {
  /* 휴대폰 검색창: 검색칸 · ↑ ↓ ✕ 를 한 줄로 */
  .cs-bar { flex-wrap: nowrap; gap: 2px; }
  .cs-bar .cs-ic { display: none; }
  .cs-bar #csQ { flex: 1 1 auto; flex-basis: auto; height: 42px; font-size: 15px; }
  .cs-bar .icon-btn { width: 34px; height: 38px; flex: none; }
  .cs-count { min-width: 0; font-size: 12px; }
  .cs-count:empty { display: none; }
}

/* 📆 캘린더 일정: 고객 이름만이 아니라 제목 전체가 보이게 (줄바꿈) */
.cc-ev b { white-space: normal; overflow: visible; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.3; }
@media (max-width: 640px) {
  .cc-ev { padding: 3px 3px; }
  .cc-ev b { font-size: 10px; line-height: 1.25; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
.cc-row .grow { white-space: normal; }

/* 🧥 위탁 예정 (대표님 탭) */
.plan-pad { max-width: 760px; }
.plan-head { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.plan-day { margin-bottom: 16px; }
.plan-day h3 { font-size: 15px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.plan-day.today h3 { color: var(--accent-text); }
.plan-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 6px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--k-cs); border-radius: 12px; }
.plan-row.k-pre { border-left-color: var(--k-pre); } .plan-row.k-cp { border-left-color: var(--k-cp); }
.plan-row.done { opacity: .6; }
.plan-row .pr-t { flex: 0 0 64px; font-weight: 700; font-size: 14px; }
.plan-row .pr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plan-row .pr-m b { font-size: 15px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.plan-row .pr-m small { color: var(--muted); font-size: 12.5px; }
.plan-row .pr-go { color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .plan-row .pr-t { flex-basis: 48px; font-size: 13px; } .plan-head { justify-content: stretch; } .plan-head .btn { flex: 1; } }

/* 크게 보기: 원본을 받는 동안 작은 사진 + 오른쪽 아래 작은 표시 */
.lightbox.lb-loading::after { content: '원본 불러오는 중…'; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; pointer-events: none; }
.lightbox img { min-width: min(100%, 320px); object-fit: contain; }
/* 채널 아이콘: 은은한 색 네모 + 같은 색 선 아이콘 */
.nav-item .ic .ch-bdg { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.nav-item .ic .ch-bdg .ico { width: 14px; height: 14px; stroke-width: 2; }
.nav-item.active .ic .ch-bdg { background: color-mix(in srgb, var(--c) 32%, transparent); }
/* 「○○님이 입력 중」: 입력창 위에 떠서 글자를 가리지 않게 대화 맨 아래 한 줄로 */
.ty-inline { padding: 6px 4px 2px; }
.ty-inline .ty-row { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); animation: tyIn .22s ease; }
.ty-inline .avatar { width: 24px; height: 24px; font-size: 9.5px; }
.ty-inline .avatar + .avatar { margin-left: -12px; }
.ty-inline .ty-name { font-size: 12.5px; font-weight: 700; color: var(--muted); text-shadow: none; }
/* 📆 날짜 미정: 한 줄씩 촘촘하게 (길어지지 않게 5개까지 + 더 보기) */
.ud-card h3 { margin-bottom: 8px; }
.ud-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ud-chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--muted); }
.ud-chip.r0 { background: #fbe3e0; color: #a33a2c; }
.ud-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.ud-row:last-of-type { border-bottom: 0; }
.ud-row .ud-t { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-row .ud-dt { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ud-row.r0 .ud-dt { color: #b2442f; font-weight: 700; }
.ud-row .ud-pick { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.ud-more { width: 100%; margin-top: 6px; padding: 7px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); }

/* 🔍 채널 검색: 제목 바로 옆에 글자와 함께 */
.tb-search { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px 0 11px; margin: 0 4px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tb-search:hover { background: var(--accent-soft); border-color: var(--accent); }
@media (max-width: 760px) { .tb-search { height: 30px; padding: 0 11px 0 9px; font-size: 12.5px; margin-left: 4px; } }

.ch-railw { position: relative; }
.ch-arr { position: absolute; top: 2px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 18px; color: var(--text); display: none; }
.ch-arr.l { left: -6px; } .ch-arr.r { right: -6px; }
.ch-railw.can-l .ch-arr.l, .ch-railw.can-r .ch-arr.r { display: grid; place-items: center; }
.ch-railw.can-r::after { content: ''; position: absolute; right: 0; top: 0; bottom: 10px; width: 48px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); }
.ch-railw.can-l::before { content: ''; position: absolute; left: 0; top: 0; bottom: 10px; width: 48px; pointer-events: none; background: linear-gradient(to left, transparent, var(--bg)); z-index: 1; }
@media (hover: none) { .ch-arr { display: none !important; } }
.cp-list { display: grid; gap: 8px; margin: 10px 0; }
.cp-list div { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); }
.cp-list span { font-size: 13px; color: var(--muted); }


.ldg-br { flex-basis: 100%; height: 0; }
.ldg-no { flex: none; display: inline-block; padding: 2px 9px; border-radius: 7px; background: rgba(176, 122, 60, .16); color: #8a5a22; font-size: 12.5px; font-weight: 800; }
:root[data-theme="dark"] .ldg-no { color: #eac79a; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ldg-no { color: #eac79a; } }

.ch-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px 7px; background: rgba(0, 0, 0, .025); border-top: 1px solid var(--line); font-size: 13.5px; position: sticky; top: 0; z-index: 1; }
.ch-rows .ch-sub:first-child { border-top: 0; }
.ch-sub span { font-size: 12px; font-weight: 800; color: var(--muted); }
.ch-sub.full b, .ch-sub.full span { color: #3f7a4e; }
.ch-sub + .cz-row { border-top: 0; }

/* 👷 월간 근무 합계: 단기 알바 따로 (일한 날 · 시간) */
.ms-tbl .ms-sec td { background: var(--accent-soft); font-weight: 800; font-size: 13px; }
.ms-tbl .ms-sec small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.ms-tbl .ms-temp td { border-bottom: 0; }
.ms-tbl .ms-temp-days td { padding-top: 0; }
.ms-tbl .ms-days { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; left: 0; max-width: min(100%, calc(100vw - 72px)); }
.ms-tbl .ms-days span { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.ms-tbl .ms-temp-sum td { font-weight: 800; border-top: 2px solid var(--line); }
/* 📷 사진 고치기 */
.pe-grp .ps-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pe-th { position: relative; }
.pe-th.off img { opacity: .35; filter: grayscale(1); }
.pe-th .pe-off, .pe-th .pe-new { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #c0392b; color: #fff; pointer-events: none; }
.pe-th .pe-new { background: #2f7d4f; }
.pe-add { min-width: 96px; }
.pe-th img { width: 84px; height: 84px; }

/* 이번 주 근무: 휴대폰에서는 요일 위 · 날짜 아래로 (칸 밖으로 안 넘치게) */
@media (max-width: 520px) { .wk-h { flex-direction: column; align-items: center; gap: 1px; } .wk-h b { font-size: 13px; } .wk-h small { font-size: 10.5px; } .wk-d { padding: 9px 3px 11px; } }

/* 세로로 긴 캡처 크게 보기 (PC · 포스기): 읽기 좋은 너비로 펴고 위아래로 굴리기 */
.lightbox.lb-tall { display: block; overflow: auto; touch-action: auto; padding: 64px 20px 56px; cursor: default; }
.lightbox.lb-tall img { display: block; margin: 0 auto; max-width: none; max-height: none; height: auto; transform: none !important; cursor: default; border-radius: 6px; }
.lightbox.lb-tall .lb-hint { position: fixed; }
.lightbox.lb-tall .lb-nav { position: fixed; }

/* 📅 위탁 · 반품·교환 · 판매내역 날짜 구분 (시안 D): 큰 날짜 + 요일 + 굵은 줄, 오른쪽에 그날 건수 */
.msgs .day-sep.ds2 { display: flex; align-items: baseline; gap: 8px; margin: 30px 16px 12px; padding: 0 2px 8px; border-bottom: 2px solid #2f221c; color: #2f221c; font-size: 13px; }
.msgs .day-sep.ds2::before, .msgs .day-sep.ds2::after { display: none; }
.day-sep.ds2 b { font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #2f221c; }
.day-sep.ds2 span { font-size: 13.5px; font-weight: 700; color: #6e4836; }
.day-sep.ds2 i { flex: 1; }
.day-sep.ds2 small { font-size: 12.5px; font-weight: 700; color: #8a7366; white-space: nowrap; }
.msgs > .day-sep.ds2 { padding: 0 2px 8px; }
@media (min-width: 821px) { .msgs > .day-sep.ds2 { margin-left: 28px; margin-right: 28px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msgs .day-sep.ds2 { border-color: #d8ad92; } :root:not([data-theme="light"]) .day-sep.ds2 b { color: #f3e6da; } :root:not([data-theme="light"]) .day-sep.ds2 span { color: #d8ad92; } :root:not([data-theme="light"]) .day-sep.ds2 small { color: #b9a294; } }
:root[data-theme="dark"] .msgs .day-sep.ds2 { border-color: #d8ad92; } :root[data-theme="dark"] .day-sep.ds2 b { color: #f3e6da; } :root[data-theme="dark"] .day-sep.ds2 span { color: #d8ad92; } :root[data-theme="dark"] .day-sep.ds2 small { color: #b9a294; }

/* 📢 공지 카드 아래 최근 댓글 (접힌 공지에도 보여요) */
.ntc-last { padding: 0 16px 14px 62px; }
.ntc-last .rec-last { margin-top: 0; }
@media (max-width: 820px) { .ntc-last { padding: 0 12px 12px; } }


/* 🖐 사진 끌어서 순서 바꾸기 (부드럽게) */
.photo-slot .ps-th { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.photo-slot .ps-th img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.ps-th.ps-ph { visibility: hidden; }
.ps-ghost { position: fixed !important; z-index: 1000; margin: 0 !important; pointer-events: none; cursor: grabbing; will-change: transform; border-radius: 10px; box-shadow: 0 14px 30px rgba(47, 34, 28, .35); }
.ps-ghost img { width: 100%; height: 100%; object-fit: cover; }
.ps-sorting { cursor: grabbing; }

/* ☕ 휴게 시간: 끝을 30분 단위로 고르는 칸 */
.bk-time { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.bk-durs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.bk-dur { grid-column: span 2; }
.bk-dur { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.bk-dur b { font-size: 14px; font-weight: 700; }
.bk-dur small { font-size: 11.5px; color: var(--muted); }
.bk-dur.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-dur.on small { color: rgba(255,255,255,.85); }
.bk-dur.wide { grid-column: span 3; }
.bk-durs + .bk-time { margin-top: 8px; }

/* 🔔 알림함 탭마다 안 읽은 수 */
.notif-tabs .nt-n { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; vertical-align: 1px; text-align: center; font-variant-numeric: tabular-nums; }
.notif-tabs .on .nt-n { background: var(--pri-fg); color: var(--pri); }
#notifReadBtn:disabled { opacity: .45; }
.notif-tabs button { position: relative; }
.notif-tabs .nt-n { position: absolute; top: -5px; right: -3px; z-index: 1; margin: 0; min-width: 15px; height: 15px; line-height: 15px; padding: 0 3px; font-size: 9.5px; }

/* 📱 안드로이드(갤럭시): 버튼을 누를 때 파란 네모가 번쩍이지 않게 */
button, a, [data-go], [data-act], .nav-item, .chat-row, .msg { -webkit-tap-highlight-color: transparent; }

/* ✏️ 기록 수정 창의 📷 사진 칸 */
.rec-ph .rec-ph-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.rec-ph .rec-ph-row:empty { display: none; }
.rec-ph [data-recphed] { align-self: flex-start; }
/* 📱 휴대폰(아이폰 · 안드로이드)에서 창이 화면 밖으로 밀려 잘리지 않게 — 긴 버튼 · 날짜 칸이 창 폭을 넓히지 못하게 */
.modal-back { grid-template-columns: minmax(0, 1fr); }
.modal, .modal-b { min-width: 0; }
.modal-b { overflow-x: hidden; }
.modal-f { flex-wrap: wrap; }
.modal-f .btn { min-width: 0; max-width: 100%; white-space: normal; }
@media (max-width: 820px) { .modal-f .btn { flex: 1 1 auto; justify-content: center; } }
/* 위탁 · 반품 채널: 상태별로 걸러 보기 (아래 줄) */
.rec-sfilter { padding-top: 2px; padding-bottom: 6px; gap: 5px; }
.rec-sfilter button { padding: 5px 11px; font-size: 12.5px; font-weight: 600; }
.rec-sfilter button.zero:not(.on) { opacity: .45; }
.rec-sfilter .rs-sep { flex: none; width: 1px; height: 20px; align-self: center; background: var(--line); border-radius: 0; margin: 0 3px; }
/* 🧪 연습용 서버 표시 (STAGING=1) — 화면 위 가운데 작은 띠, 누를 수 없어요 */
#stagingTag { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 2px); left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none;
  background: #d9480f; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; opacity: .92; white-space: nowrap; }

/* 📅 한국어가 아닌 브라우저: 날짜 칸 위에 「2026년 10월 18일 (일)」 (원래 글자는 투명하게, 달력 아이콘은 그대로) */
.kdate { position: relative; min-width: 0; }
.kdate > input[type=date] { width: 100%; color: transparent; }
.kdate > input[type=date]::-webkit-datetime-edit, .kdate > input[type=date]::-webkit-date-and-time-value { color: transparent; opacity: 0; }
.kdate-t { position: absolute; left: 12px; right: 34px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text, #2b2522);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: inherit; }
.kdate.empty .kdate-t { color: var(--muted, #8a8079); }

/* 📱 휴대폰(iOS · 안드로이드): 옆으로 밀어야 보이던 줄은 다음 줄로 넘겨서 한눈에 (2026-10-18) */
@media (max-width: 820px) {
  .rec-tabs, .cs-days { flex-wrap: wrap; overflow-x: visible; } /* 채널 위 탭 줄(.ntc-filter)은 한 줄로 밀어 보기 — features/chantabs.css · 청소 챕터 줄(.ch-rail)은 features/clean.css */
  .cs-days { margin-right: 0; padding-right: 0; }
  .cons-cal > *, .view, .page { min-width: 0; }
  /* 입력창 위 양식 버튼 줄(픽업 예정 · 위탁 택배 · 현장 위탁 · 반품 택배 …)도 다음 줄로 — 판매내역은 원래 3칸 격자 */
  .action-bar:not(.ab-sales) { flex-wrap: wrap; overflow-x: visible; }
  .action-bar:not(.ab-sales) .act-btn { flex: 1 1 auto; justify-content: center; padding: 8px 10px; font-size: 13.5px; }
}
/* 📅 채팅을 스크롤할 때 위쪽 가운데 날짜 (app.js floatDay) — 높이 0인 자리에 떠 있어서 글을 밀지 않아요 */
.float-day { position: relative; height: 0; z-index: 6; display: flex; justify-content: center; pointer-events: none; }
.float-day[hidden] { display: none; }
.float-day b { position: absolute; top: 8px; padding: 5px 14px; border-radius: 999px; background: rgba(47, 34, 28, .82); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); white-space: nowrap; }
/* ↗ 공유한 글 안의 원본 상자 (features/share.js) */
.shr-card { margin: 4px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--panel); display: grid; gap: 6px; max-width: 560px; }
.shr-card.gone { color: var(--muted); font-size: 13px; border-left-color: var(--line-2); }
.shr-h { font-size: 12px; color: var(--muted); } .shr-h b { color: var(--text); }
.shr-b { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.shr-card .files img { max-height: 180px; }
.shr-go { justify-self: start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.shr-picks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow-y: auto; }
.shr-picks .chip.on { background: var(--pri); color: var(--pri-fg); border-color: var(--pri); }
/* 📋 판매내역 · 위탁: 모든 글이 같은 폭 카드로 차곡차곡 (app.js msgHtml stack · sales.js stackCh) */
.msgs .msg.stack > div:nth-child(2) { width: 100%; max-width: 720px; }
.msgs .msg.stack .rec-card, .msgs .msg.stack .sale-sum, .msgs .msg.stack .ev-card, .msgs .msg.stack .shr-card, .msgs .msg.stack .bline { width: 100%; max-width: 100%; box-sizing: border-box; }
.msgs .msg.stack .bline > .body { flex: 1; }
/* ↗ 공유 + 남긴 말: 한 말풍선 안에 — 말이 위, 원본 상자가 아래 (시안 A) */
.msgs .msg .body.has-shr { min-width: min(320px, 72vw, calc(100% - 56px)); }
.body .shr-card { margin: 10px -4px 0; max-width: none; color: var(--text); border-left-width: 1px; white-space: normal; }
.msgs .msg.mine .body .shr-card { border-color: transparent; }
/* 📷 사진 + 글 한 메시지 (app.js picIn): 사진을 말풍선 안 위쪽에 — 한 덩어리로 */
.msgs .msg .body.has-pics { padding-top: 4px; box-sizing: border-box; max-width: min(100%, 520px); } .msgs .msg .body.has-pics.pics-n { width: min(100%, 520px); }
.msgs .msg .body.has-pics > .b-pics { justify-content: flex-start; margin: 0 -10px 8px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; }
.body.has-pics > .b-pics img { flex: none; scroll-snap-align: start; border: 0; border-radius: 14px; max-width: 100%; max-height: 320px; } .body.pics-n > .b-pics img { width: min(200px, 40vw); height: min(220px, 46vw); max-width: none; }
.msgs .msg.shr-top .meta, .msgs .msg.shr-top .shared-from { display: none !important; } /* ↗ 공유 글 + 바로 이어 쓴 말 = C안 한 묶음 테두리 (app.js attTo · 하영님 2026-10-19 시안 C) */
.shr-head { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; } .shr-head b { color: var(--accent-text); } .shr-head span { color: var(--muted); white-space: nowrap; }
.shr-orig { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.msgs .msg.shr-top { padding-bottom: 0; } .msgs .msg.shr-att { padding-top: 0; padding-bottom: 0; }
.msgs .msg.shr-att-rec, .msgs .msg.shr-top-rec { grid-template-columns: minmax(0, 1fr); } .msgs .msg.shr-att-rec > .avatar, .msgs .msg.shr-att-rec > .gutter-time, .msgs .msg.shr-top-rec > .avatar { display: none; }
.msgs .msg.shr-top > div:nth-child(2), .msgs .msg.shr-att > div:nth-child(2) { box-sizing: border-box; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); padding: 3px 10px; }
.msgs .msg.shr-top > div:nth-child(2) { border-bottom: 0; border-radius: 18px 18px 0 0; padding-top: 10px; }
.msgs .msg.shr-att > div:nth-child(2) { border-top: 0; border-bottom: 0; }
.msgs .msg.shr-att:not(:has(+ .msg.shr-att)) > div:nth-child(2) { border-bottom: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 0 0 18px 18px; padding-bottom: 10px; margin-bottom: 6px; }
/* 🖼️ 전달 메모 보드 카드의 첨부 사진 · 파일 */
.mcd-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mcd-files img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; background: var(--paper); }
.mcd-files.full { margin-top: 0; }
.mcd-files.full img { width: calc(50% - 3px); height: auto; max-height: 360px; }
.mcd-files .mcd-fn { font-size: 12px; color: var(--muted); }
/* 날짜 미정 · 확인 필요: 줄 앞 「✓ 해결」 */
.ud-row .ud-ok { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2, #d9cabd); background: var(--panel, #fff); color: var(--muted); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ud-row .ud-ok:hover { border-color: var(--ok); color: var(--ok); }