:root {
  --blue: #2563eb; --blue-d: #1d4ed8; --blue-l: #eaf1ff;
  --green: #17803d; --green-d: #126a32; --green-l: #e8f6ec;
  --navy: #0d2557; --navy-2: #12306b;
  --red: #dc2626; --red-l: #fdecec; --amber: #d97706; --amber-l: #fff5e0;
  --ink: #1b1d21; --ink-2: #4b5563; --muted: #8a919c; --line: #e6e8ec; --line-2: #d9dce2;
  --bg: #f4f6fa; --card: #fff; --radius: 14px;
  --font: Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: #fff; -webkit-text-size-adjust: 100%; font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ── 로그인 ── */
.login-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 20px; }
.login { width: 100%; max-width: 380px; }
.brand { text-align: center; }
.brand .logo { color: var(--blue); }
.brand h1 { margin: 4px 0 2px; font-size: 40px; font-weight: 800; letter-spacing: -.5px; }
.brand p { margin: 0; color: var(--ink-2); font-size: 15px; }
.login hr { border: 0; border-top: 1.5px solid var(--line); margin: 22px 0 22px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; font-size: 15px; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; outline: none;
  transition: border-color .15s;
}
.input.pill { border-radius: 999px; padding: 14px 22px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.input::placeholder { color: #b9bec6; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 16px; }
.check input { position: absolute; opacity: 0; }
.check .box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.check input:checked + .box { background: var(--ink); color: #fff; }
.check input:not(:checked) + .box svg { visibility: hidden; }
.check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line-2); background: #fff;
  border-radius: 10px; padding: 10px 16px; font-weight: 600; min-height: 42px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-d); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); border-color: #f3c3c3; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: 17px; border-radius: 12px; }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.login .btn.lg { margin-top: 20px; }
.login-foot { text-align: center; color: var(--ink-2); margin-top: 18px; font-size: 14px; }
.err { color: var(--red); font-size: 14px; margin-top: 12px; min-height: 20px; text-align: center; }

/* ── 모바일 공통 ── */
.m-shell { min-height: 100%; display: flex; justify-content: center; background: #fff; }
.m-home { width: 100%; max-width: 460px; padding: 18px 20px 12px; display: flex; flex-direction: column; min-height: 100%; }
.m-home .brand h1 { font-size: 34px; }
.m-home .brand p { font-size: 14px; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; min-height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 17px; font-weight: 700;
}
.tile.in { background: var(--green); border-color: var(--green); color: #fff; }
.tile.out { background: var(--blue); border-color: var(--blue); color: #fff; }
.tile:active { transform: scale(.98); }
.tile[disabled] { opacity: .35; }
.m-extra { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.m-foot { margin-top: auto; border-top: 1.5px solid var(--line); padding: 16px 4px 6px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.m-foot .name { flex: 1; }
.iconbtn { border: 0; background: transparent; padding: 6px; border-radius: 8px; color: var(--ink-2); display: inline-grid; place-items: center; }
.iconbtn:hover { background: var(--bg); }

.m-page { width: 100%; max-width: 560px; margin: 0 auto; padding-bottom: 40px; }
.m-top { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 8px; padding: 12px 10px; }
.m-top h2 { margin: 0; font-size: 18px; flex: 1; }
.m-top .iconbtn { color: #fff; }
.m-top .iconbtn:hover { background: rgba(255,255,255,.12); }
.m-body { padding: 16px; }

/* ── PC ── */
.pc { display: grid; grid-template-rows: 60px 1fr; grid-template-columns: 220px 1fr; height: 100vh; }
.pc-top { grid-column: 1 / 3; background: var(--navy); color: #fff; display: flex; align-items: center; padding: 0 20px; gap: 12px; }
.pc-top .title { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pc-top .title .ic { color: #fbbf24; }
.badge-pwa { background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.pc-top .spacer { flex: 1; }
.pc-top .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pc-top .who .iconbtn { color: #fff; }
.pc-top .who .iconbtn:hover { background: rgba(255,255,255,.12); }
.pc-side { background: var(--navy); color: #dbe4f6; padding: 14px 10px; overflow-y: auto; }
.pc-side a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 600; margin-bottom: 4px; }
.pc-side a:hover { background: var(--navy-2); }
.pc-side a.on { background: var(--blue); color: #fff; }
.pc-side .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.pc-main { background: var(--bg); overflow-y: auto; padding: 22px 26px 40px; }
.pc-main h2.page { margin: 0 0 16px; font-size: 22px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card h3 .right { margin-left: auto; font-size: 13px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); background: #fff; }
.stat .ic { width: 42px; height: 42px; }
.stat .lbl { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.stat .val { font-size: 28px; font-weight: 800; }
.stat .val small { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.stat.b { background: #eef3ff; } .stat.b .ic { color: var(--blue); }
.stat.g { background: var(--green-l); } .stat.g .ic { color: var(--green); }
.stat.y { background: var(--amber-l); } .stat.y .ic { color: var(--amber); }
.stat.p { background: #f4efff; } .stat.p .ic { color: #7c3aed; }
.dash-row { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 14px; }

/* 표 */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; color: var(--ink-2); background: #f7f8fa; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f8faff; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl .inactive td { color: var(--muted); }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.tag.부족 { background: var(--red-l); color: var(--red); }
.tag.주의 { background: var(--amber-l); color: var(--amber); }
.tag.정상 { background: var(--green-l); color: var(--green); }
.tag.미설정, .tag.미확정, .tag.gray { background: #f0f1f4; color: var(--ink-2); }
.tag.pending { background: #fff1d6; color: #a15c00; }
.tag.in { background: var(--green-l); color: var(--green); }
.tag.out { background: var(--blue-l); color: var(--blue); }
.tag.adjust { background: #f4efff; color: #6d28d9; }
.red { color: var(--red); font-weight: 700; }

/* 필터·폼 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; padding: 9px 12px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.fl { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.fl .req { color: var(--red); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.qty { display: flex; align-items: stretch; gap: 8px; }
.qty .input { text-align: center; font-size: 20px; font-weight: 700; }
.qty .btn { min-width: 52px; font-size: 22px; }

/* 품목 선택 */
.picker .list { margin-top: 8px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.picker .opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.picker .opt:last-child { border-bottom: 0; }
.picker .opt:hover { background: #f8faff; }
.picker .opt .nm { flex: 1; font-weight: 600; }
.picker .chosen { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--blue-l); }
.picker .chosen .nm { flex: 1; font-weight: 700; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.mcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: #fff; display: flex; gap: 10px; align-items: center; }
.mcard .main { flex: 1; min-width: 0; }
.mcard .t { font-weight: 700; }
.mcard .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mcard .q { text-align: right; font-weight: 800; font-size: 18px; }
.mcard .q small { font-size: 12px; font-weight: 600; color: var(--muted); }

.section-gap { height: 14px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* 모달 */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; }
.modal.wide { max-width: 760px; }
.modal header { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; flex: 1; font-size: 18px; }
.modal .mb { padding: 18px; overflow-y: auto; }
.modal footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }
.modal .err { text-align: left; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; }
#toast.error { background: var(--red); }

/* 보고서 */
.rep { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.rep .types label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.rep .types label:hover { background: var(--bg); }
.rep .items-box { max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.rep .items-box label { display: flex; gap: 6px; align-items: center; font-size: 14px; padding: 3px 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stats .stat { padding: 12px; } .mini-stats .val { font-size: 22px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.legend { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-top: 10px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.legend span.p { margin-left: auto; color: var(--ink-2); }

@media (max-width: 1280px) { .dash-row { grid-template-columns: 1fr 1fr; } .dash-row > :last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .stats { grid-template-columns: 1fr 1fr; } .rep { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .mini-stats { grid-template-columns: 1fr 1fr; } }
.rep .tbl td, .rep .tbl th { white-space: nowrap; }

/* 가입 신청 */
.signup-link { text-align: center; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.signup-link a { font-weight: 700; }
.signup-title { margin: 0 0 16px; font-size: 22px; text-align: center; }
.select.pill { border-radius: 999px; padding: 14px 22px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick span { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.role-pick span small { color: var(--muted); font-size: 12.5px; }
.role-pick input:checked + span { border-color: var(--blue); background: var(--blue-l); }
.role-pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.req { color: var(--red); }
.err.info { color: var(--amber); }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--green-l); color: var(--green); display: grid; place-items: center; margin: 10px auto; }
.cnt { background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.m-extra .cnt { margin-left: 4px; }

/* 품목관리 트리 */
.tbl.tree .cat-row td { background: #f3f5f9; cursor: pointer; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.tbl.tree .cat-row:hover td { background: #e9eef8; }
.tbl.tree .cat-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tbl.tree .caret { display: inline-block; width: 16px; color: var(--ink-2); font-size: 12px; }
.tbl.tree .item-row td:first-child { padding-left: 34px; }
/* 보고서 품목 선택 */
.sel-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.sel-bar .cnt-txt { margin-left: auto; font-size: 13px; color: var(--ink-2); }

/* 새 버전 안내 */
#update-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; background: #111827; color: #fff;
  border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; gap: 12px; align-items: center; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* 앱 설치 */
.install-row { text-align: center; margin-top: 12px; }
.install-top { margin-right: 14px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.install-steps { padding-left: 20px; line-height: 1.9; margin: 0 0 10px; }

/* ── v1.5 대분류 트리(목록형) ── */
.tcat { display: flex; align-items: center; gap: 8px; padding: 12px; background: #f3f5f9; border-radius: 12px; margin-bottom: 8px; cursor: pointer; user-select: none; }
.tcat.open { background: #e9eef8; }
.tcat .caret { width: 14px; font-size: 12px; color: var(--ink-2); }
.tcat .tcnt { color: var(--muted); font-size: 14px; }
.tcat.past, .cat-row.past td { background: #efefef !important; color: #666; }
.tright { margin-left: auto; display: inline-flex; gap: 4px; float: right; }
.tsub { margin: 0 0 10px 12px; border-left: 3px solid #dfe5f0; padding-left: 8px; }
.trow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 9px 6px; }
.trow:hover { background: #f8faff; }
.trow.on { background: var(--blue-l); }
.trow .tn { flex: 1; font-weight: 600; }
.trow .tq { white-space: nowrap; font-weight: 700; }
.trn { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
a.trn:hover b { text-decoration: underline; }
.thumb { border-radius: 8px; object-fit: cover; background: #f0f1f4; flex: none; border: 1px solid var(--line); }
.thumb.ph { display: inline-grid; place-items: center; color: #b4bac4; }
.mcard .thumb { margin-right: 2px; }
.it-m { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.it-m .trn { flex: 1; min-width: 0; }
.it-m.inactive { opacity: .75; }
.it-act { display: flex; gap: 4px; flex: none; }

/* ── 입고·출고 장바구니 ── */
.tx-grid { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.1fr); gap: 14px; align-items: start; }
.selpanel { border: 1.5px solid var(--blue); background: #f7faff; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.selhead { display: flex; align-items: center; gap: 10px; }
.selhead .nm { flex: 1; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.spec { border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.spec small { color: var(--muted); font-size: 12px; }
.spec.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.spec.on small { color: #dbe6ff; }
.cline { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cline.bad { background: var(--red-l); border-radius: 8px; padding-left: 6px; }
.cline .cn { flex: 1; min-width: 0; }
.cq { display: flex; align-items: center; gap: 4px; }
.cq .input { width: 58px; text-align: center; padding: 6px; font-weight: 700; }
.cq .btn.sm { min-width: 32px; padding: 4px; }

/* ── 사진 ── */
.gallery { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px; border-radius: 12px; border: 2px dashed transparent; }
.gallery.drag { border-color: var(--blue); background: var(--blue-l); }
.gph { position: relative; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3f4f6; }
.gph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-2); cursor: pointer; border: 1.5px dashed var(--line-2); background: #fff; font-size: 13px; font-weight: 600; }
.gdel { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.gtools { display: flex; gap: 6px; margin-top: 8px; }
.gtools .input { flex: 1; padding: 8px 10px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 120; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lb-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 64px; font-size: 38px; border-radius: 10px; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }

/* ── 품목 정보 팝업 (PC) ── */
.modal.xl { max-width: 1100px; }
.pop-grid { display: grid; grid-template-columns: 420px 1fr; gap: 14px; align-items: start; }
.pop-grid .card + .card { margin-top: 12px; }
.card.flat { border: 1px solid var(--line); }
.ihead { display: flex; align-items: center; gap: 12px; }
.iname { font-size: 19px; font-weight: 800; }
@media (max-width: 1100px) { .tx-grid, .pop-grid { grid-template-columns: 1fr; } }

/* v1.5.1 51WORK 링크 · ? (앱 정보) */
.toplinks { display: inline-flex; align-items: center; gap: 6px; }
.toplinks .w51 { display: inline-flex; border-radius: 50%; }
.toplinks .w51 img { display: block; width: 26px; height: 26px; }
.toplinks .helpbtn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: #fff; font: 800 15px/1 inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.toplinks .helpbtn:hover { background: rgba(255,255,255,.14); }
.toplinks.light .helpbtn { color: var(--navy); }
.toplinks.light .helpbtn:hover { background: rgba(15,42,92,.08); }
.login-wrap, .m-home { position: relative; }
.corner { position: absolute; top: 12px; right: 14px; z-index: 2; }
.help { text-align: center; }
.help .qr { width: 200px; height: 200px; display: block; margin: 4px auto 6px; image-rendering: pixelated; }
.help .urlrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; font-weight: 700; font-size: 16px; }
.help .maker { border-top: 1px solid var(--line, #e5e7eb); margin-top: 14px; padding-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.help .maker .w51 { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: inherit; text-decoration: none; }

/* v1.6.0 품목 정보 칸 */
.tbl td.ph { width: 46px; padding-right: 0; }
.tbl td.note-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
dd.seller a { word-break: break-all; }
/* v1.6.0 품목 정보 팝업: 오른쪽 칸에서 바로 입력 */
.side-panel { border: 2px solid #2563eb; }
.side-panel .sp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-panel .sp-head h3 { margin: 0; font-size: 17px; }
.side-panel .sp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ibtns .btn.on { outline: 3px solid rgba(37,99,235,.35); outline-offset: 1px; }
.tbl.tree td.ph + td { min-width: 190px; }
.tbl.tree td.seller-cell, .tbl.tree td.note-cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v1.5.2 화면 로고 = 앱 아이콘 그림 */
.brand .app-logo { display: block; margin: 0 auto 6px; border-radius: 18px; }
.pc-top .title .app-logo { border-radius: 9px; background: #fff; flex: none; }
/* v1.5.3 ? 창 맨 위 51WORK, PC '스마트폰 모드' */
.help .w51-top { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; font-weight: 800; font-size: 16px; }
.help .w51-top img { width: 52px; height: 52px; display: block; }
.help .w51-top span { color: var(--blue, #2563eb); text-decoration: underline; }
.help hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.pc-top .toplinks { margin-left: 4px; }
body.phone-frame { background: #cfd5df; }
body.phone-frame #app { max-width: 430px; margin: 0 auto; min-height: 100vh; background: #fff; box-shadow: 0 0 0 1px #b9c0cc, 0 10px 40px rgba(0,0,0,.18); }
.pcmode-btn { position: fixed; top: 14px; right: 18px; z-index: 60; background: #fff; }
