.vcrm-portal,
.vcrm-el-widget {
  --vcrm-border-color: rgba(25, 33, 61, 0.08);
  --vcrm-surface: #f8f7f8;
  --vcrm-tile: #f1eff0;
  --vcrm-text: #151515;
  --vcrm-muted: #5e6372;
  --vcrm-pill-bg: #e8ecff;
  --vcrm-pill-text: #4c5fb6;
  --vcrm-card-bg: #f6f5f6;
  --vcrm-accent: rgba(25, 33, 61, 0.08);
  --vcrm-line: rgba(25, 33, 61, 0.12);
  --vcrm-highlight-bg: #f4faf4;
  --vcrm-highlight-border: #dce8dc;
  --vcrm-highlight-line: #c6dfc7;
  color: var(--vcrm-text);
}

.vcrm-portal {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.vcrm-block {
  background: var(--vcrm-surface);
  border: 1px solid var(--vcrm-border-color);
  border-radius: 22px;
  padding: 24px;
  box-sizing: border-box;
}

.vcrm-block__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.vcrm-block__header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.vcrm-subhead {
  margin: 6px 0 0;
  color: var(--vcrm-muted);
  font-size: 0.92rem;
}

.vcrm-status,
.vcrm-badge,
.vcrm-project-chip__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--vcrm-pill-bg);
  color: var(--vcrm-pill-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vcrm-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--vcrm-border-color);
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
}

.vcrm-preview-card__row {
  display: grid;
  gap: 4px;
}

.vcrm-preview-card__row strong {
  font-size: 0.92rem;
}

.vcrm-preview-card__row span {
  color: var(--vcrm-muted);
}

.vcrm-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.vcrm-summary-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--vcrm-tile);
  border: 1px solid rgba(25, 33, 61, 0.04);
  box-sizing: border-box;
}

.vcrm-summary-card__label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--vcrm-text);
}

.vcrm-summary-card__value {
  display: block;
  min-width: 0;
  color: var(--vcrm-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vcrm-project-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vcrm-project-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 16px;
  background: var(--vcrm-tile);
  border: 1px solid var(--vcrm-border-color);
  color: inherit;
  box-sizing: border-box;
}

.vcrm-project-chip.is-current {
  border-color: rgba(76, 95, 182, 0.25);
  box-shadow: 0 0 0 1px rgba(76, 95, 182, 0.15) inset;
}

.vcrm-project-chip__title {
  font-weight: 700;
}

.vcrm-feed-list {
  display: grid;
  gap: 18px;
}

.vcrm-feed-item {
  position: relative;
  padding: 22px 22px 22px 28px;
  border-radius: 20px;
  border: 1px solid var(--vcrm-accent);
  background: var(--vcrm-card-bg);
  box-sizing: border-box;
}


.vcrm-feed-item__line {
  position: absolute;
  left: 16px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  border-radius: 999px;
  background: var(--vcrm-line);
}



.vcrm-feed-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.vcrm-feed-item__header h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.vcrm-feed-item__meta {
  font-size: 0.92rem;
  color: var(--vcrm-muted);
  margin-top: 4px;
}

.vcrm-feed-item__content > :first-child {
  margin-top: 0;
}

.vcrm-feed-item__content > :last-child {
  margin-bottom: 0;
}

.vcrm-files,
.vcrm-data-table {
  margin-top: 18px;
}

.vcrm-files ul,
.vcrm-data-table ul,
.vcrm-doc-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.vcrm-files li,
.vcrm-doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(25, 33, 61, 0.06);
}

.vcrm-data-table li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(25, 33, 61, 0.06);
}

.vcrm-data-table li span {
  color: var(--vcrm-muted);
}

.vcrm-form {
  display: grid;
  gap: 14px;
}

.vcrm-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.vcrm-form input[type="text"],
.vcrm-form textarea,
.vcrm-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
}

.vcrm-form input[type="text"],
.vcrm-form textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--vcrm-border-color);
  background: #fff;
}

.vcrm-form__hint {
  display: block;
  margin-top: 8px;
  color: var(--vcrm-muted);
  font-size: 0.9rem;
}

.vcrm-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #151515;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.vcrm-notice {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(25, 33, 61, 0.08);
  background: #fff;
}

.vcrm-notice.is-success {
  border-color: rgba(24, 140, 74, 0.18);
  background: rgba(24, 140, 74, 0.06);
}

.vcrm-notice.is-warning {
  border-color: rgba(176, 94, 28, 0.18);
  background: rgba(176, 94, 28, 0.07);
}

.vcrm-widget-placeholder {
  padding: 16px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px dashed rgba(25, 33, 61, 0.12);
}


.vcrm-empty-state {
  padding: 16px 18px;
  border: 1px dashed rgba(25, 33, 61, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--vcrm-muted);
}

.vcrm-empty-state--subtle {
  margin-bottom: 14px;
}

.vcrm-form.is-preview {
  opacity: 0.86;
}

.vcrm-form.is-preview input,
.vcrm-form.is-preview textarea,
.vcrm-form.is-preview button {
  cursor: not-allowed;
}

.vcrm-doc-list li a {
  font-weight: 700;
  text-decoration: none;
}

.vcrm-doc-list li span {
  color: var(--vcrm-muted);
}

@media (max-width: 1024px) {
  .vcrm-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vcrm-block,
  .vcrm-feed-item {
    padding: 18px;
  }

  .vcrm-summary-grid,
  .vcrm-data-table li {
    grid-template-columns: 1fr;
  }

  .vcrm-feed-item__header,
  .vcrm-block__header,
  .vcrm-files li,
  .vcrm-doc-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .vcrm-project-chip {
    min-width: 0;
    width: 100%;
  }

}
