html.wbc-open, html.wbc-open body { overflow: hidden; }
.wbc { position: fixed; inset: 0; z-index: 100000; background: #000; color: #fff; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; display: grid; }
.wbc *, .wbc *::before, .wbc *::after { box-sizing: border-box; }
.wbc__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wbc__shade { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wbc__frame { position: relative; width: 82%; max-width: 560px; height: 38%; max-height: 260px; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); border: 3px solid rgba(255, 255, 255, .9); overflow: hidden; transition: border-color .2s; }
.wbc__line { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff7a4d; box-shadow: 0 0 12px #ff7a4d; animation: wbc-scan 1.8s ease-in-out infinite; }
@keyframes wbc-scan { 0%, 100% { transform: translateY(-60px); } 50% { transform: translateY(60px); } }
.wbc.is-found .wbc__frame { border-color: #6cd48a; box-shadow: 0 0 0 9999px rgba(20, 70, 35, .6); }
.wbc.is-found .wbc__line { display: none; }
.wbc__top { position: absolute; top: 0; left: 0; right: 0; padding: calc(18px + env(safe-area-inset-top)) 20px 16px; text-align: center; background: linear-gradient(rgba(0, 0, 0, .65), transparent); }
.wbc__top b { display: block; font-size: 19px; font-weight: 800; }
.wbc__top small { display: block; font-size: 14px; opacity: .85; margin-top: 2px; }
.wbc__msg { position: absolute; left: 16px; right: 16px; bottom: calc(108px + env(safe-area-inset-bottom)); text-align: center; font-weight: 800; font-size: 15px; }
.wbc__msg:empty { display: none; }
.wbc__msg { padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .6); max-width: 560px; margin: 0 auto; }
.wbc__msg--ok { background: #2f7a47; }
.wbc__msg--warn { background: #8a6110; }
.wbc__msg--error { background: #a23a2f; }
.wbc__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.wbc__btn { min-height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; backdrop-filter: blur(6px); }
.wbc__btn[hidden] { display: none; }
.wbc__btn.is-on { background: #ffd34d; color: #2e1d17; }
.wbc__close { background: #fff; color: #2e1d17; } .wppm-scan-row { display: flex; gap: 8px; align-items: stretch; }
.wppm-scan-row > input { flex: 1; min-width: 0; }
.wppm-scan-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; padding: 0 12px; border: 0; border-radius: 14px; background: #2b2522; color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.wppm-scan-btn:disabled { opacity: .45; cursor: default; }
.wppm-scan-btn--small { min-width: 38px; min-height: 38px; padding: 0 8px; border-radius: 11px; } .wip-cap, .wip-view { --wip-ink: #2e1d17; --wip-ink-2: #6f5f57; --wip-ink-3: #a3958d; --wip-line: #eadfd6; --wip-accent: #cf6d47; --wip-accent-soft: #f8e1d5; --wip-green: #4c8b5c; --wip-red: #c4453a; --wip-dark: #2b2522;
font-family: 'Nunito', 'WppmNunito', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--wip-ink); }
.wip-cap *, .wip-view * { box-sizing: border-box; }
.wip-cap button, .wip-view button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
.wip-cap button:disabled, .wip-view button:disabled { opacity: .4; cursor: default; }
.wip-grow { flex: 1; min-width: 0; }
.wip-btn { min-height: 46px; padding: 0 18px; border-radius: 14px; background: #ece2d9; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wip-btn--accent { background: var(--wip-accent) !important; color: #fff !important; box-shadow: 0 10px 20px -12px rgba(207, 109, 71, .9); }
.wip-link { color: #b4542f !important; font-weight: 800; font-size: 13px; text-decoration: underline; }
.wip-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.wip-msg--error { background: #f8dcd8; color: #8d2a21; } .wip-lead { margin: 0 0 14px; color: var(--wip-ink-2); font-size: 15px; line-height: 1.45; }
.wip-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.wip-page { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px -6px rgba(66, 24, 18, .25); display: flex; flex-direction: column; }
.wip-page img, .wip-page__file { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #f5ede6; }
.wip-page__file { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--wip-ink-2); font-weight: 800; }
.wip-page figcaption { padding: 6px 8px 8px; line-height: 1.25; }
.wip-page figcaption b { display: block; font-size: 14px; }
.wip-page figcaption small { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--wip-ink-2); font-weight: 700; }
.wip-page.is-shrink img, .wip-page.is-upload img { opacity: .55; }
.wip-page.is-error { outline: 2px solid var(--wip-red); }
.wip-ok { color: var(--wip-green) !important; }
.wip-err { color: var(--wip-red) !important; white-space: normal; }
.wip-page__tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.wip-page__tools button { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.wip-shot { aspect-ratio: 3 / 4.6; border-radius: 16px; border: 2.5px dashed var(--wip-accent); background: var(--wip-accent-soft); color: #b4542f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; cursor: pointer; }
.wip-shot b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.wip-shot small { font-size: 12px; font-weight: 700; opacity: .8; }
.wip-shot.is-disabled { opacity: .45; pointer-events: none; }
.wip-alt { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 46px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px -6px rgba(66, 24, 18, .2); font-weight: 800; font-size: 14px; cursor: pointer; padding: 0 12px; text-align: center; }
.wip-note { margin: 10px 2px 0; font-size: 13px; color: var(--wip-ink-2); font-weight: 700; }
.wip-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--wip-line); flex-wrap: wrap; }
.wip-foot__info { flex: 1; color: var(--wip-ink-2); font-weight: 700; font-size: 14px; min-width: 140px; }
.wip-foot .wip-btn { min-width: 140px; } .wip-view { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; border-radius: 18px; box-shadow: 0 4px 14px -6px rgba(66, 24, 18, .2); overflow: hidden; }
.wip-view__bar { display: flex; align-items: center; gap: 2px; padding: 6px 6px; border-bottom: 1px solid var(--wip-line); flex-wrap: wrap; row-gap: 4px; background: #fbf8f5; }
.wip-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: #ece2d9; }
.wip-tabs button { min-height: 30px; padding: 0 10px; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--wip-ink-2); white-space: nowrap; }
.wip-tabs button.is-on { background: #fff; color: var(--wip-ink); box-shadow: 0 2px 6px -2px rgba(66, 24, 18, .25); }
.wip-tabs em { font-style: normal; font-size: 11px; color: var(--wip-ink-3); margin-left: 2px; }
.wip-tool { width: 28px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--wip-ink-2); }
.wip-tool:hover:not(:disabled) { background: #ece2d9; color: var(--wip-ink); }
.wip-count { font-weight: 800; font-size: 13px; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.wip-stage { position: relative; flex: 1; min-height: 240px; overflow: hidden; background: #3b3431; touch-action: none; cursor: grab; user-select: none; }
.wip-stage.is-pan { cursor: grabbing; }
.wip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.wip-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.wip-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: #f3e9e2; font-weight: 700; font-size: 14px; cursor: default; }
.wip-empty b { font-size: 16px; }
.wip-empty--error { color: #ffc7bd; }
.wip-view__foot { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--wip-ink-2); border-top: 1px solid var(--wip-line); }
.wip-view__foot .wip-grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wme-work--side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 38%); gap: 14px; align-items: start; } .wme-work--side .wme-tr { grid-template-columns: minmax(150px, 200px) repeat(var(--cols), minmax(130px, 1fr)); }
.wme-work--side .wme-td.has-scan .wppm-scan-btn { display: none; }
.wme-work--side .wme-in { font-size: 13px; padding-left: 7px; padding-right: 7px; }
.wme-work--side .wme-in--mono { letter-spacing: 0; }
.wme-side { position: sticky; top: 12px; height: calc(100vh - 220px); min-height: 420px; z-index: 3; }
.wp-admin .wme-side { top: 44px; height: calc(100vh - 250px); }
.wme-tr.is-active > .wme-td--pet { box-shadow: inset 4px 0 0 var(--wme-blue); background: var(--wme-blue-soft); }
.wme-vacc { color: var(--wme-green) !important; font-weight: 800; }
.wme-vacc--none { color: var(--wme-ink-3) !important; }
.wme-td.has-scan { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; align-items: center; align-content: center; }
.wme-td.has-scan > small, .wme-td.has-scan::before { grid-column: 1 / -1; }
.wme-docrow { grid-column: 1 / -1; margin: 6px 8px 6px; }
.wme-docrow summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--wme-blue); padding: 6px 4px; list-style: none; }
.wme-docrow summary::-webkit-details-marker { display: none; }
.wme-docrow summary::after { content: '▾'; margin-left: 2px; }
.wme-docrow:not([open]) summary::after { content: '▸'; }
.wme-docrow .wip-view { height: 56vh; min-height: 300px; max-height: 620px; }
@container wme (max-width: 759px) {
.wme-tr.has-doc { display: flex; flex-direction: column; }
.wme-tr.has-doc > .wme-td--pet { order: -1; }
.wme-docrow { margin: 2px 6px 4px; }
}
.wme-modal { position: fixed; inset: 0; z-index: 99990; background: rgba(43, 37, 34, .55); display: grid; place-items: center; padding: 16px; }
.wme-modal__box { background: var(--wme-bg, #f5ede6); border-radius: 22px; padding: 16px 18px 18px; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.wme-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wme-modal__head h3 { font-size: 19px; font-weight: 800; margin: 0; }