.vw { max-width: 1100px; margin: 0 auto; padding: 12px 16px calc(24px + var(--sab)); }
.vw-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 6px 0 14px; }
.vw-title { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; }
.vw-title h1 { margin: 0; font-size: 18px; word-break: break-word; }
.vw-meta { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }
.vw-desc { color: var(--text-body); font-size: 14px; margin: 0 0 12px; white-space: pre-wrap; }
.vw-stage { background: var(--card); border: .5px solid var(--border); border-radius: var(--radius); min-height: 240px; overflow: hidden; position: relative; }
.vw-stage:fullscreen { background: var(--background); overflow: auto; }
.vw-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px; border-bottom: .5px solid var(--border-subtle); background: var(--surface); font-size: 14px; }
.vw-bar .grow { flex: 1; }
.vw-bar input { width: 64px; text-align: center; min-height: 36px; font-size: 16px; }
.vw-canvas { overflow: auto; max-height: 80vh; display: flex; justify-content: center; padding: 12px; background: var(--muted); }
.vw-stage:fullscreen .vw-canvas { max-height: calc(100vh - 56px); }
.vw-canvas canvas { box-shadow: 0 2px 10px rgba(0,0,0,.15); background: #fff; max-width: none; }
.vw-img { display: flex; justify-content: center; align-items: center; overflow: auto; max-height: 80vh; padding: 12px; background: var(--muted); cursor: zoom-in; }
.vw-img img { max-width: 100%; height: auto; transition: transform .15s; transform-origin: center top; }
.vw-img.zoom { cursor: zoom-out; } .vw-img.zoom img { max-width: none; }
.vw-text { margin: 0; padding: 14px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 80vh; overflow: auto; color: var(--text-body); }
.vw-doc { padding: 20px; max-height: 80vh; overflow: auto; color: var(--text-body); font-size: 15px; }
.vw-doc img { max-width: 100%; height: auto; }
.vw-doc table, .vw-sheet table { border-collapse: collapse; font-size: 13px; }
.vw-doc td, .vw-doc th, .vw-sheet td, .vw-sheet th { border: .5px solid var(--border-strong); padding: 4px 8px; vertical-align: top; }
.vw-sheet { overflow: auto; max-height: 80vh; padding: 0 12px 12px; }
.vw-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 12px; }
.vw-media { display: flex; justify-content: center; padding: 16px; background: #000; }
.vw-media video { max-width: 100%; max-height: 75vh; }
.vw-audio { padding: 24px; } .vw-audio audio { width: 100%; }
.vw-msg { text-align: center; padding: 48px 16px; color: var(--text-secondary); }
.vw-msg h1 { font-size: 18px; margin-bottom: 8px; }
.pw-form { max-width: 360px; margin: 40px auto; }
.pw-form .err { color: var(--destructive); font-size: 14px; margin: 0 0 8px; }
.vw-landing { max-width: 520px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vw-landing h1 { margin: 4px 0 0; font-size: 20px; word-break: break-word; }
.vw-landing .vw-desc { margin: 0; }
.vw-landing .note { color: var(--text-secondary); font-size: 14px; margin: 4px 0 0; }
.vw-actions { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.vw-actions .btn { flex: 1; min-height: 44px; justify-content: center; }
@media (max-width: 640px) { .vw-landing { margin: 16px auto; } .vw-actions { flex-direction: column; } }
@media (max-width: 640px) { .vw { padding: 8px 10px calc(16px + var(--sab)); } .vw-head { flex-wrap: wrap; } .vw-title { flex: 1 1 0; min-width: 0; } .vw-head .btn { flex: 1 1 100%; margin-top: 2px; justify-content: center; } }

/* ---- the tree of a Postman collection ---- */
.pm-wrap { --pm-on: #ffffff; --pm-brand: #c9491a; --pm-get: #0b6d87; --pm-post: #10693a; --pm-put: #8f4407; --pm-patch: #6330c4; --pm-del: #ab2024; --pm-other: #454a55; padding: 14px; }
.dark .pm-wrap { --pm-on: #10131a; --pm-brand: #f0883e; --pm-get: #17a2c4; --pm-post: #22a34a; --pm-put: #d97706; --pm-patch: #a78bfa; --pm-del: #f87171; --pm-other: #8b8b95; }
.pm-head { border-bottom: .5px solid var(--border-subtle); padding-bottom: 12px; margin-bottom: 12px; }
.pm-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--text-heading); word-break: break-word; }
.pm-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pm-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--pm-brand); color: var(--pm-on); font-size: 12px; font-weight: 600; }
.pm-count { font-size: 13px; color: var(--text-secondary); }
.pm-note { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }
.pm-tree { display: flex; flex-direction: column; gap: 6px; }
.pm-folder { border: .5px solid var(--border-subtle); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pm-folder-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-weight: 600; color: var(--text-heading); list-style: none; }
.pm-folder-head::-webkit-details-marker { display: none; }
.pm-folder-head::before { content: "\25B8"; color: var(--text-tertiary); font-size: 11px; }
.pm-folder[open] > .pm-folder-head::before { content: "\25BE"; }
.pm-folder-name { flex: 1; min-width: 0; word-break: break-word; }
.pm-folder-count { flex: none; font-size: 12px; font-weight: 500; color: var(--text-secondary); background: var(--muted); border-radius: 10px; padding: 2px 8px; }
.pm-folder-body { padding: 0 12px 10px 22px; display: flex; flex-direction: column; gap: 2px; }
.pm-req { padding: 7px 0; border-top: .5px solid var(--border-subtle); }
.pm-folder-body > .pm-req:first-child { border-top: none; }
.pm-req-head { display: flex; align-items: baseline; gap: 8px; }
.pm-m { flex: none; display: inline-block; min-width: 54px; text-align: center; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--pm-on); background: var(--pm-other); }
.pm-GET { background: var(--pm-get); } .pm-POST { background: var(--pm-post); } .pm-PUT { background: var(--pm-put); }
.pm-PATCH { background: var(--pm-patch); } .pm-DELETE { background: var(--pm-del); } .pm-HEAD, .pm-OPTIONS { background: var(--pm-other); }
.pm-req-name { font-size: 14px; color: var(--text-body); overflow-wrap: anywhere; }
.pm-url { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-tertiary); overflow-wrap: anywhere; word-break: break-word; margin-top: 2px; }
@media (max-width: 640px) {
  .pm-wrap { padding: 10px; }
  .pm-folder-body { padding-left: 12px; }
  .pm-req-head { flex-wrap: wrap; gap: 6px; }
  .pm-m { min-width: 48px; }
}
