/* Escritório virtual */
:root { --of-bg: #DCD8CF; }
/* o tema escuro inverte a página; o desenho do escritório volta às cores certas e fica mais escuro */
html[data-theme="dark"] .of-stage canvas, html[data-theme="dark"] .of-preview canvas { filter: invert(1) hue-rotate(180deg) brightness(.82); }
.of-root { min-width: 0; }
.of-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.of-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.of-bar select.form-control { width: auto; min-width: 150px; }
.of-ico { min-width: 38px; padding: 6px 9px; font-size: 16px; line-height: 1; }
.of-editbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFF7D1; border: 1px solid #F2C200; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 13.5px; color: #1E1E1E; }
.of-stage { position: relative; height: calc(100vh - 230px); min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--of-bg); touch-action: none; }
.of-stage canvas { display: block; cursor: pointer; }
.of-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.of-zoom .btn { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.of-online { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #1E1E1E; box-shadow: 0 2px 10px rgba(0,0,0,.1); max-width: 200px; }
.of-online strong { display: block; margin-bottom: 4px; }
.of-online div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0; }
.of-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.of-conn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #1E1E1E; color: #F2C200; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; }
.of-card { position: absolute; right: 12px; top: 12px; width: 280px; max-width: calc(100% - 24px); background: #fff; color: #1E1E1E; border-radius: 14px; padding: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.of-card-x { position: absolute; right: 6px; top: 6px; }
.of-card-head { display: flex; gap: 10px; align-items: center; padding-right: 24px; }
.of-card-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.of-editor { display: flex; gap: 18px; flex-wrap: wrap; }
.of-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #F4F1EA; border-radius: 14px; padding: 10px; flex: 0 0 200px; margin: 0 auto; }
.of-fields { flex: 1; min-width: 240px; }
.of-fields .form-label { margin: 10px 0 6px; display: block; }
.of-swatches, .of-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.of-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; }
.of-sw.active { outline: 3px solid #F2C200; outline-offset: 2px; }
.of-opt.active { background: #F2C200 !important; color: #1E1E1E; }
@media (max-width: 700px) {
  .of-stage { height: 62vh; min-height: 360px; }
  .of-online { display: none; }
  .of-bar select.form-control { min-width: 0; flex: 1; }
}
