html, body { margin: 0; min-height: 100%; }
body { color: #3c3c3c; }
body.blur { filter: blur(10vh); }
[hidden] { display: none !important; }
button, input, select, textarea { box-sizing: border-box; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid purple; outline-offset: 2px; }
textarea { font: 12px monospace; background: #f2f2f2; color: #3c3c3c; padding: 11px; border: 0; border-radius: 0; }
textarea#textValue { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; }
.app-shell { position: fixed; inset: 0; display: flex; flex-direction: column; }
.app-shell.private { flex-direction: column-reverse; }
.app-header { flex: 0 0 auto; min-height: 33px; padding: 4px; box-sizing: border-box; display: flex; align-items: center; gap: 5px; background: white; z-index: 2; }
.view-heading { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.view-body { flex: 1; min-height: 0; position: relative; overflow: auto; }
.muted, .status, .word-count { font: 12px Helvetica, sans-serif; }
.muted, .word-count { color: #777; }
.word-count { padding: 0 4px; background: none; border: none; }
.status { white-space: normal; overflow-wrap: anywhere; }
.private-label { font: 12px Helvetica, sans-serif; background: #999; color: white; padding: 2px 5px; border-radius: 4px; }
.reader pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.reader-footer { text-align: center; padding: 50px; }
.initializing { text-align: center; margin-top: 40vh; }
.login-screen { min-height: 100vh; display: flex; justify-content: center; align-items: center; flex-direction: column; font-family: sans-serif; }
.login-screen h1 { font: 50px Rochester, cursive; font-weight: 400; }
.login-screen p { max-width: 40rem; padding: 0 20px; text-align: center; }
.inventory .artbin-wrapper { min-height: 100%; align-items: flex-start; }
.inventory-content { width: 100%; min-width: 0; }
.inventory .item-editor { position: sticky; top: 0; max-height: 100%; overflow: auto; box-sizing: border-box; padding: 22px; background: white; flex-shrink: 0; }
.inventory .item-editor fieldset { box-sizing: border-box; }
.inventory textarea#artbin-item-editor { height: 180px; flex-shrink: 0; }
.inventory .partsbin-table-view { overflow: visible; }
.inventory .parts table { margin-top: 30px; }
.inventory table.artbin { margin-top: 30px; }
.parts-bin-header { gap: 12px; flex-wrap: wrap; }
.partsbin-mode-selector { display: flex; }
.parts-bin-header input[type=search] { width: 160px; }
.store-view section { padding: 30px; }
.store-view h2 { font: 100 24px sans-serif; text-transform: uppercase; }
.store-items { display: flex; flex-wrap: wrap; gap: 20px; }
.store-item { width: 200px; padding: 0; border: 0; background: transparent; text-align: left; }
.store-item.selected { outline: 2px solid purple; }
.store-item img { object-fit: contain; }
.store-placeholder { display: flex; width: 200px; height: 200px; align-items: flex-end; justify-content: flex-end; padding: 20px; box-sizing: border-box; overflow: hidden; background: rgba(0,0,0,.01); color: rgba(0,0,0,.1); border: 1px solid rgba(0,0,0,.02); font: bold 50px sans-serif; overflow-wrap: anywhere; }
.store-name { display: block; margin: 1em 0; font-family: monospace; overflow-wrap: anywhere; }
.search-results { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; }
.artbin-bin.search-match { box-shadow: 0 0 0 3px #d29500; }
.empty-inventory { padding: 30px; font-family: sans-serif; }
@media (max-width: 700px) {
  .artbin-wrapper.editor-open > .inventory-content { width: 40%; }
  .artbin-wrapper.editor-open > .item-editor { width: 60%; padding: 10px; }
  .item-editor fieldset, textarea#artbin-item-editor { width: 100%; }
  table.artbin { width: 95%; border-spacing: 3px; }
  .cell.no-image span.label { font-size: 16px; }
  .parts table { width: 100%; border-spacing: 2px; font-size: 12px; }
  .parts table img { max-width: 50px; }
}
