/* 색 체계 v1 (2026-10-19 사무엘님 "색상이 전반적으로 붕 떠 있다 … 색상 톤을 먼저 차분하게 확실하게 시스템으로 정리한 다음에 테마 색을 정하자")
   ① 기본 회색 단계(--n-0 ~ --n-950) 하나로 바탕·면·줄·글자를 모두 정한다. 노랑 기가 아주 조금 도는 같은 색조의 회색.
   ② 의미 색(--canvas·--surface·--border·--text…)만 화면 부품에 쓴다. 부품에 색 값을 직접 쓰지 않는다.
   ③ 상태색(성공·주의·위험·안내)과 꼬리표 색은 채도를 낮추고 밝기를 서로 맞춘다 — 한 색만 튀지 않게.
   ④ 채널 색(인스타그램·페이스북·스레드)은 체계 밖 예외로 각 회사 브랜드 색을 그대로 쓴다 — 채널 표시에만 쓰고 다른 부품에는 쓰지 않는다
      (2026-10-19 사무엘님 "페북 인스타 스레드 색상은 입힌 상태에서 봐야지").
   ⑤ 테마 색(--accent)은 숲 초록 #2F6B4F (사무엘님 확정 2026-10-19 "초록으로 가"). 바꿀 땐 --accent 묶음 다섯 줄만 바꾼다.
   ⑥ 주의 표시(연결 끊김·확인 필요)는 색을 쓰지 않고 무채색으로 — 화면에서 초록과 채널 색 말고는 튀는 색이 없게 (같은 날 지시). */
:root {
  --n-0: #FFFFFF; --n-25: #FBFBFA; --n-50: #F6F6F5; --n-100: #EEEEEC; --n-150: #E5E5E2; --n-200: #D8D8D4;
  --n-300: #BFBFBA; --n-400: #9D9D98; --n-500: #6B6B66; --n-600: #5B5B57; --n-700: #444441; --n-800: #2E2E2C; --n-900: #1D1D1C; --n-950: #121211;

  --canvas: var(--n-50); --surface: var(--n-0); --sunken: var(--n-25); --field: var(--n-100);
  --hover: var(--n-100); --selected: var(--n-150);
  --border: var(--n-150); --border-strong: var(--n-200); --line: var(--n-150); --control: var(--n-400);
  --text: var(--n-900); --text2: var(--n-600); --text3: var(--n-500);

  --accent: #2F6B4F; --accent-hover: #275A42; --on-accent: #FFFFFF; --accent-soft: #E4EEE8; --accent-text: #285C44;

  --ok: #3E7552; --ok-soft: #E9F1EB; --warn: #8A6418; --warn-soft: #F5EEDF; --bad: #A4433D; --bad-soft: #F6E9E7; --info: #3E5E8C; --info-soft: #E8EDF4;
  --tag-rose: #C48B98; --tag-violet: #9688BE; --tag-amber: #C39A5E; --tag-teal: #6E9E99;
  --ch-instagram: #E1306C; --ch-facebook: #0866FF; --ch-threads: #000000; --net-icon: #FFFFFF; --avatar-bg: var(--n-150); --avatar-text: var(--n-700);

  --dim: rgba(18, 18, 17, .40); --shadow: 0 12px 32px rgba(18, 18, 17, .12), 0 2px 6px rgba(18, 18, 17, .05); --raise: 0 1px 2px rgba(18, 18, 17, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: var(--n-950); --surface: #1A1A19; --sunken: #161615; --field: #252523;
    --hover: #252523; --selected: #2E2E2C;
    --border: #2A2A28; --border-strong: #3A3A37; --line: #2A2A28; --control: #75756F;
    --text: #EDEDEA; --text2: #A6A6A1; --text3: #85857F;
    --accent: #7DBE99; --accent-hover: #93CBAA; --on-accent: #0E1F16; --accent-soft: #1E2B23; --accent-text: #9CCFB2;
    --ok: #7FB592; --ok-soft: #1C2A21; --warn: #D2AE68; --warn-soft: #2D2617; --bad: #D88A84; --bad-soft: #31201E; --info: #8FA9CF; --info-soft: #1D2533;
    --tag-rose: #B98692; --tag-violet: #8F84B3; --tag-amber: #B4925E; --tag-teal: #6C9792;
    --ch-instagram: #E1306C; --ch-facebook: #0866FF; --ch-threads: #F2F2F0; --ch-threads-icon: #000000; --net-icon: #FFFFFF; --avatar-bg: #2E2E2C; --avatar-text: #CFCFCB;
    --dim: rgba(0, 0, 0, .6); --shadow: 0 12px 32px rgba(0, 0, 0, .55); --raise: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: var(--n-950); --surface: #1A1A19; --sunken: #161615; --field: #252523;
  --hover: #252523; --selected: #2E2E2C;
  --border: #2A2A28; --border-strong: #3A3A37; --line: #2A2A28; --control: #75756F;
  --text: #EDEDEA; --text2: #A6A6A1; --text3: #85857F;
  --accent: #7DBE99; --accent-hover: #93CBAA; --on-accent: #0E1F16; --accent-soft: #1E2B23; --accent-text: #9CCFB2;
  --ok: #7FB592; --ok-soft: #1C2A21; --warn: #D2AE68; --warn-soft: #2D2617; --bad: #D88A84; --bad-soft: #31201E; --info: #8FA9CF; --info-soft: #1D2533;
  --tag-rose: #B98692; --tag-violet: #8F84B3; --tag-amber: #B4925E; --tag-teal: #6C9792;
  --ch-instagram: #E1306C; --ch-facebook: #0866FF; --ch-threads: #F2F2F0; --ch-threads-icon: #000000; --net-icon: #FFFFFF; --avatar-bg: #2E2E2C; --avatar-text: #CFCFCB;
  --dim: rgba(0, 0, 0, .6); --shadow: 0 12px 32px rgba(0, 0, 0, .55); --raise: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* 창이 열려 페이지 스크롤을 막아도 스크롤 막대 자리를 남겨 배경 배치가 움직이지 않게 (사무엘님 지적 2026-10-19) */
html { scrollbar-gutter: stable; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px; line-height: 20px; color: var(--text); background: var(--canvas);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--text2); }
.small { font-size: 12px; line-height: 16px; }
.grow { flex: 1; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn .i { width: 16px; height: 16px; }
.btn.green { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.green:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--text); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--hover); }
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn.sm { width: 28px; height: 28px; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font-weight: 500; cursor: pointer; }
.text-btn:hover { background: var(--hover); }
.text-btn .i { width: 16px; height: 16px; }
.text-btn.danger { color: var(--bad); }
.text-green { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent-text); font-weight: 500; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.text-green:hover { background: var(--accent-soft); }
.text-green .i { width: 16px; height: 16px; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip-btn:hover { background: var(--hover); }
.chip-btn .i { width: 14px; height: 14px; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; }
.tb-btn:hover, .tb-btn[aria-expanded="true"] { background: var(--hover); }
.tb-btn .i { width: 16px; height: 16px; color: var(--text2); }
.tb-btn.on { background: var(--hover); }
.tb-btn.tz { cursor: default; color: var(--text2); } .tb-btn.tz:hover { background: none; }
.ch-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.today-btn { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; cursor: pointer; }
.today-btn:hover { background: var(--hover); }

/* 왼쪽 아이콘 줄 */
#app { display: flex; min-height: 100vh; }
/* 넓은 화면(1200px 이상)에서는 왼쪽 메뉴를 글자와 함께 펼친다 (사무엘님 지시 2026-10-19 "화면이 클 때도 좌측 메뉴 접혀있는게 보기 싫다").
   1199px 이하는 아이콘 줄, 760px 이하는 아래 탭 줄. */
.rail { width: 240px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 14px 16px; overflow-y: auto; scrollbar-width: none; }
.rail-logo { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-bottom: 10px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.rail-logo .i { width: 26px; height: 26px; stroke-width: 2; }
.rail-new { height: 44px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; margin-bottom: 12px; font-weight: 600; font-size: 15px; }
.rail-new:hover { background: var(--accent-hover); }
.rail-new .i { width: 20px; height: 20px; stroke-width: 2.2; }
.rail > a { height: 40px; border-radius: 10px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--text2); text-decoration: none; font-weight: 500; }
.rail > a:hover { background: var(--hover); color: var(--text); }
.rail > a[aria-current="page"] { background: var(--selected); color: var(--text); font-weight: 600; }
.rail > a .i { width: 20px; height: 20px; }
.rail-ch { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.rail-cap { font-size: 12px; font-weight: 600; color: var(--text3); padding: 0 12px 4px; }
#railChannels { display: flex; flex-direction: column; gap: 2px; }
.rch { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); width: 100%; }
.rch:hover { background: var(--hover); }
.rch.sel { background: var(--selected); }
.rch .av { width: 36px; height: 36px; font-size: 14px; cursor: pointer; }
.rch .badge { width: 18px; height: 18px; } .rch .badge .i { width: 12px; height: 12px; }
.rt { min-width: 0; }
.rch .rt, .rail-me-row .rt { display: flex; flex-direction: column; }
.rch .rt b, .rail-me-row .rt b { font-size: 13px; line-height: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rch .rt small, .rail-me-row .rt small { font-size: 12px; line-height: 16px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rch.add .rt b { font-weight: 500; }
.add-av { background: none; border: 1.5px dashed var(--border-strong); color: var(--text2); }
.add-av .i { width: 18px; height: 18px; }
.rail-grow { flex: 1; min-height: 12px; }
.rail-me-row { display: flex; align-items: center; gap: 12px; padding: 8px; margin-top: 14px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; width: 100%; box-shadow: 0 -15px 0 -14px var(--border); }
.rail-me-row:hover, .rail-me-row[aria-expanded="true"] { background: var(--hover); }
.rail-me-row .rt { flex: 1; }
.me-chev { width: 16px !important; height: 16px !important; color: var(--text3); flex: none; }
.pop.me-pop { position: fixed; top: auto; right: auto; z-index: 65; width: 260px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.me-pop .menu-item { text-decoration: none; color: var(--text); }
.me-pop .menu-item .i { width: 18px; height: 18px; color: var(--text2); }
.me-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.me-h > div { display: flex; flex-direction: column; min-width: 0; }
.me-h b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-h small { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sep { height: 1px; background: var(--border); margin: 4px 0; }
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0; max-width: 820px; }
.info > div { padding: 12px 14px; border-radius: 10px; background: var(--canvas); min-width: 0; }
.info dt { font-size: 12px; color: var(--text2); }
.info dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
#profile, #auth { z-index: 70; }
.modal.small.pf { width: min(520px, 100%); padding: 0; gap: 0; max-height: calc(100vh - 48px); overflow: hidden; }
.pf .field { max-width: none; }
.pf .field label .muted { font-weight: 400; }
.pf .cn-foot .err { text-align: left; }
.rail-me { width: 36px; font-size: 14px; height: 36px; border-radius: 10px; background: var(--text); color: var(--surface); display: grid; place-items: center; font-weight: 600; flex: none; }
@media (min-width: 761px) and (max-width: 1199px) {
  .rail { width: 72px; align-items: center; padding: 20px 0 16px; }
  .rail .rt, .rail .me-chev { display: none !important; }
  .rail-logo { padding: 0; width: 40px; justify-content: center; }
  .rail-new { width: 44px; }
  .rail > a { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .rch { width: auto; padding: 0; } .rch:hover, .rch.sel { background: none; }
  .rch.sel .av { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--text); }
  .rch .av { width: 40px; height: 40px; }
  #railChannels { gap: 10px; align-items: center; }
  .rail-me-row { padding: 0; width: auto; box-shadow: none; } .rail-me-row:hover, .rail-me-row[aria-expanded="true"] { background: none; } .rail-me-row[aria-expanded="true"] .rail-me { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--text); }
  .rail-me { width: 40px; height: 40px; }
}

/* 채널 사진 + 채널 표시 */
.av { position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--avatar-bg); color: var(--avatar-text); display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; border: 0; padding: 0; cursor: pointer; }
.av .badge { position: absolute; right: -4px; bottom: -4px; }
.av.big { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; }
.av.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ring, var(--text)); }
.av.off { filter: grayscale(1); opacity: .45; }
.av.sel { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--text); }
.av .warn-dot { position: absolute; left: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.badge { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--net-icon); box-shadow: 0 0 0 2px var(--surface); }
.badge .i { width: 13px; height: 13px; stroke-width: 2; }
.net { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--net-icon); flex: none; }
.net .i { width: 12px; height: 12px; stroke-width: 2.2; }
.net.lg { width: 28px; height: 28px; border-radius: 8px; } .net.lg .i { width: 16px; height: 16px; }
.instagram { background: var(--ch-instagram); } .facebook { background: var(--ch-facebook); } .threads { background: var(--ch-threads); }
:root .threads { color: var(--ch-threads-icon, #FFFFFF); }
.nets { display: inline-flex; } .nets .net + .net { margin-left: -5px; box-shadow: 0 0 0 1.5px var(--surface); }

/* 본문 판 */
.panel { flex: 1; min-width: 0; margin: 8px 8px 8px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; min-height: calc(100vh - 16px); }
.panel:focus { outline: none; }
.ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-tile { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; flex: none; }
.ph-tile .i { width: 24px; height: 24px; stroke-width: 2; }
.ph h1 { font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; }
.ph-t { display: flex; flex-direction: column; min-width: 0; }
.ph-sub { font-size: 13px; color: var(--text2); }
.ph p, .ph-desc { color: var(--text2); flex: 0 0 100%; word-break: keep-all; }
.btn.lg { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; white-space: nowrap; }
.link:hover { color: var(--text); }
.link .i { width: 14px; height: 14px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.flabel { font-size: 13px; font-weight: 500; color: var(--text2); }
.i.xs { width: 12px; height: 12px; vertical-align: -1px; }

/* 홈 — 처음 온 가게 */
.hero { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; border-radius: 16px; background: var(--accent-soft); }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.hero-tag .i { width: 16px; height: 16px; }
.hero h1 { font-size: 30px; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; max-width: 640px; text-wrap: balance; word-break: keep-all; }
.hero > p { font-size: 16px; line-height: 26px; color: var(--text2); max-width: 600px; word-break: keep-all; }
.hero > p.small { font-size: 13px; line-height: 18px; }
.hero-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.feat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
.feat b { font-size: 15px; }
.feat p { font-size: 13px; line-height: 20px; color: var(--text2); word-break: keep-all; }
.feat-ic, .rec-ic, .todo-ic, .empty-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--field); display: grid; place-items: center; flex: none; color: var(--text); }
.feat-ic .i, .rec-ic .i, .todo-ic .i, .empty-ic .i { width: 18px; height: 18px; }
.progress { height: 6px; border-radius: 3px; background: var(--field); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.step-list, .how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.step-list li { display: flex; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--border); }
.step-list li:first-child { border-top: 0; }
.step-n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; color: var(--text2); }
.step-n .i { width: 16px; height: 16px; stroke-width: 2.6; }
.step-list li.done .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-list li.done b { color: var(--text2); text-decoration: line-through; font-weight: 500; }
.step-list li.cur .step-n { border-color: var(--accent); color: var(--accent-text); }
.step-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.step-b b { font-size: 15px; }
.step-b p { font-size: 13px; line-height: 19px; color: var(--text2); word-break: keep-all; }
.step-list li.done p { display: none; }
.about-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; padding: 16px; margin-top: 6px; border-radius: 12px; background: var(--canvas); }
.about-form .field { max-width: none; }
.how { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.how li { flex: 1 1 200px; display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--canvas); }
.how b { font-size: 14px; }
.how p { font-size: 13px; line-height: 19px; color: var(--text2); margin-top: 2px; word-break: keep-all; }

/* 홈 — 쓰던 가게 */
.home-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-head h1 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; word-break: keep-all; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hcard { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--surface); }
.hcard.wide { grid-column: 1 / -1; }
.hcard-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hcard-h h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.hcard-h .muted, .hcard-h .link { margin-left: auto; }
.count-pill { height: 22px; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.big-line { font-size: 15px; line-height: 22px; word-break: keep-all; }
.ylist { display: flex; flex-direction: column; }
.yrow { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.yrow time { width: 64px; flex: none; font-weight: 600; font-size: 13px; padding-top: 1px; }
.yrow-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.yrow-b p { font-size: 13px; line-height: 19px; color: var(--text2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; }
.res-list { display: flex; flex-wrap: wrap; gap: 6px; }
.res { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 4px; border-radius: 13px; background: var(--canvas); font-size: 12px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.res .net { width: 18px; height: 18px; } .res .net .i { width: 11px; height: 11px; }
.res.bad { background: var(--field); color: var(--text); font-weight: 600; }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.todo li:first-child { border-top: 0; padding-top: 0; }
.todo li > div { flex: 1; min-width: 0; }
.todo b { font-size: 14px; }
.todo p { font-size: 13px; line-height: 19px; color: var(--text2); margin-top: 2px; word-break: keep-all; }
.todo .btn { flex: none; }
.tiles { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile, .goal { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--canvas); min-width: 0; }
.tile-l { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); }
.tile-l .i { width: 16px; height: 16px; }
.tile b { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta { display: inline-flex; align-items: flex-start; gap: 4px; word-break: keep-all; font-size: 12px; line-height: 16px; color: var(--text2); }
.delta .i { width: 14px; height: 14px; }
.delta.up { color: var(--ok); }
.goal-top { display: flex; justify-content: space-between; gap: 8px; }
.goal-top span { font-weight: 600; font-variant-numeric: tabular-nums; }
.goal .progress { height: 8px; }
.goal .pills { margin-top: 4px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rec { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.rec b { font-size: 15px; line-height: 22px; word-break: keep-all; }
.rec p { font-size: 13px; line-height: 20px; color: var(--text2); word-break: keep-all; }
.rec-src { font-size: 12px; color: var(--text3); }
.rec .btn { margin-top: auto; }
.rec-ic { background: var(--accent-soft); color: var(--accent-text); }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.pmini { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; width: 100%; color: var(--text); }
.pmini:hover { border-color: var(--border-strong); }
.pmini-img { width: 48px; height: 48px; border-radius: 8px; background: var(--field) center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--text3); }
.pmini-img .i { width: 18px; height: 18px; }
.pmini-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pmini-top { display: flex; align-items: center; gap: 8px; }
.pmini-top time { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmini-t { font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bw h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.bw h3 .i { width: 16px; height: 16px; color: var(--text2); }
.bw-list { display: flex; flex-direction: column; gap: 4px; }
.why { font-size: 12px; color: var(--text3); padding: 0 0 8px 68px; }
.empty b { color: var(--text); font-size: 15px; }

/* 성과 표·막대 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.tbl th { text-align: right; font-weight: 500; color: var(--text2); padding: 10px 14px; background: var(--canvas); }
.tbl td { text-align: right; padding: 12px 14px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.cell-ch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.bars { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px 56px; align-items: center; gap: 12px; }
.bar-l { display: flex; flex-direction: column; font-weight: 500; }
.bar-l small { font-size: 12px; color: var(--text3); font-weight: 400; }
.bar { height: 12px; border-radius: 6px; background: var(--field); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--text2); font-weight: 500; cursor: pointer; }
.view-toggle button .i { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.toolbar .month { font-size: 18px; line-height: 26px; font-weight: 500; padding: 0 8px 0 6px; white-space: nowrap; }
.toolbar .vsep { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.pop-anchor { position: relative; }
.pop { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; min-width: 220px; }
.pop.left { left: 0; right: auto; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.menu-item:hover { background: var(--hover); }
.menu-item .i.ck { width: 16px; height: 16px; margin-left: auto; color: var(--accent); }
.ch-pop { width: 320px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1.5px solid var(--border-strong); border-radius: 10px; }
.search .i { width: 18px; height: 18px; color: var(--text2); }
.search input { border: 0; outline: none; background: none; flex: 1; min-width: 0; }
.ch-pop-h { display: flex; justify-content: space-between; color: var(--text2); font-size: 13px; padding: 0 2px; }
.ch-pop-h button { border: 0; background: none; color: var(--text2); cursor: pointer; font-size: 13px; }
.ch-opt { display: flex; align-items: center; gap: 12px; padding: 6px 2px; cursor: pointer; }
.ch-opt .av { cursor: pointer; }
.ch-opt .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-opt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-opt small { color: var(--text3); font-size: 12px; }
.box-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--control); display: grid; place-items: center; flex: none; color: var(--on-accent); }
.box-check .i { width: 14px; height: 14px; stroke-width: 3; }
.box-check.on { background: var(--accent); border-color: var(--accent); }

/* 안내 띠 */
.note { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--canvas); }
.note.warn { background: var(--field); }
.note > .i { width: 18px; height: 18px; color: var(--text2); }
.note.warn > .i { color: var(--text); }
.note p { flex: 1; }

/* 주간 칸 */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: 1; min-height: 520px; }
.wcol { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.wcol:last-child { border-right: 0; }
.wh { height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); color: var(--text2); font-weight: 500; flex: none; }
.wh b { font-weight: 500; color: var(--text); }
.wcol.today .wh { background: var(--accent-soft); color: var(--accent-text); }
.wcol.today .wh b { color: var(--accent-text); }
.wbody { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); position: relative; }
.wcol.past .wbody { background: var(--sunken); }
.add-slot { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 8px; border: 1px dashed var(--border-strong); background: var(--surface); color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; width: 100%; opacity: 0; transition: opacity .12s; }
.wbody:hover .add-slot, .add-slot:focus-visible { opacity: 1; }
@media (hover: none) { .add-slot { opacity: 1; } }
.add-slot .i { width: 16px; height: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); text-align: left; cursor: pointer; width: 100%; color: var(--text); }
.card:hover { box-shadow: var(--raise); border-color: var(--border-strong); }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-top time { font-size: 12px; color: var(--text2); font-weight: 500; white-space: nowrap; margin-left: auto; }
.lbls { display: flex; gap: 4px; flex-wrap: wrap; }
.lbl-pill { width: 18px; height: 6px; border-radius: 3px; }
.card-img { border-radius: 6px; background: var(--field) center/cover no-repeat; aspect-ratio: 4 / 5; max-height: 180px; width: 100%; }
.card p { font-size: 13px; line-height: 18px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.status { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text2); display: inline-flex; align-items: center; gap: 4px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text3); }
.status.scheduled::before { background: var(--ok); }
.status.published::before { background: var(--info); }
.status.attention, .status.overdue, .status.failed { color: var(--text); font-weight: 600; } .status.attention::before, .status.overdue::before, .status.failed::before { background: var(--text); }

/* 달 */
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.month-grid .wd { height: 36px; display: grid; place-items: center; color: var(--text2); font-weight: 500; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.month-grid > :nth-child(7n) { border-right: 0; }
.mcell { min-width: 0; overflow: hidden; min-height: 116px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); }
.mcell:hover { background: var(--hover); }
.mcell.out { background: var(--sunken); } .mcell.out .mnum { color: var(--text3); }
.mnum { font-size: 13px; font-weight: 500; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.mcell.today .mnum { background: var(--accent); color: var(--on-accent); }
.mpost { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 16px; color: var(--text2); min-width: 0; max-width: 100%; }
.mpost .net { width: 16px; height: 16px; flex-shrink: 0; } .mpost .net .i { width: 10px; height: 10px; }
.mpost span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmore { font-size: 12px; color: var(--text3); }

/* 목록 */
.list { display: flex; flex-direction: column; gap: 24px; max-width: 920px; }
.group h2 { font-size: 15px; line-height: 22px; font-weight: 600; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.group h2 span { color: var(--text2); font-weight: 400; font-size: 13px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.lrow { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; color: var(--text); }
.lrow:hover { border-color: var(--border-strong); box-shadow: var(--raise); }
.lrow .when { width: 84px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.lrow .when b { font-weight: 600; font-size: 14px; }
.lrow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lrow .txt p { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; }
.lrow .limg { width: 64px; height: 64px; border-radius: 8px; background: var(--field) center/cover no-repeat; flex: none; }
.empty { padding: 48px 24px; text-align: center; color: var(--text2); display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 12px; }

/* 채널 연결·성과·설정 */
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec-h h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.sec-h p { font-size: 13px; line-height: 18px; color: var(--text2); }
.grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.box { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.box-top { display: flex; align-items: center; gap: 12px; }
.box-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.box-top > div strong { font-weight: 600; }
.box-top > div span { font-size: 13px; line-height: 18px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box > p { font-size: 13px; line-height: 18px; color: var(--text2); flex: 1; }
.box .btn { align-self: flex-start; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--field); color: var(--text); }
.pill.soon { background: var(--field); color: var(--text2); }
.letter { width: 40px; height: 40px; border-radius: 10px; background: var(--field); color: var(--text2); display: grid; place-items: center; font-weight: 600; flex: none; }
.switch { width: 40px; height: 24px; border-radius: 12px; border: 0; padding: 3px; background: var(--control); cursor: pointer; flex: none; display: flex; }
.switch::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--n-0); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.stat { gap: 4px; }
.stat span { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.stat b { font-size: 26px; line-height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text2); }
.input { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--control); background: var(--surface); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-size: 13px; color: var(--text2); cursor: pointer; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }

/* 게시물 만들기 창 */
.modal-wrap { position: fixed; inset: 0; background: var(--dim); display: grid; place-items: center; padding: 24px; z-index: 50; }
.modal { width: min(1160px, 100%); height: min(760px, calc(100vh - 48px)); display: flex; gap: 12px; }
.m-main { flex: 1; min-width: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.modal.small { width: min(420px, 100%); height: auto; padding: 24px; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.modal.small h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.modal.small p { color: var(--text2); }
.q-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.m-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--border); }
.m-head h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; }
.m-labels { display: flex; gap: 6px; flex-wrap: wrap; }
.lab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--hover); font-size: 12px; font-weight: 500; }
.lab i { width: 10px; height: 10px; border-radius: 3px; }
.tag-pop { width: 220px; padding: 6px; left: 0; right: auto; }
.tag-pop .menu-item i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.m-tabs { display: none; }
.m-body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.avatars { display: flex; gap: 16px; flex-wrap: wrap; padding-left: 44px; }
.editor-row { display: flex; gap: 12px; align-items: flex-start; }
.editor-net { width: 32px; flex: none; display: flex; justify-content: center; padding-top: 6px; }
.editor { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.editor textarea { border: 0; resize: none; min-height: 150px; font-size: 16px; line-height: 26px; background: none; outline: none; padding: 0; }
.editor textarea::placeholder { color: var(--text3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 8px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; line-height: 18px; }
.tagchip button { border: 0; background: none; padding: 0; color: var(--text3); cursor: pointer; display: grid; }
.tagchip button .i { width: 14px; height: 14px; }
.tags input { border: 0; outline: none; background: none; font-size: 13px; padding: 4px 2px; min-width: 120px; flex: 1; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos:empty { display: none; }
.ph-item { width: 76px; height: 76px; border-radius: 8px; background: var(--field) center/cover no-repeat; position: relative; }
.ph-item button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-item button .i { width: 12px; height: 12px; }
.ed-tools { display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.tool { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.tool:hover { background: var(--hover); }
.tool .i { width: 18px; height: 18px; }
.count { min-width: 34px; height: 24px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--text2); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; margin-right: 4px; }
.count.over { color: var(--bad); border-color: var(--bad); }
.help-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: var(--canvas); }
.help-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; }
.help-row label { font-size: 13px; color: var(--text2); font-weight: 500; }
.help-row input { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; }
.pills button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-text); }
.help-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.m-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px 14px 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; }
.check input:checked + span { background: var(--accent); border-color: var(--accent); }
.check input:checked + span::after { content: ""; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.err { flex: 1; color: var(--bad); font-size: 13px; min-width: 100px; text-align: right; }
.date-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 8px; border: 0; background: var(--field); font-weight: 500; cursor: pointer; white-space: nowrap; }
.date-btn:hover { background: var(--selected); }
.date-btn .i { width: 16px; height: 16px; color: var(--text2); }
.date-pop { bottom: calc(100% + 8px); top: auto; width: 340px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dp-head { display: flex; align-items: center; gap: 4px; }
.dp-head b { flex: 1; font-size: 16px; font-weight: 600; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dp-grid .dw { font-size: 13px; color: var(--text2); font-weight: 500; padding: 6px 0; }
.dp-grid button { height: 34px; border: 0; background: none; border-radius: 8px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-grid button:hover { background: var(--hover); }
.dp-grid button.out { color: var(--text3); font-weight: 400; }
.dp-grid button:disabled { color: var(--text3); opacity: .5; cursor: not-allowed; background: none; }
.dp-grid button.sel { background: var(--accent); color: var(--on-accent); }
.dp-sec { font-size: 13px; font-weight: 500; color: var(--text2); }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slots button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; cursor: pointer; }
.slots button:hover { background: var(--hover); }
.dp-time { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.dp-time .i { width: 18px; height: 18px; }
.dp-time input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; font-weight: 600; color: var(--text); min-width: 0; }
.dp-time span { font-size: 13px; font-weight: 500; }
.dp-foot { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--border); }
.m-preview { width: 380px; flex: none; background: var(--canvas); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-top b { font-size: 15px; font-weight: 600; }
.pv-tabs { align-self: flex-start; flex-wrap: wrap; }
.pv-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.pv-tabs .net { width: 16px; height: 16px; } .pv-tabs .net .i { width: 10px; height: 10px; }
.pv-cap { font-size: 12px; line-height: 16px; color: var(--text2); }
/* 손님 휴대폰 화면처럼: 흰(어두운) 바탕, 가장자리 여백 없이 피드 한 칸 */
.pv-phone { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.pv { background: var(--surface); color: var(--text); font-size: 14px; line-height: 19px; }
.pv-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.pv-h > .i { width: 18px; height: 18px; color: var(--text2); }
.pav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--avatar-bg); color: var(--avatar-text); font-size: 12px; font-weight: 600; flex: none; }
.pav.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ch-instagram); }
.pv-h b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-h .sub, .th-h .sub { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text3); font-weight: 400; }
.pv-h b .sub { display: flex; }
.pv-img { background: var(--field) center/cover no-repeat; display: grid; place-items: center; color: var(--text3); max-width: 100%; position: relative; }
.pv-img.sq { aspect-ratio: 4 / 5; }
.pv-img.wide { aspect-ratio: 4 / 3; }
.pv-img.none { aspect-ratio: 1 / 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; align-items: center; font-size: 13px; padding: 16px; text-align: center; }
.pv-img .i { width: 32px; height: 32px; }
.pv-cnt { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.pv-act { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; }
.pv-act .i { width: 22px; height: 22px; }
.pv-txt { padding: 4px 12px 12px; font-size: 13px; line-height: 19px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.pv.fb .pv-txt { display: block; padding: 0 12px 12px; font-size: 14px; line-height: 20px; }
.pv-txt .tg { color: var(--info); }
.pv-txt .more, .pv-time, .ph-text { color: var(--text3); }
.pv-time { font-size: 11px; }
.warn-txt { color: var(--text); font-weight: 600; }
.pv-fbbar { display: flex; justify-content: space-around; border-top: 1px solid var(--border); margin: 0 12px; padding: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--text2); }
.pv-fbbar span { display: inline-flex; align-items: center; gap: 6px; }
.pv-fbbar .i { width: 18px; height: 18px; }
.pv.th { display: flex; gap: 10px; padding: 12px; }
.th-left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.th-line { width: 2px; flex: 1; min-height: 16px; border-radius: 1px; background: var(--border-strong); }
.th-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.th-h { display: flex; align-items: center; gap: 6px; }
.th-h b { font-size: 13px; }
.th-h > .i { width: 18px; height: 18px; color: var(--text2); }
.pv.th .pv-txt { padding: 0; }
.th-imgs { display: flex; gap: 6px; overflow: hidden; }
.th-imgs span { width: 62%; flex: none; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--field) center/cover no-repeat; }
.th-imgs span:only-child { width: 80%; }
.th-act { padding: 4px 0 0; gap: 18px; }
.th-act .i { width: 19px; height: 19px; }
.pv-empty { padding: 32px 16px; text-align: center; color: var(--text2); word-break: keep-all; }
.plus-dot { position: absolute; left: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text); }
.plus-dot .i { width: 12px; height: 12px; stroke-width: 2.4; }
.cn-hint { width: 100%; font-size: 13px; color: var(--text2); }
.slots .pill { height: 18px; padding: 0 6px; font-size: 11px; }

/* 채널 연결 안내 창 */
#connect { z-index: 70; }
.modal.small.cn { width: min(520px, 100%); padding: 0; gap: 0; max-height: calc(100vh - 48px); overflow: hidden; }
.cn-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 24px; }
.cn-steps { display: flex; gap: 6px; padding: 0 24px 6px; }
.cn-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--field); }
.cn-steps i.done, .cn-steps i.cur { background: var(--accent); }
.cn-steps i.cur { opacity: .55; }
.cn-body { padding: 14px 24px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.cn-foot { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); }
.cn-lead { font-size: 16px; font-weight: 600; color: var(--text) !important; }
.cn-pick, .cn-accts, .cn-goals { display: flex; flex-direction: column; gap: 8px; }
.cn-opt, .cn-acct, .cn-goal { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; width: 100%; color: var(--text); }
.cn-opt:hover:not(:disabled):not(.off), .cn-acct:hover, .cn-goal:hover { border-color: var(--border-strong); background: var(--sunken); }
.cn-opt:disabled, .cn-opt.off { opacity: .55; cursor: default; }
.cn-opt > span:not(.net):not(.letter), .cn-acct > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-opt small, .cn-acct small, .cn-goal small { font-size: 12px; line-height: 17px; color: var(--text2); word-break: keep-all; }
.cn-opt > .i { width: 18px; height: 18px; color: var(--text3); }
.cn-acct.on, .cn-goal.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--control); flex: none; }
.cn-acct.on .radio { border: 6px solid var(--accent); }
.cn-goal { flex-wrap: wrap; }
.cn-goal b { width: 64px; }
.cn-goal small { flex: 1; }
.cn-ch { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--canvas); }
.cn-ch > div { display: flex; flex-direction: column; gap: 2px; }
.cn-ch small { font-size: 13px; line-height: 19px; color: var(--text2); word-break: keep-all; }
.cn-need { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cn-need li { display: flex; gap: 10px; font-size: 13px; line-height: 20px; word-break: keep-all; }
.cn-need .i { width: 18px; height: 18px; color: var(--accent-text); margin-top: 1px; }
.cn-safe { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--field); font-size: 13px; line-height: 19px; color: var(--text2) !important; word-break: keep-all; }
.cn-safe .i { width: 18px; height: 18px; flex: none; }
.cn-auth, .cn-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 8px; word-break: keep-all; }
.cn-auth b, .cn-done b { font-size: 16px; color: var(--text); }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--field); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.done-ic .i { width: 26px; height: 26px; stroke-width: 2.6; }
.cn-retry { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: var(--field); width: 100%; margin-top: 6px; }
.cn-retry p { color: var(--text) !important; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .spin { animation-duration: 3s; } }

/* 좁은 화면 */
@media (max-width: 1180px) {
  .m-preview { display: none; }
  .m-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); }
  .m-tabs button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; font-size: 13px; color: var(--text2); font-weight: 500; cursor: pointer; }
  .m-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); }
  .modal[data-ctab="preview"] .m-main .m-body { display: none; }
  .modal[data-ctab="preview"] .m-preview { display: flex; position: absolute; inset: 88px 24px 24px; z-index: 2; }
  .modal { position: relative; }
}
@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .goal { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .toolbar .vsep { display: none; }
}
@media (max-width: 900px) {
  .week { grid-template-columns: 1fr; min-height: 0; }
  .wcol { border-right: 0; border-bottom: 1px solid var(--line); }
  .wcol.past.none { display: none; }
  .wh { justify-content: flex-start; padding: 0 12px; }
}
@media (max-width: 760px) {
  #app { flex-direction: column; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: auto; flex-direction: row; justify-content: space-around; padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: color-mix(in srgb, var(--canvas) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border); overflow: visible; gap: 2px; }
  .rail-logo, .rail-ch, .rail-grow, .rail-me-row, .rail .rt { display: none; }
  .rail-new { width: 44px; } .rail > a { width: 44px; padding: 0; justify-content: center; }
  .rail-new { margin: 0; order: 3; }
  .rail > a { width: 44px; height: 44px; }
  .rail > a[data-nav="channels"] { order: 4; } .rail > a[data-nav="settings"] { order: 5; }
  .rail > a, .rail-new { width: auto; min-width: 0; height: 52px; flex: 1 1 0; flex-direction: column; gap: 2px; padding: 4px 0 0; justify-content: center; }
  .rail > a::after, .rail-new::after { content: attr(data-short); font-size: 11px; line-height: 14px; font-weight: 500; }
  .rail-new { border-radius: 12px; }
  input, textarea, select, .input { font-size: 16px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .icon-btn, .today-btn, .chip-btn, .btn.sm, .tb-btn, .seg button, .view-toggle button, .pills button, .tool { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .dp-grid button { min-height: 40px; }
  .tagchip button, .ph-item button { position: relative; }
  .tagchip button::after, .ph-item button::after { content: ""; position: absolute; inset: -12px; }
  .tb-btn.tz { display: none; }
  .hero { padding: 24px 18px; }
  .hero h1 { font-size: 24px; line-height: 32px; }
  .home-head h1 { font-size: 20px; line-height: 28px; }
  .hcard { padding: 16px; }
  .tiles, .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile, .goal { padding: 12px; }
  .tile b { font-size: 20px; line-height: 28px; }
  .todo li { flex-wrap: wrap; }
  .todo .btn { margin-left: 48px; }
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) 40px; }
  .bar-row > small { display: none; }
  .why { padding-left: 8px; }
  .modal.small.cn, .modal.small.pf { max-height: 100%; height: 100%; border-radius: 0; }
  .pf .cn-body { flex: 1; }
  #connect, #profile, #auth { padding: 0; }
  .panel { margin: 0; border: 0; border-radius: 0; padding: 16px max(16px, env(safe-area-inset-left, 0px)) 96px; min-height: 100vh; }
  .ph h1 { font-size: 22px; line-height: 30px; }
  .ph-tile { width: 40px; height: 40px; }
  .view-toggle { margin-left: auto; }
  .toolbar .month { font-size: 16px; }
  .toolbar .vsep { display: none; }
  .week { grid-template-columns: 1fr; min-height: 0; }
  .wcol.past.none { display: none; } /* 휴대폰: 지난 날은 올린 글이 있을 때만 */
  .wh { justify-content: flex-start; padding: 0 12px; }
  .add-slot { opacity: 1; }
  .mcell { min-height: 60px; padding: 4px; }
  .mpost > span:not(.nets) { display: none; }
  .mcell { gap: 2px; } .mpost { display: inline-flex; }
  .lrow .when { width: 64px; }
  .lrow .limg { display: none; }
  .modal-wrap { padding: 0; }
  .modal { height: 100%; width: 100%; }
  .m-main { border-radius: 0; }
  .m-head { padding: 12px 12px 12px 16px; flex-wrap: wrap; gap: 8px; }
  .m-head h2 { font-size: 17px; }
  .m-head .tag-t { display: none; }
  .m-body { padding: 16px; }
  .avatars { padding-left: 0; gap: 12px; }
  .editor-net { display: none; }
  .m-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .err { order: 9; flex-basis: 100%; text-align: left; }
  .m-foot .pop-anchor { margin-left: auto; }
  .date-pop { position: fixed; left: 8px; right: 8px; bottom: 76px; width: auto; }
  .modal[data-ctab="preview"] .m-preview { inset: 64px 0 72px; border-radius: 0; }
  .ch-pop { position: fixed; left: 8px; right: 8px; top: 120px; width: auto; }
}

/* 글자 크기 단계 (사무엘님 지적 2026-10-19 "텍스트 위계도 전혀 잡혀 있지 않아")
   큰 제목 44 · 쪽 제목 26 · 묶음 제목 20 · 항목 제목 16 · 본문 15 · 보조 13. 한 화면에서 이 여섯 단계만 쓴다. */
:root { --fs-display: 44px; --lh-display: 54px; --fs-h1: 26px; --lh-h1: 34px; --fs-h2: 20px; --lh-h2: 28px; --fs-h3: 16px; --lh-h3: 24px; --fs-body: 15px; --lh-body: 24px; --fs-sm: 13px; --lh-sm: 20px; }

/* 로그인 전 첫 화면: 왼쪽 메뉴 없이 한 장짜리 */
body.out .rail { display: none; }
body.out .panel { margin: 0; border: 0; border-radius: 0; padding: 0 0 48px; gap: 0; min-height: 100vh; background: var(--surface); }
body.out #app { display: block; }
.lp-top, .lp-hero, .lp-sec, .lp-end { width: min(1120px, 100%); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.lp-top { display: flex; align-items: center; gap: 8px; height: 72px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.lp-logo .i { width: 26px; height: 26px; stroke-width: 2; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.lp-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.eyebrow { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; color: var(--accent-text); }
.lp-hero h1 { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -0.03em; word-break: keep-all; }
.lead { font-size: 18px; line-height: 28px; color: var(--text2); word-break: keep-all; max-width: 420px; }
.lp-shot { border-radius: 20px; background: var(--canvas); padding: 20px; box-shadow: inset 0 0 0 1px var(--border); }
.mock-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mw-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mw-h { font-size: var(--fs-sm); color: var(--text2); text-align: center; padding: 4px 0 6px; }
.mw-h b { color: var(--text); font-weight: 600; }
.mock-card { cursor: default; box-shadow: var(--raise); }
.mock-card .card-img { max-height: 150px; }
.lp-sec { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; padding-bottom: 24px; }
.lp-h2 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; word-break: keep-all; }
.lp-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lp-feat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 4px; padding: 24px; border-radius: 20px; background: var(--canvas); }
.lp-n { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.lp-feat h3 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
.lp-feat p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text2); word-break: keep-all; }
.lp-vis { grid-column: 1 / -1; margin-top: 18px; display: flex; align-items: flex-end; }
.mock { width: 100%; background: var(--surface); border-radius: 14px; box-shadow: var(--raise), inset 0 0 0 1px var(--border); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mc-chs { display: flex; gap: 14px; padding: 4px; }
.mc-chs .av { cursor: default; }
.mc-box { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; line-height: 21px; }
.mc-photo { width: 56px; height: 56px; border-radius: 8px; flex: none; background: center/cover no-repeat; }
.mc-foot { display: flex; justify-content: flex-end; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-when { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--field); font-size: 13px; font-weight: 500; }
.mc-when .i { width: 15px; height: 15px; color: var(--text2); }
.mock .btn { pointer-events: none; }
.mt-row { display: grid; grid-template-columns: 24px 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; }
.mt-row + .mt-row { border-top: 1px solid var(--border); }
.m-result b, .m-rec b { font-size: 15px; }
.m-result .btn { align-self: flex-start; }
.m-rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.m-rec .m-bar, .m-rec small { grid-column: 1 / -1; }
.m-bar { display: flex; align-items: center; gap: 10px; height: 14px; }
.m-bar i { display: block; height: 10px; border-radius: 5px; background: var(--accent); max-width: calc(100% - 44px); }
.m-bar.dim i { background: var(--border-strong); }
.m-bar em { font-style: normal; font-size: 12px; color: var(--text2); }
.m-rec small { font-size: 13px; color: var(--text2); }
.lp-cc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cc { padding: 24px; border-radius: 20px; background: var(--canvas); display: flex; flex-direction: column; gap: 14px; }
.cc h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; }
.cc h3 .i { width: 20px; height: 20px; }
.cc.ok h3 .i { color: var(--accent-text); }
.cc.no h3 .i { color: var(--text2); }
.cc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cc li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-body); line-height: var(--lh-body); word-break: keep-all; }
.cc li .i { width: 18px; height: 18px; margin-top: 3px; }
.cc.ok li .i { color: var(--accent-text); }
.cc.no li { color: var(--text2); }
.cc.no li .i { color: var(--text3); }
.cc-note { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--text3); word-break: keep-all; padding-top: 12px; border-top: 1px solid var(--border); }
.lp-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: 72px; }

/* 로그인 뒤 처음 할 일: 카드 세 장 */
.steps { display: flex; flex-direction: column; gap: 16px; }
.steps-h { display: flex; align-items: baseline; gap: 12px; }
.steps-h h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
.steps-c { margin-left: auto; font-size: var(--fs-sm); color: var(--text2); font-variant-numeric: tabular-nums; }
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step-cards li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 16px; background: var(--canvas); min-width: 0; }
.step-cards li.cur { background: var(--accent-soft); }
.step-cards .step-n { margin-bottom: 10px; }
.step-cards li.cur .step-n, .step-cards li.done .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-cards b { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.step-cards li.done b { color: var(--text2); }
.step-d { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--text2); margin-bottom: 12px; }
.step-cards .btn { margin-top: auto; }
.step-ok { margin-top: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-text); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 40px; }
  .lp-feats, .lp-cc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --fs-display: 32px; --lh-display: 40px; }
  .lp-top, .lp-hero, .lp-sec, .lp-end { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .lp-top { height: 60px; }
  .lp-top .btn:not(.green) { display: none; }
  .lead { font-size: 16px; line-height: 25px; }
  .lp-h2 { font-size: 22px; line-height: 30px; }
  .lp-shot { padding: 12px; }
  .mock-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-week .mw-col:nth-child(3) { display: none; }
  .lp-feat, .cc { padding: 18px; }
  .step-cards { grid-template-columns: minmax(0, 1fr); }
  body.out .panel { padding-bottom: 32px; }
}

/* 게시 목표 숫자 고르기 (사무엘님 지적 2026-10-20 "주 1/3/5회만 있는데 너무 옵션이 적어. 직접 숫자를 적게 하던지") */
.goal-pick { display: inline-flex; align-items: center; gap: 8px; }
.gp-l { font-size: var(--fs-body); color: var(--text2); }
.gp-b { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 20px; line-height: 1; cursor: pointer; color: var(--text); }
.gp-b:hover { background: var(--hover); }
.gp-in { width: 64px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.gp-in::-webkit-outer-spin-button, .gp-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gp-quick button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; }
.gp-quick button:hover { background: var(--hover); }
.gp-sched { margin-top: 2px; }
.cn-goalbox { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; background: var(--canvas); }

/* 2026-10-21 사용성 정리: 표 가로 넘김 표시, 글쓰기 창 채널 이름, 되돌리기 알림, 위험한 단추, 찾기 칸 */
.table-wrap { background: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), transparent) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.chip-col { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.chip-cap { font-size: 12px; line-height: 16px; color: var(--text3); white-space: nowrap; }
.chip-cap.on { color: var(--text); font-weight: 500; }
.editor-net { flex-direction: column; gap: 4px; align-items: center; }
.toast.has-act { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast-act { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 2px; }
.btn.danger-line { color: var(--bad); }
.demo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-search { width: min(280px, 100%); }
.how-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.how-sec > summary::-webkit-details-marker { display: none; }
.how-sec > summary::after { content: "펼치기"; font-size: 13px; color: var(--text2); }
.how-sec[open] > summary::after { content: "접기"; }
.how-sec > summary h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.mpost .nets { display: inline-flex; flex-shrink: 0; }
.mpost .nets .net + .net { margin-left: -4px; }
.mock .btn, .mock .status { box-shadow: none; opacity: .8; }
.info > div { background: none; padding: 4px 0; border-radius: 0; }
@media (max-width: 760px) { .post-search { width: 100%; order: 9; } }

/* 2026-10-22 실제 서버 붙임: 약관 링크, 가입·로그인 창, 올리는 중 표시, 연결 못 한 안내 */
.legal { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--text2); }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lp-foot { width: min(1120px, 100%); margin: 0 auto; padding: 56px max(24px, env(safe-area-inset-left, 0px)) 0; justify-content: center; }
a.res { text-decoration: none; }
a.res:hover { color: var(--text); }
.status.posting::before { background: var(--ok); }
.done-ic.off { background: var(--field); color: var(--text); }
.au-switch { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text2); }
.au-switch .link-btn { font-weight: 600; }
.pf .cn-body p.muted.small a { color: var(--text); }
.pf .note p { font-size: var(--fs-sm); line-height: var(--lh-sm); }
.cn-body > .err { text-align: left; flex: none; }
.note > .btn { flex: none; }
@media (max-width: 760px) { .lp-foot { padding: 40px max(16px, env(safe-area-inset-left, 0px)) 0; } }
.modal.small p.err { color: var(--bad); }
