.vcp {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.5;
}

.vcp-minor-notice {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #333;
}

.vcp-minor-notice p {
  margin: 0;
}

.vcp h3 {
  margin: 0;
  font-size: 1.05rem;
}

.vcp-tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
}

.vcp-tab-list[hidden] {
  display: none;
}

.vcp-tab {
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.vcp-tab[aria-selected='true'] {
  background: #fff;
  color: #467ff7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vcp-tab:focus-visible {
  outline: 2px solid #467ff7;
  outline-offset: 2px;
}

.vcp-tab-panel {
  min-width: 0;
}

.vcp-tab-panel[data-vcp-panel='settings'] {
  font-size: 16px;
}

.vcp-tab-panel[hidden] {
  display: none;
}

.vcp-event-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 16px;
  border-bottom: 1px solid #d1d5db;
}

.vcp-event-view-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.vcp-event-view-tab:hover,
.vcp-event-view-tab:focus-visible {
  color: #1d4ed8;
}

.vcp-event-view-tab:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.vcp-event-view-tab.is-current {
  border-color: #d1d5db;
  border-bottom: 2px solid #2271b1;
  background: #f8f9fa;
  color: #1d4ed8;
}

.vcp-tab-setup {
  margin: 0 0 16px;
  padding: 14px;
  border-left: 3px solid #6b7280;
  background: #f9fafb;
}

.vcp-block {
  margin: 0 0 15px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.vcp-block > summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: -16px -16px 12px;
  padding: 18px 20px;
  background: #f8f9fa;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

.vcp-block > summary:hover {
  background: #e9ecef;
}

.vcp-block > summary::-webkit-details-marker {
  display: none;
}

.vcp-block > summary h3 {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.vcp-block > h3 {
  margin: -16px -16px 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.vcp-intro {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.vcp-intro ul {
  margin: 10px 0 0 18px;
}

.vcp-notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
}

.vcp-notice-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.vcp-notice-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.vcp-form p {
  margin: 0 0 14px;
}

.vcp-form input[type='text'],
.vcp-form select,
.vcp-filter select,
.vcp textarea {
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

.vcp-form input:focus,
.vcp-form select:focus,
.vcp-filter select:focus,
.vcp textarea:focus {
  border-color: #2271b1;
  outline: none;
  box-shadow: 0 0 0 1px #2271b1;
}

.vcp-form input[type='number'] {
  width: 70px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.vcp-tab-panel[data-vcp-panel='settings'] .vcp-form input[type='text'],
.vcp-tab-panel[data-vcp-panel='settings'] .vcp-form input[type='number'],
.vcp-tab-panel[data-vcp-panel='settings'] .vcp-form select {
  font-size: 16px;
}

.vcp-points {
  margin: 0 0 14px;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.vcp-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0;
  padding: 8px 0;
  font-weight: 400;
}

.vcp-more {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.vcp-more > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: #1d4ed8;
  font-size: 14px;
}

.vcp-event-kind {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.vcp-event-kind legend {
  margin-bottom: 6px;
  font-weight: 600;
}

.vcp-event-kind-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vcp-event-kind-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.vcp-event-kind-option:focus-within {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.vcp-event-kind-option input:checked + span {
  color: #1d4ed8;
  font-weight: 600;
}

.vcp-event-kind-option input {
  margin: 0;
}

.vcp-button {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid #467ff7;
  border-radius: 4px;
  background: #467ff7;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.vcp-button:hover {
  background: #fff;
  color: #467ff7;
}

.vcp-button-quiet {
  background: #fff;
  border: 2px solid #467ff7;
  border-radius: 4px;
  color: #467ff7;
}

.vcp-button-quiet:hover {
  background: #467ff7;
  color: #fff;
}

.vcp-inline {
  display: inline-block;
  margin-right: 8px;
}

.vcp-card {
  margin: 10px 0;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.vcp-card-meta,
.vcp-card-points,
.vcp-card-note {
  font-size: 13px;
  color: #4b5563;
  margin-top: 3px;
}

.vcp-card-note {
  font-style: italic;
}

.vcp-card-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
}

.vcp-card-actions > details {
  flex: 0 1 auto;
}

.vcp-card-actions > details[open] {
  flex-basis: 100%;
}

.vcp-card-actions .vcp-ask summary {
  margin-top: 0;
}

.vcp-request {
  padding: 12px 0;
  border-top: 1px solid #f3f4f6;
}

.vcp-connection-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.vcp-connection-person img {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  object-fit: cover;
  background: #f8f9fa;
}

.vcp-message {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
}

.vcp-decline-form {
  margin-top: 8px;
}

.vcp-decline-form label {
  display: block;
  color: #50575e;
  font-size: 13px;
}

.vcp-decline-form textarea {
  display: block;
  margin: 4px 0 8px;
}

.vcp-contact {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #ecfdf5;
}

.vcp-ask summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: #1d4ed8;
  font-size: 14px;
  margin-top: 6px;
}

.vcp-filter {
  margin-bottom: 10px;
}

.vcp-explore-filter {
  margin: 0 0 14px;
}

.vcp-explore-filter label {
  display: block;
  width: 100%;
  font-weight: 600;
}

.vcp-explore-filter select {
  display: block;
  margin-top: 4px;
}

.vcp-event-results-title {
  margin: 16px 0 8px;
  font-size: 1.1rem;
}

.vcp-event-empty {
  margin: 10px 0 16px;
  padding: 14px 16px;
  border-left: 3px solid #9ca3af;
  background: #f8f9fa;
  color: #374151;
}

.vcp-event-empty p {
  margin: 4px 0 0;
}

.vcp-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.vcp-event-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.vcp-event-link:hover,
.vcp-event-link:focus-visible {
  border-color: #2271b1;
  color: #1d4ed8;
}

.vcp-event-link:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.vcp-event-link.is-current {
  border-color: #2271b1;
  background: #eff6ff;
  color: #1d4ed8;
}

.vcp-muted {
  color: #6b7280;
  font-size: 13px;
}

.vcp-ok {
  color: #047857;
  font-size: 13px;
  font-weight: 600;
}

.vcp-hint {
  font-size: 13px;
  color: #6b7280;
}

.vcp-tab-panel[data-vcp-panel='settings'] .vcp-hint {
  font-size: 15px;
  line-height: 1.5;
}

.vcp-empty {
  color: #6b7280;
}

.vcp-fault {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
}

.vcp-optout {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
}

.vcp-optout p {
  margin: 0 0 10px;
}

.vcp-subhead {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: #374151;
}

.vcp-subblock {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.vcp-subblock > summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: -12px -12px 12px;
  padding: 16px 20px;
  background: #f8f9fa;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vcp-subblock > summary:hover {
  background: #e9ecef;
}

.vcp-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.vcp-card-quiet .vcp-card-head strong {
  font-weight: 500;
}
