.vd-app { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
.vd-app h1 { font-size: 1.5rem; font-weight: 700; margin: 24px 0 16px; }

.studio { display: flex; gap: 24px; align-items: flex-start; }
.studio .result { flex: 1; min-width: 0; position: sticky; top: 16px; }
.studio .panel { flex: 0 0 380px; }

.result-empty { padding: 32px 24px; text-align: center; color: #666; border: 2px dashed #ddd; border-radius: 8px; }
.result-live { border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat { background: #f5f8fa; border-radius: 6px; padding: 12px; }
.stat-label { font-size: .75rem; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.25rem; font-weight: 700; color: #1a5276; margin-top: 2px; }
.stat-value.pass { color: #1a6b4a; }
.stat-value.fail { color: #b45309; }

.recommend { margin: 12px 0; }
.recommend p { font-size: .85rem; color: #333; margin: 0; }
.note { font-size: .75rem; color: #888; margin-top: 8px; line-height: 1.4; }

/* Inputs */
.ctrl { margin-bottom: 14px; }
.ctrl label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; color: #333; }
.ctrl input, .ctrl select { font-size: .9rem; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; width: 100%; box-sizing: border-box; }
.ctrl input:focus, .ctrl select:focus { border-color: #1a5276; outline: none; box-shadow: 0 0 0 2px rgba(26,82,118,.15); }

.method-ctrl { margin-bottom: 20px; }
.method-toggle { display: flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.method-btn { flex: 1; padding: 8px; font-size: .85rem; font-weight: 500; border: none; background: #fff; cursor: pointer; color: #333; transition: background .15s, color .15s; }
.method-btn:first-child { border-right: 1px solid #ccc; }
.method-btn.active { background: #1a5276; color: #fff; }

.ac-fields { margin-bottom: 4px; }

a.dl,
a.dl-again { display: inline-block; padding: 12px 28px; background: #1a5276; color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 1rem; text-align: center; }
a.dl:hover { background: #154360; }
a.dl-again { background: #f5f5f5; color: #333; font-size: .85rem; padding: 8px 18px; }
a.dl-again:hover { background: #eee; }

#buy { display: block; text-align: center; width: 100%; box-sizing: border-box; }
#buy.inert { opacity: .4; pointer-events: none; }

.circuit-actions { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.add-circuit { font-size: .85rem; color: #1a5276; text-decoration: none; }
.add-circuit:hover { text-decoration: underline; }
.circuit-count { font-size: .8rem; color: #888; }

.circuits-list { margin-top: 24px; }
.circuits-list h2 { font-size: 1.1rem; margin: 0 0 12px; }
.circuit-item { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.circuit-item .ci-desc { font-size: .85rem; font-weight: 500; }
.circuit-item .ci-detail { font-size: .75rem; color: #666; }
.circuit-item .ci-remove { background: none; border: none; color: #999; cursor: pointer; font-size: 1rem; padding: 4px 8px; }
.circuit-item .ci-remove:hover { color: #c00; }

/* Order page */
.order { max-width: 480px; margin: 40px auto; text-align: center; }
.order h1 { font-size: 1.5rem; }
.order-info { font-size: 1rem; color: #1a5276; font-weight: 600; margin: 8px 0 20px; }
.order .dl, .order .dl-again { display: block; width: max-content; max-width: 100%; box-sizing: border-box; margin: 0 auto 12px; }
.new-calc { display: inline-block; color: #1a5276; font-size: .85rem; text-decoration: none; margin-top: 8px; }
.new-calc:hover { text-decoration: underline; }
.sent { font-size: .85rem; color: #666; margin-top: 20px; }

/* Paywall */
.vd-pay { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
.vd-back { font-size: .85rem; color: #1a5276; text-decoration: none; display: inline-block; margin: 16px 0 12px; }
.vd-back:hover { text-decoration: underline; }
.pay-grid { display: flex; gap: 24px; align-items: flex-start; }
.pay-art { flex: 1; min-width: 0; }
.pay-art h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; }
.pay-preview { border-radius: 6px; overflow: hidden; }

.pay-box { flex: 0 0 380px; }
.pay-price { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.pay-price span { font-size: .95rem; color: #333; }
.pay-price b { font-size: 1.5rem; font-weight: 700; }
.pay-mail { font-size: .8rem; color: #666; margin: 4px 0 0; }

/* Footer */
.foot { border-top: 1px solid #eee; padding: 24px 16px; margin-top: 32px; }
.foot .wrap { max-width: 960px; margin: 0 auto; }
.foot .links { font-size: .8rem; display: flex; gap: 16px; }
.foot .links a { color: #666; text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.disclaimer { font-size: .7rem; color: #999; margin: 8px 0 0; }

/* Responsive */
@media (max-width: 700px) {
  .studio { flex-direction: column; }
  .studio .panel { flex: none; width: 100%; }
  .studio .result { position: static; width: 100%; margin-bottom: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pay-grid { flex-direction: column; }
  .pay-art { width: 100%; }
  .pay-box { flex: none; width: 100%; }
}
