/* 표계산 앱 — 엑셀 시안(작성자|검색|확실|우호|반대|모름) 격자 그대로 */
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #222; font-family: "Malgun Gothic", "맑은 고딕", "Noto Sans CJK KR", "Apple SD Gothic Neo", sans-serif; font-size: 14px; }
a { color: #1f4e9c; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 14px 12px 60px; }

/* 상단 제목줄 */
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 4px 0 10px; border-bottom: 1px solid #d9d9d9; }
.app-title { font-size: 16px; letter-spacing: .5px; }
.me { font-size: 12.5px; color: #555; }
.me b { color: #222; }
.tag { display: inline-block; border: 1px solid #d9d9d9; border-radius: 3px; padding: 0 5px; margin: 0 2px; font-size: 11.5px; color: #444; background: #fafafa; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.btn { border: 1px solid #c8c8c8; background: #fff; padding: 5px 11px; border-radius: 3px; }
.btn:hover { background: #f3f6fb; }
.btn.pri { background: #1f4e9c; border-color: #1f4e9c; color: #fff; }
.btn.pri:hover { background: #18407f; }
.btn.sm { padding: 2px 8px; font-size: 12.5px; }
.btn.danger { color: #b3261e; }

/* 시트 격자 */
.sheet { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 14px; }
.sheet th, .sheet td { border: 1px solid #d9d9d9; height: 34px; padding: 3px 6px; vertical-align: middle; }
.sheet th { font-weight: normal; text-align: center; background: #fff; }
.sheet col.c-author { width: 10%; }
.sheet col.c-search { width: 38%; }
.sheet col.c-g { width: 8.4%; }
.sheet col.c-act { width: 10%; }
.sheet th .sub { display: block; font-size: 11px; color: #666; }
.sheet td.author { text-align: center; color: #333; font-size: 13px; }
.sheet td.g { text-align: center; padding: 0; }
.sheet td.g button { width: 100%; height: 33px; border: 0; background: transparent; color: #bbb; font-size: 17px; }
.sheet td.g button:hover { background: #f3f6fb; color: #1f4e9c; }
.sheet td.g button.on { color: #fff; font-weight: bold; font-size: 13px; }
.sheet td.g.확실 button.on { background: #1f4e9c; }
.sheet td.g.우호 button.on { background: #6f9be0; }
.sheet td.g.반대1 button.on { background: #c0504d; }
.sheet td.g.반대2 button.on { background: #d9822b; }
.sheet td.g.모름 button.on { background: #8c8c8c; }
.sheet th .cnt { display: block; font-size: 11px; color: #888; }
.sheet tr.inputrow td { background: #fbfcfe; }
.who { line-height: 1.25; }
.who .nm { font-weight: bold; }
.who .sub { font-size: 11.5px; color: #777; }
.who .memo { font-size: 11.5px; color: #1f4e9c; }
.oppmark { font-size: 10.5px; display: block; }
.rowtools { float: right; display: flex; gap: 4px; align-items: center; }
.rowtools .x { border: 0; background: none; color: #aaa; font-size: 15px; }
.rowtools .x:hover { color: #b3261e; }
.gtoggle button { border: 1px solid #d0d0d0; background: #fff; font-size: 11px; padding: 0 5px; margin-left: 2px; border-radius: 2px; color: #666; }
.gtoggle button.on { background: #444; color: #fff; border-color: #444; }
.sectionhead td { background: #f5f5f5; font-size: 12.5px; color: #555; text-align: left; height: 26px; }

/* 자동완성 */
.ac { position: relative; }
.ac input { width: 100%; border: 1px solid #c8c8c8; border-radius: 2px; padding: 5px 7px; outline: none; }
.ac input:focus { border-color: #1f4e9c; box-shadow: 0 0 0 2px #e3ebf8; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #c8c8c8; border-top: 0; max-height: 360px; overflow-y: auto; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.ac-item { padding: 6px 8px; cursor: pointer; border-bottom: 1px solid #f0f0f0; line-height: 1.3; }
.ac-item:last-child { border-bottom: 0; }
.ac-item.act, .ac-item:hover { background: #eef3fb; }
.ac-item .sub { font-size: 11.5px; color: #777; }
.ac-item .k { font-size: 10.5px; color: #fff; background: #1f4e9c; border-radius: 2px; padding: 0 4px; margin-right: 4px; }
.ac-item .k.m { background: #6f6f6f; }
.ac-item .gr { float: right; font-size: 11px; color: #1f4e9c; }
.hint { font-size: 11.5px; color: #888; margin-top: 3px; }

/* 카드·폼 */
.panel { border: 1px solid #d9d9d9; padding: 16px; margin-top: 14px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: bold; }
.login { max-width: 380px; margin: 60px auto; }
.login .panel { padding: 22px; }
.fld { margin-bottom: 10px; }
.fld label { display: block; font-size: 12.5px; color: #555; margin-bottom: 3px; }
.fld input, .fld select { width: 100%; border: 1px solid #c8c8c8; border-radius: 2px; padding: 7px 8px; }
.err { color: #b3261e; font-size: 12.5px; min-height: 18px; }
.ok { color: #2e7d32; font-size: 12.5px; }
.muted { color: #888; font-size: 12px; }
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { border: 1px solid #e0e0e0; padding: 5px 7px; font-size: 13px; }
.grid th { background: #f7f7f7; font-weight: normal; color: #444; }
.grid td.n { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: #f0f0f0; border-radius: 2px; overflow: hidden; display: flex; min-width: 80px; }
.bar i { display: block; height: 100%; }
.bar i.s { background: #1f4e9c; } .bar i.f { background: #6f9be0; } .bar i.a { background: #c0504d; } .bar i.u { background: #b3b3b3; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi { border: 1px solid #e0e0e0; padding: 10px 14px; min-width: 110px; }
.kpi .v { font-size: 20px; font-weight: bold; }
.kpi .l { font-size: 12px; color: #777; }
.kpi.em .v { color: #1f4e9c; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid #d9d9d9; margin-top: 12px; flex-wrap: wrap; }
.tabs button { border: 1px solid transparent; border-bottom: 0; background: none; padding: 7px 14px; margin-bottom: -1px; color: #555; }
.tabs button.on { border-color: #d9d9d9; background: #fff; color: #1f4e9c; font-weight: bold; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; padding: 20px; width: min(420px, 92vw); border: 1px solid #ccc; }
.pop { position: absolute; z-index: 40; background: #fff; border: 1px solid #c8c8c8; box-shadow: 0 6px 16px rgba(0,0,0,.1); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.pop button { border: 1px solid #ddd; background: #fff; padding: 5px 12px; text-align: left; }
.pop button:hover { background: #fbeeee; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 8px 16px; border-radius: 3px; font-size: 13px; z-index: 60; }
.filters { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; font-size: 12.5px; }
.filters select, .filters input { border: 1px solid #c8c8c8; padding: 3px 5px; }
.perm-cb { white-space: nowrap; font-size: 12px; margin-right: 6px; display: inline-block; }
.pill { font-size: 11px; padding: 1px 6px; border-radius: 9px; background: #eee; color: #555; }
.pill.pending { background: #fff3cd; color: #8a6d00; }
.pill.off { background: #f8d7da; color: #8a1c1c; }

/* 총회원 분류·매트릭스 */
.ov { margin-top: 22px; border-top: 2px solid #1f4e9c; padding-top: 12px; }
.ov-title { font-size: 15px; font-weight: bold; margin-bottom: 8px; }
.ov-title .muted { font-weight: normal; }
.ov-comp { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 14px; margin-top: 10px; align-items: start; }
.ov-comp td:first-child, .ov-comp th { white-space: nowrap; }
.ov-comp table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ov-comp th, .ov-comp td { border: 1px solid #e0e0e0; padding: 3px 5px; }
.ov-comp th { background: #f7f7f7; font-weight: normal; color: #444; }
.ov-comp td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-comp td.n small { color: #888; }
.ov-comp caption { text-align: left; font-weight: bold; padding: 2px 0 4px; font-size: 13px; }
.ov-comp tr.clk { cursor: pointer; }
.ov-comp tr.clk:hover td { background: #f3f6fb; }
.ov-comp tr.sel td { background: #eaf1fb; font-weight: bold; }
.mx-wrap { overflow: auto; max-height: 78vh; border: 1px solid #d9d9d9; margin-top: 8px; }
table.mx { border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
table.mx th, table.mx td { border-right: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; padding: 4px 6px; vertical-align: top; white-space: nowrap; }
table.mx thead th { position: sticky; top: 0; background: #f7f7f7; z-index: 2; font-weight: normal; text-align: center; min-width: 78px; line-height: 1.25; }
table.mx thead th.firm { cursor: pointer; color: #1f4e9c; }
table.mx thead th.firm:hover { text-decoration: underline; }
table.mx th.rh { position: sticky; left: 0; background: #f7f7f7; z-index: 1; text-align: left; font-weight: normal; }
table.mx thead th.rh { z-index: 3; }
table.mx td { text-align: right; line-height: 1.35; font-variant-numeric: tabular-nums; }
table.mx td .v { font-weight: bold; font-size: 12.5px; }
table.mx td .p { color: #777; }
table.mx td .s { color: #1f4e9c; }
table.mx td .f { color: #4a78c2; }
table.mx td.tot, table.mx tr.tot td, table.mx tr.tot th { background-color: #fafafa; border-top: 1px solid #bbb; }
table.mx td.tot { border-left: 1px solid #bbb; }
table.mx th .sub { display: block; font-size: 10.5px; color: #777; }
.mx .l1, .mx-legend .l1 { background-color: #eef4fc; }
.mx .l2, .mx-legend .l2 { background-color: #d3e3f8; }
.mx .l3, .mx-legend .l3 { background-color: #9fc0ec; }
.mx .l4, .mx-legend .l4 { background-color: #1f4e9c; }
.mx td.l4, .mx td.l4 .p, .mx td.l4 .s, .mx td.l4 .f { color: #fff; }
.mx .neg, .mx-legend .neg { background-color: #fbe3e1; }
.mx-legend { margin-left: auto; font-size: 11.5px; color: #666; }
.mx-legend i { display: inline-block; width: 14px; height: 10px; border: 1px solid #ccc; margin: 0 2px 0 8px; vertical-align: -1px; }
.mx-legend i.l0 { background: #fff; }
.ov-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 16px 0 8px; padding-top: 10px; border-top: 1px dashed #d9d9d9; }
.ov-btns .btn.on { background: #1f4e9c; color: #fff; border-color: #1f4e9c; }
table.dt { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.dt th, table.dt td { border: 1px solid #e0e0e0; padding: 4px 6px; }
table.dt th { background: #f7f7f7; font-weight: normal; white-space: nowrap; }
table.dt td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.dt td.n small { color: #888; }
table.dt tr.par td { font-weight: bold; cursor: pointer; }
table.dt tr.par td:first-child::before { content: "▸ "; color: #888; }
table.dt tr.par.open td:first-child::before { content: "▾ "; }
table.dt tr.kid td { background: #fcfcfc; font-size: 12px; }
table.dt tr.kid td:first-child { padding-left: 22px; }
table.dt tr.kid.firm td:first-child { cursor: pointer; color: #1f4e9c; }
table.dt tr.tot td { background: #fafafa; font-weight: bold; border-top: 1px solid #bbb; }
.mine-wrap { margin-top: 22px; border-top: 1px solid #d9d9d9; padding-top: 8px; }
.mine-wrap summary { cursor: pointer; font-size: 14px; padding: 4px 0; }

@media (max-width: 640px) {
  .wrap { padding: 8px 6px 60px; }
  .sheet { table-layout: auto; }
  .sheet col { width: auto !important; }
  .sheet .author { display: none; }
  .sheet td.g, .sheet th:nth-child(n+3) { width: 44px; min-width: 44px; max-width: 44px; }
  .sheet th .sub { font-size: 9.5px; }
  .sheet td.g button.on { font-size: 12px; }
  .rowtools { float: none; display: flex; margin-top: 2px; }
  .sheet th, .sheet td { height: 40px; }
  .sheet td.g button { height: 39px; }
  .me .tag { display: none; }
}
@media print { .nav, .inputrow { display: none; } }

.remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; margin: 2px 0 10px; cursor: pointer; }
.upbar { position: sticky; top: 0; z-index: 70; background: #eef4fc; border-bottom: 1px solid #9fc0ec; padding: 8px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; justify-content: center; }

/* 저장/수정 */
.sheet td.act { text-align: center; padding: 2px 4px; font-size: 11.5px; }
.sheet td.act .btn { padding: 3px 8px; font-size: 12px; }
.sheet td.act .saved { display: block; color: #2e7d32; font-size: 11px; }
.sheet td.act .when { display: block; color: #999; font-size: 10.5px; }
.sheet tr.locked td.g button:not(.on) { cursor: default; }
.sheet tr.locked td.g button:not(.on):hover { background: transparent; color: #bbb; }
.sheet td.g button.sel { outline: 2px solid #1f4e9c; outline-offset: -3px; color: #1f4e9c; font-weight: bold; font-size: 13px; }
.sheet tr.editing td { background: #fffbea; }
.mine-wrap { margin-top: 18px; border-top: 2px solid #1f4e9c; padding-top: 10px; }
.mine-sum { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.mine-sum .ttl { font-weight: bold; margin-right: 6px; }
.mine-sum button { border: 1px solid #d0d0d0; background: #fff; border-radius: 3px; padding: 5px 12px; font-size: 13.5px; }
.mine-sum button b { font-size: 15px; margin-left: 4px; }
.mine-sum button.on { border-color: #1f4e9c; background: #eef4fc; color: #1f4e9c; }
.savebar { position: sticky; bottom: 0; z-index: 30; background: #fffbea; border-top: 1px solid #e6c200; padding: 8px; text-align: center; font-size: 13.5px; }
@media (max-width: 640px) { .sheet td.act, .sheet th:last-child { width: 56px; min-width: 56px; } }

/* ---------- 2단 화면: 왼쪽 작업 · 오른쪽 업무일지·일정 ---------- */
body.in .wrap { max-width: 1640px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.rail { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; margin-top: 14px; border: 1px solid #d9d9d9; background: #fff; }
.rsec { padding: 10px 10px 12px; border-bottom: 1px solid #e6e6e6; }
.rhead { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 14px; flex-wrap: wrap; }
.rhead .muted { margin-left: 4px; }
.grow { flex: 1; }
.btn.on { background: #eef4fc; border-color: #1f4e9c; color: #1f4e9c; }
.wl-list { display: flex; flex-direction: column; gap: 4px; }
.wl-item { display: flex; gap: 6px; align-items: flex-start; border: 1px solid #e6e6e6; border-left: 3px solid #d9822b; padding: 6px 7px; cursor: pointer; background: #fff; }
.wl-item.mine { background: #fffbf2; }
.wl-item:hover { background: #f6f9fd; }
.wl-item.done { opacity: .55; border-left-color: #2e7d32; }
.wl-item.done .wl-t { text-decoration: line-through; }
.wl-main { flex: 1; min-width: 0; }
.wl-t { font-weight: bold; font-size: 13px; }
.wl-sub { font-size: 11.5px; color: #666; margin-top: 2px; }
.wl-note { font-size: 11.5px; color: #1f4e9c; margin-top: 2px; white-space: pre-wrap; }
.dd.over { color: #c0504d; } .dd.today { color: #d9822b; } .dd.soon { color: #b8860b; }
.cal-filter { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.chip { border: 1px solid #ddd; background: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.chip.off { opacity: .35; }
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; flex: none; }
.week .day { border-top: 1px solid #eee; padding: 4px 0 6px; }
.week .day.today { background: #f3f8ff; }
.week .dh { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: bold; color: #333; padding: 2px 2px; cursor: default; }
.week .day.sun .dh { color: #c0504d; } .week .day.sat .dh { color: #1f4e9c; }
.dtag { background: #1f4e9c; color: #fff; border-radius: 3px; padding: 0 5px; font-size: 10.5px; font-weight: normal; }
.dh .plus { cursor: pointer; color: #999; padding: 0 4px; font-size: 15px; }
.dh .plus:hover { color: #1f4e9c; }
.ev { display: flex; align-items: center; font-size: 12.5px; padding: 2px 4px; cursor: pointer; border-radius: 2px; }
.ev:hover { background: #eef4fc; }
.ev .et { color: #666; font-size: 11.5px; width: 42px; flex: none; }
.ev .ett { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.done .ett, .mev.done { text-decoration: line-through; color: #999; }
.empty { font-size: 11px; padding-left: 6px; }
.modal.wide { width: min(980px, 96vw); max-height: 92vh; overflow-y: auto; }
.modal textarea { width: 100%; border: 1px solid #c8c8c8; padding: 6px; font: inherit; }
.mfoot { display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.pre { white-space: pre-wrap; }
.mtop { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.mtop b { font-size: 16px; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid #e3e3e3; border-top: 1px solid #e3e3e3; }
.mgrid .mh { text-align: center; font-size: 12px; background: #f7f7f7; padding: 4px; border-right: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; }
.mgrid .mh:nth-child(6) { color: #1f4e9c; } .mgrid .mh:nth-child(7) { color: #c0504d; }
.mc { min-height: 92px; border-right: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; padding: 3px; font-size: 11.5px; overflow: hidden; }
.mc.other { background: #fafafa; color: #aaa; }
.mc.today { background: #f3f8ff; }
.mc .mn { font-weight: bold; font-size: 12px; }
.mev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; padding: 1px 2px; border-radius: 2px; }
.mev:hover { background: #eef4fc; }
.mc .more { cursor: pointer; font-size: 11px; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; }
}
.modal .ev .et { width: 78px; }

/* =====================================================================
   Allinone 디자인 맞춤(2026-11-13) — 흰 바탕 · 짙은 남색 1색 포인트 · 둥근 카드 · 색 테두리 단추
   ===================================================================== */
:root { --navy: #1f3a68; --navy2: #2b4d86; --navy-bg: #eaf0fa; --line: #dde1ea; --line2: #c7cdd9; --ink: #1b2130; --muted: #727b8f;
  --human: #fff3b0; --human-line: #e2c650; --blue-c: #0b62b5; --blue-b: #7fb8ee; --red-c: #b42318; --verm-c: #c2410c; --verm-b: #f4a37f; --green-c: #1d6b45; --green-b: #8fd1ad; }
html, body { color: var(--ink); font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; }
.wrap { padding-top: 0; }
.muted { color: var(--muted); }

/* 단추 */
.btn { border: 1px solid var(--line2); border-radius: 8px; padding: 6px 14px; background: #fff; color: #4a5366; font-weight: 500; }
.btn:hover { border-color: var(--navy2); color: var(--navy); background: #fff; }
.btn.sm { padding: 3px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.pri, .btn.save { border-color: var(--blue-b); color: var(--blue-c); background: #fff; font-weight: 700; }
.btn.pri:hover, .btn.save:hover { background: #eef6ff; color: var(--blue-c); }
.btn.edit { border-color: var(--verm-b); color: var(--verm-c); }
.btn.danger { background: #e11d48; border-color: #e11d48; color: #fff; }
.btn.light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.btn.light:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }

/* 위쪽 남색 막대 */
.appbar { display: flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; height: 56px; padding: 0 16px; margin: 0 -12px; position: sticky; top: 0; z-index: 60; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; margin-right: 18px; white-space: nowrap; }
.brand .sub { font-weight: 400; font-size: 12.5px; opacity: .75; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #fff; color: var(--navy); font-weight: 800; font-size: 16px; }
.appbar .nav { display: flex; gap: 2px; height: 100%; }
.tab { background: none; border: 0; color: rgba(255,255,255,.82); padding: 0 14px; height: 100%; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; border-bottom: 3px solid transparent; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.me { margin: 10px 0 2px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.me-name { margin-right: 4px; }
.tag { border: 1px solid var(--line); border-radius: 12px; padding: 1px 9px; background: #f5f6f9; color: #4a5366; font-size: 12px; }

/* ① 입력 칸 — 눈에 띄게 */
.hero { margin-top: 12px; border: 2px dashed var(--navy2); border-radius: 12px; background: var(--navy-bg); padding: 18px 22px 16px; }
.hero-title { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.hero-sub { font-size: 13px; color: #4a5366; margin: 4px 0 12px; }
.hero-sub b { color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.hero-input { position: relative; display: flex; align-items: center; }
.hero-ic { position: absolute; left: 16px; font-size: 20px; pointer-events: none; z-index: 1; }
.hero .ac { flex: 1; }
.hero input#q { width: 100%; height: 58px; font-size: 20px; padding: 0 18px 0 50px; border: 2px solid var(--navy); border-radius: 10px; background: #fffef3;
  box-shadow: 0 0 0 5px rgba(255, 214, 0, .35); outline: none; }
.hero input#q:focus { background: #fff; box-shadow: 0 0 0 5px rgba(43, 77, 134, .25); }
.hero input#q::placeholder { color: #8a93a6; }
.hero .ac-list { border: 2px solid var(--navy); border-top: 0; border-radius: 0 0 10px 10px; font-size: 15px; max-height: 420px; }
.hero .ac-item { padding: 9px 14px; }
.hero-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--navy); }
.hero-steps span { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 3px 11px; }
.hero-steps i { font-style: normal; color: var(--muted); }

/* 시트 */
.sheet { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 14px; }
.sheet th, .sheet td { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet th:last-child, .sheet td:last-child { border-right: 0; }
.sheet thead th { background: var(--navy-bg); color: var(--navy); font-weight: 700; font-size: 13.5px; height: 46px; }
.sheet thead th .cnt { color: var(--navy2); font-size: 12px; font-weight: 700; }
.sheet col.c-author { width: 8%; } .sheet col.c-search { width: 27%; } .sheet col.c-g { width: 7%; } .sheet col.c-memo { width: 18%; } .sheet col.c-act { width: 12%; }
.sheet td.g button { font-size: 18px; color: #c9ced8; border-radius: 0; }
.sheet td.g button.on { font-size: 13px; }
.sectionhead td { background: #f5f6f9; color: var(--navy); font-weight: 700; }
.memo-c { font-size: 12.5px; color: #4a5366; vertical-align: middle; white-space: pre-wrap; }
.memo-in { width: 100%; border: 1px solid var(--line2); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12.5px; resize: vertical; background: #fffef3; }
.memo-in:focus { outline: 2px solid var(--navy2); background: #fff; }
.sheet td.act { display: table-cell; }
.sheet td.act .btn { margin: 2px 1px; }

/* 내 입력 요약 · 선거인단 현황 */
.mine-wrap, .ov { border-top: 0; margin-top: 22px; padding-top: 0; }
.mine-sum .ttl, .ov-title { color: var(--navy); font-size: 16px; font-weight: 800; }
.mine-sum button { border-radius: 18px; border-color: var(--line2); }
.mine-sum button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.kpi { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.kpi .v { color: var(--ink); }
.kpi.em .v { color: var(--navy); }
.ov-comp table, table.dt, table.grid { border-radius: 8px; }
.ov-comp th, table.dt th, .grid th { background: var(--navy-bg); color: var(--navy); font-weight: 600; }
.ov-btns .btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel { border: 1px solid var(--line); border-radius: 10px; }
.mx-wrap { border-radius: 8px; border-color: var(--line); }

/* 오른쪽 칸 */
.rail { border: 1px solid var(--line); border-radius: 12px; top: 64px; max-height: calc(100vh - 72px); }
.rsec .rhead b { color: var(--navy); font-size: 15px; }
.wl-item { border-radius: 8px; border-color: var(--line); }
.week .day.today { background: var(--navy-bg); border-radius: 6px; }
.dtag { background: var(--navy); }
.modal { border-radius: 12px; border: 0; box-shadow: 0 18px 50px rgba(20, 30, 60, .25); }
.modal-bg { background: rgba(20, 30, 60, .35); }
.upbar { background: var(--human); border-bottom-color: var(--human-line); }

/* 로그인 화면 */
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 14px; text-align: center; }
.login-brand .mark { background: var(--navy); color: #fff; }
.login-brand .sub { width: 100%; font-size: 13px; font-weight: 400; color: var(--muted); }
.login .panel { border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 30, 60, .08); }
.login .fld input { height: 46px; font-size: 16px; border-radius: 8px; border: 1px solid var(--line2); }
.login .btn.pri { height: 48px; font-size: 16px; background: var(--navy); color: #fff; border-color: var(--navy); }
.login .btn.pri:hover { background: var(--navy2); color: #fff; }

@media (max-width: 760px) {
  .appbar { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 4px; }
  .appbar .nav { height: 38px; overflow-x: auto; }
  .brand .sub { display: none; }
  .hero { padding: 14px; } .hero-title { font-size: 17px; } .hero input#q { height: 52px; font-size: 18px; }
  .sheet col.c-memo { width: 0; } .memo-c, .sheet th:nth-last-child(2) { min-width: 110px; }
}

/* 업무 진행상황 */
.pg-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 14px; }
.pg-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.pg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-name { font-size: 16px; color: var(--navy); }
.pg-leads { font-size: 12.5px; color: #4a5366; }
.pg-leads select { border: 1px solid var(--line2); border-radius: 6px; padding: 1px 4px; font-size: 12.5px; }
.pg-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12px; }
.pg-bar .bar { flex: 1; height: 8px; }
.pg-t td { vertical-align: middle; }
.pg-t tr[data-wl] { cursor: pointer; }
.pg-t tr[data-wl]:hover td { background: #f6f9fd; }
.pg-title { font-weight: 600; }
.pg-done td { color: #9aa1ae; } .pg-done .pg-title { text-decoration: line-through; }
.pg-st { border: 1px solid var(--line2); border-radius: 12px; padding: 1px 6px; font-size: 12px; }
.pg-st.st-대기 { background: #f5f6f9; } .pg-st.st-진행중 { background: #eef6ff; color: #0b62b5; } .pg-st.st-완료 { background: #e7f4ec; color: #1d6b45; }
.tag.div { background: var(--navy-bg); color: var(--navy); border-color: #c9d6ee; }
.small { font-size: 12px; }

/* 지역관리담당자 */
.rm-card { margin-top: 14px; }
.rm-t td, .rm-t th { padding: 5px 9px; }
.rm-t td.rm-reg { font-weight: 800; color: var(--navy); background: #f7f9fd; text-align: center; white-space: nowrap; }
.rm-name { font-weight: 700; white-space: nowrap; }
a.tel { color: var(--blue-c); font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.tel:hover { text-decoration: underline; }

/* 분과 담당자 정/부 카드 */
.pg-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.pchip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; position: relative; }
.pchip[data-pick] { cursor: pointer; }
.pchip[data-pick]:hover { border-color: var(--navy2); background: var(--navy-bg); }
.pchip.empty { border-style: dashed; }
.plab { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.plab.lead { background: var(--navy); } .plab.sub { background: #6f8fc4; }
.pinfo { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pinfo b { font-size: 15px; }
.pfirm { font-size: 12px; color: #4a5366; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo .tel { font-size: 13px; }
.pedit { position: absolute; right: 8px; top: 6px; color: #9aa1ae; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 16px; cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; font-weight: 700; }

/* 검색 목록 머리: 저장·수정 */
.sectionhead .pick-acts { float: right; display: inline-flex; gap: 6px; }
.sectionhead .pick-acts .btn[disabled] { opacity: .45; cursor: default; }
/* 일정 탭(전체 화면) */
.calpage { background: #fff; border: 1px solid var(--line, #dde3ea); border-radius: 10px; padding: 14px; }
.calpage .mgrid .mc { min-height: 96px; }
.calpage .cp-h { margin: 18px 0 8px; font-size: 15px; }
.cp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-tbl th, .cp-tbl td { border-bottom: 1px solid #e6eaf0; padding: 6px 8px; text-align: left; }
.cp-tbl th { background: #f4f6f9; }
.cp-tbl tr[data-ev] { cursor: pointer; }
.cp-tbl tr[data-ev]:hover { background: #f7f9fc; }
.cp-tbl tr.today td { background: #fff8e1; }
.cp-tbl tr.done td { color: #999; text-decoration: line-through; }
/* 입력 대조 */
.rt-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.rt-head h2 { margin: 0 0 10px; font-size: 18px; }
.rt-head h2 .muted { font-size: 13px; font-weight: 400; }
.rt-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rt-ctl input { flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; }
.rt-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.rt-tbl th { background: #f4f6f9; text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line2); position: sticky; top: 56px; }
.rt-tbl td { padding: 7px 8px; border-bottom: 1px solid #e8ebf0; vertical-align: top; }
.rt-tbl td.n { color: var(--muted); width: 36px; }
.rt-tbl td.nm { font-weight: 700; white-space: nowrap; }
.rt-tbl tr.cf td { background: #fff3f3; }
.rt-tbl tr.df td { background: #fffbea; }
.rt-tbl .rr { margin: 2px 0; }
.rt-tbl .memo { color: #555; font-size: 12px; }
.rt-tbl .at { font-size: 11px; }
.rt-tbl .flag { color: #c62828; font-weight: 700; font-size: 12px; margin-top: 3px; }
.rg { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 700; border: 1px solid #ccd; }
.rg.확실 { background: #e3f2fd; color: #0d47a1; border-color: #90caf9; }
.rg.우호 { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.rg.반대1, .rg.반대2, .rg.반대 { background: #ffebee; color: #b71c1c; border-color: #ef9a9a; }
.rg.모름 { background: #f3f3f3; color: #555; }
.pwbox { margin-top: 12px; padding: 10px 12px; background: #f3f6fb; border: 1px solid var(--line); border-radius: 8px; line-height: 1.9; }
.ov.limited .lim-hide, .ov.limited .mx-legend { display: none; }
.stats-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.stats-head h2 { margin: 0; font-size: 19px; }
.stats-head h2 .muted { font-size: 13px; font-weight: 400; }
/* 휴대폰: 회원 칸은 이름 + 소속만 한 줄, 작성자·비고 칸 숨김 → 한 화면에 여러 명 */
.who .sub.short { display: none; }
@media (max-width: 760px) {
  .sheet { table-layout: fixed !important; }
  .sheet col.c-author, .sheet col.c-memo { width: 0 !important; }
  .sheet td.author, .sheet th.author, .sheet .memo-c, .sheet th:nth-last-child(2) { width: 0 !important; min-width: 0 !important; max-width: 0; padding: 0 !important; border: 0 !important; font-size: 0; overflow: hidden; }
  .sheet .memo-c textarea { display: none; }
  .sheet td.author, .sheet th.author { display: table-cell !important; }
  .sheet tr.sectionhead td { font-size: 13px; }
  .hero, .hero-steps { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
  .hero-steps { flex-wrap: wrap; }
  .sheet col.c-search { width: 31% !important; }
  .maincol { min-width: 0; }
  .sheet col.c-g { width: 10.4% !important; }
  .sheet col.c-act { width: 14% !important; }
  .who .sub.full, .who .rowtools { display: none; }
  .who .sub.short { display: block; font-size: 11.5px; color: #6b7387; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .who .nm { font-size: 14.5px; }
  .sheet td, .sheet th { padding: 4px 3px; height: auto; }
  .sheet th { font-size: 12px; } .sheet th .sub { display: none; }
  .sheet td.g button { min-height: 40px; font-size: 12px; }
  .sheet td.act .when, .sheet td.act .saved { display: none; }
  .sheet td.act .btn { padding: 4px 6px; font-size: 12px; }
}
