/* pages/home/home.page.css */
.vl-home {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vl-home-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.vl-home-hero-copy,
.vl-home-hero-panel,
.vl-home-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  box-sizing: border-box;
}

.vl-home-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 18px;
}

.vl-home-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.vl-home-pill i,
.vl-home-pill svg,
.vl-home-note i,
.vl-home-note svg,
.vl-home-btn i,
.vl-home-btn svg,
.vl-home-mini-btn i,
.vl-home-mini-btn svg,
.vl-home-card-badge i,
.vl-home-card-badge svg,
.vl-home-item-copy p i,
.vl-home-item-copy p svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
  stroke-width: 2.35;
}

.vl-home-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.vl-home-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.vl-home-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.vl-home-btn,
.vl-home-mini-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.vl-home-btn:hover,
.vl-home-mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.vl-home-btn-primary {
  border-color: rgba(37, 99, 235, 0.24);
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.vl-home-btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.vl-home-btn-secondary {
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
}

.vl-home-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.vl-home-hero-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
}

.vl-home-panel-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
}

.vl-home-panel-icon,
.vl-home-item-icon,
.vl-home-info-icon,
.vl-home-empty-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.vl-home-panel-icon i,
.vl-home-panel-icon svg,
.vl-home-item-icon i,
.vl-home-item-icon svg,
.vl-home-info-icon i,
.vl-home-info-icon svg,
.vl-home-empty-icon i,
.vl-home-empty-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke-width: 2.35;
}

.vl-home-panel-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vl-home-panel-copy strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.vl-home-panel-copy span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.vl-home-content {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.vl-home-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.vl-home-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vl-home-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

.vl-home-card-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.vl-home-card-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.vl-home-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vl-home-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.vl-home-item.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.06);
}

.vl-home-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vl-home-item-copy {
  min-width: 0;
}

.vl-home-item-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vl-home-item-copy p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vl-home-dot {
  width: 4px;
  height: 4px;
  min-width: 4px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.55);
}

.vl-home-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
}

.vl-home-mini-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.vl-home-mini-btn-open {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.14);
}

.vl-home-mini-btn-delete {
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(220, 38, 38, 0.16);
}

.vl-home-mini-btn-delete:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: rgba(220, 38, 38, 0.28);
}

.vl-home-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 20px;
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 15px;
  background: rgba(248, 250, 252, 0.72);
  text-align: center;
}

.vl-home-empty h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.vl-home-empty p {
  max-width: 360px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.vl-home-info-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vl-home-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.vl-home-info-item strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.vl-home-info-item span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .vl-home-hero,
  .vl-home-content {
    grid-template-columns: 1fr;
  }

  .vl-home-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vl-home {
    width: calc(100% - 16px);
    padding: 8px 0 24px;
    gap: 10px;
  }

  .vl-home-hero-copy,
  .vl-home-hero-panel,
  .vl-home-card {
    border-radius: 14px;
  }

  .vl-home-hero-copy {
    padding: 14px;
  }

  .vl-home-hero-copy h1 {
    font-size: 30px;
  }

  .vl-home-hero-panel {
    grid-template-columns: 1fr;
  }

  .vl-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vl-home-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .vl-home-card-head,
  .vl-home-item {
    align-items: stretch;
    flex-direction: column;
  }

  .vl-home-item-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vl-home-mini-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .vl-home-hero-copy h1 {
    font-size: 26px;
  }

  .vl-home-pill {
    white-space: normal;
    line-height: 1.25;
    padding: 7px 10px;
  }

  .vl-home-item-actions {
    grid-template-columns: 1fr;
  }

  .vl-home-item-copy p {
    align-items: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
}
