/* Visa-Check (web/src/visa/app.js) */
.vc-main { max-width: 1040px; }
.vc-loading { color: var(--muted); padding: 40px 0; text-align: center; }
.vc-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 18px; }
.vc-passbox, .vc-score, .vc-ask, .vc-lists, .vc-bridge { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow); }
.vc-passbox label { display: block; font-weight: 700; margin-bottom: 8px; }
.vc-pick { position: relative; }
.vc-pick input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--r-l); background: var(--bg); color: var(--text); }
.vc-pick input:focus { outline: none; border-color: var(--accent); }
.vc-pick-pass input { padding-left: 62px; font-size: 1.25rem; font-weight: 700; }
.vc-pass-flag { position: absolute; left: 14px; top: 50%; translate: 0 -50%; display: flex; pointer-events: none; }
.vc-pick-small input { font-size: .95rem; padding: 10px 14px; border-style: dashed; }
.vc-pick-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); box-shadow: 0 16px 40px rgba(20, 24, 40, .18); padding: 6px; }
.vc-pick-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r-m); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vc-pick-item:hover, .vc-pick-item.act { background: var(--accent-soft); }
.vc-pick-hint { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }
.vc-cmp { margin-top: 12px; }
.vc-cmp .vc-pick-small + .vc-pick-small, .vc-cmp .vc-pick-small + .vc-partner-label { margin-top: 8px; }
.vc-partner-label { margin: 12px 0 6px; }
.vc-cmp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vc-cmp-list:empty { display: none; }
.vc-cmp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); font-weight: 600; font-size: .92rem; }
.vc-cmp-tag button { border: 0; background: none; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.vc-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

.vc-score { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; background: linear-gradient(140deg, #1e1b4b, #4f46e5); color: #fff; border: 0; }
.vc-score-num b { display: block; font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 900; line-height: 1; color: #fbbf24; letter-spacing: -.03em; }
.vc-score-label { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.vc-rank { margin: 4px 0 0; color: #c7d2fe; font-size: .95rem; }
.vc-share { grid-column: 1 / -1; justify-self: start; background: #fff; color: #312e81; }
.vc-share:hover { color: #312e81; filter: brightness(.96); }

.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.vc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; transition: transform .15s; }
.vc-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.vc-chip.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--text) inset; }
.vc-chip i { width: 12px; height: 12px; border-radius: 50%; }

.vc-mapwrap { position: relative; border-radius: var(--r-l); overflow: hidden; background: #dbeafe; border: 1px solid var(--border); touch-action: none; }
.vc-map { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 520; cursor: grab; user-select: none; }
.vc-sphere { fill: #e0f2fe; }
.vc-c { stroke: #fff; stroke-width: .35; vector-effect: non-scaling-stroke; transition: opacity .2s; cursor: pointer; }
.vc-c.sel { stroke: #111827; stroke-width: 2; }
.vc-hover { position: absolute; z-index: 5; transform: translate(-50%, -130%); padding: 5px 10px; border-radius: var(--r-m); background: rgba(17, 24, 39, .9); color: #fff; font-size: .85rem; white-space: nowrap; pointer-events: none; }
.vc-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.vc-zoom button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface); color: var(--text); font-size: 1.15rem; cursor: pointer; }

.vc-ask, .vc-lists, .vc-bridge { margin-top: 18px; }
.vc-ask h2, .vc-lists h2, .vc-bridge h2 { font-size: 1.2rem; margin: 0 0 12px; }
.vc-result { margin-top: 14px; padding: 16px; border-radius: var(--r-l); border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 9%, var(--surface)); animation: vcPop .3s ease; }
.vc-res-head { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.vc-res-flag { font-size: 2rem; line-height: 1; }
.vc-res-status { margin: 8px 0 4px; font-weight: 800; font-size: 1.15rem; }
.vc-res-per { margin: 8px 0 0; padding-left: 18px; }
.vc-res-check { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.vc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vc-tab { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; border-left: 5px solid var(--c); }
.vc-tab.on { background: var(--c); color: #fff; border-color: var(--c); }
.vc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.vc-li { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg); color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.vc-li:hover { border-color: var(--accent); }
.vc-li small { color: var(--muted); white-space: nowrap; }
.vc-empty { color: var(--muted); }
.vc-bridge p { margin: 0 0 12px; }
.vc-source { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
@keyframes vcPop { from { transform: scale(.97); opacity: 0; } }
@media (prefers-color-scheme: dark) { .vc-mapwrap { background: #0b1220; } .vc-sphere { fill: #111c33; } .vc-c { stroke: #0f1117; } }
@media (max-width: 760px) {
  .vc-top { grid-template-columns: 1fr; }
}
.vc-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: 0 0 auto; }
.vc-pick-item, .vc-li { justify-content: flex-start; }
.vc-pick-item .vc-pick-hint { margin-left: auto; }
.vc-li small { margin-left: auto; }
.vc-flag-pass { width: 34px; height: 25px; }
.vc-flag-big { width: 44px; height: 33px; border-radius: 5px; }
.vc-res-per li { list-style: none; margin: 4px 0; }
.vc-res-per { padding-left: 0; }
.vc-sharep { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow); }
.vc-sharep h2 { font-size: 1.2rem; margin: 0 0 4px; }
.vc-share-grid { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 22px; align-items: start; margin-top: 14px; }
.vc-prev canvas { display: block; width: 100%; height: auto; border-radius: var(--r-l); box-shadow: 0 10px 30px rgba(20, 24, 40, .22); }
.vc-opt-label { font-size: .9rem; font-weight: 600; color: var(--muted); margin: 4px 0 8px; }
.vc-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vc-seg button { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; }
.vc-seg button.on { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.vc-share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.vc-btn2 { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.vc-btn2:hover { border-color: var(--accent); }
@media (max-width: 700px) { .vc-share-grid { grid-template-columns: 1fr; } .vc-prev { max-width: 240px; margin: 0 auto; } }
.vc-mapwrap:fullscreen, .vc-mapwrap.vc-fs { display: flex; align-items: center; justify-content: center; border-radius: 0; border: 0; background: #dbeafe; }
.vc-mapwrap.vc-fs { position: fixed; inset: 0; z-index: 1000; }
.vc-mapwrap:fullscreen .vc-map, .vc-mapwrap.vc-fs .vc-map { width: 100%; max-height: 100%; }
.vc-mapwrap:fullscreen .vc-zoom, .vc-mapwrap.vc-fs .vc-zoom { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }
html.vc-noscroll, html.vc-noscroll body { overflow: hidden; }
@media (prefers-color-scheme: dark) { .vc-mapwrap:fullscreen, .vc-mapwrap.vc-fs { background: #0b1220; } }
.vc-stand-top { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.vc-ask { margin-top: 18px; }
