/* VA dashboard layout */

.vd-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vd-head h2 {
  margin: 0 0 0.25rem;
}

.vd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.vd-panel {
  background: var(--panel, #141414);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.vd-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #888);
}

.vd-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.vd-badge--ok {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.vd-badge--bad {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.vd-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, #888);
}

.vd-todos {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.vd-todo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.vd-todo label {
  flex: 1;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.vd-todo--done .vd-todo-text {
  text-decoration: line-through;
  opacity: 0.65;
}

.vd-todo-del {
  border: none;
  background: transparent;
  color: var(--muted, #888);
  cursor: pointer;
}

.vd-todo-add {
  display: flex;
  gap: 0.45rem;
}

.vd-todo-input {
  flex: 1;
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: #0d0d0d;
  color: var(--text, #eee);
}

.vd-content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vd-content-item {
  padding: 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vd-content-item--done {
  opacity: 0.72;
  border-color: rgba(74, 222, 128, 0.2);
}

.vd-content-item--ready {
  border-color: rgba(74, 222, 128, 0.35);
  border-left: 3px solid #4ade80;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(0, 0, 0, 0.22));
  padding: 0.75rem;
}

.vd-content-preview {
  width: 100%;
  max-height: 140px;
  border-radius: 8px;
  margin: 0.35rem 0 0.5rem;
  background: #000;
  object-fit: cover;
}

.vd-posting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vd-caption--copy {
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
}

.vd-content-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.vd-tag {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
}

.vd-caption {
  margin: 0.15rem 0;
  font-size: 0.85rem;
}

.vd-link {
  font-size: 0.78rem;
  color: #60a5fa;
}

.vd-done {
  margin-left: auto;
  font-size: 0.75rem;
}

.vd-notes {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: #0d0d0d;
  color: var(--text, #eee);
  resize: vertical;
}

.vd-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.vd-cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.vd-cal-day:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
}

.vd-cal-hint {
  margin: 0 0 0.55rem;
}

.vd-cal-day-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vd-cal-event {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.vd-cal-event h4 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
}

.vd-dash-subhead {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vd-dash-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vd-dash-task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vd-dash-task:last-child {
  border-bottom: 0;
}

.vd-dash-task--overdue strong {
  color: #f87171;
}

.vd-dash-task--done {
  opacity: 0.55;
}

.vd-dash-task-main {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 1;
  cursor: pointer;
}

.vd-dash-task-main input {
  margin-top: 0.2rem;
}

.vd-cal-day--today {
  outline: 1px solid rgba(167, 139, 250, 0.5);
}

.vd-cal-day--event {
  background: rgba(96, 165, 250, 0.1);
}

.vd-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #60a5fa;
  margin-top: 2px;
}

.vd-cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.vd-cal-list li {
  padding: 0.15rem 0;
}

.vd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vd-modal-overlay > .vd-modal {
  margin: auto;
  flex-shrink: 0;
}

.vd-modal {
  width: min(480px, 100%);
  background: var(--panel, #181818);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.vd-modal--wide {
  width: min(520px, 100%);
}

.vd-modal--form {
  max-height: min(92vh, 680px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.vd-modal--form .vd-modal-head {
  padding: 1rem 1.1rem 0.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.vd-modal--form .vd-modal-head h3 {
  margin: 0;
}

.vd-modal--form .vd-modal-body--scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 0.35rem 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vd-modal--form .vd-modal-body--scroll .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vd-modal--form .vd-modal-body--scroll .field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #9ca3af);
}

.vd-modal--form .vd-modal-body--scroll input[type="url"],
.vd-modal--form .vd-modal-body--scroll input[type="file"],
.vd-modal--form .vd-modal-body--scroll textarea {
  width: 100%;
}

.vd-modal--form .vd-modal-actions {
  flex-shrink: 0;
  padding: 0.85rem 1.1rem 1rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel, #181818);
}

.vd-schedule-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.vd-schedule-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.vd-plan-trial-hint,
.vd-plan-account-hint {
  margin: 0 0 0.5rem;
}

.vd-date-picker {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.vd-date-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vd-date-month-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.vd-date-grid-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.vd-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.vd-date-day {
  aspect-ratio: 1;
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.vd-date-day:hover:not(.vd-date-day--muted) {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
}

.vd-date-day--muted {
  opacity: 0.28;
  cursor: default;
}

.vd-date-day--today {
  border-color: rgba(167, 139, 250, 0.45);
}

.vd-date-day--selected {
  background: rgba(124, 58, 237, 0.35);
  border-color: rgba(167, 139, 250, 0.75);
  color: #fff;
  font-weight: 650;
}

.vd-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.5rem;
}

.vd-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.35);
  font-size: 0.76rem;
}

.vd-date-chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 0.15rem;
  line-height: 1;
  opacity: 0.75;
}

.vd-date-chip-remove:hover {
  opacity: 1;
}

.vd-date-hint {
  margin: 0;
}

.vd-modal h3 {
  margin: 0 0 0.85rem;
}

.vd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.vd-video-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vd-video-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vd-model-count {
  font-size: 1.4rem;
  font-weight: 650;
}

.vd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vd-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.vd-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vd-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vd-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.vd-form input,
.vd-form textarea {
  width: 100%;
}

.vd-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vd-event-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vd-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.vd-acc-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vd-acc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vd-acc-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 650;
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
}

.vd-acc-card .ed-acc-head {
  flex: 1;
  min-width: 0;
}

.vd-acc-card .ops-pill {
  flex-shrink: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
}
