/* Desktop workbench, keyboard and mouse. */
body { min-width: 1000px; }
.wb-toolbar, #wb-selectionbar, #wb-context, .wb-window { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #ded8cb; font-size: 13px; }
.wb-toolbar { position: absolute; z-index: 48; top: 54px; left: 18px; display: flex; align-items: center; gap: 5px; padding: 7px; border: 1px solid #66533b; border-radius: 8px; background: #151819f2; box-shadow: 0 6px 24px #0008; }
.wb-toolset { display: flex; gap: 3px; }
.wb-toolbar button { min-width: 32px; height: 32px; }
.wb-divider { width: 1px; height: 24px; margin: 0 3px; background: #534739; }
.wb-toolbar select { width: 135px; }
.wb-toolbar button, .wb-toolbar select, #wb-selectionbar button, #wb-context button, #wb-context select, .wb-window button, .wb-window input, .wb-window select, .wb-window textarea { font: inherit; color: inherit; border: 1px solid #4d493e; border-radius: 4px; background: #232727; padding: 6px 9px; }
.wb-toolbar button:hover, #wb-selectionbar button:hover, #wb-context button:hover, .wb-window button:hover { background: #37382f; border-color: #ad9061; }
.wb-toolbar button.active, .wb-window button.active, .wb-window .wb-primary, .wb-toolbar .wb-primary { color: #191b1a; background: #c6a975; border-color: #d6be97; }
.wb-toolbar button:disabled, .wb-window button:disabled, #wb-context button:disabled, #wb-selectionbar button:disabled { opacity: .35; cursor: default; }
.wb-toolbar :focus-visible, .wb-window :focus-visible, #wb-context :focus-visible { outline: 2px solid #8fbfb3; outline-offset: 2px; }
#wb-selectionbar { position: absolute; z-index: 47; left: 18px; bottom: 12px; max-width: calc(100% - 100px); display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 6px; background: #111617ed; border: 1px solid #494b41; box-shadow: 0 4px 16px #0006; }
#wb-selectionbar span { color: #aaa99c; max-width: 640px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wb-context { position: fixed; z-index: 10000; width: 244px; padding: 7px; border: 1px solid #7a674a; border-radius: 7px; background: #161b1b; box-shadow: 0 12px 45px #000b; }
#wb-context button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-color: transparent; background: transparent; }
#wb-context button:hover { background: #303731; }
#wb-context hr { border: 0; border-top: 1px solid #42463b; margin: 5px 0; }
.wb-menu-title { padding: 7px 10px; color: #cfb47e; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.wb-menu-layer { display: flex; align-items: center; gap: 14px; padding: 6px 10px; }
.wb-danger { color: #edaaa0 !important; }
.wb-window { position: fixed; z-index: 95; left: calc(100vw - 700px); top: 94px; width: 650px; height: 690px; max-height: calc(100vh - 116px); min-width: 490px; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; resize: both; background: #171c1df5; border: 1px solid #766346; border-radius: 9px; box-shadow: 0 20px 70px #000b; }
.wb-window > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 12px; background: #202524; border-bottom: 1px solid #444b40; cursor: move; user-select: none; }
.wb-window h2 { margin: 3px 0 0; color: #e8d4ad; font: 24px Georgia, serif; }
.wb-window .eyebrow { margin: 0; font: 10px system-ui, sans-serif; letter-spacing: .12em; color: #a1a38f; text-transform: uppercase; }
.wb-window .icon-button { font-size: 23px; padding: 1px 10px; }
.wb-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 14px; border-bottom: 1px solid #393f37; }
.wb-tabs button { font-size: 11px; padding: 5px 7px; }
.wb-body { overflow: auto; padding: 17px 20px 35px; flex: 1; scrollbar-color: #626959 #1a2020; }
.wb-body h3 { margin: 0 0 12px; font-size: 16px; color: #dcc49a; }
.wb-body h3:not(:first-child) { margin-top: 24px; }
.wb-body label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; color: #bfc1b1; }
.wb-body input, .wb-body select, .wb-body textarea { width: 100%; min-height: 33px; box-sizing: border-box; }
.wb-body textarea { min-height: 75px; resize: vertical; }
.wb-body input[type="checkbox"], .wb-body input[type="radio"] { width: 15px; min-height: 15px; height: 15px; accent-color: #bd9f69; }
.wb-body input[type="color"] { padding: 3px; }
.wb-check, .wb-body label:has(input[type="checkbox"]), .wb-body label:has(input[type="radio"]) { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.wb-help, .wb-empty { color: #a0a699; line-height: 1.6; margin: 10px 0 16px; }
.wb-empty { padding: 22px; text-align: center; background: #222928; border-radius: 5px; border: 1px dashed #455044; }
.wb-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.wb-actions button { font-size: 12px; }
.wb-row { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #353d36; }
.wb-row > span, .wb-row > div:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wb-row small, .wb-row strong { display: block; }
.wb-row small { color: #9b9f91; margin-top: 4px; font-size: 11px; }
.wb-row button { flex-shrink: 0; font-size: 11px; }
.wb-row label { margin: 0; }
.wb-grid, .wb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wb-scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.wb-scene-card, .wb-card { padding: 12px; border: 1px solid #424c41; border-radius: 6px; background: #202725; margin: 12px 0; }
.wb-scene-card.active, .wb-card.active { border-color: #bda274; box-shadow: inset 0 0 0 1px #bda274; }
.wb-scene-card img, .wb-card > img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.wb-scene-card strong, .wb-card strong { display: block; margin: 6px 0; }
.wb-card small, .wb-scene-card small { color: #a4a994; font-size: 11px; }
.wb-card .wb-actions { margin-bottom: 0; }
.wb-muted { opacity: .5; }
.wb-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.wb-metrics article { padding: 14px 8px; background: #242e29; border-radius: 6px; text-align: center; }
.wb-metrics strong { display: block; font-size: 23px; color: #e0c797; }
.wb-metrics small { display: block; font-size: 11px; margin-top: 7px; color: #9aa994; }
.wb-window details { padding: 12px 0; border-top: 1px solid #394238; }
.wb-window summary { cursor: pointer; color: #cfb587; padding: 5px 0; }
.wb-change { display: grid; grid-template-columns: 1.3fr 1fr 70px 28px; gap: 5px; margin: 7px 0; }
.wb-change input { min-width: 0; }
#wb-overlay, #wb-drawings, #wb-pings { position: absolute; inset: 0; pointer-events: none; }
#wb-overlay { z-index: 34; overflow: visible; fill: #8edac433; stroke: #a8e5d2; stroke-width: 2; }
#wb-overlay text { stroke: #142925; stroke-width: 4px; paint-order: stroke; fill: #f4f5cf; font-family: system-ui, sans-serif; }
#wb-drawings { z-index: 13; overflow: visible; stroke-width: 3; }
.wb-note { filter: drop-shadow(1px 2px 2px #000); }
.wb-geometry-dim .scene-wall { opacity: .42; }
#wb-pings { z-index: 35; }
.wb-ping { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 3px solid #e7cb8d; border-radius: 50%; animation: wb-ping 1.2s ease-out 2; box-shadow: 0 0 12px #0007; }
.wb-ping span { position: absolute; left: 50%; top: 53px; transform: translateX(-50%); white-space: nowrap; color: #fff0c8; background: #101b18dc; padding: 4px 8px; border-radius: 4px; font: 13px system-ui, sans-serif; }
@keyframes wb-ping { 0% { transform: scale(.25); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.token.wb-selected { outline: 3px solid #a6dbc0; outline-offset: 4px; box-shadow: 0 0 0 7px #122b21aa, 0 6px 18px #0009; }
.token.wb-inactive-layer { opacity: .64; }
.token.wb-locked-token { cursor: default; }
.wb-status-icons { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; z-index: 2; pointer-events: none; }
.wb-status-icons i { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #c0b182; border-radius: 5px; color: #fff1c3; background: #26332dee; font: 13px system-ui, sans-serif; }
.wb-status-icons + .token-name { bottom: -30px; }
.wb-toolbar[hidden], #wb-selectionbar[hidden], #wb-context[hidden], .wb-window[hidden], .wb-toolbar [hidden] { display: none !important; }
.quickbar-panel { bottom: 57px; }
.wb-toolbar { top: 12px; }
.combat-tracker { top: 122px; }
.scene-ribbon { top: 12px; right: 15px; max-width: 250px; pointer-events: none; }
.token-layer { z-index: 10; }
.fog-layer { z-index: 32; }
.token.wb-inactive-layer { pointer-events: none; }
.wb-layer-row { display: grid; grid-template-columns: 1fr 100px 88px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #394238; }
.wb-layer-row label { margin: 0; font-size: 11px; }
.wb-layer-row > button { text-align: left; }
.wb-library-card { padding: 13px; background: #202725; border: 1px solid #424c41; border-radius: 6px; margin: 12px 0; }
.wb-library-card strong { display: block; margin: 7px 0; font-size: 15px; }
.wb-library-card small, .wb-library-card span { color: #a4a994; font-size: 11px; }
.wb-form { margin: 12px 0 22px; }
.wb-file-button { border: 1px solid #6b7058; padding: 7px 10px; border-radius: 4px; cursor: pointer; margin: 0 !important; }
