.collapse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  transition: background-color 180ms ease, transform 180ms ease;
}

:root {
  --hbp-border-subtle: rgba(27, 28, 26, 0.16);
  --hbp-border-medium: rgba(27, 28, 26, 0.22);
}

.border-on-surface\/5,
.border-on-surface\/10 {
  border-color: var(--hbp-border-subtle) !important;
}

.collapse-button:hover,
.collapse-button:focus-visible {
  background: rgba(27, 28, 26, 0.05);
  outline: none;
}

.collapsible-content {
  overflow: hidden;
  transition: none;
  max-height: 4000px;
  opacity: 1;
}

.collapsible-content.is-ready {
  transition: max-height 260ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.collapsible-content.is-collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0 !important;
}

.section-empty {
  border: 1px dashed var(--hbp-border-medium);
  padding: 1rem 1.25rem;
  color: #5e5e5e;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.skeleton-block {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.125rem;
  background: rgba(27, 28, 26, 0.08);
}

.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-panel {
  background: #f5f3f0;
}

.skeleton-stat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--hbp-border-subtle);
}

.skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.skeleton-task {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--hbp-border-subtle);
}

.skeleton-day {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skeleton-day-highlight {
  background: #1b1c1a;
  color: white;
  padding: 2rem;
  margin-top: -2rem;
  padding-top: 4rem;
}

.skeleton-day-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hbp-border-medium);
}

.skeleton-day-highlight .skeleton-day-head {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skeleton-itinerary-row {
  display: flex;
  gap: 1.5rem;
}

.skeleton-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.skeleton-resource {
  min-height: 14rem;
  min-width: 0;
  overflow: hidden;
  background: #e4e2df;
  pointer-events: none;
}

.skeleton-crew {
  padding: 1.5rem;
}

.skeleton-label {
  width: 5.5rem;
  height: 0.625rem;
}

.skeleton-value {
  width: min(100%, 8rem);
  height: clamp(2rem, 5vw, 3rem);
}

.skeleton-heading {
  width: min(100%, 11rem);
  height: 1.5rem;
}

.skeleton-title-xl {
  width: min(100%, 12rem);
  height: 2.75rem;
}

.skeleton-line {
  width: min(100%, 14rem);
  height: 1rem;
}

.skeleton-subline {
  width: min(100%, 8rem);
  height: 0.75rem;
}

.skeleton-time {
  width: 4.5rem;
  height: 1.5rem;
}

.skeleton-icon,
.skeleton-resource-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.skeleton-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.skeleton-pill {
  width: 4.75rem;
  height: 1.5rem;
  align-self: flex-end;
}

.is-loaded > [aria-hidden="true"] {
  display: none;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.resource-card-link {
  min-height: 14rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hbp-border-subtle);
}

#status-cards > *,
#task-list > *,
#crew-grid > * {
  border-color: var(--hbp-border-subtle) !important;
}

#status-cards .skeleton-card {
  min-height: 7.25rem;
  padding: 1.5rem;
}

.resource-card-link > * {
  position: relative;
  z-index: 1;
}

.resource-card-link.has-resource-image {
  background-image:
    linear-gradient(rgba(27, 28, 26, var(--resource-overlay, 0.58)), rgba(27, 28, 26, var(--resource-overlay, 0.58))),
    var(--resource-image);
  background-position: center;
  background-size: cover;
}

.resource-card-link.has-weather-background {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 236, 133, 0.72) 0 18%, rgba(255, 185, 92, 0.38) 35%, transparent 62%),
    linear-gradient(135deg, #ff6f82 0%, #ff806c 58%, #ffb05f 100%);
}

.resource-card-link.has-weather-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.45;
  pointer-events: none;
}

.weather-sun-mark {
  position: absolute;
  right: clamp(-3.25rem, -5vw, -1.75rem);
  top: clamp(-3.75rem, -5.5vw, -2rem);
  width: clamp(9rem, 16vw, 12rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 74% 26%, rgba(255, 249, 164, 0.96) 0 36%, rgba(255, 236, 122, 0.42) 37% 60%, rgba(255, 195, 85, 0.24) 61% 100%);
  box-shadow: 0 0 70px rgba(255, 224, 94, 0.22);
  pointer-events: none;
  z-index: 0;
}

.resource-card-link .material-symbols-outlined {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1;
}

.spotify-resource-mark {
  position: absolute;
  right: clamp(-3.75rem, -5vw, -2rem);
  bottom: clamp(-3.25rem, -4vw, -2rem);
  width: clamp(9rem, 16vw, 12.5rem);
  aspect-ratio: 1;
  background: rgba(107, 35, 18, 0.5);
  mask: url("/assets/images/spotify-logo.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/images/spotify-logo.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.whatsapp-resource-mark {
  position: absolute;
  right: clamp(-3.25rem, -4.5vw, -1.75rem);
  bottom: clamp(-3rem, -4vw, -1.75rem);
  width: clamp(8.5rem, 15vw, 11.75rem);
  aspect-ratio: 1;
  background: rgba(97, 25, 8, 0.38);
  mask: url("/assets/images/whatsapp-mark.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/images/whatsapp-mark.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.resource-card-copy {
  min-width: 0;
}

.resource-card-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resource-card-label {
  line-height: 1.2;
}

@media (max-width: 767px) {
  .resource-card-link {
    min-height: 11.5rem;
  }

  .skeleton-day-highlight {
    margin-top: 0;
    padding-top: 2rem;
  }
}

@media (max-width: 479px) {
  .resource-card-link {
    min-height: 10.5rem;
  }

  .skeleton-card,
  .skeleton-row,
  .skeleton-task,
  .skeleton-crew {
    padding: 1.25rem;
  }
}

.resource-card-link[aria-disabled="true"] {
  pointer-events: none;
}

.mobile-footer-link {
  color: #5e5e5e;
  opacity: 0.6;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.mobile-footer-link.is-active {
  color: #ff5722;
  opacity: 1;
  font-weight: 900;
}

.mobile-footer-link .material-symbols-outlined {
  transition: transform 180ms ease;
}

.mobile-footer-link.is-active .material-symbols-outlined {
  transform: translateY(-1px);
}

.edit-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(27, 28, 26, 0.08);
  background: #f5f3f0;
}

.edit-tools-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.edit-tools-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edit-status-pill {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(27, 28, 26, 0.12);
  color: #5e5e5e;
}

.edit-status-pill.is-unlocked {
  background: #1b1c1a;
  border-color: #1b1c1a;
  color: #ffffff;
}

.edit-action-button {
  appearance: none;
  border: 1px solid #1b1c1a;
  background: transparent;
  color: #1b1c1a;
  padding: 0.65rem 0.95rem;
  font-size: 0.675rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.edit-action-button:hover,
.edit-action-button:focus-visible {
  background: #1b1c1a;
  color: #ffffff;
  outline: none;
}

.edit-action-button.is-primary {
  background: #ff5722;
  border-color: #ff5722;
  color: #ffffff;
}

.edit-action-button.is-primary:hover,
.edit-action-button.is-primary:focus-visible {
  background: #b02f00;
  border-color: #b02f00;
}

.edit-action-button[disabled] {
  opacity: 0.45;
  cursor: wait;
}

.task-add-form,
.crew-phone-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.edit-input {
  flex: 1 1 16rem;
  min-width: 0;
  border: 1px solid rgba(27, 28, 26, 0.12);
  background: #ffffff;
  color: #1b1c1a;
  padding: 0.85rem 1rem;
  font-size: 0.775rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edit-input:focus {
  outline: 1px solid #ff5722;
  border-color: #ff5722;
}

.edit-input[disabled] {
  background: #efeeeb;
  color: #907067;
}

.edit-feedback {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-feedback.is-error {
  color: #ba1a1a;
}

.task-toggle {
  appearance: none;
  background: transparent;
}

.task-toggle:not([disabled]) {
  cursor: pointer;
}

.task-toggle[disabled] {
  cursor: wait;
  opacity: 0.55;
}

.task-delete {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  color: #ba1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.task-delete:not([disabled]) {
  cursor: pointer;
}

.task-delete:hover,
.task-delete:focus-visible {
  opacity: 0.72;
  outline: none;
  transform: translateY(-1px);
}

.task-delete[disabled] {
  cursor: wait;
  opacity: 0.35;
}

.itinerary-edit-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-block;
  cursor: pointer;
}

.itinerary-edit-trigger:hover,
.itinerary-edit-trigger:focus-visible {
  color: #ff5722;
  outline: none;
}

.itinerary-time-button {
  flex: 0 0 auto;
  text-align: left;
  min-width: 4.25rem;
}

.itinerary-description-button {
  display: block;
}

.itinerary-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 87, 34, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.itinerary-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.itinerary-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.itinerary-edit-grid label.full {
  grid-column: 1 / -1;
}

.itinerary-edit-grid label span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5e5e5e;
  font-weight: 800;
}

.bg-on-surface .itinerary-edit-grid label span {
  color: rgba(255, 255, 255, 0.7);
}

.itinerary-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.itinerary-edit-form.is-pending {
  opacity: 0.72;
}

.crew-name-button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  display: block;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.crew-name-button:hover,
.crew-name-button:focus-visible {
  color: #ff5722;
  outline: none;
}

.crew-phone-add {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 0.5rem;
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5e5e5e;
  text-align: left;
}

.crew-phone-add:hover,
.crew-phone-add:focus-visible {
  color: #ff5722;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after {
    animation: none;
  }
}
