:root{
  --brand:#12B3B6;
  --bg:#f9f9f9;
  --panel:#fff;
  --ink:#111;
  --muted:#5b6570;
  --line:#d2d7dd;
  --shadow:0 2px 8px rgba(0,0,0,.10);
}

.dic-wrap{
  max-width:800px;
  margin:40px auto;
  padding:16px;
  color:var(--ink);
  background:var(--bg);
  font-family:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.dic-wrap h1{
  margin:0 0 .25rem;
  font-size:1.9rem;
  color:var(--brand);
  letter-spacing:-.02em;
}

.dic-wrap .sub{
  margin:0 0 1rem;
  color:#444;
}

.card{
  background:var(--panel);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:16px;
}

/* layout */

.row{
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap;
}

.grow{
  flex:1 1 auto;
  min-width:0;
}

/* input */

input[type="text"]{
  width:100%;
  padding:.8rem .9rem;
  font-size:1rem;
  border:1px solid var(--line);
  border-radius:10px;
  outline:0;
  box-sizing:border-box;
}

input[type="text"]:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(18,179,182,.15);
}

/* botão */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:3rem;
  height:3rem;
  border:0;
  border-radius:10px;
  cursor:pointer;
  background:var(--brand);
  color:#fff;
}

.btn svg{
  width:20px;
  height:20px;
  fill:white;
}

/* toggle */

.seg{
  display:inline-flex;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}

.seg button{
  padding:.55rem .8rem;
  border:0;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}

.seg button+button{
  border-left:1px solid var(--line);
}

.seg button.active{
  background:var(--brand);
  color:#fff;
}

/* resultados */

.result{
  margin-top:.75rem;
}

.bio{
  display:flex;
  gap:1rem;
  align-items:flex-start;
}

.img{
  max-width:200px;
  border-radius:8px;
  box-shadow:0 4px 8px rgba(0,0,0,.05);
}

.more{
  margin-top:.5rem;
  font-size:.9rem;
}

.more a{
  color:var(--brand);
  text-decoration:none;
}

.err{
  color:#b00020;
  font-weight:700;
}

.note{
  color:#8a6d00;
  background:#fff8db;
  border:1px solid #f3e1a2;
  padding:.5rem .75rem;
  border-radius:8px;
}

/* mobile */

@media (max-width:600px){

  .row{
    flex-direction:column;
    align-items:stretch;
  }

  .seg{
    align-self:flex-start;
  }

  .btn{
    width:100%;
    height:2.8rem;
  }

  .bio{
    flex-direction:column;
  }

  .img{
    max-width:100%;
  }

}