/* 언폴드엑스 키비주얼 색: 짙은 회색 바탕 + 형광 초록 (입장 등록·프로그램 신청 페이지와 같은 값) */
:root {
  --bg: #2A2829; --ink: #F2F2F2; --neon: #2BFF2B; --muted: #A9A6A7; --line: #4A4748; --soft: #343233; --soft2: #3D3A3B;
  --red: #FF5A4E; --yellow: #FFD23F; --blue: #6FC3FF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.5; word-break: keep-all;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--neon); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }
.narrow { max-width: 560px; }

/* 머리 */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 0 14px; border-bottom: 1px solid var(--neon); }
.head .brand { color: var(--neon); text-decoration: none; }
.head .brand small { display: block; font-size: 12px; font-weight: 700; }
.head .brand b { display: block; font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -0.01em; }
.head .me { font-size: 13px; color: var(--muted); text-align: right; }
.head .me button { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0 0 0 6px; font-size: 13px; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.nav a { flex: none; padding: 6px 12px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid transparent; }
.nav a[aria-current="page"] { color: var(--neon); border-color: var(--neon); }
/* 묶음 안 화면을 오가는 탭(관객·보고·스탭) */
.subnav { display: flex; gap: 18px; overflow-x: auto; padding: 10px 2px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav a { flex: none; padding: 4px 0 9px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--neon); }

h1.page { font-size: 26px; margin: 22px 0 4px; font-weight: 900; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
h2 { font-size: 17px; margin: 26px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); background: var(--soft); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--muted); }
.btn.go { background: var(--neon); color: #111; border-color: var(--neon); }
.btn.danger { color: var(--red); border-color: var(--red); background: none; }
.btn.ghost { background: none; }
.btn:disabled { opacity: .45; cursor: default; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.bar .grow { flex: 1; }

/* 홈 카드 */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.tile { display: block; background: var(--soft); border: 1px solid var(--line); padding: 16px; text-decoration: none; color: var(--ink); min-height: 150px; position: relative; }
.tile:hover { border-color: var(--neon); }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.tile .t { font-size: 19px; font-weight: 800; margin: 2px 0 10px; }
.tile .v { font-size: 34px; font-weight: 900; color: var(--neon); line-height: 1; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.tile .d { font-size: 13px; color: var(--muted); margin-top: 8px; }
.tile .flag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 800; color: #111; background: var(--yellow); padding: 1px 6px; }

/* 숫자 칸 */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--soft); border: 1px solid var(--line); padding: 12px 14px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat .v.hi { color: var(--neon); }

/* 가로 막대 목록 */
.bars { display: grid; gap: 6px; }
.brow { display: grid; grid-template-columns: minmax(80px, 180px) 1fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.brow .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.brow .track { height: 14px; background: var(--soft2); }
.brow .fill { height: 100%; background: var(--neon); }
.brow .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* 표 */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; position: sticky; top: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--soft); }
td.wrap-text { white-space: pre-line; min-width: 180px; }
td.nowrap { white-space: nowrap; }
.group-row td { background: var(--soft2); color: var(--neon); font-weight: 800; font-size: 13px; }

/* 상태 딱지 */
.tag { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); white-space: nowrap; }
.tag.문의 { color: var(--yellow); border-color: var(--yellow); }
.tag.확정 { color: var(--neon); border-color: var(--neon); }
.tag.방문완료 { color: #111; background: var(--neon); border-color: var(--neon); }
.tag.취소 { color: var(--muted); text-decoration: line-through; }
.tag.대기, .tag.응답대기 { color: var(--yellow); border-color: var(--yellow); }
.tag.제출 { color: #111; background: var(--neon); border-color: var(--neon); }
.tag.작성중 { color: var(--yellow); border-color: var(--yellow); }

/* 날짜 띠 */
.days { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.days button { flex: none; background: var(--soft); border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.days button[aria-pressed="true"] { color: #111; background: var(--neon); border-color: var(--neon); }
.days button.has { color: var(--ink); }

/* 스케줄 시간 막대 */
.tl { border: 1px solid var(--line); overflow-x: auto; }
.tl-inner { min-width: 1400px; }
.tl-axis, .tl-row { display: grid; grid-template-columns: 150px 1fr; }
.tl-axis { background: var(--soft); font-size: 11px; color: var(--muted); }
.tl-axis .hours { position: relative; height: 24px; }
.tl-axis .hours span { position: absolute; top: 4px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tl-row { border-top: 1px solid var(--line); min-height: 44px; }
.tl-row .who { padding: 6px 10px; font-size: 13px; font-weight: 700; border-right: 1px solid var(--line); }
.tl-row .who small { display: block; color: var(--muted); font-weight: 400; }
.tl-row .lane { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); }
.tl-bar { position: absolute; top: 6px; height: 32px; background: var(--neon); color: #111; font-size: 12px; font-weight: 800; padding: 2px 6px; overflow: hidden; white-space: nowrap; border: 0; text-align: left; line-height: 1.25; }
.tl-bar small { display: block; font-weight: 600; font-size: 11px; }
.tl-bar.ev { background: var(--blue); }
.tl-bar .brk { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,.45) 0 4px, transparent 4px 8px); }
.tl-gap { position: absolute; top: 0; bottom: 0; background: rgba(255, 90, 78, .18); border-left: 1px dashed var(--red); border-right: 1px dashed var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: 8px 0; }
.legend i { display: inline-block; width: 14px; height: 10px; vertical-align: -1px; margin-right: 4px; }
.notes { margin: 10px 0; padding: 0; list-style: none; font-size: 13px; }
.notes li { padding: 6px 10px; border-left: 3px solid var(--yellow); background: var(--soft); margin-bottom: 4px; }
.notes li.ok { border-left-color: var(--neon); }
.notes li.bad { border-left-color: var(--red); }

/* 폼·창 */
label.f { display: block; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
label.f span { display: block; margin-bottom: 4px; color: var(--muted); }
input.i, select.i, textarea.i { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; font-size: 15px; }
input.i:focus, select.i:focus, textarea.i:focus { outline: 2px solid var(--neon); outline-offset: -1px; }
textarea.i { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 20; overflow-y: auto; }
.sheet { background: var(--bg); border: 1px solid var(--neon); width: 100%; max-width: 560px; padding: 20px; }
.sheet h3 { margin: 0 0 14px; font-size: 18px; }
.sheet .bar { justify-content: flex-end; margin-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--neon); color: #111; font-weight: 800; padding: 10px 18px; z-index: 30; }
.toast.err { background: var(--red); color: #fff; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }

/* 로그인 */
.login { max-width: 380px; margin: 60px auto 0; }
.login .go { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.err-msg { color: var(--red); font-size: 14px; min-height: 20px; }

/* 프로그램 카드 */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pcard { background: var(--soft); border: 1px solid var(--line); padding: 14px; text-align: left; width: 100%; }
.pcard[aria-pressed="true"] { border-color: var(--neon); }
.pcard .when { color: var(--neon); font-weight: 800; font-variant-numeric: tabular-nums; }
.pcard .title { font-weight: 800; font-size: 16px; margin: 2px 0 8px; }
.meter { height: 10px; background: var(--soft2); display: flex; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; }
.meter .c { background: var(--neon); }
.meter .w { background: var(--yellow); }
.pcard .nums { display: flex; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pcard .nums b { color: var(--ink); }

/* 설문 결과 */
.qcard { background: var(--soft); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 12px; }
.qcard h3 { margin: 0 0 10px; font-size: 15px; }
.qcard .avg { font-size: 28px; font-weight: 900; color: var(--neon); }
.texts { max-height: 320px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.texts li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; white-space: pre-line; }
.texts li small { color: var(--muted); margin-right: 8px; }

/* 일일보고 */
.auto { background: var(--soft); border: 1px solid var(--line); padding: 14px 16px; }
.auto dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.auto dt { color: var(--muted); font-weight: 700; }
.auto dd { margin: 0; white-space: pre-line; }
.print-only { display: none; }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .head .brand b { font-size: 24px; }
  .brow { grid-template-columns: 90px 1fr 44px; }
}

/* 인쇄: 일일보고 한 장 */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .head, .nav, .subnav, .bar, .no-print, .toast { display: none !important; }
  .print-only { display: block; }
  .wrap { max-width: none; padding: 0; }
  .auto { background: #fff; border: 1px solid #000; }
  .auto dt { color: #000; }
  textarea.i, input.i { border: 0; padding: 0; background: #fff; color: #000; min-height: 0; resize: none; }
  label.f span { color: #000; }
  @page { size: A4; margin: 14mm; }
}

/* 발주처용 일일보고 한 장 (인쇄할 때만 보임) */
.rp { color: #000; font-size: 10pt; line-height: 1.5; word-break: keep-all; }
.rp header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; font-size: 10pt; }
.rp header b { font-size: 15pt; margin-right: 6px; }
.rp .nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; }
.rp .nums div { border: 1px solid #000; padding: 6px 8px; }
.rp .nums span { display: block; font-size: 8pt; }
.rp .nums b { font-size: 16pt; margin-right: 3px; }
.rp .nums small { font-size: 8pt; }
.rp .sub { margin: 2px 0 6px; font-size: 9pt; }
.rp h3 { font-size: 10.5pt; margin: 10px 0 3px; padding-left: 6px; border-left: 4px solid #000; }
.rp ul { margin: 0; padding-left: 16px; }
.rp li { margin: 1px 0; text-wrap: pretty; }
.rp .none { margin: 0; color: #555; }
.rp table { width: 100%; border-collapse: collapse; font-size: 9pt; }
.rp th, .rp td { border: 1px solid #999; padding: 3px 6px; background: #fff; color: #000; position: static; }
.rp th { background: #eee; }
.rp td.r { text-align: right; }
.rp footer { margin-top: 12px; text-align: right; font-size: 8pt; }
@media print { #view > h1.page, #view > .lead, #view > .days { display: none !important; } }

/* 도면 위 자리별 이름 */
.floor { position: relative; width: 100%; max-width: 1400px; margin: 10px 0; }
.floor img { width: 100%; display: block; }
.pin { position: absolute; transform: translate(-50%, -125%); background: var(--neon); color: #111; font-size: 11px; font-weight: 800; padding: 2px 6px; white-space: nowrap; line-height: 1.25; pointer-events: none; box-shadow: 0 0 0 1px #111; }
.pin b { display: block; font-size: 9px; font-weight: 700; opacity: .7; }
.pin.cover { background: var(--yellow); }
.pin.gap { background: var(--red); color: #fff; }
.pin.none { display: none; }
.pin.lead { background: var(--blue); transform: none; }
.pin.lead.off { background: #777; color: #eee; }
@media (max-width: 800px) { .pin { font-size: 9px; padding: 1px 4px; } .pin b { display: none; } }
.tl-bar.cv { background: var(--yellow); }
/* 교대 시간표 */
table.shift-grid { font-size: 11px; }
table.shift-grid th, table.shift-grid td { padding: 4px 3px; text-align: center; min-width: 34px; border-left: 1px solid var(--line); }
table.shift-grid td:first-child, table.shift-grid th:first-child { text-align: left; min-width: 220px; }
table.shift-grid td.on { background: rgba(43, 255, 43, .22); }
table.shift-grid td.cover { background: rgba(255, 210, 63, .55); color: #111; font-weight: 800; }
table.shift-grid td.gap { background: rgba(255, 90, 78, .45); }
/* 마디 근무표 */
table.madi td[data-n] { cursor: pointer; text-align: center; min-width: 58px; font-size: 12px; font-weight: 800; }
table.madi td.m-on { background: rgba(43, 255, 43, .22); color: var(--neon); font-weight: 700; }
table.madi td.m-off { background: #000; color: #666; font-weight: 600; }
table.madi td.m-am { background: var(--yellow); color: #111; }
table.madi td.m-pm { background: var(--blue); color: #111; }
table.madi td[data-n] { user-select: none; -webkit-tap-highlight-color: transparent; }
table.madi td[data-n]:hover { outline: 1px solid var(--neon); }

table.madi tr.prog td { font-size: 11px; line-height: 1.35; vertical-align: top; color: var(--blue); min-width: 92px; background: var(--soft); }
table.madi tr.prog td div { margin-bottom: 3px; }

/* 마디 근무표: 11.19–12.12 한눈에 — 칸 좁게 */
table.madi { font-size: 11px; width: auto; }
table.madi th, table.madi td { padding: 5px 2px; }
table.madi th.num { min-width: 34px; text-align: center; line-height: 1.15; font-size: 11px; }
table.madi th.num small { font-weight: 600; color: var(--muted); }
table.madi th.we, table.madi th.we small { color: var(--yellow); }
table.madi td[data-n] { min-width: 34px; font-size: 10.5px; padding: 6px 1px; }
table.madi td:first-child, table.madi th:first-child { padding-left: 8px; padding-right: 8px; position: sticky; left: 0; background: var(--soft); z-index: 1; }
table.madi tr.prog td { min-width: 34px; max-width: 64px; font-size: 9.5px; line-height: 1.25; word-break: break-all; }
table.madi td.m-ofc { background: #9B7BFF; color: #111; font-weight: 700; }
table.madi { table-layout: fixed; }
table.madi th, table.madi td { overflow: hidden; }
table.madi tr.prog td { min-width: 0; max-width: none; font-size: 9px; line-height: 1.3; letter-spacing: -0.03em; word-break: keep-all; white-space: normal; padding: 5px 1px; text-align: center; }
table.madi tr.prog td div { margin: 0 0 2px; }
table.madi td[data-n], table.madi th.num { min-width: 0; }
table.madi td.num { text-align: center; }
table.madi td:first-child b { font-size: 11px; }
table.madi tr.ghead td { background: #1c1b1b; color: var(--muted); font-size: 10.5px; font-weight: 800; padding: 7px 2px 4px; border-top: 2px solid var(--neon); }
table.madi tr.ghead td:first-child { color: var(--neon); padding-left: 8px; }
table.madi tr.ghead td:first-child small { color: var(--muted); font-weight: 600; }
table.madi td.g-cnt { text-align: center; color: var(--ink); }
table.madi td.g-cnt.low { background: var(--red); color: #fff; }
table.madi tr.gm td:first-child { padding-left: 14px; }
table.madi td.g-cnt small.plus { display: block; font-size: 8.5px; color: var(--muted); font-weight: 600; line-height: 1; }
table.madi td.g-cnt.low small.plus { color: #fff; }

/* 근무 줄 접기 */
details.rows { margin-top: 22px; }
details.rows summary { cursor: pointer; font-weight: 800; padding: 8px 0; color: var(--muted); }
details.rows[open] summary { color: var(--ink); }
/* 교대 시간표 출력: A4 가로 한 장 */
@page grid { size: A4 landscape; margin: 10mm; }
@media print {
  body.print-grid .gridprint { display: block !important; page: grid; }
  body.print-grid .gridprint table.shift-grid { font-size: 8pt; width: 100%; }
  body.print-grid .gridprint th, body.print-grid .gridprint td { border: 1px solid #999 !important; color: #000 !important; background: #fff !important; padding: 3px 2px !important; min-width: 0 !important; position: static !important; }
  body.print-grid .gridprint td.cover { background: #ffe58a !important; font-weight: 800; }
  body.print-grid .gridprint td.gap { background: #ffb3ad !important; }
  body.print-grid .gridprint td:first-child { min-width: 0 !important; width: 150px; }
  body.print-grid .gridprint .tablewrap { overflow: visible; border: 0; }
  body.print-grid #dcl, body.print-grid #dpv { display: none !important; }
}
.stat.team { grid-column: span 2; }
.stat.team .tm { font-size: 14px; line-height: 1.6; }
.stat.team .tm b { display: inline-block; min-width: 76px; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .stat.team { grid-column: 1 / -1; } }
h2.pday { margin: 22px 0 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--neon); font-size: 18px; }
@media print {
  body.print-grid * { visibility: hidden !important; }
  body.print-grid .gridprint, body.print-grid .gridprint * { visibility: visible !important; }
  body.print-grid .gridprint { position: absolute; left: 0; top: 0; width: 100%; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg); border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--neon); color: #111; border-color: var(--neon); }
.chip i { font-style: normal; color: var(--neon); font-size: 10px; }
.chip[aria-pressed="true"] i { color: #111; }
.pin.desk { background: #ff7ad1; color: #111; }
.pn { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.pn:hover { color: var(--neon); }
.pin .pn:hover, .chip .pn:hover { color: inherit; }
.person tr.p-off td { opacity: .45; }
.person tr.p-today td { box-shadow: inset 0 0 0 9999px rgba(43,255,43,.08); }
@media print { body.print-person .person { display: block !important; } body.print-person .person * { visibility: visible; } }
.pin .pn { pointer-events: auto; }
:root { --ar-a: #2BFF2B; --ar-b: #3FD5FF; }
.floor .pin { font-size: 13px; padding: 3px 8px; border-radius: 3px; }
.floor .pin b { font-size: 10px; opacity: .75; }
.floor .pin.ar-A { background: var(--ar-a); color: #111; }
.floor .pin.ar-B { background: var(--ar-b); color: #111; }
.floor .pin.cover { outline: 2px dashed #111; outline-offset: -4px; }
.floor .pin.gap { background: var(--red); color: #fff; }
.floor .pin.lead { background: #111; color: #fff; border: 3px solid; transform: translate(-50%, -50%); font-size: 14px; }
.floor .pin.lead.ar-A { border-color: var(--ar-a); }
.floor .pin.lead.ar-B { border-color: var(--ar-b); }
.floor .pin.lead.gap { border-color: var(--red); }
.floor .pin.lead b { opacity: 1; color: inherit; }
.floor .pin.lead.ar-A b { color: var(--ar-a); }
.floor .pin.lead.ar-B b { color: var(--ar-b); }
.floor .pin small { font-size: 10px; margin-left: 2px; }
@media (max-width: 800px) { .floor .pin { font-size: 9px; padding: 1px 4px; } .floor .pin.lead { font-size: 10px; } }
.head .lang { display: flex; gap: 0; margin-left: auto; align-self: center; }
.head .lang button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; font-size: 13px; font-weight: 700; }
.head .lang button[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); }
.pin.lead.perf { background: #111; border: 2px solid #ff7ad1; }
.pin.lead.help { background: #111; border: 2px dashed #fff; }
.pin.lead.strike { background: #111; border: 2px solid #ffb02e; }
/* 역할 카드(스케줄 「한 사람 보기」 위쪽) — 2026-11-09 */
.rc-h { font-size: 15px; margin: 18px 0 8px; color: var(--neon); }
.rc-tasks { display: grid; gap: 8px; }
.rc-task { border: 1px solid var(--line); padding: 10px 12px; }
.rc-task ul, .rc-rep { margin: 6px 0 0; padding-left: 18px; }
.rc-task li, .rc-rep li { margin: 2px 0; line-height: 1.55; }
.rc-task .small.muted { margin-top: 4px; }
/* 마디 하루 시간표 (2026-11-12) */
.pl { padding: 2px 0; }
.pl[data-pi] { cursor: pointer; }
.pl[data-pi]:hover b { text-decoration: underline; }
.pl-role b { color: var(--neon); }
.pl-clash { background: rgba(255, 80, 80, .12); }
@media print { .pl-role b { color: #000; } }

/* 홈 「오늘 내 일」 · 날짜 안내 한 줄 (2026-11-12) */
.mine { border: 1px solid var(--neon); padding: 14px 16px 6px; margin: 4px 0 8px; }
.mine h2 { margin: 0 0 10px; }
.mine .myplan { font-size: 15px; line-height: 1.55; }
.mine .myplan .pl { padding: 3px 0; }
.mine .myplan .pl[data-pi] { cursor: default; }
.daynote { color: var(--yellow); margin: -8px 0 14px; }

/* 근무 메뉴(2026-11-12): 일자별 다이어그램 · 일반 스탭 전체 근무표 · 연락망 */
.tl-bar[data-r], .tl-bar[data-e], .tl-bar[data-pi] { cursor: pointer; }
.tl-bar.pi { background: var(--ink); }
.tl-bar.clash { outline: 2px solid var(--red); outline-offset: -2px; }
.tl-row .who, .tl-axis > div:first-child { position: sticky; left: 0; z-index: 3; background: var(--bg); }
.tl-axis > div:first-child { background: var(--soft); }
table.madi td[data-cd] { cursor: pointer; text-align: center; font-size: 12px; font-weight: 800; padding: 6px 1px; user-select: none; }
table.madi th[data-cd] { cursor: pointer; }
table.madi th[data-cd]:hover, table.madi td[data-cd]:hover { outline: 1px solid var(--neon); }
.tel { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.telcard { background: var(--soft); border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.telcard .tn b { font-size: 17px; }
.telcard .tn small { color: var(--muted); margin-left: 6px; }
.telcard .ta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 34px; }
.telcard .ta a { text-decoration: none; font-variant-numeric: tabular-nums; }
.telcard .tmail { color: var(--muted); overflow-wrap: anywhere; }
.telcard .tf { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.telcard .tf a { color: var(--muted); }
.telfix { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 12px; padding: 0; cursor: pointer; }
.tl-inner { min-width: 1000px; }   /* PC 폭에서는 옆으로 밀지 않고 한 화면에 다 보이게 */
.tl-none { position: absolute; left: 10px; top: 14px; font-size: 12px; color: var(--muted); }
.tl-bar.cs { padding: 2px 3px; text-align: center; line-height: 28px; }
@media (max-width: 640px) { .tl-axis, .tl-row { grid-template-columns: 96px 1fr; } .tl-row .who { padding: 6px; font-size: 12px; } .tl-inner { min-width: 900px; } }

/* 다이어그램에서 바로 고치기(2026-11-12): 막대 끌기·양 끝 늘이기·빈 곳 눌러 넣기 */
.tl-bar[data-mv] { cursor: grab; user-select: none; -webkit-user-select: none; }
.tl-bar[data-mv]::before, .tl-bar[data-mv]::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 1; }
.tl-bar[data-mv]::before { left: 0; }
.tl-bar[data-mv]::after { right: 0; }
.tl-bar[data-noend]::before { cursor: grab; }
.tl-bar.drag { cursor: grabbing; z-index: 6; opacity: .92; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1.5px rgba(0, 0, 0, .7); }
.tl-row .lane.drop { background-color: rgba(43, 255, 43, .12); box-shadow: inset 0 0 0 1px var(--neon); }
.tl-row .lane[data-add] { cursor: cell; }
@media (hover: hover) { .tl-row .lane[data-add]:hover { background-color: rgba(255, 255, 255, .04); } }
.tl-tip { position: fixed; z-index: 40; background: #fff; color: #111; font-size: 12px; font-weight: 800; padding: 3px 7px; pointer-events: none; font-variant-numeric: tabular-nums; }
.tl-hint { margin-top: 8px; }
.toast .tundo { margin-left: 10px; background: #111; color: #fff; border: 0; font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; }

/* 막대마다 외곽선(해다님 2026-11-12): 바로 붙은 막대끼리 한 덩어리로 보이지 않게 — 바탕색 테두리로 틈을 내고 안쪽에 짙은 선 */
.tl-bar { box-sizing: border-box; border: 1px solid var(--bg); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .7); padding: 1px 6px; }
.tl-bar.cs { padding: 1px 3px; }
.tl-bar.base { background: rgba(43, 255, 43, .16); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(43, 255, 43, .55); cursor: cell; }

/* 눌린 상태로 남는 단추(모든 회차 보기) */
.btn[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); }

/* 마디 근무: 현장운영 네 사람이 부대행사로 나간 날(해다님 2026-11-13) */
table.madi td.m-ev { font-size: 9px; letter-spacing: -.6px; white-space: nowrap; padding-left: 0; padding-right: 0; background: rgba(255, 122, 200, .16); color: #FF7AC8; box-shadow: inset 0 0 0 1px rgba(255, 122, 200, .55); }
table.madi td.m-am.m-ev, table.madi td.m-pm.m-ev { color: #111; box-shadow: inset 0 0 0 2px #FF7AC8; }
table.madi td[data-n] small { display: block; font-size: 8.5px; line-height: 1; font-weight: 700; }
.stat.team .tm.ev b { color: #FF7AC8; }
table.madi td.m-eve { padding-bottom: 0; }
table.madi td[data-n] small.eve { margin: 3px -1px 0; padding: 2px 0 3px; background: #FF7AC8; color: #111; letter-spacing: -.5px; white-space: nowrap; }

/* 매뉴얼 (2026-11-17) */
.manual { max-width: 760px; font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.manual h3 { font-size: 19px; margin: 30px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--neon); }
.manual h4 { font-size: 16px; margin: 18px 0 4px; }
.manual p { margin: 8px 0; }
.manual ul, .manual ol { margin: 6px 0 10px; padding-left: 22px; }
.manual li { margin: 4px 0; }
.manual blockquote { margin: 10px 0; padding: 12px 14px; background: var(--soft); border-left: 3px solid var(--neon); }
.manual blockquote p { margin: 2px 0; font-weight: 600; }
.manual .msum { color: var(--muted); }
mark.todo { background: var(--yellow, #ffd84d); color: #000; padding: 0 4px; font-weight: 700; }
a.mcard { display: block; text-decoration: none; color: inherit; }
#ef textarea[name="내용"] { min-height: 46vh; font-size: 14px; line-height: 1.6; }
@media print { .manual { max-width: none; color: #000; } .manual h3 { color: #000; } .manual blockquote { background: #f2f2f2; border-left-color: #000; } }

/* 작업신고서(차량 반입) — 화면에서도 종이처럼 보이고 그대로 인쇄된다 */
.ws { background: #fff; color: #000; padding: 22px 20px; margin-top: 12px; max-width: 760px; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.ws-no { text-align: right; font-size: 12px; margin-bottom: 2px; }
.ws table { width: 100%; border-collapse: collapse; border: 2px solid #000; font-size: inherit; table-layout: fixed; }
.ws th, .ws td { border: 1px solid #000; padding: 9px 10px; background: #fff; color: #000; text-align: left; vertical-align: middle; position: static; font-weight: 400; }
.ws th { text-align: center; font-size: 1.1em; white-space: nowrap; }
.ws td.c { text-align: center; }
.ws .ws-t { text-align: center; font-size: 30px; padding: 12px; border-bottom: 0; }
.ws .ws-s { font-size: 1.1em; border-top: 0; padding-top: 12px; }
.ws .ws-body { height: 210px; vertical-align: top; font-size: .95em; }
.ws .ws-body p { margin: 0 0 14px; }
.ws .ws-none { color: #777; }
.ws .ws-g + .ws-g { margin-top: 12px; }
.ws .ws-foot { text-align: center; padding: 16px 14px 22px; font-size: 1.15em; }
.ws .ws-foot p { margin: 0 0 16px; }
.ws .ws-sign { text-align: right; margin: 22px 0 34px; }
.ws .ws-to { font-size: 1.35em; }
@media print {
  .ws { padding: 0; margin: 0; max-width: none; font-size: 10.5pt; line-height: 1.4; }
  .ws th, .ws td { padding: 6px 8px; }
  .ws .ws-t { font-size: 22pt; padding: 8px; }
  .ws .ws-body { height: 40mm; }
  .ws .ws-foot { padding: 10px 12px 14px; } .ws .ws-foot p { margin: 0 0 9px; }
  .ws .ws-sign { margin: 12px 0 18px; }
  .ws table { page-break-inside: avoid; }
  #view > h2 { display: none; }
}

/* 작업신고서: 세 단계 줄 · 차량 카드 · 전날 줄 고르기 */
.wsteps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 14px 0 6px; }
.wsteps li { border: 1px solid var(--line); background: var(--soft); padding: 10px 12px; }
.wsteps li.ok { border-color: var(--neon); }
.wsteps li b { display: block; }
.wsteps li small { color: var(--muted); }
.wsteps li.ok small { color: var(--neon); }
.btn.big { font-size: 17px; padding: 14px 20px; }
.wcars { display: grid; gap: 6px; }
.wcar { display: grid; grid-template-columns: 110px 1fr auto; gap: 4px 12px; align-items: start; text-align: left; width: 100%; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--line); padding: 10px 12px; color: var(--ink); font: inherit; cursor: pointer; }
.wcar.my { border-left-color: var(--neon); }
.wcar:hover { border-color: var(--neon); }
.wcar .wt { font-weight: 800; }
.wcar .wm b { display: block; }
.wcar .wp { display: block; font-variant-numeric: tabular-nums; }
.wcar .wm small { display: block; color: var(--muted); }
.wcopy { display: grid; gap: 4px; max-height: 50vh; overflow: auto; margin: 10px 0; }
.wcopy label { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); }
.wcopy small { display: block; color: var(--muted); }
@media (max-width: 600px) { .wcar { grid-template-columns: 1fr; } .wsteps { grid-template-columns: 1fr; } .wcar .wo { grid-row: 3; } }
.sigpad { width: 100%; max-width: 600px; height: auto; background: #fff; border: 2px solid var(--neon); touch-action: none; display: block; cursor: crosshair; }
