/**
 * Go CSS · applications
 * 
 * Purpose:
 *   Styles for this dashboard piece.
 * 
 * Dashboard:
 *   Go · App Store / data-view · applications
 * 
 * This file:
 *   business/dashboard/applications-app/applications-app.css
 * 
 * Depends on:
 *   - business/dashboard/shell/shell.html
 *   - scripts/assemble-dashboards.js
 * 
 * Used by:
 *   - scripts/assemble-dashboards.js → business/dashboard/styles.css
 */

/* —— Business Applications catalogue —— */
.applications-shell {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.applications-shell > #applications-mode-tabs {
  margin-bottom: 1rem;
}

.applications-search {
  display: block;
  margin: 0 0 1rem;
}

.applications-search input {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--mist, #f3f1ee));
  color: var(--text);
  font: inherit;
}

.applications-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #0f766e) 45%, transparent);
  outline-offset: 1px;
}

.applications-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: stretch;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}

.applications-bank-hint {
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.applications-empty {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .applications-grid {
    border-radius: 14px;
  }

  .app-tile {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem 0.7rem;
  }

  .app-tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .app-tile-icon svg {
    width: 22px;
    height: 22px;
  }

  .app-tile-body h4 {
    font-size: 0.9rem;
  }

  .app-get-btn {
    min-width: 3.1rem;
    padding: 0.34rem 0.75rem;
    font-size: 0.72rem;
  }
}
