/* ==========================================================================
   CUEVANCE Layout - Natural Top-Aligned Compact Flow
   ========================================================================== */

.app-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 12px 14px calc(20px + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上に自然に詰める */
  gap: 12px;
  box-sizing: border-box;
}

/* 1. Header (Title) */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-card-border);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  font-size: 20px;
  line-height: 1;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 10px;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main Dashboard Flow - 自然な間隔で上に詰める */
.rough-layout-dashboard {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.hide-mobile {
  display: inline;
}

@media (max-width: 500px) {
  .app-container {
    padding: 8px 10px calc(16px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .rough-layout-dashboard {
    gap: 8px;
  }

  .hide-mobile {
    display: none;
  }
}
