:root {
  --vc-primary: #0284c7;
  --vc-primary-hover: #0369a1;
  --vc-bg-card: #ffffff;
  --vc-border: #e2e8f0;
  --vc-text-main: #0f172a;
  --vc-text-muted: #64748b;
  --vc-pill-bg: #f1f5f9;
  --vc-pill-hover: #e2e8f0;
  --vc-result-bg: #f8fafc;
  --vc-mockup-bg: #ffffff;
}

.vc-tool-container {
  max-width: 860px;
  margin: 0 auto 3rem auto;
  font-family: inherit;
  color: var(--vc-text-main);
}

.vc-editor-card {
  background: var(--vc-bg-card);
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.vc-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vc-border);
}

.vc-presets-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--vc-text-muted);
}

.vc-pill-btn {
  background: var(--vc-pill-bg);
  border: 1px solid var(--vc-border);
  color: var(--vc-text-main);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vc-pill-btn:hover {
  background: var(--vc-pill-hover);
  border-color: var(--vc-primary);
}

.vc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .vc-grid-2 {
    grid-template-columns: 1fr;
  }
}

.vc-field {
  margin-bottom: 0.85rem;
}

.vc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--vc-text-main);
}

.vc-req {
  color: #dc2626;
}

.vc-field input,
.vc-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  background: var(--vc-bg-card);
  color: var(--vc-text-main);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.vc-field input:focus,
.vc-field textarea:focus {
  outline: none;
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.vc-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.vc-primary-btn {
  flex: 2;
  background: var(--vc-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vc-primary-btn:hover {
  background: var(--vc-primary-hover);
}

.vc-secondary-btn,
.vc-tertiary-btn {
  background: var(--vc-pill-bg);
  color: var(--vc-text-main);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.vc-secondary-btn:hover,
.vc-tertiary-btn:hover {
  background: var(--vc-pill-hover);
}

.vc-results-card {
  background: var(--vc-result-bg);
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.vc-results-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  color: var(--vc-text-main);
  text-align: center;
}

.vc-card-mockup {
  max-width: 440px;
  margin: 0 auto 1.5rem auto;
  background: var(--vc-mockup-bg);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.vc-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vc-avatar {
  font-size: 2rem;
}

.vc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--vc-pill-bg);
  color: var(--vc-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.vc-card-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  color: var(--vc-text-main);
}

.vc-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--vc-primary);
  margin-bottom: 0.2rem;
}

.vc-card-org {
  font-size: 0.9rem;
  color: var(--vc-text-muted);
  margin-bottom: 1.25rem;
}

.vc-qr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--vc-pill-bg);
  border-radius: 12px;
}

#vcardQrCanvas {
  background: #ffffff;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--vc-border);
}

.vc-qr-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vc-text-muted);
  margin-top: 0.6rem;
}

.vc-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.vc-contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vc-text-main);
}

.vc-raw-box {
  background: var(--vc-bg-card);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.vc-raw-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--vc-text-main);
}

.vc-code-view {
  margin: 0;
  padding: 0.75rem;
  background: var(--vc-pill-bg);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--vc-primary);
  overflow-x: auto;
  white-space: pre;
}

.vc-mockup-inner {
  display: block;
}

.vc-ad {
  overflow: hidden;
  min-height: 280px;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --vc-primary: #81bcda;
  --vc-primary-hover: #69aed4;
  --vc-bg-card: var(--tf-surface);
  --vc-border: var(--tf-surface);
  --vc-text-main: var(--tf-ink);
  --vc-text-muted: var(--tf-ink-faint);
  --vc-pill-bg: var(--tf-surface);
  --vc-pill-hover: var(--tf-surface);
  --vc-result-bg: var(--tf-surface);
  --vc-mockup-bg: var(--tf-surface);
}
