.vl-section { background: #f0eee4; border-bottom: 1px solid var(--line); }
.vl-panel { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 3px; background: #fffef8; padding: clamp(1rem, 2.6vw, 2rem); }
.vl-panel p { margin: .7rem 0; max-width: 78ch; }
.vl-panel small, .vl-small { color: var(--muted); }
.vl-panel label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; max-width: 35rem; }
.vl-panel :is(input, select, button) { font: inherit; min-height: 44px; color: var(--ink); }
.vl-panel :is(input, select) { min-width: 0; width: 100%; border: 1px solid #87887a; border-radius: 2px; background: white; padding: .4rem .65rem; }
.vl-panel input[type="file"] { padding: .5rem; white-space: normal; }
.vl-panel button { max-width: 100%; background: #fff; padding: .5rem .78rem; border: 1px solid #888a7b; border-radius: 2px; font-weight: 600; cursor: pointer; }
.vl-panel button:disabled { opacity: .52; cursor: default; }
.vl-panel button[aria-pressed="true"], #vl-save-polygon, #vl-apply-scale { color: var(--ink); background: var(--yellow); border-color: #a2881a; }
.vl-panel button:not(:disabled):hover { border-color: var(--ink); }
.vl-fields, .vl-actions { display: flex; flex-wrap: wrap; gap: .55rem .8rem; align-items: flex-end; margin: .9rem 0; }
.vl-fields label { flex: 1 1 10rem; min-width: 0; }
.vl-fields button { flex: 0 1 auto; }
.vl-cross { margin: 1.1rem 0; max-width: 45rem; padding: 1rem; background: #ebe8d9; border-radius: 2px; }
.vl-cross-axis { position: relative; height: 6rem; background-image: repeating-linear-gradient(0deg,transparent,transparent 19px,#d7d3c4 20px); }
.vl-line, .vl-band { position: absolute; width: 100%; }
.vl-line { height: 0; border-top: 3px solid; z-index: 1; }
.vl-original { border-color: #554632; }
.vl-design { border-color: #155260; border-style: dashed; }
.vl-band { background: repeating-linear-gradient(130deg,#ba9b5a55,#ba9b5a55 4px,#dfce9a66 4px,#dfce9a66 9px); }
.vl-cross[data-work="fill"] .vl-band { background: repeating-linear-gradient(130deg,#5f926155,#5f926155 4px,#aec6a966 4px,#aec6a966 9px); }
.vl-cross figcaption { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; padding-top: .5rem; }
.vl-swatch { display: inline-block; width: 1.2rem; border-top: 3px solid #554632; vertical-align: middle; margin-right: .4rem; }
.vl-ta { border-style: dashed; border-color: #155260; }
.vl-fold>summary, .vl-coordinates>summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: .45rem 0; }
.vl-fold>summary { font: 700 clamp(1.45rem,2.4vw,2rem)/1.3 var(--display); }
.vl-sheet { width: fit-content; max-width: 100%; margin: .8rem auto; position: relative; background: #ecebdf; }
.vl-sheet img { display: block; max-width: 100%; width: auto; height: auto; max-height: 62vh; }
.vl-sheet canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: crosshair; }
.vl-list { margin: 1rem 0; padding: 0; list-style: none; }
.vl-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.vl-list .vl-actions { margin: 0; }
#vl-calibration { display:flex; align-items:flex-end; gap:.5rem; flex-wrap:wrap; }
#vl-notice:empty { display:none; }
#vl-notice { font-weight: 600; }
.vl-guide { background: #eae9de; }
.vl-guide-intro { margin: .8rem 0 1.4rem; max-width: 64ch; }
.vl-photos, .vl-cases { display: grid; gap: clamp(.9rem, 2vw, 1.75rem); }
.vl-photos { grid-template-columns: repeat(4,minmax(0,1fr)); }
.vl-photos img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #d8d4c4; }
.vl-photos figcaption, .vl-cases small { font-size: .89rem; color: var(--muted); }
.vl-photos figcaption { margin:.2rem 0 .65rem; }
.vl-photos h3 { font-size:1.5rem; }
.vl-guide p { margin-block: .5rem; }
.vl-guide a, .vl-viewer a { text-decoration: underline; text-underline-offset: .25em; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.vl-project-title { margin: 2.4rem 0 1rem; }
.vl-cases { grid-template-columns: repeat(3,minmax(0,1fr)); }
.vl-cases article { border-top: 2px solid var(--ink); padding-top: .7rem; }
.vl-cases h4 { margin: .2rem 0; font: 700 1.45rem/1.2 var(--display); }
.vl-viewer { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--ink); color: var(--paper); }
.vl-viewer header { display: flex; justify-content: space-between; align-items: center; gap: .3rem 1rem; flex-wrap: wrap; padding:.25rem var(--pad); }
.vl-viewer header p { margin:0; }
.vl-viewer a { color: var(--yellow); }
.vl-viewer iframe { display:block; width:100%; flex:1; min-height:0; border:0; background:var(--ink); }
.vl-viewer noscript { margin-inline:var(--pad); }
@media (max-width: 57rem) { .vl-photos { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 42rem) { .vl-cases { grid-template-columns: 1fr; } }
@media (max-width: 32rem) {
  .vl-photos { grid-template-columns: 1fr; }
  .vl-fields label { flex-basis: 100%; }
  .vl-viewer header { font-size:.88rem; gap:.1rem .6rem; }
}
