/* DoorForce Technician — mobile home launcher (original layout) */
:root {
  --df-navy: #0f4c81;
  --df-red: #dc2626;
  --df-white: #ffffff;
  --df-home-ink: #111827;
  --df-home-muted: #374151;
  --df-home-surface: #f5f7fa;
  --df-home-tile: #ffffff;
}

.df-tech-primary-nav,
.df-executive-hero {
  display: none !important;
}

#panel-tech-home {
  margin: 0;
  padding: 0;
}

.df-tech-home {
  min-height: calc(100vh - 120px);
  padding: 14px 16px 32px;
  background: #f5f7fa;
  border-radius: 0;
  color: #111827;
  animation: df-home-fade 0.35s ease-out;
}

@keyframes df-home-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.df-tech-home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 14px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  color: #111827;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

.df-tech-home-brand img {
  width: 52px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.df-tech-home-brand h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #111827;
}

.df-tech-home-brand p {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.df-tech-home-group {
  margin-bottom: 20px;
}

.df-tech-home-group h2 {
  margin: 0 0 12px 4px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563;
}

.df-tech-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

.df-tech-home-tile {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--df-home-ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.df-tech-home-tile:active {
  transform: scale(0.96);
}

.df-tech-home-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--df-home-tile);
  border: 1px solid rgba(10, 35, 66, 0.08);
  box-shadow: 0 8px 18px rgba(10, 35, 66, 0.08);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.df-tech-home-tile:hover .df-tech-home-icon,
.df-tech-home-tile:focus-visible .df-tech-home-icon {
  box-shadow: 0 10px 22px rgba(15, 76, 129, 0.18);
  background: #eef5fb;
}

.df-tech-home-icon svg {
  width: 28px;
  height: 28px;
  stroke: #0f4c81;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.df-tech-home-icon.is-accent svg {
  stroke: var(--df-red);
}

.df-tech-home-tile span {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 76px;
  color: var(--df-home-ink);
}

@media (max-width: 390px) {
  .df-tech-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 6px;
  }

  .df-tech-home-icon {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  .df-tech-home {
    padding: 16px 18px 32px;
  }

  .df-tech-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .df-tech-home-icon {
    width: 72px;
    height: 72px;
  }

  .df-tech-home-tile span {
    font-size: 0.74rem;
    max-width: 90px;
  }
}

@media (min-width: 769px) {
  .df-tech-home {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px 40px;
    border-radius: 20px;
  }

  .df-tech-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .df-tech-home-icon {
    width: 78px;
    height: 78px;
  }

  .df-tech-home-tile span {
    font-size: 0.8rem;
    max-width: 100px;
  }
}

/* Bottom nav: include Home */
.df-tech-bottom-nav {
  grid-template-columns: repeat(5, 1fr) !important;
}

.df-tech-bottom-nav button.active {
  color: var(--df-red) !important;
}
