.vd-page { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #0f172a; background: #f1f5f9; min-height: 100vh; }
.vd-page a { color: #4f46e5; }
.vd-header { background: linear-gradient(135deg, #312e81, #4338ca); color: #fff; padding: 1rem 1.25rem; }
.vd-header h1 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.vd-header p { margin: 0; opacity: 0.92; font-size: 0.92rem; max-width: 52rem; }
.vd-back { color: #e0e7ff; font-size: 0.85rem; text-decoration: none; display: inline-block; margin-bottom: 0.5rem; }
.vd-layout { max-width: 1400px; margin: 0 auto; padding: 1rem; display: grid; grid-template-columns: 260px 1fr; gap: 1rem; }
@media (max-width: 960px) { .vd-layout { grid-template-columns: 1fr; } }
.vd-sidebar, .vd-main { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.vd-sidebar { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.75rem; }
.vd-main { padding: 0.75rem; min-height: 70vh; display: flex; flex-direction: column; gap: 0.65rem; }
.vd-tier-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: #eef2ff; color: #4338ca; }
.vd-tier-badge.is-guest { background: #fef3c7; color: #92400e; }
.vd-tier-badge.is-pro { background: #dcfce7; color: #166534; }
.vd-msg { min-height: 1.2em; font-size: 0.85rem; color: #475569; }
.vd-msg.is-warn { color: #b45309; }
.vd-msg.is-ok { color: #15803d; }
.vd-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.vd-btn { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 8px; padding: 0.4rem 0.65rem; font: inherit; font-size: 0.82rem; cursor: pointer; }
.vd-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.vd-btn-primary { background: #4f46e5; border-color: #4338ca; color: #fff; font-weight: 700; }
.vd-btn-primary:hover { background: #4338ca; }
.vd-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.vd-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; }
.vd-field input, .vd-field select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.4rem 0.55rem; font: inherit; }
.vd-saved-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 0.35rem; }
.vd-saved-list li { border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.45rem 0.55rem; font-size: 0.8rem; display: flex; justify-content: space-between; gap: 0.35rem; align-items: center; }
.vd-saved-list button { font-size: 0.75rem; padding: 0.2rem 0.45rem; }
.vd-upgrade { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 0.65rem; font-size: 0.82rem; color: #78350f; }
.vd-upgrade a { font-weight: 700; }
.vd-engine-root { flex: 1; min-height: 420px; display: flex; flex-direction: column; }
.vd-canvas-wrap { flex: 1; min-height: 420px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fafafa; overflow: hidden; outline: none; touch-action: none; }
.vd-svg { width: 100%; height: 100%; min-height: 420px; display: block; }
.vd-node-text { width: 100%; height: 100%; font: 600 0.85rem/1.25 'Segoe UI', system-ui, sans-serif; color: #0f172a; outline: none; word-break: break-word; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.vd-shape-row, .vd-color-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.vd-shape-btn, .vd-color-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 0.7rem; }
.vd-color-btn { padding: 0; }
.vd-outline { white-space: pre-wrap; font: 0.8rem/1.4 ui-monospace, monospace; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.55rem; max-height: 180px; overflow: auto; }
.vd-status-bar { font-size: 0.78rem; color: #64748b; padding: 0.35rem 0.5rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; font-variant-numeric: tabular-nums; }
.vd-credits-panel { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 0.65rem; font-size: 0.82rem; }
.vd-credits-balance { float: right; font-weight: 700; color: #166534; }
.vd-credits-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; clear: both; }
.vd-btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.vd-share-panel { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 10px; padding: 0.65rem; }
.vd-share-input { width: 100%; box-sizing: border-box; margin: 0.35rem 0; font-size: 0.78rem; padding: 0.4rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.vd-embed-block { margin-top: 0.65rem; padding-top: 0.55rem; border-top: 1px dashed #c7d2fe; }
.vd-embed-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; min-height: 4.5rem; }
.vd-share-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vd-shared-tag { font-size: 0.68rem; background: #dbeafe; color: #1d4ed8; padding: 0.1rem 0.35rem; border-radius: 999px; font-weight: 700; }
.vd-embed-page { margin: 0; padding: 0; background: #f8fafc; min-height: 320px; }
.vd-embed-page .vd-embed-canvas { min-height: 300px; }
.vd-embed-footer { margin: 0; padding: 0.35rem 0.5rem; font-size: 0.72rem; text-align: center; color: #64748b; background: #fff; border-top: 1px solid #e2e8f0; }
.vd-embed-footer a { color: #4f46e5; }
.vd-embed-notice { padding: 1.5rem; text-align: center; color: #64748b; }
.vd-help { font-size: 0.78rem; color: #64748b; margin: 0; }
@media print {
  .vd-no-print { display: none !important; }
  .vd-page { background: #fff; }
  .vd-layout { display: block; padding: 0; }
  .vd-sidebar { display: none; }
  .vd-main { border: none; box-shadow: none; padding: 0; }
  .vd-canvas-wrap { border: none; min-height: auto; }
}
