:root {
  --bg: #ffffff; --surface: #ffffff; --soft: #f4f6f9; --soft2: #eef1f6; --line: #e3e7ee; --line2: #d3d9e2;
  --text: #191f28; --sub: #4e5968; --muted: #8b95a1;
  --primary: #2f5bea; --primary-soft: #e9efff; --primary-text: #2448c4;
  --ok: #12b886; --ok-soft: #e6f8f1; --ng: #f03e3e; --ng-soft: #ffeded; --mix: #343a40; --done: #adb5bd; --warn: #fff4cc;
  --r: 14px; --r-sm: 10px; --shadow: 0 2px 10px rgba(25,31,40,.10), 0 1px 3px rgba(25,31,40,.08); --shadow-lg: 0 -6px 30px rgba(25,31,40,.16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg);
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; }
button, select, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--primary-text); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid transparent; border-radius: var(--r-sm);
  height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--text); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-soft { background: var(--primary-soft); color: var(--primary-text); }
.btn-ghost { background: #fff; border-color: var(--line2); color: var(--sub); }
.btn-danger { background: var(--ng-soft); color: var(--ng); }
.btn:active { transform: scale(.98); }
.link { border: 0; background: none; color: var(--primary-text); font-size: 13px; font-weight: 600; padding: 4px; }
.x-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; color: var(--sub); flex: none; }
.x-btn svg { width: 18px; height: 18px; }

/* ---------- 로그인 ---------- */
#login { display: flex; align-items: center; justify-content: center; padding: 16px; background: linear-gradient(160deg, #eef3ff 0%, #f7f9fc 60%, #ffffff 100%); }
.login-box { background: #fff; border-radius: 20px; padding: 30px 22px 22px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 40px rgba(47,91,234,.12); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark svg { width: 26px; height: 26px; fill: #fff; stroke: none; }
.login-box h1 { margin: 0; font-size: 21px; font-weight: 800; }
.login-box .sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.login-box input { font-size: 16px; height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--soft); outline: none; }
.login-box input:focus { border-color: var(--primary); background: #fff; }
.msg { color: var(--ng); font-size: 13px; min-height: 1em; margin: 0; text-align: center; }

/* ---------- 지도 + 상단 ---------- */
#map { position: absolute; inset: 0; }
.top { position: absolute; z-index: 30; top: 0; left: 0; right: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.searchbar { display: flex; align-items: center; gap: 2px; height: 50px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 0 6px; max-width: 560px; }
.sb-icon { width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--sub); flex: none; }
.sb-icon svg { width: 22px; height: 22px; }
.sb-icon:active { background: var(--soft); }
.sb-form { flex: 1; display: flex; align-items: center; min-width: 0; }
.sb-form input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; height: 40px; padding: 0 4px; }
.sb-form input::placeholder { color: var(--muted); }
.sb-form input::-webkit-search-cancel-button { display: none; }
.sb-cnt { flex: none; font-size: 12px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); border-radius: 999px; padding: 4px 9px; margin-right: 2px; }
.sb-cnt:empty { display: none; }
.sb-acct { flex: none; height: 36px; max-width: 84px; border: 0; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; font-weight: 700; padding: 0 12px; margin-left: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-acct:empty { display: none; }
.tg-admin { border-color: #bccbff; color: var(--primary-text); }
.tg-num { margin-left: 4px; font-size: 12px; color: var(--ng); }
.tg-miss:has(input:checked) { background: var(--ng); border-color: var(--ng); }
.tg-miss:has(input:checked) .tg-num { color: #fff; }
.tg-prog b { margin-left: 4px; color: var(--ok); }
/* 공정률 창 */
.progpanel { top: 18vh; }
@media (min-width: 900px) { .progpanel { left: 12px; right: auto; top: 112px; width: 380px; } }
.prog-body { flex: 1; overflow-y: auto; padding: 0 14px 20px; }
.pg-big { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 6px; }
.pg-big b { font-size: 34px; font-weight: 800; color: var(--text); }
.pg-big span { font-size: 13px; color: var(--muted); }
.pg-bar { height: 10px; border-radius: 5px; background: var(--soft2); overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: var(--ok); }
.pg-sec { margin-top: 18px; }
.pg-sec h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.pg-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--soft2); font-size: 13.5px; }
.pg-row .n { font-weight: 700; }
.pg-row .v { color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.pg-row .pg-bar { grid-column: 1 / -1; height: 6px; }
.pg-lp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg-lp div { background: var(--soft); border-radius: 10px; padding: 10px; text-align: center; }
.pg-lp b { display: block; font-size: 18px; font-weight: 800; }
.pg-lp span { font-size: 12px; color: var(--muted); }
.pg-lp .bad b { color: var(--ng); }
.pg-lp .good b { color: var(--ok); }
.st-big { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; }
.st-big span { display: block; font-size: 12.5px; color: var(--muted); }
.st-big b { font-size: 24px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.st-big small { font-size: 17px; font-weight: 700; color: var(--sub); }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-grid div { background: var(--soft); border-radius: 10px; padding: 9px 6px; text-align: center; }
.st-grid b { display: block; font-size: 19px; font-weight: 800; }
.st-grid span { font-size: 12px; color: var(--muted); }
.st-grid em { display: block; font-style: normal; font-size: 11px; color: var(--sub); margin-top: 2px; }
.st-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--soft2); font-size: 13.5px; }
.st-row .n { font-weight: 700; }
.st-row .v { color: var(--sub); font-variant-numeric: tabular-nums; }
.st-row .v b { color: var(--text); }
.tag.warn { background: #fff3bf; color: #8a6d00; }
.st-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.st-filter input[type=date] { font: inherit; padding: 4px 6px; border: 1px solid var(--soft2); border-radius: 8px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--soft2); }
.st-table td { padding: 7px 4px; border-bottom: 1px solid var(--soft2); }
.st-table th:nth-child(n+3), .st-table td:nth-child(n+3) { text-align: right; }
.pg-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.tag.lpbad { background: var(--ng-soft); color: var(--ng); }
.tag.lpok { background: var(--ok-soft); color: #0b8a63; }
/* 조 배정 모드 */
.assign-bar { position: absolute; z-index: 37; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .assign-bar { left: auto; right: 12px; bottom: 12px; width: 420px; border-radius: 18px; } }
.ab-top { display: flex; align-items: center; gap: 10px; }
.ab-top b { font-size: 17px; font-weight: 800; }
.ab-count { flex: 1; font-size: 14px; font-weight: 700; color: var(--primary-text); }
.ab-help { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ab-teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }   /* 4개씩 2줄 → 옆으로 밀 필요 없음 */
.ab-teams button { height: 44px; min-width: 0; padding: 0 4px; white-space: nowrap; border-radius: 12px; border: 2px solid transparent; font-size: 14px; font-weight: 800; color: #fff; background: var(--c); }
.ab-teams button.on { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }
.ab-teams button.on::before { content: "✓ "; }
.ab-teams button.clear { font-size: 13px; }
.ab-teams button.clear { background: #fff; color: var(--sub); border: 2px dashed var(--line2); }
.ab-teams button.clear.on { border: 2px solid var(--ng); color: var(--ng); background: var(--ng-soft); box-shadow: none; }
#abApply.danger { background: var(--ng); }
#abUndo { height: 44px; }
.ab-btns { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 6px; }
.ab-btns .btn { height: 48px; font-size: 15px; }
#abDraw.on { background: var(--primary); color: #fff; }
.lasso { position: absolute; inset: 0; z-index: 29; touch-action: none; cursor: crosshair; background: rgba(47,91,234,.04); }
.lasso svg { width: 100%; height: 100%; display: block; }
.lasso polyline { fill: rgba(47,91,234,.15); stroke: var(--primary); stroke-width: 3; stroke-dasharray: 6 5; stroke-linejoin: round; }
.mk.sel .dot { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--primary); }
.mk.sel .lb span { background: var(--primary); color: #fff; }
body.assigning .fabs, body.assigning .toggles { display: none; }
.assign-box { background: var(--primary-soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.assign-box > b { font-size: 14px; color: var(--primary-text); }
.assign-box p { margin: 0; line-height: 1.5; }
.assign-box.flash { box-shadow: 0 0 0 3px var(--primary); }
.team-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.team-row select { flex: 1; height: 42px; border: 1px solid #bccbff; border-radius: 10px; padding: 0 10px; background: var(--primary-soft); font-size: 15px; font-weight: 700; color: var(--primary-text); }
.toggles { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.toggles::-webkit-scrollbar { display: none; }
/* 넓은 화면(PC·태블릿): 버튼이 다 보이게 줄 바꿈 */
@media (min-width: 700px) { .toggles { flex-wrap: wrap; overflow: visible; max-width: 860px; } }
/* 핸드폰: 옆으로 밀기 + 오른쪽 끝을 흐리게 해서 '더 있음' 표시, 버튼은 조금 작게 */
@media (max-width: 699px) {
  .toggles { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .toggles .tg { height: 36px; padding: 0 12px; font-size: 13px; }
}
.tg { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(25,31,40,.10);
  font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; user-select: none; }
.tg input { display: none; }
.tg:has(input:checked), .tg.on { background: var(--text); border-color: var(--text); color: #fff; }
.tg-note { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--warn); color: #8a5a00; font-size: 12px; font-weight: 600; }

.findpanel { margin-top: 6px; max-width: 560px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 4px; font-size: 13px; color: var(--sub); position: sticky; top: 0; background: #fff; }

.fabs { position: absolute; z-index: 25; right: 12px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.fab { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--sub); cursor: pointer; }
.fab svg { width: 22px; height: 22px; }
.fab:has(input:checked) { background: var(--primary); color: #fff; }

.pick-hint { position: absolute; z-index: 40; top: calc(110px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 10px 10px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }
.pick-hint button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }

/* ---------- 지도 표시물 ---------- */
.dot { --c: #6b6f75; --s: 24px; display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: var(--s); height: var(--s); padding: 0 4px; border-radius: 999px;
  background: var(--c); color: #fff; font-size: calc(var(--s) * .46); font-weight: 800; line-height: 1; border: 2px solid #fff; outline: 1px solid rgba(0,0,0,.22); }
.dot.st-진행중 { background: #fff; color: var(--ok); border: 3px solid var(--ok); }
.dot.st-완료 { background: var(--done); }
.dot.st-불가 { background: var(--ng); }
.dot.st-불가포함 { background: var(--mix); }
.mk { position: relative; transform: translate(-50%, -16px); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.mk .dw { position: relative; }
.mk .dw .ic { position: absolute; right: -9px; top: -8px; }
.mk .lb { margin-top: 2px; display: flex; gap: 3px; white-space: nowrap; font-size: 10.5px; font-weight: 700; line-height: 1; }
.mk .lb span { background: #fff; border-radius: 6px; padding: 3px 5px; border: 1px solid rgba(0,0,0,.12); }
.mk .lb .tp { color: var(--primary-text); }
.mk .lb .tm { color: var(--sub); }
.mk .lb:empty { display: none; }
body.notp .mk .tp { display: none; }
/* 핀은 캔버스 한 장에 그린다 (카카오 지도 위에 겹침, 터치는 지도로 통과) */
.pin-canvas { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.pin-canvas.off { visibility: hidden; }
.bubble { transform: translate(-50%, -50%); min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.25); background: #6b6f75; cursor: pointer; }
.me { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47,91,234,.22); transform: translate(-50%, -50%); }

/* ---------- 시트(패널) 공통 ---------- */
.panel { position: absolute; z-index: 36; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: up .22s ease-out; overscroll-behavior: contain; transition: top .2s ease; }
.panel.dragging { transition: none; }
.panel.full { top: env(safe-area-inset-top) !important; border-radius: 0; }
@keyframes up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 8px auto 0; flex: none; }
@media (min-width: 900px) {
  .panel { top: 12px; bottom: 12px; width: 420px; border-radius: 18px; box-shadow: var(--shadow); }
  .listpanel { left: 12px; right: auto; top: 112px; width: 380px; }
  .dview { right: 12px; left: auto; }
  .grab { display: none; }
}

/* ---------- 목록 ---------- */
.listpanel { top: 22vh; }
.p-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; }
.p-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-title > b { font-size: 17px; font-weight: 800; }
.acct-line { font-size: 12px; color: var(--muted); }
.acct-line b { color: var(--primary-text); }
.lp-filter { padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.frow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.fl { width: 30px; flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.frow select { height: 32px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 8px; background: #fff; font-size: 13px; }
.lp-list { flex: 1; overflow-y: auto; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.chip { height: 38px; padding: 0 14px !important; font-size: 13.5px !important; border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 0 11px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.chip.on { background: var(--primary-soft); color: var(--primary-text); border-color: #bccbff; }
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--soft2); font-size: 14px; cursor: pointer; }
.rowlist li:active { background: var(--soft); }
.rowlist li .t { flex: 1; min-width: 0; font-weight: 600; }
.rowlist li small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowlist li .dist { font-size: 12.5px; font-weight: 700; color: var(--primary-text); white-space: nowrap; }
.rowlist li .r { font-size: 12px; color: var(--sub); font-weight: 700; white-space: nowrap; background: var(--soft); border-radius: 999px; padding: 3px 8px; }

/* ---------- 상세 ---------- */
.dview { top: 34vh; font-size: var(--fs, 15px); overflow-y: auto; display: block; background: var(--soft); }
/* 아래 고정 버튼줄 (엄지 위치) */
.d-bar { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(25,31,40,.06); }
.d-bar button { height: 56px; border: 0; border-radius: 14px; background: var(--soft); font-size: 13px; font-weight: 700; color: var(--sub);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; }
.d-bar button .e { font-size: 19px; line-height: 1; }
.d-bar button[data-st="불가"] { background: var(--ng-soft); color: var(--ng); }
.d-bar button[data-st="완료"] { background: var(--ok); color: #fff; font-size: 15px; }
.d-bar button.on[data-st="완료"] { background: #0b8a63; }
.d-bar button:active { transform: scale(.97); }
.card.flash { box-shadow: 0 0 0 3px var(--primary); transition: box-shadow .3s; }
.dview > .grab { position: sticky; top: 0; z-index: 3; margin: 0; padding: 8px 0 6px; width: auto; height: auto; background: #fff; }
.dview > .grab::after { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto; }
@media (min-width: 900px) { .dview > .grab { display: none; } }
.d-scroll { padding: 0 14px 24px; }
.d-top { padding: 0 14px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.d-head { display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; }
.d-head .ttl { flex: 1; min-width: 0; }
.d-branch { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); border-radius: 6px; padding: 2px 7px; }
.d-head h2 { margin: 6px 0 0; font-size: 1.3em; font-weight: 800; line-height: 1.3; }
.d-addr { margin-top: 4px; color: var(--sub); font-size: .95em; line-height: 1.45; }
.d-addr .r { color: var(--muted); font-size: .92em; }
.d-addr .apt { color: var(--text); font-weight: 600; }
.copy { border: 0; background: var(--soft); color: var(--sub); border-radius: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; margin-left: 4px; vertical-align: 1px; }
.d-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.d-prog .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--soft2); overflow: hidden; }
.d-prog .bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.d-prog b { color: var(--text); }
.st-pill { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--c, #6b6f75); white-space: nowrap; }

.d-actions { display: flex; gap: 6px; margin: 12px -14px 0; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; }
.d-actions::-webkit-scrollbar { display: none; }
.act { flex: none; min-width: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 58px; border: 0; border-radius: 12px; background: var(--soft); font-size: 11.5px; font-weight: 600; color: var(--sub); padding: 0 8px; white-space: nowrap; }
.act .ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.act .ico svg { width: 20px; height: 20px; }
.act.kakao .ico { background: #fee500; color: #191919; }
.act.tmap .ico { background: linear-gradient(135deg, #ff2d55, #7b2cff); color: #fff; }
.act.on { background: var(--primary-soft); color: var(--primary-text); }

.card { background: #fff; border-radius: var(--r); padding: 14px; margin-top: 10px; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h b { font-size: 15px; font-weight: 800; flex: 1; }
.card-h .meta { flex: none; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg.one { grid-template-columns: 1fr; }
.seg button { height: 52px; border: 1.5px solid var(--line2); background: #fff; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--sub); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button .dot { --s: 16px; border-width: 1.5px; box-shadow: none; }
.seg button.on[data-st="완료"] { border-color: var(--done); background: #f1f3f5; color: var(--text); }
.seg button.on[data-st="불가"] { border-color: var(--ng); background: var(--ng-soft); color: var(--ng); }
.seg button.on[data-st="불가포함"] { border-color: var(--mix); background: #f1f3f5; color: var(--mix); }
.find4 { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.find4 input { flex: 1; height: 38px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; font-size: 15px; background: var(--soft); outline: none; }
.find4 input:focus { border-color: var(--primary); background: #fff; }

.memo-row { display: flex; gap: 6px; margin-bottom: 8px; }
.memo-row select { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 8px; background: #fff; font-size: 13px; }
#dMemo { width: 100%; min-height: 76px; font-size: 15px; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--soft); outline: none; resize: vertical; line-height: 1.5; }
#dMemo:focus { border-color: var(--primary); background: #fff; }
.memo-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }

/* 계기 카드 */
.mcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 8px; transition: background .3s, border-color .3s; }
.mcard:first-of-type { margin-top: 0; }
.mcard.hl { background: var(--primary-soft); border-color: var(--primary); }
.mc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-no { width: 22px; height: 22px; border-radius: 7px; background: var(--soft2); color: var(--sub); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mc-mn { font-size: 1.12em; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--soft2); color: var(--sub); white-space: nowrap; }
.tag.typ { background: #eef0ff; color: #4250c8; }
.tag.comm { background: #fff0e6; color: #c2410c; }
.tag.ok { background: var(--ok-soft); color: #0b8a63; }
.tag.ng { background: var(--ng-soft); color: var(--ng); }
.tag.kind { background: #f3f0ff; color: #6741d9; }
.locn { margin-top: 8px; display: flex; align-items: center; gap: 6px; background: var(--warn); border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: .95em; color: #6b4b00; }
.mc-sel { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mc-sel span { font-size: 12px; color: var(--muted); font-weight: 600; }
select.rsn { flex: 1; min-width: 0; height: 44px; font-size: 15px !important; border: 1px solid var(--line2); border-radius: 9px; padding: 0 8px; background: #fff; font-size: 13px; }
select.rsn.set { background: #fff7d6; border-color: #f2c94c; font-weight: 700; }
/* 상세창: 원본처럼 메모 + 버튼줄 + 계기추가 + 계기 한 줄씩 + 항목별 목록 */
.ow { padding: 10px; }
.ow-memo { display: flex; gap: 6px; }
.ow-memo select { flex: none; width: 96px; height: 58px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 4px; background: #fff; font-size: 13px; }
.ow-memo textarea#dMemo { flex: 1; min-height: 58px; height: 58px; padding: 8px 10px; font-size: 15px; }
.ow-bar { display: flex; gap: 5px; margin-top: 8px; align-items: stretch; }
.ob { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 800; color: var(--sub); padding: 0 4px; white-space: nowrap; }
.ob.save, .ob.ic { flex: 0 0 48px; background: #2f80ff; border-color: #2f80ff; color: #fff; font-size: 15px; }
.ob4 { flex: 0 0 58px; min-width: 0; height: 44px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 6px; font-size: 15px; text-align: center; background: var(--soft); outline: none; }
.ob4:focus { border-color: var(--primary); background: #fff; }
.ob.st { flex: 1 1 0; }
.ob.st.on { background: #343a40; border-color: #343a40; color: #fff; }
.ob.ng.on { background: var(--ng); border-color: var(--ng); }
.ob.ok.on { background: #12b886; border-color: #12b886; }
.ow-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ow-sub .link { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; }
.ow-add { padding: 8px 10px 10px; }
.ow-add .blue { color: #2f5bea; margin-bottom: 6px; }
.oa-row { display: flex; gap: 5px; align-items: center; }
.oa-row input { flex: 1 1 0; min-width: 0; height: 40px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 8px; font-size: 14px; background: #fff; }
.oa-row input#addNo { flex: 1.4 1 0; }
.oa { flex: none; height: 40px; min-width: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: #2f80ff; color: #fff; font-size: 14px; font-weight: 800; }
.oa.y { background: #ffe500; color: #191919; }
.oa.main { background: #1c64f2; }
.mlist { background: #e3f7fb; padding: 8px 10px; }
.ml-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; color: var(--sub); font-weight: 700; }
.ml-h .ml-n { margin-left: auto; color: var(--muted); }
.mrow { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: var(--fs, 15px); border-radius: 8px; transition: background .3s; }
.mrow + .mrow { border-top: 1px dashed rgba(0,0,0,.08); }
.mrow.hl { background: #fff3a8; }
.mrow select.rsn { flex: 0 0 74px; height: 36px; font-size: 13px !important; padding: 0 2px; }
.mr-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; line-height: 1.35; }
.mr-mn { font-variant-numeric: tabular-nums; font-weight: 800; }
.mrow.is-ok .mr-mn { color: #0b8a63; }
.mrow.is-ng .mr-mn { color: var(--ng); }
.mr-t .tag { height: 20px; font-size: 11px; padding: 0 5px; }
.isec { padding: 8px 12px; }
.is-h { display: inline-block; background: var(--soft2); border-radius: 8px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; color: var(--sub); margin-bottom: 4px; }
.is-r { font-size: calc(var(--fs, 15px) - 1px); padding: 2px 0 2px 4px; word-break: break-all; }

/* 눌러서 복사 (원본: 복사한 계기번호는 분홍) */
.mr-mn, .cp { cursor: pointer; border-radius: 5px; padding: 0 2px; -webkit-tap-highlight-color: rgba(255,102,255,.3); }
.mr-mn.copied { background: #ff66ff; color: #fff; }
.cp { text-decoration: underline dotted rgba(0,0,0,.25); text-underline-offset: 3px; }
.cp.copied { background: #ffd6ff; }
button.tag.typ { border: 1px solid #c9cff5; cursor: pointer; font-family: inherit; }
button.tag.typ.chk { background: #ffe94d; color: #1f3bd6; border-color: #e6c800; }
.mr-apt { cursor: pointer; text-decoration: underline dotted rgba(0,0,0,.3); text-underline-offset: 3px; }
select.rsn.ng { color: var(--ng); font-weight: 800; border-color: #f5a3a3; background: #fff5f5; }
select.rsn.ok { color: #1f3bd6; background: #fff27a; font-weight: 800; border-color: #e6c800; }
.mrow.sel { background: #fff7c2; }
.mrow.hl { background: #cfdcff !important; outline: 2px solid #2f5bea; }
.is-r.hl { background: #fff27a; border-radius: 6px; font-weight: 700; }
/* 계기위치: 주소 옆·계기 줄에 작게 */
.loc-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 1px 7px; border-radius: 6px; background: #fff3bf; color: #8a5a00; font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: 1px; white-space: normal; word-break: break-all; }
.loc-chip.sm { font-size: 11px; padding: 0 5px; }
/* 한전 보강결과로 완료된 계기 (앱에서 누르기 전) */
.tag.kp { background: #e6f7ef; color: #0b7a55; border: 1px dashed #63c69a; }
/* 추가물량 구분 (보라) */
.tag.addk { background: #7048e8; color: #fff; }
.d-branch.addk { background: #7048e8; color: #fff; }
.tag.dup4 { background: #ffe8cc; color: #d9480f; }
.ml-chk { color: #1f3bd6; background: #fff27a; padding: 0 5px; border-radius: 5px; }
#addNo.short, #plNo.short { color: var(--ng); }
.jump-nav { position: sticky; bottom: 76px; float: right; display: flex; flex-direction: column; gap: 8px; margin-right: 4px; z-index: 5; }
.jump-nav.hidden { display: none; }
.jump-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #2f5bea; color: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.dcu-all { display: flex; margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.tg-plus { border-color: #9fd7b8; color: #0b8a63; font-weight: 800; }
/* 지도 길게 누르기 카드 */
.press-card { position: absolute; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 12px 14px; }
.press-card.hidden { display: none; }
.pc-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pc-h .x-btn { width: 34px; height: 34px; }
.pc-r { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 15px; }
.pc-r .meta { flex: 0 0 42px; }
.pc-b { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tmp-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(-2px, -2px); background: #ff2d8a; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
/* 지점 추가 */
#plusPanel { height: auto !important; max-height: 72vh; }
.plus-body { display: flex; flex-direction: column; gap: 10px; }
.pl-loc { display: flex; gap: 6px; flex-wrap: wrap; }
.pl-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--sub); min-width: 0; flex: none; }
.pl-2 .pl-f { flex: 1 1 0; }
.pl-f input, .pl-f select { height: 42px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; font-size: 15px; background: #fff; min-width: 0; width: 100%; }
.pl-in { display: flex; gap: 5px; }
.pl-in input { flex: 1; }
.pl-2 { display: flex; gap: 8px; }

/* 계기 목록 (상세창 맨 위, 한눈에) */
.mlist .card-h { flex-wrap: nowrap; }
.mlist .card-h b { flex: none; }
.find4i { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 10px; font-size: 14px; background: var(--soft); outline: none; }
.find4i:focus { border-color: var(--primary); background: #fff; }
.mlist .mcard { padding: 8px 10px 4px; margin-top: 5px; }
.mcard.is-ok { background: #f6fbf9; }
.mcard.is-ng { background: #fff6f6; }
.mc-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mc-row .mc-mn { font-size: 1.25em; }
.mc-apt { font-weight: 800; color: var(--text); font-size: 1.02em; }
.mc-row2 { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.mc-row2 select.rsn { flex: 0 1 130px; height: 36px; }
.mc-note { margin-top: 6px; color: var(--ng); font-weight: 700; font-size: .92em; }
.mc-more { margin-top: 2px; }
.mc-more summary { font-size: 11.5px; color: var(--muted); cursor: pointer; padding: 3px 0; list-style-position: inside; }
.mc-more[open] summary { color: var(--sub); }
.mc-more .kv { margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--sub); margin-right: 10px; }
.chk input { width: 18px; height: 18px; accent-color: var(--primary); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: .9em; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; min-width: 0; word-break: break-all; color: var(--text); }
.kv dd.red { color: var(--ng); font-weight: 700; }

.red { color: var(--ng); font-weight: 700; }
.meta { font-size: 12px; color: var(--muted); }
.d-foot { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 2px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--soft2); }
.photos figcaption { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; }
.photos .del { position: absolute; right: 4px; top: 4px; border: 0; border-radius: 50%; width: 24px; height: 24px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.p-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.p-row select { height: 36px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 8px; background: #fff; font-size: 13px; }

/* 아이콘 표시 */
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic-n { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ic-a { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--ng); font-size: 11px; font-weight: 900; border: 1.5px solid var(--ng); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ic-c { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.ic-s { font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.ic-sec { margin-top: 10px; }
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 6px; }
.ic-pick { height: 44px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.ic-pick small { font-size: 9.5px; color: var(--muted); }
.ic-pick.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.ic-pick .ic-n, .ic-pick .ic-a { transform: scale(1.2); }
.ic-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.ic-tools select { height: 32px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 8px; }

/* 계기 추가 */
.add-in { display: flex; gap: 6px; flex-wrap: wrap; }
.add-in input { flex: 1; min-width: 120px; height: 40px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; background: var(--soft); outline: none; font-size: 15px; }
.add-in input:focus { border-color: var(--primary); background: #fff; }
.add-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.add-btns button { height: 54px; border: 0; border-radius: 12px; background: var(--soft); font-size: 12px; font-weight: 700; color: var(--sub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.add-btns button .e { font-size: 17px; }
.add-btns button.main { background: var(--primary); color: #fff; }
#addHint { margin-top: 8px; min-height: 1em; }
.mini { height: 24px; padding: 0 8px; font-size: 11.5px; }

/* 숫자 인식 / 스캐너 / 기타 */
.ocr { position: fixed; left: 0; right: 0; bottom: 0; height: 50vh; z-index: 96; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ocr video { width: 100%; height: 100%; object-fit: cover; }
.ocr-guide { position: absolute; width: 80%; height: 35%; border: 3px solid #4dabf7; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }
.ocr-status { position: absolute; top: 12px; left: 12px; right: 90px; color: #fff; background: rgba(0,0,0,.65); padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.ocr-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.2); color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.ocr-shot { position: absolute; bottom: 20px; background: var(--primary); color: #fff; border: 0; padding: 14px 32px; border-radius: 999px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.toast { position: fixed; z-index: 99; left: 50%; top: calc(118px + env(safe-area-inset-top)); transform: translateX(-50%); background: rgba(25,31,40,.92); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; max-width: 90vw; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.viewer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; }
.scan { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 12px; }
.scan-box { background: #fff; border-radius: 16px; padding: 12px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }

/* ===== 상세창 가독성 (2026-11-11): 내리면 주소 줄 고정 + 버튼 작게 ===== */
/* 틀 고정 주소 줄: 높이 0인 자리에 떠 있어서 내용이 밀리지 않음 */
.d-mini { position: sticky; top: 19px; height: 0; z-index: 4; }
.dm-in { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 4px 10px rgba(0,0,0,.08); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s, transform .15s; }
.dview.mini-on .dm-in { opacity: 1; transform: none; pointer-events: auto; }
.dm-addr { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-addr b { font-weight: 800; }
.dm-n { flex: none; font-size: 12px; font-weight: 700; color: var(--sub); }
.st-pill.sm { font-size: 11px; padding: 2px 7px; flex: none; }
.x-btn.sm { width: 32px; height: 32px; flex: none; }
.x-btn.sm svg { width: 16px; height: 16px; }

/* 머리 부분 줄이기 */
.d-head h2 { font-size: 1.15em; margin-top: 4px; }
.d-prog { margin-top: 6px; }
.d-actions { margin-top: 8px; gap: 5px; }
.act { flex-direction: row; height: 34px; min-width: 0; gap: 5px; padding: 0 10px 0 6px; border-radius: 10px; font-size: 12px; }
.act .ico { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.act .ico svg { width: 16px; height: 16px; }
.d-top { padding-bottom: 8px; }

/* 메모·버튼줄 */
.ow { padding: 8px; }
.ow-memo select { height: 46px; width: 84px; font-size: 12px; }
.ow-memo textarea#dMemo { min-height: 46px; height: 46px; font-size: 14px; padding: 6px 9px; }
.ow-bar { margin-top: 6px; gap: 4px; }
.ob { height: 36px; font-size: 13px; border-radius: 9px; }
.ob.save, .ob.ic { flex: 0 0 42px; font-size: 13px; }
.ob4 { flex: 0 0 52px; height: 36px; font-size: 14px; }
.ow-sub { margin-top: 4px; }

/* 계기추가 줄 */
.ow-add { padding: 6px 8px 8px; }
.ow-add .blue { margin-bottom: 4px; font-size: 11px; }
.oa-row { gap: 4px; }
.oa-row input { height: 34px; font-size: 13px; padding: 0 7px; }
.oa { height: 34px; min-width: 36px; padding: 0 7px; font-size: 13px; }

/* 카드 사이 간격·계기 줄 */
.dview .card { margin-top: 8px; }
.mrow select.rsn { height: 32px; flex-basis: 70px; }
.mrow { padding: 3px 0; }

/* 맨 아래 고정 버튼 */
.d-bar { padding-top: 6px; }
.d-bar button { height: 46px; font-size: 12.5px; }
.d-bar button .e { font-size: 16px; }
#addHint:empty { display: none; }
#addHint { margin-top: 4px; }
