/* Layout refinements for the compact release-focused dashboard. */

/* Main dashboard: remove decorative device art and give schedule data more room. */
.dashboard {
  grid-template-columns: minmax(330px, .68fr) minmax(0, 1.32fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.hero-card {
  display: block !important;
  height: auto !important;
  min-height: 500px !important;
}

.hero-copy {
  padding: 42px 34px 30px !important;
}

.hero-copy h1 {
  max-width: 470px !important;
  font-size: clamp(39px, 3.2vw, 50px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.055em !important;
}

.hero-copy > p {
  max-width: 480px !important;
  margin-top: 18px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.hero-art {
  display: none !important;
}

.hero-search {
  width: 100% !important;
  max-width: none !important;
  margin-top: 24px !important;
}

.hero-stats {
  max-width: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.hero-stats > div:nth-child(2) {
  border-right: 0 !important;
}

.hero-stats > div:nth-child(-n+2) {
  border-bottom: 1px solid var(--line) !important;
}

.schedule-card {
  height: auto !important;
  min-height: 500px !important;
  padding: 22px 24px !important;
  overflow: visible !important;
}

.schedule-head h2 {
  font-size: 24px !important;
}

.unpacked-card {
  margin-top: 10px !important;
  padding: 13px 14px !important;
}

.unpacked-summary {
  grid-template-columns: 165px minmax(0,1fr) !important;
  gap: 12px !important;
  margin-top: 8px !important;
}

.unpacked-summary p {
  font-size: 11px !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.unpacked-label {
  margin-top: 8px !important;
}

.unpacked-device-row {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 7px !important;
  margin-top: 5px !important;
}

.unpacked-device {
  padding: 7px 8px !important;
  grid-template-columns: 30px minmax(0,1fr) !important;
}

.unpacked-device small {
  display: none !important;
}

.unpacked-device em {
  font-size: 8px !important;
}

.unpacked-foot {
  margin-top: 6px !important;
}

.official-upcoming {
  margin-top: 7px !important;
}

.official-empty {
  padding: 7px 10px !important;
}

.official-empty span {
  display: none !important;
}

.forecast-head {
  margin-top: 8px !important;
}

.forecast-grid {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

.forecast-card {
  padding: 9px 10px !important;
}

.forecast-main {
  margin-top: 5px !important;
}

.forecast-main h4 {
  font-size: 11px !important;
}

.forecast-date {
  margin-top: 5px !important;
}

/* Permanent category-icon isolation. Category classes no longer reuse .watch/.buds. */
.device-thumb,
.mini-category {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
}

.device-thumb {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  flex: 0 0 38px !important;
  border: 1px solid #d8deea !important;
  border-radius: 10px !important;
  padding: 0 !important;
  background: #f1f4f8 !important;
}

.device-thumb::before,
.device-thumb::after,
.mini-category::before,
.mini-category::after {
  content: none !important;
  display: none !important;
}

.device-thumb svg,
.mini-category svg {
  width: 22px !important;
  height: 22px !important;
  position: static !important;
  transform: none !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.type-phone { color:#4d5b71 !important; background:#f0f3fa !important; }
.type-foldable { color:#5b62c8 !important; background:#f0f0ff !important; }
.type-watch { color:#27765c !important; background:#ecf8f3 !important; }
.type-buds { color:#9d5c13 !important; background:#fff5e8 !important; }
.type-tablet { color:#2f66a0 !important; background:#edf5ff !important; }
.type-ring { color:#7a58b6 !important; background:#f5efff !important; }
.type-glasses { color:#5d6470 !important; background:#f0f1f4 !important; }

.device-name {
  min-height: 42px !important;
  align-items: center !important;
}

/* Current-month timeline is a separate, readable panel. */
.timeline-panel {
  margin-top: 14px !important;
  padding: 20px 24px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
}

.timeline-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.timeline-panel-head h2 {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -.035em;
}

.timeline-month-summary {
  text-align: right;
}

.timeline-month-summary strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.025em;
}

.timeline-month-summary span {
  display: block;
  margin-top: 3px;
  color: #8b96a8;
  font-size: 10px;
}

.timeline-current-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.month-event {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

.month-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
}

.month-event.rumor .month-event-date {
  background: var(--orange-soft);
  color: var(--orange);
}

.month-event-date strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.05em;
}

.month-event-date span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
}

.month-event-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.month-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #7f8a9d;
  font-size: 10px;
}

.month-event-meta a {
  margin-left: auto;
  color: #4663d8;
  text-decoration: none;
}

.month-event-status {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.month-event.rumor .month-event-status {
  background: var(--orange-soft);
  color: var(--orange);
}

.month-event-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.month-event-devices span {
  padding: 6px 9px;
  border: 1px solid #e1e6ef;
  border-radius: 9px;
  background: #fff;
  color: #273142;
  font-size: 11px;
  font-weight: 700;
}

.timeline-empty {
  padding: 26px 18px;
  border: 1px dashed #cfd6e5;
  border-radius: 13px;
  background: #fafbfe;
  color: #7f8a9d;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 1fr !important;
  }
  .hero-card,
  .schedule-card {
    min-height: auto !important;
  }
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  }
  .hero-stats > div:nth-child(2) {
    border-right: 1px solid var(--line) !important;
  }
  .hero-stats > div:nth-child(-n+2) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 760px) {
  .hero-copy {
    padding: 32px 22px 26px !important;
  }
  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 46px) !important;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .hero-stats > div:nth-child(2) {
    border-right: 0 !important;
  }
  .hero-stats > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line) !important;
  }
  .schedule-card {
    padding: 18px !important;
  }
  .unpacked-summary {
    grid-template-columns: 1fr !important;
  }
  .unpacked-device-row,
  .forecast-grid {
    grid-template-columns: 1fr !important;
  }
  .timeline-panel {
    padding: 18px !important;
  }
  .timeline-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .timeline-month-summary {
    text-align: left;
  }
  .month-event {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 10px;
  }
  .month-event-date strong {
    font-size: 23px;
  }
  .month-event-meta a {
    margin-left: 0;
  }
}
