.vvc-calendar,
.vvc-portal {
  border: 1px solid #d5dff9;
  border-radius: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
  padding: 20px;
  box-shadow: 0 18px 34px rgba(12, 48, 96, 0.08);
}

.vvc-portal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.vvc-sidebar {
  border: 1px solid #dce5ff;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.vvc-sidebar h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #21427a;
}

.vvc-sidebar a {
  text-decoration: none;
  color: #1e427d;
  background: #edf3ff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.9rem;
}

.vvc-sidebar a.is-active {
  background: linear-gradient(135deg, #00c2ff, #2f7bff);
  color: #fff;
}

.vvc-portal-main {
  min-width: 0;
}

.vvc-calendar__head,
.vvc-portal__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.vvc-calendar__head h2,
.vvc-portal__head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #0e2f61;
}

.vvc-calendar__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vvc-calendar__controls button,
.vvc-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.vvc-calendar__controls button {
  border: 1px solid #cdd9fc;
  background: #f5f8ff;
}

.vvc-month-label {
  min-width: 130px;
  text-align: center;
  font-weight: 700;
  color: #1f3a6b;
}

.vvc-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.vvc-day {
  border: 1px solid #d8e4ff;
  border-radius: 12px;
  min-height: 96px;
  padding: 7px;
  background: #fbfdff;
  cursor: default;
}

.vvc-day__num {
  font-size: 0.84rem;
  color: #2d497e;
  font-weight: 700;
}

.vvc-day__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  margin-top: 7px;
}

.vvc-calendar[data-can-create="1"] .vvc-day {
  cursor: pointer;
}

.vvc-calendar[data-can-create="1"] .vvc-day:hover {
  border-color: #bcd1ff;
  background: #f4f8ff;
}

.vvc-portal__list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.vvc-sync-card {
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid #dce5ff;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.vvc-sync-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #15396f;
}

.vvc-sync-row {
  margin-top: 8px;
}

.vvc-sync-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #26467b;
  font-size: 0.9rem;
}

.vvc-sync-card .copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vvc-sync-card .copy-row input {
  width: 100%;
  border: 1px solid #d5dff9;
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
}

.vvc-item,
.vvc-portal-item {
  border: 1px solid #dce5ff;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vvc-item:hover,
.vvc-portal-item:hover {
  transform: translateY(-3px);
  border-color: #c9d9ff;
  box-shadow: 0 16px 28px rgba(22, 57, 111, 0.1);
}

.vvc-item h4,
.vvc-portal-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #15396f;
}

.vvc-portal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vvc-meta {
  margin: 0;
  color: #4c5d88;
  font-size: 0.88rem;
}

.vvc-btn--primary {
  background: linear-gradient(135deg, #00c2ff, #2f7bff);
  color: #fff;
}

.vvc-btn--ghost {
  background: #ecf2ff;
  color: #1e4e9a;
}

.vvc-btn--danger {
  background: #ffe8ea;
  color: #c03043;
}

.vvc-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.vvc-notice {
  margin-top: 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  border: 1px solid #b8f1de;
  background: #ecfff7;
  color: #14734b;
  padding: 9px 12px;
  font-size: 0.92rem;
}

.vvc-notice--error {
  border-color: #ffd2d7;
  background: #fff1f3;
  color: #9f2333;
}

.vvc-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 28, 0.62);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.vvc-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vvc-modal[hidden] {
  display: none !important;
}

.vvc-modal__panel {
  width: min(640px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #d7e1ff;
  padding: 18px;
  position: relative;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.24s ease;
}

.vvc-modal.is-open .vvc-modal__panel {
  transform: translateY(0) scale(1);
}

.vvc-modal__close {
  border: 0;
  background: #eef3ff;
  color: #26467b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  line-height: 1;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
}

.vvc-form {
  display: grid;
  gap: 10px;
}

.vvc-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #26467b;
}

.vvc-form input,
.vvc-form select,
.vvc-form textarea {
  border: 1px solid #d5dff9;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.vvc-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vvc-modal-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .vvc-portal-shell {
    grid-template-columns: 1fr;
  }

  .vvc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vvc-portal-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
