:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --primary-color: #203071;
  --header-background-color: #fcfcfd;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: #1a1a1a;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 60px;
  background-color: var(--header-background-color);
  box-shadow: 0px 0px 1px rgba(65, 32, 158, 0.08), 0px 0.5px 2px rgba(136, 100, 211, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.app-header[hidden] {
  display: none;
}

.app-header-logo {
  max-height: 40px;
  max-width: 210px;
}

.app-header-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-header-email {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.app-header-logout {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-header-logout:hover {
  background-color: var(--primary-color);
  color: #fff;
}

#app {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  max-height: 56px;
  margin-bottom: 16px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.subtitle {
  color: #555;
  margin: 0 0 32px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.tile-name {
  font-weight: 600;
}

.tile-region {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.loading,
.error,
.empty {
  color: #555;
}

.error {
  color: #b3261e;
}
