/* Personal Chip — "Personal Chip 판매 페이지 시안"(디자인 캔버스)의 색·글꼴·간격을 그대로 옮긴 스타일.
   CSP가 인라인 style을 막으므로 모든 모양은 여기 클래스로만 준다. */
:root {
  --bg: #F5F6FA; --card: #FFFFFF; --ink: #14161F; --ink2: #3B3F52; --muted: #5A5F75;
  --line: #E3E5EE; --line2: #C9CCDA; --soft: #EEF0F6; --track: #E7E9F2;
  --accent: #4338CA; --accent-dark: #312E81; --accent-soft: #EEF0FF; --accent-ink: #3730A3; --bar: #C7C3FF;
  --ok: #0E7C61; --ok-soft: #E3F5EF; --warn: #7A3E00; --warn-soft: #FFF4E5; --bad: #B42318; --bad-soft: #FDECEC;
  --font: "IBM Plex Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { letter-spacing: -0.01em; }
.boot { padding: 60px 20px; text-align: center; color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.muted { color: var(--muted); font-size: 14px; }
.ink2 { color: var(--ink2); }
.svg { flex: 0 0 auto; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px;
  border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.btn.outline { border-color: var(--accent); color: var(--accent); }
.btn.big { min-height: 52px; padding: 14px 22px; border-radius: 12px; font-size: 17px; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn:disabled { background: #D8DAE5; border-color: #D8DAE5; color: var(--muted); cursor: not-allowed; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink2); cursor: pointer; font-size: 15px; }
.linkbtn:hover { color: var(--ink); }

/* ── 상단 머리글(공개 화면) ── */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px;
  border: 0; background: none; padding: 0; cursor: pointer; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1 1 auto; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .site-nav { order: 3; flex-basis: 100%; } .site-actions .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; } }

/* ── 랜딩 ── */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--accent); }
.hero h1 { margin: 0 0 20px; font-size: 48px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.hero .lead { margin: 0 0 28px; font-size: 18px; line-height: 1.75; color: var(--ink2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.trust { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.preview { flex: 1 1 420px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 18px 40px rgba(20, 22, 31, .08); }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 700; font-size: 17px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.brand { background: var(--accent-soft); color: var(--accent-dark); }
.pill.dark { background: var(--accent); color: #FFFFFF; }
.pill.sm { font-size: 12px; padding: 2px 8px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; }
.bars span { flex: 1; background: var(--bar); border-radius: 6px 6px 0 0; }
.bars span.hi { background: var(--accent); }
.h42 { height: 42%; } .h58 { height: 58%; } .h50 { height: 50%; } .h74 { height: 74%; } .h66 { height: 66%; } .h90 { height: 90%; } .h62 { height: 62%; }
.note-box { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.note-box .t { font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }
.section { padding-top: 40px; padding-bottom: 64px; }
.section h2.big { margin: 0 0 10px; font-size: 32px; font-weight: 700; }
.section .sub { margin: 0 0 32px; font-size: 17px; color: var(--ink2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature h3 { margin: 14px 0 8px; font-size: 19px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink2); }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: 56px; padding-bottom: 56px; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.step3 { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.step3 .t { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.step3 .d { font-size: 15px; line-height: 1.7; color: var(--ink2); }
.privacy { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
.privacy > div { flex: 1 1 360px; min-width: 0; }
.privacy p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ink2); }
.privacy ul { flex: 1 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.privacy li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 16px; line-height: 1.6; }
.cta-dark { background: var(--ink); color: #FFFFFF; border-radius: 22px; padding: 44px 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 72px; }
.cta-dark h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; }
.cta-dark p { margin: 0; font-size: 16px; color: var(--line2); }
.cta-dark .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); font-weight: 700; }
.site-foot { border-top: 1px solid var(--line); background: var(--card); }
.site-foot .foot-link { color: var(--ink2); font-size: 15px; text-decoration: none; }
.site-foot .foot-link:hover { color: var(--accent); }
.site-foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; line-height: 1.7; color: var(--muted); }
@media (max-width: 600px) { .hero { padding-top: 40px; gap: 32px; } .hero h1 { font-size: 34px; } .section h2.big { font-size: 26px; } .cta-dark { padding: 32px 22px; } .cta-dark h2 { font-size: 24px; } }

/* ── 요금제 ── */
.page-title { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.page-title h1 { margin: 0 0 12px; font-size: 40px; font-weight: 700; }
.page-title p { margin: 0; font-size: 17px; color: var(--ink2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; padding-top: 24px; padding-bottom: 48px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.best { border: 2px solid var(--accent); padding: 25px; }
.plan .tag { position: absolute; top: -13px; left: 24px; }
.plan .name { font-size: 18px; font-weight: 700; }
.plan .for { font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.9; color: var(--ink2); flex: 1; }
.tablebox { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare thead tr { background: var(--bg); }
.compare th, .compare td { padding: 13px 14px; text-align: center; }
.compare th[scope=row], .compare thead th:first-child { text-align: left; padding-left: 18px; font-weight: 500; }
.compare thead th { font-weight: 700; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare .hl { color: var(--accent); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { font-size: 16px; font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink2); }
.h2-sec { margin: 0 0 16px; font-size: 26px; font-weight: 700; }
.pad-b { padding-bottom: 48px; }
.pad-b-lg { padding-bottom: 72px; }

/* ── 가입·로그인·작업자 입장 ── */
.flow { max-width: 1080px; margin: 0 auto; padding: 36px 24px 64px; }
@media (max-width: 600px) { .flow { padding: 24px 16px 48px; } }
.stepbar { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stepbar li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; }
.stepbar li .n { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.stepbar li.on { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.stepbar li.on .n { background: var(--accent); color: #FFFFFF; }
.stepbar li.done .n { background: var(--ok); color: #FFFFFF; }
.flow h1 { margin: 0 0 8px; font-size: 32px; font-weight: 700; }
.flow > p.lead { margin: 0 0 24px; font-size: 16px; color: var(--ink2); }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > * { flex: 1 1 400px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.panel h2 { margin: 0 0 16px; font-size: 19px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.fld input, .fld select, .fld textarea, .inp { font-weight: 400; font-size: 15px; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); width: 100%; min-width: 0; }
.fld input:focus, .fld select:focus, .inp:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fld .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.planpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.planpick button { min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); text-align: left; cursor: pointer; }
.planpick button b { display: block; font-size: 15px; }
.planpick button span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.planpick button[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark); padding: 9px 11px; }
.check-all { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 8px 0; cursor: pointer; }
.check input, .check-all input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.req { font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; margin-right: 4px; }
.req.opt { color: var(--muted); background: var(--soft); }
.fine { margin: 12px 0 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.center-card { max-width: 480px; margin: 48px auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
@media (max-width: 600px) { .center-card { margin: 24px 16px; padding: 24px 20px; } }
.center-card h1 { margin: 14px 0 8px; font-size: 26px; }
.center-card > p { margin: 0 0 20px; color: var(--ink2); line-height: 1.7; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; }
.icon-tile.ok { background: var(--ok-soft); }
.bullets { margin: 18px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.8; color: var(--ink2); }
.done-box { text-align: center; }
.done-box .icon-tile { margin: 0 auto; }

/* ── 메시지 ── */
.msg { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-size: 14px; line-height: 1.6; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--accent-soft); color: var(--accent-dark); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(20, 22, 31, .15); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* ── 앱(로그인 후) — 모바일: 위 제목 + 아래 탭 / PC(1024px~): 왼쪽 메뉴 ── */
.shell { min-height: 100vh; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.main { padding: 20px 16px 104px; max-width: 1200px; margin: 0 auto; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
.bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 48px; font-size: 12px; color: var(--muted); border: 0; background: none; cursor: pointer; }
.bottomnav button.on { color: var(--accent); font-weight: 700; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; padding: 22px 14px; background: var(--card); border-right: 1px solid var(--line); }
  .side .logo { padding: 0 10px 20px; }
  .side .nav-btn { text-decoration: none; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 10px; cursor: pointer; color: var(--ink2); font-size: 15px; min-height: 44px; }
  .side .nav-btn:hover { background: var(--bg); }
  .side .nav-btn.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
  .side .who { margin-top: auto; padding: 14px 12px 4px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
  .side .who b { display: block; color: var(--ink); font-size: 15px; }
  .topbar, .bottomnav { display: none; }
  .main { padding: 32px 36px 56px; }
  .toast { bottom: 28px; }
}
.page-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.page-h .hi { font-size: 14px; color: var(--muted); }
.page-h h1 { margin: 2px 0 0; font-size: 24px; font-weight: 700; }
.page-h p { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.card + .card { margin-top: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card-h a, .card-h .linkbtn { font-size: 13px; color: var(--accent); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.stat .l { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 4px; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat .s.ok { color: var(--ok); } .stat .s.bad { color: var(--bad); }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 1024px) { .grid2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .grid2 > div > .card + .card { margin-top: 14px; } }
.grid2 > div { min-width: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 7px 0; }
.kv > span:first-child { color: var(--ink2); }
.tip { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6; margin-top: 8px; }
.task-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--soft); }
.task-row:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 14px; }
.avatar.warn { background: var(--warn-soft); color: var(--warn); }
.avatar.ok { background: var(--ok-soft); color: var(--ok); }
.task-row .body { min-width: 0; flex: 1; }
.task-row .t { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .d { display: block; font-size: 13px; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--soft); display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.list li:last-child { border-bottom: 0; }
.list li > span { min-width: 0; }
.empty { color: var(--muted); text-align: center; padding: 22px 8px; font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt { margin-top: 16px; }

/* 작업자 채널(Workroom) */
.room-head { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 0; margin-bottom: 14px; }
.room-head .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.room-head .k { font-size: 13px; color: var(--muted); }
.room-head .n { font-size: 22px; font-weight: 700; }
.room-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.chip { border: 1px solid var(--line2); background: var(--card); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 38px; }
.chip[aria-pressed="true"], .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.tabs { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-size: 15px; font-weight: 600; min-height: 44px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.cal-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav b { font-size: 18px; min-width: 110px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.draft { background: #F59E0B; } .sw.up { background: var(--accent); } .sw.late { background: var(--bad); } .sw.plan { background: var(--ok); }
.calbox { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 520px; }
.cal .dow { text-align: center; font-size: 13px; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal .day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 12px; overflow: hidden; background: var(--card); }
.cal .day.out { visibility: hidden; }
.cal .day.today { border: 2px solid var(--accent); padding: 5px; }
.cal .day .n { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.cal .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 5px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.draft { background: var(--warn-soft); color: var(--warn); }
.cal .ev.up { background: var(--accent-soft); color: var(--accent-dark); }
.cal .ev.late { background: var(--bad-soft); color: var(--bad); }
.cal .ev.plan { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 640px) { .cal { min-width: 0; } .cal .day { min-height: 54px; padding: 4px; } .cal .day.today { padding: 3px; } .cal .ev { font-size: 0; height: 6px; padding: 0; margin-top: 2px; } }
.sum-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable caption { text-align: left; font-weight: 700; font-size: 16px; padding-bottom: 8px; }
.ptable th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ptable td, .ptable tbody th { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.ptable tbody th { font-weight: 600; background: none; color: var(--ink); font-size: 14px; }
.ptable select, .ptable input { padding: 7px 8px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); max-width: 100%; }
.ptable .row { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable tbody th { display: block; width: 100%; }
  .ptable tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
  .ptable td, .ptable tbody th { border: 0; padding: 4px 0; }
  .ptable td[data-l]::before { content: attr(data-l) " · "; color: var(--muted); font-size: 12px; }
  .ptable .row { flex-wrap: wrap; }
}
.addform { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 640px) { .addform { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.addform .fld { margin-bottom: 0; }
.code-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.code-row .row { justify-content: space-between; }
.code-big { font: 700 24px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .08em; padding: 14px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; text-align: center; word-break: break-all; margin: 8px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.split > .card:first-child { flex: 999 1 420px; }
.split > .card:last-child { flex: 1 1 260px; margin-top: 0; }

/* 외부 작업자 찾기(WorkerMatch) */
.match { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.match > aside { flex: 1 1 300px; min-width: 0; }
.match > section { flex: 999 1 460px; min-width: 0; }
fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.howto { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.howto .t { font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.howto ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--ink2); }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.person .row { gap: 8px; }
.person .nm { font-size: 17px; }
.person .site-links { display: grid; gap: 6px; margin: 10px 0; }
.person .site-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.person .site-link .s { font-weight: 600; min-width: 64px; }
.person .site-link a { margin-left: auto; font-weight: 600; }
.person .ev { font-size: 14px; color: var(--ink2); line-height: 1.6; }

@media print { .side, .bottomnav, .topbar { display: none; } }

/* 세부 보정 — 모바일 표 제목, 채널 만들기 한 줄, 머리글 버튼 오른쪽 */
@media (max-width: 760px) { .ptable caption { display: block; width: 100%; } }
.room-head .top form { flex: 0 1 440px; flex-wrap: nowrap; }
.room-head .top form .inp { flex: 1; }
@media (max-width: 600px) { .room-head .top form { flex-basis: 100%; } }
.site-actions { margin-left: auto; }
.site-nav:empty { display: none; }
