:root {
  /* NOVO HOUSE 초록 — 예전 재고관리.jsx 색 (9/22) */
  --bg: #f6f7f3;
  --card: #fff;
  --ink: #12261c;
  --sub: #5b6b61;
  --line: #dee4dd;
  --soft: #eaefe8;
  --hover: #f1f4ef;
  --pri: #1f6f4a;
  --accent: #3fa66b;
  --in: #1f6f4a;
  --in-bg: #eaf5ee;
  --out: #b5502f;
  --out-bg: #fbede7;
  --neg: #c62828;
  --radius: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
small { font-size: 12px; font-weight: 400; color: var(--sub); }
code { font-family: Consolas, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

input[type=search], input[type=password], input[type=date], input:not([type]) {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 16px;
  min-width: 0;
}
input:focus { outline: 2px solid rgba(31, 111, 74, .25); border-color: var(--pri); }

/* 로그인 */
.screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px; }
.login-box h1 { margin: 0 0 6px; font-size: 24px; }
.login-box .desc { margin: 0 0 6px; color: var(--sub); font-size: 15px; }
.login-box label { display: block; font-size: 14px; font-weight: 600; color: var(--sub); margin: 14px 0 6px; }

/* 본 화면 */
#main { max-width: 760px; margin: 0 auto; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* PC 넓은 화면에서는 표처럼 한눈에 보이게 넓게 */
@media (min-width: 1200px) {
  #main { max-width: 1180px; }
}
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 16px 8px; }
.top h1 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-block; background: var(--pri); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; line-height: 1.2; }
.login-box .brand { font-size: 12px; margin-bottom: 8px; }
.me { font-size: 14px; color: var(--sub); border: 0; background: none; padding: 6px 0 6px 8px; }
.me::after { content: ' ▾'; font-size: 11px; }
.role { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--sub); vertical-align: 2px; margin-left: 4px; }
.role.admin { background: var(--pri); color: #fff; }
.role.warn { background: #fff1d6; color: #8a5a00; }
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; padding: 6px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 0; font-weight: 700; color: var(--sub); border-radius: 8px; }
.tabs button.on { background: var(--card); color: var(--pri); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tab { padding: 12px 16px; }
.toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
/* 넓은 화면: 찾기·단추 줄까지는 위에 붙여 두고 목록만 흐른다 (9/27 사장님) */
@media (min-width: 900px) {
  #tab-stock .toolbar {
    position: sticky;
    top: var(--tabs-h, 56px);
    z-index: 4;
    background: var(--bg);
    padding: 8px 0;
    margin-bottom: 4px;
    box-shadow: 0 6px 10px -10px rgba(0, 0, 0, .5);
  }
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chips button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.count { margin-left: auto; font-size: 13px; color: var(--sub); }
.dates { display: flex; align-items: center; gap: 8px; }
.dates input { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 150px; }

/* 목록 */
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.list li.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.list li.item.static { cursor: default; }
.list li:first-child { border-top: 0; }
.list li.item:not(.static):active, .list li.item:not(.static):hover { background: var(--hover); }
.l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.l b { font-weight: 600; overflow-wrap: anywhere; }
.sub { font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r { text-align: right; white-space: nowrap; }
.r .qty { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.r .unit { font-size: 13px; color: var(--sub); margin-left: 3px; }
.r.zero .qty { color: #a0a7b0; }
.r.neg .qty, .negtext { color: var(--neg); }
.kind { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
/* 구분 색 — 구분 순서대로 돌려 쓴다 */
.k-c0 { background: #e3f1e8; color: #1f6f4a; } /* 첫 구분(제품) 초록 */
.k-c1 { background: #f3ede0; color: #7a5a1c; } /* 둘째(자재) 갈색 */
.k-c2 { background: #f3eafa; color: #6b3a8f; }
.k-c3 { background: #fdf1dc; color: #8a5a00; }
.k-c4 { background: #fbe7ea; color: #9b2c3f; }
.k-c5 { background: var(--soft); color: #4b5563; }
.list li.group { padding: 8px 14px; background: var(--hover); border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); font-weight: 700; }
.list li.group .kind { font-size: 12px; }
.list.reordering li.item { cursor: grab; touch-action: none; user-select: none; }
.list.reordering li.item.dragging { background: var(--in-bg); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); cursor: grabbing; }
body.dragging-now { user-select: none; }
.grip { flex: none; color: var(--sub); font-size: 20px; padding: 0 10px 0 2px; line-height: 1; }
.ord { display: flex; gap: 6px; flex: none; }
.ord button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 15px; color: var(--ink); }
.ord button:disabled { opacity: .3; }
.reorder-bar { display: flex; justify-content: space-between; gap: 8px; }
.reorder-bar:has(> [hidden]:only-child) { display: none; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.ghost.on { background: var(--pri); border-color: var(--pri); color: #fff; }
#reorder-help { margin: 0; }
#reorder-help .link { padding: 4px 0 0; display: block; }
#kind-list { margin-bottom: 10px; }
.check-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; font-size: 15px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 0; }
.money { display: flex; align-items: center; gap: 8px; }
.money input { flex: 1; text-align: right; font-variant-numeric: tabular-nums; }
.money span { color: var(--sub); min-width: 1.5em; }
.cost-line { margin-top: 6px; color: var(--pri); white-space: normal; }
/* 재고 목록에서 한눈에 보는 원가 */
.sub .cost { color: var(--pri); font-weight: 700; margin-right: 6px; }
.sub .cost.none { color: #a0a7b0; font-weight: 400; }
.r .amt { display: block; font-size: 12px; color: var(--pri); font-weight: 700; margin-top: 1px; }
#stock-value { margin: 0 2px; }
.kind-seg { flex-wrap: wrap; }
.kind-seg button { flex: 1 1 30%; }
.empty { padding: 28px 16px; text-align: center; color: var(--sub); }
.loading { padding: 20px; text-align: center; color: var(--sub); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; font-weight: 700; text-decoration: none; background: var(--card); color: var(--ink); }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.big { padding: 14px 16px; font-size: 17px; }
.btn.primary { background: var(--pri); color: #fff; }
.btn.ghost { border-color: var(--line); }
.btn.in { background: var(--in); color: #fff; }
.btn.out { background: var(--out); color: #fff; }
.btn.danger { background: #fff; border-color: #f0c4c4; color: var(--neg); }
.btn.danger.armed { background: var(--neg); color: #fff; }
.btn.excel { background: #1d6f42; color: #fff; margin-top: 18px; }
.btn small { color: inherit; opacity: .85; }
.btn:disabled { opacity: .55; }
.link { border: 0; background: none; color: var(--pri); font-weight: 700; padding: 8px 2px; text-decoration: underline; }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 760px; margin: 0 auto; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 247, 243, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.actionbar .btn { flex: 1; padding: 15px 0; font-size: 18px; }

/* 기록 */
.summary { font-size: 14px; color: var(--sub); margin: 4px 2px; }
.day-head { font-size: 13px; font-weight: 700; color: var(--sub); margin: 14px 2px 6px; }
.mvbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mv { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.mv:first-child { border-top: 0; }
.mv:hover { background: var(--hover); }
.mv .r { font-weight: 700; font-variant-numeric: tabular-nums; }
.mv .r.in { color: var(--in); }
.mv .r.out { color: var(--out); }
.mv .r small { margin-left: 2px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.badge.in { background: var(--in-bg); color: var(--in); }
.badge.out { background: var(--out-bg); color: var(--out); }

/* 설정 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0 0 10px; }
.hint { font-size: 13px; color: var(--sub); margin: 8px 0 0; }
.hint.center { text-align: center; }
.addr { font-family: Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--pri); user-select: all; overflow-wrap: anywhere; margin: 4px 0; }
.stack > * + * { margin-top: 8px; }

/* 창 */
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(15, 20, 28, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
@media (min-width: 700px) {
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 16px; max-height: 88vh; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.x { flex: none; border: 0; background: var(--soft); border-radius: 999px; width: 36px; height: 36px; font-size: 16px; }
.sec { font-size: 15px; margin: 18px 0 8px; }
.fl { display: block; font-size: 14px; font-weight: 700; color: var(--sub); margin: 14px 0 6px; }
.vat-seg button small { display: block; }
.seg { display: flex; background: var(--soft); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 10px 4px; font-weight: 700; color: var(--sub); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.seg button.on small { color: inherit; opacity: .8; }
.type-seg button { padding: 12px 4px; font-size: 16px; }
.type-seg button.on[data-t="입고"] { background: var(--in); color: #fff; }
.type-seg button.on[data-t="출고"] { background: var(--out); color: #fff; }
.pick-kinds, .pick-types { margin: 6px 0; }
.pick-kinds button, .pick-types button { font-size: 13px; padding: 5px 11px; }
.pick-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 34vh; overflow: auto; }
.pick-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.pick-list li:first-child { border-top: 0; }
.pick-list li:hover { background: var(--hover); }
.pick-list li.none { color: var(--sub); cursor: default; }
.picked { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1.5px solid var(--pri); border-radius: 10px; background: #eef6f1; }
.qty-row { display: flex; align-items: center; gap: 8px; }
.qty-row input { flex: 1; text-align: center; font-size: 22px; font-weight: 700; padding: 9px; }
.qty-row .unit { min-width: 2.2em; color: var(--sub); text-align: center; }
.step { flex: none; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 22px; }
.warn { background: #fff6e0; border: 1px solid #f1d58a; color: #7a5600; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0 0; }
.err { color: var(--neg); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.err:empty { display: none; }
.detail-top { margin-top: 4px; }
.big-stock { font-size: 15px; color: var(--sub); margin: 10px 0 2px; }
.big-stock b { font-size: 34px; color: var(--ink); margin: 0 4px; font-variant-numeric: tabular-nums; }
.btn-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.btn-row .btn { flex: 1; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 10px 0 6px; }
dl.info dt { color: var(--sub); }
dl.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.done { text-align: center; padding: 6px 0 0; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--in-bg); color: var(--in); font-size: 30px; font-weight: 700; display: grid; place-items: center; margin: 6px auto 12px; }
.done-main { font-size: 18px; margin: 0 0 4px; }
.done .sub-line { color: var(--sub); margin: 0 0 6px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 30; background: #12261c; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 15px; max-width: calc(100vw - 32px); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }

/* ── 새 재고 화면 (9/21): 재고 유무·사용예정·원가·판매가 한눈에 ── */
.status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sc { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.sc span { font-size: 12px; color: var(--sub); }
.sc b { font-size: 20px; font-variant-numeric: tabular-nums; }
.sc-in b { color: var(--in); }
.sc-reserved b { color: #4b5563; }
.sc-out b { color: var(--neg); }
.sc.on { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; min-width: 0; }
.metric span { font-size: 12px; color: var(--sub); }
.metric b { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric b small { margin-left: 2px; }
@media (max-width: 420px) {
  .metrics .metric { padding: 7px 8px; }
  .metrics .metric b { font-size: 14px; }
}
.metric.strong { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.metric em { font-style: normal; color: #a0a7b0; font-weight: 400; }
.st { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-in { background: var(--in-bg); color: var(--in); }
.st-reserved { background: var(--soft); color: #4b5563; }
.st-out { background: #fbe7ea; color: var(--neg); }

/* 물건 한 줄 — 폰: 이름·상태 / 수량 / 돈 세 줄 */
.list li.srow { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.list li.srow:hover { background: var(--hover); }
.list li.srow.head { display: none; }
.srow .c-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow .c-name b { font-weight: 600; overflow-wrap: anywhere; }
.srow .nums, .srow .money { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.srow .money { color: var(--pri); }
.srow .money.empty, .srow .c-num.none, .srow .c-num.dup { display: none; } /* 폰: 예정 없으면 '남은'만 (쓸 수 있음 = 남은) */
.srow .lbl { margin-right: 3px; }
.srow .c-avail { color: var(--ink); font-weight: 700; }
.srow .c-money em { font-style: normal; color: #a0a7b0; }
.srow .c-profit { font-weight: 700; }
.srow .c-profit.neg { color: var(--neg); }
.srow .p2 { margin-left: 5px; color: var(--sub); }
.vat { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-right: 6px; background: #eef6f1; color: var(--pri); vertical-align: 1px; }
.srow .owners { font-size: 12px; color: var(--sub); }
.owner { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-right: 6px; background: #f3ede0; color: #7a5a1c; vertical-align: 1px; }
.owner-pick button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.spec { margin-right: 6px; color: var(--sub); font-variant-numeric: tabular-nums; }
.metric .p2 { display: block; margin-top: 2px; }
.toast { word-break: keep-all; }
.toast-act { border: 0; background: none; color: #8fe0b0; font-weight: 800; padding: 0 0 0 10px; text-decoration: underline; white-space: nowrap; }

.srow .c-money.blank { display: none; } /* 폰: 빈 돈 칸은 숨김 (PC 표에선 '-') */
/* PC 넓은 화면(1200px 이상): 표처럼 칸을 맞춘다. 좁으면 폰처럼 세 줄 (9/22 제품가 칸이 늘어 1100 → 1200) */
@media (min-width: 1200px) {
  .list li.srow { display: grid; grid-template-columns: minmax(160px, 1fr) 90px repeat(3, 66px) repeat(5, 90px); gap: 0 8px; }
  .list.staff-money li.srow { grid-template-columns: minmax(160px, 1fr) 90px repeat(3, 66px) repeat(3, 90px); } /* 직원: 원가·재고 금액 칸 없음 */
  .list.no-money li.srow { grid-template-columns: minmax(160px, 1fr) 96px repeat(3, 90px); }
  .srow .p2 { display: block; margin: 0; font-size: 11px; }
  .list.no-money .srow .money { display: none; }
  .srow .nums, .srow .money, .srow .money.empty { display: contents; }
  .srow .c-num.none { display: block; color: #b4b9c0; }
  .srow .c-num.dup { display: block; }
  .srow .c-num.c-avail { font-weight: 700; }
  .srow .lbl { display: none; }
  .srow .c-num, .srow .c-money { text-align: right; font-size: 14px; }
  .srow .c-num { color: var(--ink); }
  .srow .c-money.blank { display: block; }
  .srow .c-money.blank::before { content: '-'; color: #c4c8ce; }
  .list li.srow.head { display: grid; background: var(--hover); font-size: 12px; font-weight: 700; color: var(--sub); cursor: default; padding-top: 8px; padding-bottom: 8px; }
  .list li.srow.head .c-num, .list li.srow.head .c-money { font-size: 12px; color: var(--sub); }
}
@media (min-width: 1200px) {
  .actionbar { max-width: 1180px; }
}

/* 사용예정 */
.btn.resv { background: #5b3fa0; color: #fff; }
.badge.rs { background: #efe9fb; color: #5b3fa0; }
.mv.off { opacity: .6; }
.mv.off .badge.rs { background: var(--soft); color: var(--sub); }
.mv.rv.late .badge.rs { background: #fbe7ea; color: var(--neg); }
.mv .btn.small.use { flex: none; padding: 6px 10px; font-size: 13px; border-color: var(--line); }
.resv-link { display: flex; align-items: center; gap: 4px; width: 100%; border: 1px solid #ddd3f2; background: #f6f2fd; color: #4a3486; border-radius: 10px; padding: 9px 12px; font-size: 14px; text-align: left; }
.resv-link.late { border-color: #f0c4c4; background: #fdf1f1; }
.resv-link .chev { margin-left: auto; font-size: 18px; line-height: 1; }
.d-status { margin: 8px 0 2px; }
.d-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.d-grid.money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-grid.money-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 직원: 제품가·판매가·순이익 */
.metrics.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two.one { grid-template-columns: 1fr; }

/* 종류 (구분 안의 두 번째 칸) */
.maker-chips { background: var(--card); border: 1px solid var(--line); }
.maker-chips button { font-size: 12.5px; }
.sub-chips { padding: 6px 8px; background: #edf2ec; border-radius: 12px; }
.sub-chips button { font-size: 13px; padding: 5px 12px; }
.sub-chips button small { color: inherit; opacity: .7; margin-left: 2px; }
.list li.group .gtype { font-size: 14px; color: var(--ink); margin-left: 2px; }
.pwtext { font-family: Consolas, monospace; color: var(--ink); letter-spacing: .5px; }
.itype { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-right: 6px; background: var(--soft); color: #4b5563; vertical-align: 1px; }
.types-line { font-size: 13px; color: var(--sub); white-space: normal; margin-top: 2px; }
.types-line em { font-style: normal; color: #a0a7b0; }
.types-line .link { padding: 2px 0 2px 6px; font-size: 13px; }
.type-pick button.add { border-style: dashed; color: var(--pri); }
.type-add { display: flex; gap: 8px; margin-top: 8px; }
.type-add input { flex: 1; }

/* 큰 모니터: 가운데만 쓰지 말고 넓게 — 늘어난 폭은 '물건' 칸이 가져가서 긴 이름도 한 줄 (9/22) */
@media (min-width: 1300px) {
  #main, .actionbar { max-width: 1260px; }
}
@media (min-width: 1500px) {
  #main, .actionbar { max-width: 1440px; }
}

/* 물건을 고친 기록 (9/27) — 누를 것이 없으니 흐리게, 바뀐 내용은 줄바꿈해서 다 보이게 */
.badge.ed { background: #eef1f4; color: #5a6b7a; }
.mv.ed { cursor: default; }
.mv.ed .ednote { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); white-space: normal; word-break: break-all; line-height: 1.45; }
