/* 스마트폰 공정진행현황 — 승인 시안과 같은 치수·색 (고딕체 · 검정 글자) */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #e2e8f0; }
body {
  font-family: "Malgun Gothic", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: #000000; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
button, input { font-family: inherit; color: #000000; }
button { cursor: pointer; }

/* ---------- 로그인 ---------- */
.login { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 24px; background: #e2e8f0; }
.login-box { width: 100%; max-width: 420px; margin: 0 auto; background: #ffffff; border: 1px solid #94a3b8; border-radius: 10px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.login-box h1 { margin: 0; font-size: 20px; font-weight: 700; }
.login-help { font-size: 13px; color: #334155; line-height: 1.5; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.login-box input[type=text], .login-box input[type=password] { height: 44px; border: 1px solid #94a3b8; border-radius: 8px; padding: 0 12px; font-size: 15px; }
.login-box label.keep { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.login-box label.keep input { width: 18px; height: 18px; margin: 0; }
.login-err { font-size: 13px; font-weight: 700; color: #b91c1c; line-height: 1.5; }
.login-box button { height: 48px; border: 0; border-radius: 8px; background: #1d4ed8; color: #ffffff; font-size: 16px; font-weight: 700; }
.login-box button:disabled { background: #64748b; }

/* ---------- 본 화면 ---------- */
.app { position: relative; height: 100%; height: 100dvh; max-width: 640px; margin: 0 auto; background: #e2e8f0; display: flex; flex-direction: column; overflow: hidden; }
.top { background: #ffffff; border-bottom: 1px solid #cbd5e1; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.top-row { display: flex; align-items: center; gap: 8px; }
.top-row h1 { margin: 0; font-size: 18px; font-weight: 700; flex: 1 1 auto; }
.icon-btn { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #94a3b8; border-radius: 8px; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn.spin svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta { font-size: 12px; color: #334155; }
.net-err { font-size: 12px; font-weight: 700; color: #b91c1c; border: 1px solid #dc2626; border-radius: 6px; padding: 4px 8px; background: #fef2f2; line-height: 1.45; }
#listTools { display: flex; flex-direction: column; gap: 8px; }
.search { display: flex; align-items: center; gap: 6px; border: 1px solid #94a3b8; border-radius: 8px; padding: 0 10px; height: 40px; background: #f8fafc; }
.search input { border: 0; outline: none; background: transparent; font-size: 14px; flex: 1 1 auto; min-width: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: 13px; padding: 0 14px; height: 36px; border-radius: 18px; background: #ffffff; color: #000000; border: 1px solid #94a3b8; }
.chip.late { color: #b91c1c; border-color: #dc2626; }
.chip.on { background: #1d4ed8; color: #ffffff; border-color: #1d4ed8; font-weight: 700; }

main { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }

/* 품목 카드 */
.card { display: block; width: 100%; padding: 0; margin: 0; text-align: left; color: #000000; background: #ffffff; border: 1px solid #000000; font-size: 13px; flex: 0 0 auto; }
.card .g4 { display: grid; grid-template-columns: 28% 30% 30% 12%; }
.card .g2 { display: grid; grid-template-columns: 28% 72%; }
.card .h { padding: 5px 4px; border-right: 1px solid #000000; border-bottom: 1px solid #000000; text-align: center; font-weight: 700; background: #f1f5f9; }
.card .v { padding: 6px 4px; border-right: 1px solid #000000; border-bottom: 1px solid #000000; text-align: center; line-height: 1.35; word-break: break-all; }
.card .last { border-right: 0; }
.card .b { font-weight: 700; }
.card .qty { display: flex; align-items: center; justify-content: center; font-weight: 700; }
.card .due { padding: 8px 4px; border-right: 1px solid #000000; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.late-pill { font-size: 11px; font-weight: 700; color: #b91c1c; border: 1px solid #dc2626; border-radius: 9px; padding: 0 6px; }
.card .now { padding: 8px 8px; display: flex; align-items: center; gap: 6px; line-height: 1.35; }
.card .now .grow { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card .sub { font-size: 12px; color: #334155; }
.empty { text-align: center; color: #334155; padding: 40px 0; font-size: 14px; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: 700; font-size: 12.5px; }
.st-완료 { background: #dcfce7; color: #14532d; border: 1px solid #16a34a; }
.st-진행중 { background: #dbeafe; color: #1e3a8a; border: 1px solid #2563eb; }
.st-대기 { background: #f1f5f9; color: #000000; border: 1px solid #94a3b8; }

/* 상세 */
.box { background: #ffffff; border: 1px solid #000000; font-size: 13px; flex: 0 0 auto; }
.info { display: grid; grid-template-columns: 30% 70%; }
.info > div { padding: 6px; border-bottom: 1px solid #000000; word-break: break-all; }
.info > .k { border-right: 1px solid #000000; font-weight: 700; background: #f1f5f9; }
.info > .end { border-bottom: 0; }
.note { font-size: 11.5px; color: #334155; }
.steps-h, .step { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 78px; }
.steps-h { background: #f1f5f9; font-weight: 700; border-bottom: 1px solid #000000; }
.steps-h > div { padding: 6px 4px; text-align: center; border-right: 1px solid #000000; }
.steps-h > div:first-child, .steps-h > div:last-child { padding: 6px 2px; }
.steps-h > div:last-child { border-right: 0; }
.step { border-bottom: 1px solid #cbd5e1; }
.step:last-child { border-bottom: 0; }
.step.run { background: #eff6ff; }
.step > div { padding: 7px 4px; border-right: 1px solid #cbd5e1; line-height: 1.35; }
.step .no { padding: 7px 2px; text-align: center; font-weight: 700; }
.step .nm { font-weight: 700; }
.step .tm { font-size: 11.5px; color: #334155; white-space: pre-line; }
.step .wh { word-break: break-all; white-space: pre-line; font-size: 13px; }
.step .wh.small { font-size: 11.5px; }
.step .st { padding: 7px 2px; text-align: center; border-right: 0; }
.foot-note { font-size: 12px; color: #334155; line-height: 1.6; }

/* ☰ 메뉴 */
.scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(15, 23, 42, 0.45); z-index: 10; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: 280px; max-width: 85%; background: #ffffff; border-right: 1px solid #94a3b8; display: flex; flex-direction: column; z-index: 11; padding-top: env(safe-area-inset-top); }
.drawer-head { padding: 14px 14px 10px; border-bottom: 1px solid #cbd5e1; display: flex; align-items: center; gap: 8px; }
.grow { flex: 1 1 auto; }
.drawer-head .co { font-size: 16px; font-weight: 700; }
.drawer-head .who { font-size: 12px; color: #334155; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 0; }
/* [2026-11-24] ☰ 메뉴 찾기 */
.drawer-search { position: relative; padding: 8px 12px; border-bottom: 1px solid #cbd5e1; }
.drawer-search input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 36px 0 12px; border: 1px solid #94a3b8; border-radius: 8px; font-size: 15px; background: #ffffff; color: #000000; -webkit-appearance: none; appearance: none; }
.drawer-search input:focus { outline: none; border: 2px solid #2563eb; padding: 0 35px 0 11px; }
.drawer-search input::-webkit-search-cancel-button { display: none; }
.drawer-search button { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; font-size: 16px; color: #475569; }
.sec-item mark { background: #fde68a; color: inherit; padding: 0; border-radius: 2px; }
.menu-none { padding: 18px 16px; font-size: 14px; color: #475569; line-height: 1.5; }
html[data-theme="dark"] .drawer-search { border-color: #3a3f48; }
html[data-theme="dark"] .drawer-search input { background: #1f2228; color: #e5e7eb; border-color: #4b5563; }
html[data-theme="dark"] .sec-item mark { background: #a16207; }
html[data-theme="dark"] .menu-none { color: #9ca3af; }
.sec { border-bottom: 1px solid #e2e8f0; }
.sec-btn { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; background: #ffffff; font-size: 15px; font-weight: 700; text-align: left; }
.sec-btn span:first-child { flex: 1 1 auto; }
.sec-btn span:last-child { font-size: 14px; }
.sec-items { padding: 0 0 6px; }
.sec-item { display: block; width: 100%; min-height: 44px; padding: 0 14px 0 28px; border: 0; text-align: left; font-size: 14px; background: #ffffff; }
.sec-item.on { background: #eff6ff; font-weight: 700; }
.drawer-foot { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #cbd5e1; font-size: 12px; color: #334155; }

/* 내 정보 */
.info-card { position: absolute; left: 16px; right: 16px; top: 30%; z-index: 11; background: #ffffff; border: 1px solid #94a3b8; border-radius: 10px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.info-card h2 { margin: 0; font-size: 17px; }
.info-grid { display: grid; grid-template-columns: 30% 70%; font-size: 14px; row-gap: 6px; }
.info-grid .k { font-weight: 700; }
.wide-btn { height: 44px; border: 1px solid #94a3b8; border-radius: 8px; background: #ffffff; font-size: 15px; font-weight: 700; }

/* 업체 정보 시트 (협력업체 연락처) [2026-10-16] — 고딕·검정 */
.ven-btn { display: block; margin-top: 6px; height: 32px; padding: 0 8px; border: 1px solid #1d4ed8; border-radius: 6px; background: #ffffff; color: #1d4ed8; font-size: 12px; font-weight: 700; word-break: keep-all; }
.ven-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; z-index: 11; background: #ffffff; border-top: 1px solid #94a3b8; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; }
.ven-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #cbd5e1; font-size: 15px; }
.ven-body { overflow-y: auto; padding: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.ven-body h2 { margin: 0; font-size: 18px; }
.ven-tabs { display: flex; gap: 6px; }
.ven-tabs button { flex: 1; height: 38px; border: 1px solid #94a3b8; border-radius: 6px; background: #ffffff; font-weight: 700; }
.ven-tabs button.on { background: #dbe7fb; border-color: #1d4ed8; }
.ven-gray { color: #334155; }
.ven-gray.small { font-size: 12px; }
.ven-body a { color: #1d4ed8; }
.ven-addr { word-break: keep-all; }
.ven-link { border: 0; background: none; padding: 0; color: #1d4ed8; text-decoration: underline; font-size: inherit; text-align: left; word-break: break-all; }
.ven-card { display: flex; align-items: center; gap: 8px; border: 1px solid #94a3b8; border-radius: 8px; padding: 8px 10px; }
.ven-call { flex: 0 0 auto; min-width: 56px; text-align: center; padding: 10px 12px; border-radius: 8px; background: #1d4ed8; color: #ffffff !important; font-weight: 700; text-decoration: none; }
.ven-apps { display: flex; gap: 8px; }
.ven-app { flex: 1; border: 1px solid #94a3b8; border-radius: 8px; background: #ffffff; padding: 8px 2px; font-size: 13px; font-weight: 700; text-align: center; }
.ven-app i { display: block; width: 32px; height: 32px; margin: 0 auto 4px; border-radius: 8px; line-height: 32px; font-style: normal; color: #ffffff; }
.ven-app.t i { background: #d1262b; } .ven-app.n i { background: #03a94d; } .ven-app.k i { background: #3a3a3a; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000000; color: #ffffff; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: 13px; z-index: 30; max-width: 90%; text-align: center; }

/* 폰 협력업체 목록 [2026-10-16] */
.vcard { padding: 10px 12px; line-height: 1.5; }
.vcard .vc-h { display: flex; align-items: baseline; gap: 6px; font-size: 15px; }
.vcard .vc-item { margin-left: auto; font-size: 12px; color: #334155; }
.vcard .vc-b { font-size: 13px; color: #000000; }

/* 업체 연락처 — 협력업체 | 고객사 전환 [2026-10-17 시안 A] */
.ven-seg { display: flex; margin: 0 0 10px; border: 1px solid #94a3b8; border-radius: 9px; overflow: hidden; }
.ven-seg button { flex: 1; padding: 9px 0; border: 0; background: #fff; color: #000; font: inherit; font-size: 14px; }
.ven-seg button + button { border-left: 1px solid #94a3b8; }
.ven-seg button.on { background: #1d4ed8; color: #fff; font-weight: bold; }

/* ---------- [2026-10-19 승인 시안 '스마트폰 메뉴 시안'] 아래 탭 · 1단계 조회 화면 (screens.js) — 고딕·검정 ---------- */
.tabbar { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); background: #ffffff; border-top: 1px solid #cbd5e1; padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { border: 0; background: #ffffff; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11.5px; color: #334155; padding: 4px 0; }
.tabbar button .ic { font-size: 19px; line-height: 1.15; }
.tabbar button.on { color: #1d4ed8; font-weight: 700; }
.tabbar button:disabled { opacity: 0.35; }
.app:has(.tabbar:not([hidden])) main { padding-bottom: 16px; }
.sec-item .src { display: block; font-size: 11px; color: #475569; font-weight: 400; line-height: 1.3; margin-bottom: 4px; }
.sec-item.off { color: #94a3b8; }

.rc { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: #ffffff; color: #000000; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font-size: 13px; flex: 0 0 auto; }
button.rc:active { background: #f1f5f9; }
.rc.dim { opacity: 0.6; }
.rc .l1 { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: #334155; }
.rc .l2 { font-size: 15px; font-weight: 700; word-break: break-all; }
.rc .l3 { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: #1e293b; word-break: break-all; }
.red { color: #b91c1c; } .green { color: #15803d; } .gray { color: #475569; } .small { font-size: 12px; font-weight: 400; }
.cnt { font-size: 12px; color: #334155; }
.sec-h { font-size: 12.5px; font-weight: 700; color: #334155; margin-top: 2px; }
.tg { display: inline-block; flex: 0 0 auto; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.tg-ok { color: #14532d; background: #dcfce7; border-color: #16a34a; }
.tg-warn { color: #9a3412; background: #ffedd5; border-color: #ea580c; }
.tg-bad { color: #991b1b; background: #fee2e2; border-color: #dc2626; }
.tg-run { color: #1e3a8a; background: #dbeafe; border-color: #2563eb; }
.tg-wait { color: #000000; background: #f1f5f9; border-color: #94a3b8; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles.t3 { grid-template-columns: repeat(3, 1fr); }
.tile { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: #000000; }
.tile .num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .cap { font-size: 12px; color: #334155; }
.tile.bad .num { color: #b91c1c; } .tile.warn .num { color: #c2410c; }

.stabs { display: flex; border: 1px solid #94a3b8; border-radius: 9px; overflow: hidden; flex: 0 0 auto; }
.stabs button { flex: 1; padding: 9px 0; border: 0; background: #ffffff; font-size: 14px; }
.stabs button + button { border-left: 1px solid #94a3b8; }
.stabs button.on { background: #1d4ed8; color: #ffffff; font-weight: 700; }
.weeknav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.weeknav b { flex: 1; text-align: center; font-size: 15px; }
.bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #16a34a; }
.kbar { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #334155; }
.kbar span { width: 26px; }
.kbar i { flex: 1; height: 12px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.kbar b { display: block; height: 100%; background: #1d4ed8; }
.kbar.t b { background: #94a3b8; }
.alert { font-size: 13px; border-radius: 8px; padding: 7px 10px; background: #ffffff; border: 1px solid #cbd5e1; border-left-width: 4px; flex: 0 0 auto; }
.alert.a-bad { border-left-color: #dc2626; } .alert.a-warn { border-left-color: #ea580c; } .alert.a-new, .alert.a-info { border-left-color: #2563eb; }

.kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 5px 8px; font-size: 13px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; flex: 0 0 auto; }
.kv .k { font-weight: 700; color: #334155; }
.kv > div { word-break: break-all; }
.hist { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 4px 12px; flex: 0 0 auto; }
.hrow { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #e2e8f0; font-size: 13px; }
.hrow:last-child { border-bottom: 0; }
.hrow .hd { flex: 0 0 76px; font-size: 12px; color: #334155; padding-top: 1px; }
.hrow .ht { flex: 1 1 auto; word-break: break-all; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mini-btn { height: 34px; padding: 0 12px; border: 1px solid #1d4ed8; border-radius: 17px; background: #ffffff; color: #1d4ed8; font-size: 13px; font-weight: 700; }
.qsec { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; flex: 0 0 auto; }
.qsec summary { padding: 11px 12px; font-weight: 700; font-size: 14px; }
.qsec .qx { padding: 0 12px 12px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; }
.qtb { display: block; margin: 4px 0; padding: 6px 8px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 12px; white-space: normal; }
.warn-list { font-size: 12px; color: #9a3412; line-height: 1.5; }
/* 목록이 길면 flex 열이 위쪽 칸(협력업체|고객사 전환 등)을 2px 로 눌러 버리던 문제 — 목록 안 칸은 줄지 않게 [2026-10-19] */
main > * { flex-shrink: 0; }

/* ---------- 화면 설정 [2026-10-19 사용자 지시 '스마트폰 화면도 별도 설정 — 라이트모드·다크모드'] ----------
   라이트 = 지금까지의 화면 그대로. 다크 = PC 다크(MES\erp_theme.DARK)와 같은 값: 창 #1f2228 · 표/입력 #181a1f ·
   단추 #2a2e36 · 글 #e5e7eb · 흐린 글 #9ca3af · 선 #3a3f48 · 강조 #2563eb · 링크 #60a5fa. 상태 색(빨강·주황·초록·파랑)은 뜻 그대로 어둡게. */
.icon-btn { color: #000000; }
.search svg, .card .now svg { color: #334155; }
.set-lbl { font-size: 13px; font-weight: 700; }
.theme-seg { display: flex; border: 1px solid #94a3b8; border-radius: 9px; overflow: hidden; }
.theme-seg button { flex: 1; min-height: 44px; border: 0; background: #ffffff; font-size: 14px; }
.theme-seg button + button { border-left: 1px solid #94a3b8; }
.theme-seg button.on { background: #1d4ed8; color: #ffffff; font-weight: 700; }
.set-note { font-size: 12px; color: #334155; line-height: 1.5; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"], html[data-theme="dark"] body, html[data-theme="dark"] .app, html[data-theme="dark"] .login { background: #181a1f; }
html[data-theme="dark"] body, html[data-theme="dark"] button, html[data-theme="dark"] input { color: #e5e7eb; }
html[data-theme="dark"] .login-box, html[data-theme="dark"] .top, html[data-theme="dark"] .drawer, html[data-theme="dark"] .info-card,
html[data-theme="dark"] .ven-sheet, html[data-theme="dark"] .tabbar { background: #1f2228; border-color: #3a3f48; }
html[data-theme="dark"] .login-box input[type=text], html[data-theme="dark"] .login-box input[type=password] { background: #181a1f; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .login-help, html[data-theme="dark"] .meta, html[data-theme="dark"] .note, html[data-theme="dark"] .foot-note,
html[data-theme="dark"] .empty, html[data-theme="dark"] .card .sub, html[data-theme="dark"] .step .tm, html[data-theme="dark"] .drawer-head .who,
html[data-theme="dark"] .drawer-foot, html[data-theme="dark"] .ven-gray, html[data-theme="dark"] .vcard .vc-item, html[data-theme="dark"] .set-note,
html[data-theme="dark"] .cnt, html[data-theme="dark"] .sec-h, html[data-theme="dark"] .rc .l1, html[data-theme="dark"] .tile .cap,
html[data-theme="dark"] .hrow .hd, html[data-theme="dark"] .kbar, html[data-theme="dark"] .kv .k, html[data-theme="dark"] .sec-item .src,
html[data-theme="dark"] .gray, html[data-theme="dark"] .tabbar button, html[data-theme="dark"] .search svg, html[data-theme="dark"] .card .now svg { color: #9ca3af; }
html[data-theme="dark"] .login-err, html[data-theme="dark"] .red { color: #f87171; }
html[data-theme="dark"] .green { color: #4ade80; }
html[data-theme="dark"] .login-box button:not(:disabled) { background: #2563eb; }
html[data-theme="dark"] .icon-btn, html[data-theme="dark"] .wide-btn { background: #2a2e36; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .net-err { background: #3b1518; border-color: #b91c1c; color: #fca5a5; }
html[data-theme="dark"] .search { background: #181a1f; border-color: #3a3f48; }
html[data-theme="dark"] .chip, html[data-theme="dark"] .stabs button, html[data-theme="dark"] .ven-seg button, html[data-theme="dark"] .theme-seg button,
html[data-theme="dark"] .ven-tabs button, html[data-theme="dark"] .ven-app { background: #2a2e36; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .stabs, html[data-theme="dark"] .ven-seg, html[data-theme="dark"] .theme-seg { border-color: #3a3f48; }
html[data-theme="dark"] .stabs button + button, html[data-theme="dark"] .ven-seg button + button, html[data-theme="dark"] .theme-seg button + button { border-left-color: #3a3f48; }
html[data-theme="dark"] .chip.late { color: #f87171; border-color: #b91c1c; }
html[data-theme="dark"] .chip.on, html[data-theme="dark"] .stabs button.on, html[data-theme="dark"] .ven-seg button.on,
html[data-theme="dark"] .theme-seg button.on { background: #2563eb; border-color: #2563eb; color: #ffffff; }
html[data-theme="dark"] .ven-tabs button.on { background: #1e3a8a; border-color: #2563eb; }
/* 공정 카드(검정 선 표) — 선은 흐린 회색으로 */
html[data-theme="dark"] .card, html[data-theme="dark"] .box { background: #1f2228; color: #e5e7eb; border-color: #4b5563; }
html[data-theme="dark"] .card .h, html[data-theme="dark"] .info > .k, html[data-theme="dark"] .steps-h { background: #2a2e36; }
html[data-theme="dark"] .card .h, html[data-theme="dark"] .card .v, html[data-theme="dark"] .card .due, html[data-theme="dark"] .info > div,
html[data-theme="dark"] .steps-h, html[data-theme="dark"] .steps-h > div { border-color: #4b5563; }
html[data-theme="dark"] .step, html[data-theme="dark"] .step > div { border-color: #3a3f48; }
html[data-theme="dark"] .step.run { background: #172554; }
html[data-theme="dark"] .late-pill { color: #fca5a5; border-color: #b91c1c; }
html[data-theme="dark"] .st-완료, html[data-theme="dark"] .tg-ok { background: #14361f; color: #86efac; border-color: #16a34a; }
html[data-theme="dark"] .st-진행중, html[data-theme="dark"] .tg-run { background: #172554; color: #93c5fd; border-color: #2563eb; }
html[data-theme="dark"] .st-대기, html[data-theme="dark"] .tg-wait { background: #2a2e36; color: #e5e7eb; border-color: #4b5563; }
html[data-theme="dark"] .tg-warn { background: #3b2410; color: #fdba74; border-color: #ea580c; }
html[data-theme="dark"] .tg-bad { background: #3b1518; color: #fca5a5; border-color: #dc2626; }
/* ☰ 메뉴 · 시트 */
html[data-theme="dark"] .drawer, html[data-theme="dark"] .drawer-head, html[data-theme="dark"] .drawer-foot { border-color: #3a3f48; }
html[data-theme="dark"] .sec { border-bottom-color: #2a2e36; }
html[data-theme="dark"] .sec-btn, html[data-theme="dark"] .sec-item { background: #1f2228; color: #e5e7eb; }
html[data-theme="dark"] .sec-item.on { background: #172554; }
html[data-theme="dark"] .sec-item.off { color: #6b7280; }
html[data-theme="dark"] .ven-top { border-color: #3a3f48; }
html[data-theme="dark"] .ven-body a, html[data-theme="dark"] .ven-link { color: #60a5fa; }
html[data-theme="dark"] .ven-card { border-color: #3a3f48; }
html[data-theme="dark"] .ven-btn, html[data-theme="dark"] .mini-btn { background: #1f2228; color: #60a5fa; border-color: #2563eb; }
html[data-theme="dark"] .ven-call { background: #2563eb; }
html[data-theme="dark"] .toast { background: #e5e7eb; color: #111827; }
html[data-theme="dark"] .scrim { background: rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] .vcard .vc-b { color: #e5e7eb; }
/* 1단계 조회 화면(screens.js) */
html[data-theme="dark"] .tabbar { border-top-color: #3a3f48; }
html[data-theme="dark"] .tabbar button { background: #1f2228; }
html[data-theme="dark"] .tabbar button.on { color: #60a5fa; }
html[data-theme="dark"] .rc, html[data-theme="dark"] .tile, html[data-theme="dark"] .kv, html[data-theme="dark"] .hist,
html[data-theme="dark"] .qsec, html[data-theme="dark"] .alert { background: #1f2228; color: #e5e7eb; border-color: #3a3f48; }
html[data-theme="dark"] button.rc:active { background: #2a2e36; }
html[data-theme="dark"] .rc .l3 { color: #d1d5db; }
html[data-theme="dark"] .tile.bad .num { color: #f87171; } html[data-theme="dark"] .tile.warn .num { color: #fb923c; }
html[data-theme="dark"] .bar, html[data-theme="dark"] .kbar i { background: #2a2e36; }
html[data-theme="dark"] .kbar.t b { background: #6b7280; }
html[data-theme="dark"] .alert.a-bad { border-left-color: #dc2626; } html[data-theme="dark"] .alert.a-warn { border-left-color: #ea580c; }
html[data-theme="dark"] .alert.a-new, html[data-theme="dark"] .alert.a-info { border-left-color: #2563eb; }
html[data-theme="dark"] .hrow { border-bottom-color: #2a2e36; }
html[data-theme="dark"] .qtb { background: #181a1f; border-color: #3a3f48; }
html[data-theme="dark"] .warn-list { color: #fdba74; }

/* ---------- 알림 설정 [2026-10-19 사용자 지시 '스마트폰 설정에 알람'] ---------- */
.push-card { top: auto; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-height: 88%; overflow-y: auto; }
.push-state { font-size: 14px; font-weight: 700; }
.wide-btn.pri { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.wide-btn:disabled { opacity: 0.5; }
#pushPrefs { display: flex; flex-direction: column; gap: 8px; }
#pushPrefs.off { opacity: 0.55; }
.push-kinds { display: flex; flex-direction: column; gap: 2px; }
.push-chk { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.push-chk input { width: 20px; height: 20px; margin: 0; }
.push-time { display: flex; align-items: center; gap: 8px; }
.push-time input { flex: 1; height: 40px; border: 1px solid #94a3b8; border-radius: 8px; padding: 0 8px; font-size: 15px; background: #ffffff; color: #000000; }
.push-btns { display: flex; gap: 8px; }
.push-btns .wide-btn { flex: 1; }
.push-err { font-size: 13px; font-weight: 700; color: #b91c1c; line-height: 1.5; border: 1px solid #dc2626; background: #fef2f2; border-radius: 8px; padding: 8px 10px; }
html[data-theme="dark"] .wide-btn.pri { background: #2563eb; border-color: #2563eb; color: #ffffff; }
html[data-theme="dark"] .push-time input { background: #181a1f; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .push-err { background: #3b1518; border-color: #b91c1c; color: #fca5a5; }

/* ---------- 현장 등록 [2026-10-23 시안 '스마트폰 2단계 현장 등록'] — reg.js ----------
   큰 단추(손가락 44px 이상) · 색 칩 · 칸 아래 바로 오류. 라이트·다크 모두 같은 자리·같은 색 뜻. */
.app.reg-on > .top, .app.reg-on > main { display: none !important; }
.reg { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; background: #e2e8f0; }
.reg[hidden] { display: none !important; }
.reg-top { background: #ffffff; border-bottom: 1px solid #cbd5e1; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; }
.reg-top .grow { flex: 1 1 auto; min-width: 0; }
.reg-top h1 { margin: 0; font-size: 18px; }
.reg-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 24px; display: flex; flex-direction: column; gap: 10px; }
.reg-body > * { flex-shrink: 0; }
.tabbar button.scan .ic { width: 50px; height: 50px; margin-top: -20px; border-radius: 50%; background: #1d4ed8; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 4px solid #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.tabbar button.scan:disabled .ic { background: #94a3b8; }
.kreg { display: inline-block; font-size: 11px; font-weight: 700; color: #ffffff; background: #1d4ed8; border-radius: 6px; padding: 0 6px; margin-right: 6px; vertical-align: 1px; }
.cam { position: relative; height: 280px; background: #0b1220; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .vf { position: relative; width: 180px; height: 180px; border: 3px solid #ffffff; border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.4); }
.cam .cam-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; color: #ffffff; }
.cam-off { padding: 20px; text-align: center; font-size: 13.5px; line-height: 1.6; color: #e2e8f0; }
.rrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rf { display: flex; flex-direction: column; gap: 5px; }
.rl { font-size: 13px; font-weight: 700; }
.rl.req::after { content: " *"; color: #b91c1c; }
.auto { font-size: 11px; font-weight: 700; color: #0f766e; }
.rf input[type=text], .rf input[type=search], .rf input[type=number], .rf select, .rf textarea { min-height: 44px; border: 1px solid #94a3b8; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 15px; background: #ffffff; color: #000000; width: 100%; }
.rf textarea { min-height: 64px; resize: vertical; }
.rf.bad input, .rf.bad select, .rf.bad textarea, .rf.bad .rchips, .rf.bad .ph-row { outline: 2px solid #dc2626; outline-offset: 1px; border-radius: 8px; }
.ferr { font-size: 12.5px; font-weight: 700; color: #b91c1c; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rchips .chip { min-height: 40px; height: auto; padding: 6px 14px; }
.stp { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px auto; gap: 6px; align-items: center; }
.stp button { min-height: 44px; border: 1px solid #94a3b8; border-radius: 8px; background: #ffffff; font-size: 20px; font-weight: 700; }
.stp .fill { font-size: 13px; padding: 0 10px; }
.stp input { text-align: center; min-height: 44px; border: 1px solid #94a3b8; border-radius: 8px; font-size: 16px; width: 100%; }
.ox { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.ox button { width: 46px; height: 42px; border: 1px solid #94a3b8; border-radius: 8px; background: #ffffff; font-size: 18px; font-weight: 700; }
.ox button.on.o { background: #166534; color: #ffffff; border-color: #166534; }
.ox button.on.t { background: #c2410c; color: #ffffff; border-color: #c2410c; }
.ox button.on.x { background: #b91c1c; color: #ffffff; border-color: #b91c1c; }
.ox button.on.n { background: #475569; color: #ffffff; border-color: #475569; }
.chk { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.chk.ng { border-color: #dc2626; }
.chk .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chk .q { font-size: 13.5px; font-weight: 700; line-height: 1.4; position: relative; padding-right: 28px; }
.chk .row .q { padding-right: 0; }
.meas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.meas label { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; font-weight: 700; color: #334155; }
.meas input { min-height: 40px; border: 1px solid #94a3b8; border-radius: 8px; padding: 4px 6px; font-size: 15px; width: 100%; background: #ffffff; color: #000000; }
.meas .j { font-size: 13px; font-weight: 700; min-height: 16px; }
.judge { background: #ffffff; border: 2px solid #166534; border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 15px; }
.judge.t { border-color: #c2410c; } .judge.x { border-color: #b91c1c; color: #b91c1c; }
.ngbox { border: 1px solid #dc2626; border-radius: 10px; background: #fff7f7; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.rchk { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.rchk input { width: 22px; height: 22px; margin: 0; }
.ph-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ph { position: relative; width: 72px; height: 72px; border-radius: 8px; border: 1px solid #94a3b8; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.add { font-size: 26px; cursor: pointer; background: #ffffff; }
.ph-x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 12px; border: 0; background: rgba(15, 23, 42, 0.75); color: #ffffff; font-size: 12px; line-height: 24px; padding: 0; }
.chk .q .ph-x { top: -2px; right: 0; background: #e2e8f0; color: #000000; }
.steps-box { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 4px 10px; }
.srow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: 13.5px; }
.srow:last-child { border-bottom: 0; }
.srow.on { font-weight: 700; }
.srow .sn { flex: 1 1 auto; } .srow .sw { font-size: 12px; color: #475569; text-align: right; }
.big-btn { min-height: 76px; border: 0; border-radius: 12px; background: #1d4ed8; color: #ffffff; font-size: 20px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.big-btn small { font-size: 12.5px; font-weight: 400; }
.big-btn.done { background: #166534; }
.big-btn:disabled { background: #94a3b8; }
.result { background: #ffffff; border: 2px solid #166534; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.result b { font-size: 17px; }
.result.warn { border-color: #c2410c; }
.rsplit { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.reg-sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.reg-sheet { z-index: 11; position: relative; width: 100%; max-width: 640px; margin: 0 auto; background: #ffffff; border-radius: 14px 14px 0 0; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25); }
html[data-theme="dark"] .reg, html[data-theme="dark"] .reg-body { background: #181a1f; }
html[data-theme="dark"] .reg-top, html[data-theme="dark"] .reg-sheet { background: #1f2228; border-color: #3a3f48; }
html[data-theme="dark"] .rf input[type=text], html[data-theme="dark"] .rf input[type=search], html[data-theme="dark"] .rf input[type=number],
html[data-theme="dark"] .rf select, html[data-theme="dark"] .rf textarea, html[data-theme="dark"] .stp input, html[data-theme="dark"] .meas input { background: #181a1f; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .stp button, html[data-theme="dark"] .ox button, html[data-theme="dark"] .ph.add { background: #2a2e36; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .chk, html[data-theme="dark"] .steps-box, html[data-theme="dark"] .result, html[data-theme="dark"] .judge { background: #1f2228; color: #e5e7eb; }
html[data-theme="dark"] .chk { border-color: #3a3f48; } html[data-theme="dark"] .chk.ng { border-color: #dc2626; }
html[data-theme="dark"] .ngbox { background: #2a1416; }
html[data-theme="dark"] .ferr, html[data-theme="dark"] .judge.x { color: #f87171; }
html[data-theme="dark"] .meas label, html[data-theme="dark"] .srow .sw { color: #9ca3af; }
html[data-theme="dark"] .srow { border-bottom-color: #2a2e36; }
html[data-theme="dark"] .auto { color: #5eead4; }
html[data-theme="dark"] .tabbar button.scan .ic { border-color: #1f2228; background: #2563eb; }
html[data-theme="dark"] .kreg { background: #2563eb; }
html[data-theme="dark"] .big-btn:not(.done):not(:disabled) { background: #2563eb; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qbtn { min-height: 64px; background: #ffffff; border: 1px solid #94a3b8; border-radius: 10px; font-size: 12.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; }
.qbtn .ic { font-size: 20px; line-height: 1.1; }
.qbtn.main { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
html[data-theme="dark"] .qbtn { background: #2a2e36; border-color: #3a3f48; color: #e5e7eb; }
html[data-theme="dark"] .qbtn.main { background: #2563eb; border-color: #2563eb; color: #ffffff; }

/* [2026-10-28 그룹웨어 10단계] 폰 메신저(chat.js) */
.cht-room .l2 { font-size: 15.5px; }
.cht-un { min-width: 22px; height: 22px; border-radius: 11px; background: #dc2626; color: #ffffff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.cht-list { display: flex; flex-direction: column; gap: 8px; }
.cht-day { text-align: center; font-size: 12px; color: #475569; margin: 4px 0; }
.cht-b { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 86%; }
.cht-b.me { align-self: flex-end; align-items: flex-end; }
.cht-b .who { font-size: 12px; color: #334155; }
.cht-b .bub { background: #ffffff; color: #000000; border: 1px solid #cbd5e1; border-radius: 12px; padding: 8px 11px; font-size: 15px; line-height: 1.45; word-break: break-word; }
.cht-b.me .bub { background: #dbeafe; border-color: #93c5fd; }
.cht-b .mt { font-size: 11px; color: #475569; }
.cht-ur { color: #b45309; }
.cht-card { border-left: 3px solid #1d4ed8; padding-left: 8px; }
.cht-in { position: sticky; bottom: 0; display: flex; gap: 6px; align-items: stretch; background: #e2e8f0; padding-top: 6px; }
.cht-in textarea { flex: 1 1 auto; min-height: 52px; border: 1px solid #94a3b8; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; background: #ffffff; color: #000000; resize: none; }
.cht-send { min-height: 52px; min-width: 84px; font-size: 16px; }
.cht-st { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 8px; color: #ffffff; }
.cht-st.ok { background: #166534; } .cht-st.wait { background: #b45309; } .cht-st.off { background: #64748b; }
html[data-theme="dark"] .cht-b .bub { background: #1f2228; color: #e8ecf2; border-color: #3a3f48; }
html[data-theme="dark"] .cht-b.me .bub { background: #1e3a5f; border-color: #2c5282; }
html[data-theme="dark"] .cht-in { background: #181a1f; }
html[data-theme="dark"] .cht-in textarea { background: #1f2228; color: #e8ecf2; border-color: #3a3f48; }
html[data-theme="dark"] .cht-day, html[data-theme="dark"] .cht-b .mt, html[data-theme="dark"] .cht-b .who { color: #9ca3af; }

/* [2026-10-28 14단계 메신저 개편] 증명사진 · 부서 직책 이름 직급 · @ 목록 · 대화상대 · 🤖 AI 정리
 */
.cht-av { flex: 0 0 auto; width: 36px; height: 48px; border-radius: 8px; object-fit: cover; background: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; }
.cht-av.big { width: 45px; height: 60px; }
.cht-av.ini { color: #ffffff; font-size: 13px; font-weight: 700; }
.cht-av.ico { background: #1f3a66; color: #ffffff; font-size: 18px; height: 36px; border-radius: 10px; }
button.rc.cht-room, .rc.cht-mem { flex-direction: row; align-items: center; gap: 10px; }
.cht-rt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cht-rt .l1 .l2 { font-size: 15px; font-weight: 700; color: #000000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cht-rt .l3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cht-rt .l3 { flex-wrap: nowrap; align-items: center; }
.cht-me { color: #b45309; }
.cht-row { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.cht-row .cht-b { max-width: none; min-width: 0; }
.cht-at { background: #fde68a; color: #000000; font-weight: 700; border-radius: 4px; padding: 0 2px; }
.cht-tools { justify-content: flex-start; }
.cht-in { position: sticky; bottom: 0; flex-wrap: nowrap; }
.cht-atbtn { height: 52px; min-width: 44px; padding: 0 10px; font-size: 18px; border-radius: 10px; }
.cht-atpop { position: absolute; left: 0; right: 0; bottom: 100%; max-height: 260px; overflow-y: auto; background: #ffffff; border: 1px solid #94a3b8; border-radius: 10px; box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.18); display: flex; flex-direction: column; z-index: 5; }
.cht-atrow { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 10px; background: none; border: 0; border-bottom: 1px solid #e2e8f0; text-align: left; font: inherit; font-size: 14px; color: #000000; }
.cht-atrow .cht-av { width: 30px; height: 40px; }
.cht-atrow .cht-av.ico { height: 30px; font-size: 15px; }
.cht-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cht-opt { display: flex; align-items: flex-start; gap: 6px; font-size: 14.5px; min-height: 36px; padding: 6px 0; }
.cht-opt input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; }
.cht-pick { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 10px; padding: 2px 10px; background: #ffffff; }
.cht-prev { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px; font-size: 14px; line-height: 1.55; word-break: break-word; max-height: 46vh; overflow-y: auto; }
.cht-mask { background: #fde68a; color: #7c2d12; font-weight: 700; border-radius: 4px; padding: 0 3px; }
.cht-draft { width: 100%; box-sizing: border-box; border: 1px solid #94a3b8; border-radius: 10px; padding: 10px; font: inherit; font-size: 14.5px; line-height: 1.5; background: #ffffff; color: #000000; }
html[data-theme="dark"] .cht-rt .l1 .l2, html[data-theme="dark"] .cht-atrow { color: #e8ecf2; }
html[data-theme="dark"] .cht-atpop, html[data-theme="dark"] .cht-pick, html[data-theme="dark"] .cht-prev, html[data-theme="dark"] .cht-draft { background: #1f2228; color: #e8ecf2; border-color: #3a3f48; }
html[data-theme="dark"] .cht-atrow { border-bottom-color: #3a3f48; }
html[data-theme="dark"] .cht-me { color: #fbbf24; }
