[v-cloak] { display: none; }

body {
  font-family: 'Roboto', sans-serif;
}

/* Active profile button in the header: keep long names on one line */
.profile-btn {
  max-width: 70vw;
  min-width: 0;
  flex: 0 1 auto;      /* the profile name gets shortened, never the app name */
}

.profile-btn .q-btn__content {
  flex-wrap: nowrap;
}

.profile-btn .block {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dialogs: full screen on phones, a comfortable card elsewhere */
.dialog-card {
  width: 100%;
  max-width: 600px;
}

.note {
  opacity: 0.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 6px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-top-left-radius: 4px;
}

.gallery-detail-img {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Close button in the top-right corner of the gallery detail (over the image) */
.gallery-detail-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.gallery-detail-img img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Gallery detail: info lines under the image */
.gallery-detail-info {
  line-height: 1.5;
}

/* Gallery detail: short slide when swiping to the next / previous photo */
.gallery-detail-img img {
  user-select: none;
  touch-action: pan-y;
}
.gallery-next-enter-active, .gallery-next-leave-active,
.gallery-prev-enter-active, .gallery-prev-leave-active {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.gallery-next-enter-from, .gallery-prev-leave-to { transform: translateX(40px);  opacity: 0; }
.gallery-next-leave-to,  .gallery-prev-enter-from { transform: translateX(-40px); opacity: 0; }

/* Gallery title: the statistics line may wrap on phones */
.gallery-title,
.gallery-title .text-caption {
  white-space: normal;
  line-height: 1.3;
}

/* ------------------------------------------------------------------
   Readability: NO text in the app is smaller than 16px.
   Quasar uses 12–14px in many places (body, buttons, captions, badges,
   field hints, dense inputs, notifications, menus); all raised to 16px.
   ------------------------------------------------------------------ */
body,
.q-btn,
.q-btn-dropdown,
.q-item,
.q-item__label--caption,
.q-badge,
.q-chip,
.q-tooltip,
.q-field__native,
.q-field__input,
.q-field__label,
.q-field__prefix,
.q-field__suffix,
.q-field__bottom,
.q-field__counter,
.q-field--dense .q-field__control,
.q-field--dense .q-field__marginal,
.q-toggle__label,
.q-checkbox__label,
.q-radio__label,
.q-option-group,
.q-slider__pin-value-marker-text,
.q-slider__text,
.q-notification,
.q-notification__message,
.q-notification__caption,
.q-dialog__message,
.q-card,
.q-menu,
.text-caption,
.text-body2,
.text-subtitle2,
.text-overline {
  font-size: 16px;
}
.q-item__label--caption {
  line-height: 1.35;
}
/* Quasar sets smaller sizes for dense fields with more specific selectors */
.q-field--dense .q-field__label,
.q-field--dense .q-field__bottom,
.q-field--dense .q-field__native,
.q-field--dense .q-field__input {
  font-size: 16px;
}
.q-badge {
  line-height: 18px;
  min-height: 20px;
}

/* App name in the header */
.app-title {
  flex: 1 0 auto;
  font-size: 20px;
  font-weight: 500;
  padding-right: 4px;
}

/* Home: card of the active profile under the big buttons */
.home-profile {
  margin-top: 8px;
}

.home-target-icon {
  margin-top: 1px;
  opacity: 0.8;
}

/* Guide */
.guide-card {
  max-height: 100dvh;
}

@media (min-width: 600px) {
  .guide-card { height: 640px; }
}

.guide-carousel {
  height: auto;
  min-height: 0;
  background: transparent;
}

.guide-slide {
  overflow-y: auto;
  padding: 16px 24px;
  line-height: 1.5;
}

.guide-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.guide-dot--on {
  background: var(--q-primary);
}
