/* 4VB Office — base styles, fonts, project page, note page */
@font-face { font-family: 'Russo One'; src: url('/art/assets/RussoOne-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 400; src: url('/art/assets/Poppins-400-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500; src: url('/art/assets/Poppins-500-latin.woff2') format('woff2'); font-display: swap; }
html, body { margin: 0; height: 100%; background: #E9E9E9; }
#view { position: fixed; inset: 0; }
#view:empty { display: none; }

.vbv-root { position: fixed; inset: 0; display: flex; flex-direction: column; background: #E9E9E9; font-family: 'Poppins', system-ui, sans-serif; color: #141414; }
.vbv-root svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbv-wrap { flex: 1; display: flex; min-height: 0; }
.vbv-side { width: 250px; flex: none; background: #141414; color: #F4F4F4; padding: 14px 10px; overflow: auto; }
.vbv-sidehead { font-family: 'Russo One', sans-serif; font-size: 12px; color: #DF1F46; letter-spacing: 1px; margin: 10px 8px 8px; }
.vbv-fold { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; color: #F4F4F4; padding: 9px 12px; border-radius: 10px; cursor: pointer; font: 14px 'Poppins', sans-serif; }
.vbv-fold span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vbv-fold:hover { background: #262626; } .vbv-fold.on { background: #00E85A; color: #141414; font-weight: 600; }
.vbv-fold svg { width: 18px; height: 18px; flex: none; } .vbv-add { color: #00E85A; }
.vbv-person { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; }
.vbv-person small { margin-left: auto; color: #FFD500; font-size: 10px; font-weight: 600; }
.vbv-av { width: 26px; height: 26px; border-radius: 50%; background: #DF1F46; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
.vbv-main { flex: 1; overflow: auto; padding: 26px 30px 60px; }
.vbv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vbv-head h1 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 30px; margin: 0; flex: 1; min-width: 200px; }
.vbv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.vbv-btn { border: 0; border-radius: 10px; padding: 10px 16px; background: #141414; color: #F4F4F4; font: 600 14px 'Poppins', sans-serif; cursor: pointer; box-shadow: 0 4px 0 #5C343B; }
.vbv-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #5C343B; } .vbv-btn.green { background: #00E85A; color: #141414; box-shadow: 0 4px 0 #1F2A24; }
.vbv-hint { color: #5E6B63; font-size: 13px; margin: -6px 0 14px; }
.vbv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.vbv-card { position: relative; text-align: left; background: #fff; border: 3px solid #141414; border-radius: 14px; padding: 16px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; box-shadow: 0 5px 0 #141414; font-family: 'Poppins', sans-serif; outline: none; }
.vbv-card:hover, .vbv-card:focus { transform: translateY(-2px); box-shadow: 0 7px 0 #141414; }
.vbv-card svg { width: 30px; height: 30px; color: #DF1F46; }
.vbv-card b { font-size: 15px; word-break: break-word; } .vbv-card small { color: #5E6B63; font-size: 12px; }
.vbv-ccanvas { border-color: #DF1F46; box-shadow: 0 5px 0 #DF1F46; } .vbv-cnote svg { color: #141414; } .vbv-cfolder { background: #141414; color: #00E85A; } .vbv-cfolder svg { color: #00E85A; } .vbv-cfolder:hover { box-shadow: 0 7px 0 #5C343B; }
.vbv-chip { position: absolute; right: 44px; top: 14px; font-size: 10px; background: #FFD500; border-radius: 6px; padding: 2px 6px; font-weight: 600; }
.vbv-more { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: #F1F1F1; cursor: pointer; font-size: 18px; }
.vbv-empty, .vbv-msg { color: #8a8a8a; padding: 30px 4px; grid-column: 1 / -1; }
.vbv-modalbg { position: fixed; inset: 0; background: rgba(10,10,10,.6); z-index: 9999; display: grid; place-items: center; padding: 16px; }
.vbv-modal { background: #F4F4F4; border-radius: 16px; width: min(620px, 100%); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; border: 4px solid #141414; }
.vbv-mhead { display: flex; align-items: center; background: #141414; color: #00E85A; font-family: 'Russo One', sans-serif; font-size: 18px; padding: 12px 16px; }
.vbv-mhead span { flex: 1; } .vbv-x { border: 0; background: #DF1F46; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.vbv-mbody { padding: 16px; overflow: auto; font-family: 'Poppins', sans-serif; }
.vbv-note { color: #5E6B63; font-size: 13px; margin-top: 0; }
.vbv-dbox { background: #fff; border: 2px solid #141414; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.vbv-dbox h3 { margin: 0 0 8px; font-family: 'Russo One', sans-serif; font-weight: 400; }
.vbv-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; } .vbv-check input { width: 18px; height: 18px; accent-color: #00B347; }
.vbv-flist { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 10px; padding: 8px 10px; background: #F4F4F4; border-radius: 8px; }
.vbv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ddd; }
.vbv-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: #141414; color: #FFD500; padding: 10px 18px; border-radius: 12px; font: 14px 'Poppins', sans-serif; opacity: 0; transition: .2s; z-index: 100002; }
.vbv-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* note page */
.vbn-bar { flex: none; background: #1d1d1d; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid #000; }
.vbn-banner { display: none; background: #FFD500; color: #141414; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.vbn-banner.on { display: block; }
.vbn-scroll { flex: 1; overflow: auto; padding: 30px 16px 80px; }
.vbn-paper { max-width: 820px; margin: 0 auto; background: #fff; border: 3px solid #141414; border-radius: 16px; box-shadow: 0 6px 0 #141414; padding: 30px 40px 60px; min-height: 60vh; }
.vbn-title { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 32px; margin: 0 0 18px; color: #DF1F46; }
.vbn-ed.vbc-text { position: static; padding: 0; overflow: visible; min-height: 40vh; font-size: 17px; }
.vbn-locked .vbn-ed { opacity: .85; }

@media (max-width: 700px) {
  .vbv-wrap { flex-direction: column; } .vbv-side { width: auto; max-height: 34vh; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .vbv-side .vbv-fold { width: auto; padding: 7px 10px; } .vbv-sidehead { width: 100%; margin: 4px 6px; } .vbv-person { display: none; }
  .vbv-main { padding: 16px 14px 40px; } .vbv-head h1 { font-size: 24px; } .vbv-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .vbn-paper { padding: 20px 18px 40px; border-radius: 12px; } .vbn-scroll { padding: 14px 8px 60px; }
}

/* project home: the way into every file of the project */
.vbph-files { position: fixed; right: 18px; bottom: 18px; z-index: 50; border: 3px solid #F4F4F4; background: #141414; color: #00E85A; font: 15px 'Russo One', sans-serif; letter-spacing: 1px; padding: 10px 18px; border-radius: 12px; cursor: pointer; box-shadow: 0 5px 0 #DC2046; }
.vbph-files:hover { color: #FFD500; }
.vbph-report { position: fixed; right: 176px; bottom: 18px; z-index: 50; border: 3px solid #F4F4F4; background: #DC2046; color: #fff; font: 15px 'Russo One', sans-serif; letter-spacing: 1px; padding: 10px 18px; border-radius: 12px; cursor: pointer; box-shadow: 0 5px 0 #5C343B; }
.vbph-report:hover { color: #FFD500; }
