/* 화면별 스타일: 달력, 방문 카드, 점검 체크리스트, 서명, 문서, 칸반, 로그인, 설문 */
.lrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(70px, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.lrow:last-child { border-bottom: 0; } .lrow > .av + .lr-n { margin-left: 0; }
.lrow:has(> .av) { grid-template-columns: 30px minmax(0, 1.2fr) minmax(70px, 1fr) auto; }
.lr-n b { display: block; font-size: 14px; } .lr-n small { display: block; }
.lr-v { font-weight: 700; font-size: 13.5px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.lrow2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line2); color: var(--ink); }
.lrow2:last-child { border-bottom: 0; } a.lrow2:hover { text-decoration: none; background: #faf9ff; } .lrow2 b { display: block; font-size: 14px; } .lrow2 small { display: block; }
.lrow2.nolink { grid-template-columns: auto minmax(0, 1fr) auto; }
.chart { width: 100%; height: auto; display: block; } .chart .gl { stroke: #ecebf5; } .chart .gt { font-size: 11px; fill: #8a88a0; } .chart .gv { font-size: 12px; fill: #3a3850; font-weight: 700; }
.c-done { fill: var(--pri); background: var(--pri); } .c-od { fill: #d9534f; background: #d9534f; } .c-plan { fill: #cfc9f1; background: #cfc9f1; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--mut); flex-wrap: wrap; margin-top: 6px; } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend i.ok { background: #2aa376; } .legend i.warn { background: #e0a020; } .legend i.bad { background: #d9534f; } .legend i.gray { background: #b9b7cc; }
.legend i.m1 { background: #f0b45a; } .legend i.m2 { background: #7f72d6; } .legend i.m3 { background: #3a3090; }
.seg { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin: 8px 0 12px; } .seg i { display: block; } .seg i.ok { background: #2aa376; } .seg i.warn { background: #e0a020; } .seg i.bad { background: #d9534f; } .seg i.gray { background: #b9b7cc; }
.stg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; text-align: center; } .stg b { display: block; font-size: 22px; } .stg div { background: var(--line2); border-radius: 10px; padding: 8px 4px; }

/* 방문 카드 */
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-bottom: 8px; }
.vcard { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid #cfcde0; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.vcard.st-done { border-left-color: #2aa376; } .vcard.st-working { border-left-color: #e0a020; } .vcard.st-enroute { border-left-color: #3b82d6; } .vcard.st-overdue { border-left-color: #d9534f; } .vcard.st-cancelled { opacity: .6; }
.vc-t b { display: block; font-size: 22px; line-height: 1.1; } .vc-t small { display: block; margin-top: 3px; }
.vc-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .vc-h a { color: var(--ink); font-size: 15px; } .vc-b p { color: var(--mut); font-size: 13px; margin-top: 3px; display: flex; gap: 5px; align-items: center; }
.vc-a .btn { min-height: 46px; padding: 0 18px; }
.agenda h3 { font-size: 15px; margin: 18px 0 10px; display: flex; gap: 8px; align-items: center; }

/* 달력 */
.cal-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 6px; } .cal-nav h2 { font-size: 19px; min-width: 120px; text-align: center; }
.segc { display: inline-flex; background: #e9e7f3; border-radius: 10px; padding: 3px; } .segc button { border: 0; background: none; padding: 6px 16px; border-radius: 8px; font-weight: 600; color: var(--mut); } .segc button.on { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sync { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 6px 5px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; } .cal-wrap.list { grid-template-columns: minmax(0, 1fr); }
.cal-main { min-width: 0; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.cal-hd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #faf9fe; border-bottom: 1px solid var(--line); } .cal-hd span { padding: 9px 10px; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cell { min-height: 112px; padding: 6px 6px 6px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cell:nth-child(7n) { border-right: 0; } .cell.out { background: #fbfafd; opacity: .55; } .cell.we .cell-n span { color: #b04a4a; }
.cell.today .cell-n span { background: var(--pri); color: #fff; } .cell.sel { background: #f3f1fd; box-shadow: inset 0 0 0 2px var(--pri); } .cell.dragover, .wk-c.dragover { background: #e7f6ef; box-shadow: inset 0 0 0 2px #2aa376; }
.cell-n { display: flex; justify-content: space-between; align-items: center; } .cell-n span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; font-size: 12.5px; font-weight: 700; padding: 0 4px; } .cell-n i { font-style: normal; font-size: 11px; color: var(--mut); font-weight: 600; }
.vch { display: flex; align-items: center; gap: 5px; width: 100%; padding: 3px 6px; border: 0; border-left: 3px solid #a9a6c4; border-radius: 6px; background: #f1f0f8; font-size: 12px; text-align: left; min-width: 0; line-height: 1.3; color: var(--ink); }
.vch b { font-variant-numeric: tabular-nums; flex: none; } .vch > span:not(.av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vch em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #b04a4a; flex: none; }
.vch .av { width: 18px; height: 18px; font-size: 10px; }
.vch.st-done { border-left-color: #2aa376; background: #e9f6f0; } .vch.st-working { border-left-color: #e0a020; background: #fff4de; } .vch.st-enroute { border-left-color: #3b82d6; background: #e8f0fb; }
.vch.st-overdue { border-left-color: #d9534f; background: #fdeaea; } .vch.st-cancelled { text-decoration: line-through; opacity: .55; } .vch[draggable=true] { cursor: grab; }
.more { font-size: 11.5px; color: var(--pri); font-weight: 600; padding: 1px 6px; }
.dayp { position: sticky; top: 84px; } .dv { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); color: var(--ink); } .dv:hover { text-decoration: none; background: #faf9ff; } .dv:last-child { border: 0; } .dv b { font-size: 15px; } .dv strong { display: block; font-size: 13.5px; } .dv small { display: block; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } .wk-c { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; min-height: 280px; display: flex; flex-direction: column; gap: 5px; min-width: 0; } .wk-c.today { box-shadow: inset 0 0 0 2px var(--pri); }
.wk-h { display: flex; justify-content: space-between; padding: 2px 4px 6px; border-bottom: 1px solid var(--line2); } .wk-h b { color: var(--mut); font-size: 12.5px; } .wk-h span { font-weight: 700; }
.wk .vch { flex-wrap: wrap; }

/* 방문 상세 */
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; } .vmain, .vside { min-width: 0; }
.vhead { padding: 20px 22px; } .vh-t { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .vhead h1 { font-size: 22px; margin-bottom: 6px; } .vhead p { color: var(--mut); display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.vh-c { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; } .vh-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.stepper { list-style: none; display: flex; padding: 0; margin: 18px 0 0; gap: 0; } .stepper li { flex: 1; display: flex; align-items: center; gap: 9px; color: var(--mut); font-weight: 600; position: relative; } .stepper li::after { content: ""; flex: 1; height: 2px; background: var(--line); margin: 0 10px; } .stepper li:last-child { flex: none; } .stepper li:last-child::after { display: none; }
.stepper i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ecebf5; font-style: normal; font-size: 13px; flex: none; } .stepper small { display: block; font-weight: 500; }
.stepper li.done { color: var(--ok); } .stepper li.done i { background: var(--ok); color: #fff; } .stepper li.done::after { background: var(--ok); } .stepper li.cur { color: var(--pri); } .stepper li.cur i { background: var(--pri); color: #fff; }
.ribbon { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--line2); font-weight: 600; } .ribbon.bad { background: var(--bad-t); color: var(--bad); }
.dev { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; } .dev:last-child { margin-bottom: 0; }
.dev-h { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; } .dev-h b { font-size: 15px; display: block; } .dev-h small { display: block; }
.dev-r { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .cart { display: grid; grid-template-columns: auto 120px auto; gap: 8px; align-items: center; } .cart b { font-size: 13px; }
.ckr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line2); flex-wrap: wrap; } .ckr > span { font-weight: 500; }
.seg3 { display: inline-flex; gap: 4px; } .sg { min-width: 64px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-weight: 600; color: var(--mut); }
.sg.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; } .sg.warn.on { background: #e0a020; border-color: #e0a020; color: #fff; } .sg.bad.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.dev-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line2); margin-top: 4px; }
.ph-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .ph-g { margin-bottom: 4px; min-width: 0; } .ph-g .addph .btn.ghost { padding: 0 6px; }
@media (max-width: 1100px) { .ph-wrap { grid-template-columns: minmax(0, 1fr); } .ph-g { margin-bottom: 14px; } } .ph-g h4 { font-size: 14px; margin-bottom: 8px; } .ph-g h4 small { margin-left: 4px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; } .thumbs figure { margin: 0; position: relative; width: 168px; height: 118px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #eee; } .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs figcaption { position: absolute; top: 4px; right: 4px; } .thumbs figcaption .icon-btn { background: rgba(255, 255, 255, .92); }
.addph { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .addph .btn { min-height: 118px; width: 150px; flex-direction: column; border-style: dashed; } .addph .btn.ghost { min-height: 40px; width: auto; flex-direction: row; border: 0; }
.pad-w { position: relative; } .sigpad { width: 100%; height: 170px; display: block; border: 2px dashed #cfcbe6; border-radius: 12px; background: #fcfbff; touch-action: none; cursor: crosshair; }
.pad-h { position: absolute; left: 0; right: 0; top: 50%; text-align: center; color: #c1bedb; pointer-events: none; transform: translateY(-50%); font-size: 13px; }
.pad-a { display: flex; gap: 10px; align-items: center; margin-top: 8px; } .sigshow { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .sigshow img { height: 90px; border-bottom: 1px solid var(--ink); }
.memo { white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 12px; font-size: 13.5px; } .kv dt { color: var(--mut); } .kv dd { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.kv.wide { grid-template-columns: 120px minmax(0, 1fr); } .kv.inline { grid-template-columns: auto auto auto auto; gap: 8px 24px; align-items: center; }
.chead { padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; } .chead h1 { font-size: 22px; margin-bottom: 8px; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; } .site { overflow: hidden; margin: 0; } .site img { width: 100%; height: 190px; object-fit: cover; display: block; } .site h3 { margin-bottom: 4px; font-size: 17px; }
.eqtag { display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 4px 0; font-size: 12.5px; }
.tl { list-style: none; padding: 0; margin: 0; } .tl li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 0 0 16px; position: relative; } .tl li::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); } .tl li:last-child::before { display: none; }
.tl li > i { width: 22px; height: 22px; border-radius: 50%; background: #d9d6ec; display: grid; place-items: center; color: #fff; } .tl li > i:empty::after { content: ""; width: 8px; height: 8px; background: #8f8aba; border-radius: 50%; }
.tl.big li > i { width: 26px; height: 26px; background: #8f8aba; } .tl.big li::before { left: 12px; top: 26px; } .tl.big li { grid-template-columns: 26px 1fr; }
.tl li.warn > i { background: #e0a020; } .tl li.ok > i { background: #2aa376; } .tl li.info > i { background: #3b82d6; } .tl li.bad > i { background: #d9534f; }
.tl b { margin-right: 8px; } .tl small { font-size: 12px; } .tl p { margin-top: 3px; color: #3a3850; } .tl a b { color: var(--ink); }
.cmt { display: grid; gap: 8px; justify-items: end; margin-top: 10px; border-top: 1px solid var(--line2); padding-top: 14px; }
.eqd h4 { margin: 18px 0 10px; }

/* 담당 배정, 장비, 향료, 칸반 */
.techs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; } .tcard { padding: 16px; margin: 0; } .tc-h { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; } .tc-h b { display: block; } .tcard .kv { grid-template-columns: 82px minmax(0, 1fr); } .tcard .bar { margin-top: 4px; }
.abs { margin-top: 10px; display: flex; gap: 6px; align-items: center; background: var(--warn-t); color: var(--warn); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; font-weight: 600; }
.warnc { border-color: #f1c8c8; } .warnc .card-h h2 { color: var(--bad); }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 8px; } .rcp { border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .rcp b { display: block; } .rcp small { display: block; margin-bottom: 8px; }
.rcp dl { display: grid; grid-template-columns: 46px 1fr; gap: 3px 8px; font-size: 12.5px; margin-top: 10px; } .rcp dt { color: var(--mut); }
.mix { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; } .mix i.m1 { background: #f0b45a; } .mix i.m2 { background: #7f72d6; } .mix i.m3 { background: #3a3090; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; } .kcol { background: #ebe9f5; border-radius: var(--r); padding: 12px; min-height: 200px; } .kcol h3 { font-size: 14px; margin-bottom: 10px; } .kcol h3 em { font-style: normal; color: var(--mut); margin-left: 4px; }
.kcard { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(30, 25, 70, .1); } .kcard b { display: block; margin-bottom: 4px; } .kcard small { display: block; } .kcard p { margin: 6px 0; font-size: 13px; color: #45435c; } .kact { display: flex; gap: 6px; justify-content: flex-end; }
.qlist { padding-left: 20px; display: grid; gap: 10px; margin-bottom: 14px; } .qlist li { padding-left: 4px; } .qlist li > div { display: inline-block; vertical-align: middle; } .qlist li small { display: block; } .qlist li .icon-btn { float: right; }
.addq { align-items: end; border-top: 1px solid var(--line2); padding-top: 14px; }
.matrix { min-width: 620px; } .matrix th, .matrix td { text-align: center; } .matrix tbody th { text-align: left; background: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.pm { min-width: 62px; min-height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12.5px; color: #9a98b0; } .pm.p1 { background: var(--info-t); border-color: #cfe0f6; color: var(--info); } .pm.p2 { background: var(--pri); border-color: var(--pri); color: #fff; } .pm[disabled] { cursor: default; }
.nrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 10px; color: var(--ink); } .nrow:hover { background: #faf9ff; text-decoration: none; } .nrow.un { background: #f6f4ff; } .nrow.un b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 7px; }
.nrow b { display: block; } .nrow small { display: block; } .nrow time { color: var(--mut); font-size: 12.5px; }
.stars { display: inline-flex; color: #d6d3e6; vertical-align: middle; } .stars i.on { color: #e0a020; } .stars svg { fill: currentColor; }

/* 문서(PDF 미리보기) */
.docv { background: #e9e7f3; padding: 14px; border-radius: 12px; max-height: calc(100vh - 230px); overflow: auto; }
.doc { background: #fff; width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 40px; color: #111; font-size: 12.5px; line-height: 1.55; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.doc-h { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--pri); padding-bottom: 12px; margin-bottom: 16px; } .doc-h > div:first-child { display: flex; align-items: center; gap: 9px; } .doc-ti { text-align: right; } .doc-ti h1 { font-size: 22px; } .doc-ti small { color: #666; }
.doc h2 { font-size: 13.5px; margin: 18px 0 6px; padding-left: 8px; border-left: 4px solid var(--pri); }
.doc-t { width: 100%; border-collapse: collapse; margin-bottom: 4px; } .doc-t th, .doc-t td { border: 1px solid #c9c6dc; padding: 6px 9px; text-align: left; vertical-align: top; } .doc-t th { background: #f3f1fb; width: 94px; font-weight: 700; } .doc-t.grid th { width: auto; text-align: center; } .doc-t .ctr { text-align: center; }
.doc-m { margin: 10px 0; } .doc-ph { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .doc-ph img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.doc-sg { display: flex; gap: 40px; justify-content: flex-end; margin-top: 22px; } .doc-sg > div { text-align: center; min-width: 150px; } .doc-sg small { display: block; color: #666; } .doc-sg img { height: 60px; display: block; margin: 4px auto; } .doc-sg .blank { display: block; height: 60px; } .doc-sg b { display: block; border-top: 1px solid #333; padding-top: 3px; }
.doc-f { text-align: center; color: #888; font-size: 11px; margin-top: 22px; }
#printroot { display: none; }
@media print { body > *:not(#printroot) { display: none !important; } #printroot { display: block; } #printroot .doc { box-shadow: none; max-width: none; padding: 0; } @page { size: A4; margin: 14mm; } body { background: #fff; } }

/* 로그인 */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); min-height: 100vh; }
.login-l { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; } .login-l img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .login-ov { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(40, 30, 120, .8), rgba(20, 15, 60, .78)); }
.login-t { position: relative; padding: 64px; max-width: 640px; } .login-t h1 { font-size: 40px; line-height: 1.3; margin: 26px 0 28px; letter-spacing: -.02em; } .login-t ul { list-style: none; padding: 0; display: grid; gap: 12px; font-size: 16px; } .login-t li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.login-r { display: grid; place-items: center; padding: 32px; background: #fff; } .login-f { width: min(400px, 100%); display: grid; gap: 14px; } .login-f h2 { font-size: 26px; margin: 8px 0 4px; } .login-f .brand { padding: 0; }
.login-err { background: var(--bad-t); color: var(--bad); padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; }
.lgbtn { min-height: 48px; font-size: 16px; } .lg-note { color: var(--mut); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; } .lg-q { border-top: 1px solid var(--line); padding-top: 14px; } .lg-q b { display: block; font-size: 13px; margin-bottom: 8px; } .lg-q > div { display: flex; gap: 8px; flex-wrap: wrap; }

/* 고객용 설문 */
.svf { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; } .svf header { display: flex; align-items: center; gap: 11px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); } .svf header .btn { margin-left: auto; } .svf header b { display: block; letter-spacing: .08em; }
.svf-b { width: min(640px, 100%); margin: 0 auto; padding: 22px 16px 36px; flex: 1; } .svf-i { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; } .svf-i b { display: block; font-size: 17px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; } .q h3 { font-size: 16px; margin-bottom: 12px; }
.rate { display: flex; gap: 6px; align-items: center; } .rate button { border: 0; background: none; color: #d6d3e6; padding: 2px; } .rate button svg { fill: currentColor; } .rate button.on { color: #e0a020; } .rate em { font-style: normal; font-weight: 700; margin-left: 8px; font-size: 18px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; } .choice button { flex: 1; min-height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-weight: 600; } .choice button.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.sv-done { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); color: var(--ok); } .sv-done h2 { color: var(--ink); margin: 12px 0 8px; } .sv-done p { color: var(--mut); margin-bottom: 16px; }

/* 반응형 */
@media (max-width: 1280px) {
  .cal-wrap, .vgrid { grid-template-columns: minmax(0, 1fr); } .dayp { position: static; }
  .techs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 290px; transform: translateX(-102%); transition: transform .22s; z-index: 70; box-shadow: 6px 0 30px rgba(20, 15, 60, .2); }
  .app.drawer .side { transform: none; } .app.drawer .side-ov { display: block; position: fixed; inset: 0; background: rgba(20, 18, 50, .42); z-index: 60; }
  .hamb { display: inline-grid; } .top { padding: 0 16px; } .content { padding: 22px 18px 40px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .kpis.k3 { grid-template-columns: minmax(0, 1fr); } .login { grid-template-columns: minmax(0, 1fr); } .login-l { display: none; }
  .btn, .sg, select, input { min-height: 44px; } .btn.sm { min-height: 38px; } .techs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bnav { display: none; }
@media (max-width: 760px) {
  .today, .uchip div, .top-r .btn span { display: none; } .top-r { gap: 6px; } .gsearch { max-width: none; } .gsearch input { height: 40px; }
  .content { padding: 18px 14px 96px; } .ph h1 { font-size: 21px; } .foot { padding-bottom: 80px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a, .bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-size: 11.5px; color: var(--mut); position: relative; padding: 4px 0; font-weight: 600; } .bnav .on { color: var(--pri); } .bnav a:hover { text-decoration: none; } .bnav em { right: 22%; top: 0; font-style: normal; }
  .vlist { grid-template-columns: minmax(0, 1fr); } .vcard { grid-template-columns: 60px minmax(0, 1fr); } .vc-a { grid-column: 1 / -1; } .vc-a .btn { width: 100%; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .span2, .span3 { grid-column: auto; } .kpi-t b { font-size: 21px; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi { padding: 12px; gap: 10px; } .kpi-i { width: 38px; height: 38px; }
  .kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.k3 .kpi { flex-direction: column; align-items: flex-start; } .kpis.k3 .kpi-t em { display: none; }
  .card-h { padding: 14px 14px 0; } .card-b { padding: 12px 14px 16px; } .card-b.flush { padding: 4px; }
  .cal-bar { gap: 10px; } .sync { margin-left: 0; width: 100%; } .cell { min-height: 74px; padding: 3px; } .cell .vch { padding: 2px 3px; font-size: 10.5px; border-left-width: 2px; } .cell .vch b, .cell .vch .av, .cell .vch em { display: none; } .cell .more { font-size: 10.5px; padding: 0 3px; } .cal-hd span { padding: 7px 4px; text-align: center; }
  .wk { grid-template-columns: minmax(0, 1fr); } .wk-c { min-height: 0; }
  .stepper small { display: none; } .stepper li::after { margin: 0 5px; } .stepper li span { font-size: 12.5px; }
  .ckr { flex-direction: column; align-items: stretch; } .seg3 { width: 100%; } .seg3 .sg { flex: 1; }
  .cart { grid-template-columns: auto 1fr auto; width: 100%; } .dev-r { width: 100%; }
  .thumbs figure { width: calc(50% - 5px); height: 108px; } .addph .btn { width: 100%; min-height: 56px; flex-direction: row; } .addph { width: 100%; }
  .kv.inline { grid-template-columns: 90px minmax(0, 1fr); } .techs { grid-template-columns: minmax(0, 1fr); } .kanban { grid-template-columns: minmax(0, 1fr); } .sites { grid-template-columns: minmax(0, 1fr); }
  .lrow, .lrow:has(> .av) { grid-template-columns: minmax(0, 1fr) auto; } .lrow:has(> .av) > .av { display: none; } .lrow .bar { grid-column: 1 / -1; grid-row: 2; } .lr-v { grid-row: 1; grid-column: 2; }
  .nrow { grid-template-columns: minmax(0, 1fr); gap: 4px; } .login-r { padding: 22px 16px; } .mo-ov { padding: 10px; align-items: end; } .mo { border-radius: 16px 16px 12px 12px; max-height: calc(100vh - 20px); }
  .doc { padding: 20px 16px; font-size: 11.5px; } .docv { padding: 8px; } .doc-t th { width: 70px; } .doc-t.grid { font-size: 10.5px; } .doc-sg { gap: 16px; } .doc-sg > div { min-width: 0; flex: 1; } .doc-ph img { height: 90px; }
  .search { min-width: 0; flex: 1 1 100%; } .filters select { flex: 1 1 calc(50% - 5px); }
  .ph .acts { width: 100%; } .ph .acts > * { flex: 1 1 auto; }
  .stg { grid-template-columns: repeat(2, 1fr); } .chead { padding: 16px; } .kv.wide { grid-template-columns: 96px minmax(0, 1fr); }
  .tbl.matrix { min-width: 0; } .matrix th, .matrix td { padding: 6px 3px; font-size: 12px; } .pm { min-width: 0; width: 100%; padding: 0 2px; font-size: 11px; }
}
/* 표를 작은 화면에서 카드 목록으로 */
@media (max-width: 760px) {
  .tbl.rt:not(.matrix) thead { display: none; } .tbl.rt:not(.matrix), .tbl.rt:not(.matrix) tbody, .tbl.rt:not(.matrix) tr, .tbl.rt:not(.matrix) td { display: block; width: 100%; }
  .tbl.rt:not(.matrix) tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  .tbl.rt:not(.matrix) td { border: 0; padding: 5px 0; display: flex; gap: 10px; justify-content: space-between; align-items: center; text-align: right; }
  .tbl.rt:not(.matrix) td::before { content: attr(data-l); color: var(--mut); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  .tbl.rt:not(.matrix) tr:last-child td { border-bottom: 0; } .tbl.rt:not(.matrix) td .blk { display: inline; margin-left: 6px; } .gcell { min-width: 0; width: 60%; }
}
