:root {
  color-scheme: light;
  --branco: #ffffff;
  --azul: #00aae0;
  --azul-marinho: #081f45;
  --azul-claro: #e4f6fc;
  --azul-escuro: #0089b8;
  --cinza-bg: #f5f6f7;
  --cinza-claro: #e0e0e0;
  --cinza-escuro: #7f8082;
  --preto: #231f20;
  --turquesa: #0deda6;
  --laranja: #ff850b;
  --linha: #ececec;
  --danger: #b42318;
  --success: #067647;
  --shadow-sm: 0 1px 2px rgba(35, 31, 32, 0.06), 0 1px 3px rgba(35, 31, 32, 0.05);
  --shadow-md: 0 8px 28px rgba(8, 31, 69, 0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font-sans: Raleway, Axiforma, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--preto);
  background: var(--cinza-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--azul);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-button {
  width: 100%;
  padding: 13px 18px;
  color: var(--branco);
  background: var(--azul);
}

.primary-button:hover {
  background: var(--azul-escuro);
}

.primary-button:active,
.ghost-button:active {
  transform: scale(0.98);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ghost-button {
  padding: 10px 16px;
  color: var(--azul-marinho);
  background: var(--branco);
  border: 1px solid var(--linha);
}

.ghost-button:hover {
  border-color: var(--azul);
}

.status-success {
  color: var(--success);
  font-weight: 800;
}

.status-error {
  color: var(--danger);
  font-weight: 800;
}

.app-shell {
  background: var(--cinza-bg);
}

.app-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 6%, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--linha);
  backdrop-filter: blur(14px);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--preto);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.app-brand img {
  width: 32px;
  height: 32px;
}

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

.session-user {
  max-width: 280px;
  color: var(--cinza-escuro);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.home-hero {
  max-width: 720px;
  padding: 48px 0 34px;
}

.home-hero h1 {
  margin: 0;
  color: var(--azul-marinho);
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 800;
}

.home-hero p:last-child {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--cinza-escuro);
  font-size: 1.1rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-tile {
  min-height: 188px;
  padding: 24px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tile-label {
  margin: 0 0 18px;
  color: var(--azul);
  font-size: 0.84rem;
  font-weight: 800;
}

.home-tile h2 {
  margin: 0 0 10px;
  color: var(--preto);
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-tile p:last-child {
  margin: 0;
  color: var(--cinza-escuro);
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-main {
    width: min(100% - 28px, 1120px);
    padding-top: 28px;
  }

  .home-hero h1 {
    font-size: 2.1rem;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}
